/* ==========================================
   厦门祥彪工程机械有限公司 - 网站样式
   ========================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:       #1a5f2a;
    --primary-dark:  #0d3d16;
    --primary-light: #2d8a3e;
    --accent:        #e8a020;
    --accent-dark:   #c47e10;
    --text-dark:     #222;
    --text-mid:      #555;
    --text-light:    #888;
    --bg-light:      #f5f7f5;
    --white:         #ffffff;
    --shadow-sm:     0 2px 12px rgba(0,0,0,0.08);
    --shadow-md:     0 6px 24px rgba(0,0,0,0.12);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.18);
    --transition:    all 0.35s ease;
    --radius:        14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   导航栏
   ========================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.62rem;
    color: var(--text-light);
    letter-spacing: 1.5px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 26px; height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   Hero 轮播
   ========================================== */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10,40,15,0.72) 0%,
        rgba(20,70,30,0.55) 60%,
        rgba(10,40,15,0.65) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    letter-spacing: 1px;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.92);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    opacity: 0.92;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-count {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    opacity: 0.88;
    margin-bottom: 36px;
}

.hero-count .highlight {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1em;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(232,160,32,0.45);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(232,160,32,0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* 轮播指示点 */
.slider-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* 向下滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    text-align: center;
    z-index: 3;
}

.scroll-indicator span {
    font-size: 0.72rem;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.arrow {
    width: 16px; height: 16px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-8px) rotate(45deg); }
    60% { transform: translateY(-4px) rotate(45deg); }
}

/* ==========================================
   数据亮点条
   ========================================== */
.highlight-bar {
    background: var(--primary);
    padding: 20px 0;
}

.highlight-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
}

.highlight-item {
    text-align: center;
    color: var(--white);
    padding: 6px 16px;
}

.h-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.h-label {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-top: 4px;
    display: block;
}

/* ==========================================
   通用区块
   ========================================== */
section { padding: 90px 0; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--primary);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 0.88rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ==========================================
   关于我们
   ========================================== */
.about { background: var(--bg-light); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.65rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-mid);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.feature-tag {
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--white);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.about-image-badge span {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.about-image-badge p {
    font-size: 0.72rem;
    margin: 0;
    opacity: 0.9;
}

/* ==========================================
   设备展示
   ========================================== */
.equipment { background: var(--white); }

/* 分类标签 */
.equipment-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

.tab-btn {
    padding: 9px 22px;
    border: 2px solid #ddd;
    background: transparent;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-mid);
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.equipment-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.equipment-card.hidden { display: none; }

.equipment-image {
    position: relative;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.06);
}

.eq-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.equipment-info {
    padding: 22px;
}

.equipment-info h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.equipment-info p {
    color: var(--text-mid);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ==========================================
   工程业绩
   ========================================== */
.projects { background: var(--bg-light); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-year {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.project-info {
    padding: 22px;
}

.project-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-info p {
    color: var(--text-mid);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================
   施工效果图
   ========================================== */
.gallery { background: var(--bg-light); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 18px 20px;
}

.gallery-info h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.gallery-info p {
    color: var(--text-mid);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ==========================================
   服务范围
   ========================================== */
.services {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.services .section-header h2,
.services .section-header p { color: var(--white); }
.services .section-header h2::after { background: var(--accent); }

.services-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.service-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.area-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 28px 22px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.area-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
}

.area-card.primary { background: var(--accent); border-color: var(--accent); }
.area-card.secondary { background: rgba(255,255,255,0.2); }

.area-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.area-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.area-card p { opacity: 0.88; margin-bottom: 12px; font-size: 0.9rem; }
.area-card .contact { font-size: 0.88rem; font-weight: 600; display: block; }

.service-types {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: var(--radius);
}

.service-types h3 { font-size: 1.25rem; margin-bottom: 18px; }

.service-types ul { list-style: none; }

.service-types li {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    padding-left: 26px;
    font-size: 0.95rem;
}

.service-types li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ==========================================
   联系我们
   ========================================== */
.contact { background: var(--bg-light); }

.contact-content { max-width: 900px; margin: 0 auto; }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--white);
    padding: 40px 36px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.contact-card .icon { font-size: 3rem; margin-bottom: 16px; }

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-card .name { color: var(--text-light); margin-bottom: 12px; font-size: 0.9rem; }

.contact-card .phone {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.btn-call {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-call:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.contact-info {
    background: var(--white);
    padding: 30px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}

.info-item {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.info-item:last-child { border-bottom: none; }

.info-item .label {
    font-weight: 600;
    color: var(--primary);
    min-width: 100px;
    font-size: 0.9rem;
}

.info-item .value { color: var(--text-mid); font-size: 0.95rem; }

/* ==========================================
   页脚
   ========================================== */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 50px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo h3 { font-size: 1.3rem; margin-bottom: 6px; }
.footer-logo p { opacity: 0.55; font-size: 0.85rem; }

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.45;
    font-size: 0.83rem;
}

/* ==========================================
   滚动动画
   ========================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   响应式
   ========================================== */
@media (max-width: 992px) {
    .about-content { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .about-image-badge { bottom: -10px; right: 10px; }
    .services-content { grid-template-columns: 1fr; }
    .service-areas { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    section { padding: 70px 0; }

    .highlight-items { gap: 6px; }
    .highlight-item { padding: 6px 10px; }
    .h-num { font-size: 1.6rem; }

    .equipment-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links { justify-content: center; }

    .service-areas { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; padding: 0 10px; }
    .btn { width: 100%; text-align: center; }
    .highlight-items { justify-content: center; }
}
