/* =========================================
   1. 基础设置 & 变量 (Variables & Reset)
   ========================================= */
:root {
    /* 品牌色 - 高端商务 */
    --primary-color: #0f172a;      /* 深邃蓝，主要用于文字 */
    --primary-light: #f8fafc;      /* 极浅灰蓝，用于背景 */
    --accent-color: #c29d59;       /* 香槟金，尊贵感 */
    --accent-hover: #a38245;
    
    /* 中性色 - 亮色模式 */
    --bg-body: #ffffff;            /* 纯白背景 */
    --bg-light: #f1f5f9;           /* 浅灰背景，用于区分区块 */
    --text-main: #1e293b;          /* 深色文字 */
    --text-muted: #64748b;         /* 次要文字，灰色 */
    --border-color: #e2e8f0;       /* 浅色边框 */
    
    /* 布局 */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 4px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    
    /* 动画 */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 通用工具类 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 2px; /* 商务风格偏向直角或微圆角 */
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-block {
    width: 100%;
}

/* 标题样式 */
.section-header {
    margin-bottom: 70px;
    position: relative;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color); /* 改为深色 */
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   2. 导航栏 (Header)
   ========================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95); /* 改为白色背景 */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 30px; /* 稍微调小一点以适配文字 */
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.logo-text span {
    color: var(--accent-color);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main); /* 改为深色 */
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-light);
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.4s ease;
    padding: 24px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.close-menu {
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links li {
    margin-bottom: 24px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    color: var(--text-main);
}

/* =========================================
   3. Hero 区域
   ========================================= */
#hero {
    position: relative;
    /* 关键修改：计算高度，确保填满首屏 */
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* 改为浅色背景，保持商务感 */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--primary-color); /* 深色文字 */
    padding-top: var(--header-height); /* 使用 padding 替代 margin */
    margin-top: 0;
    overflow: hidden;
}

/* 装饰性背景元素 - 更抽象几何 */
#hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: linear-gradient(135deg, rgba(194, 157, 89, 0.1) 0%, rgba(194, 157, 89, 0) 100%);
    transform: skewX(-15deg);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-left: 20px; /* 增加一点左侧留白 */
    border-left: 4px solid var(--accent-color); /* 增加左侧金线，提升设计感 */
}

/* Hero 区域入场动画 */
.hero-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--primary-color);
    
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted); /* 灰色文字 */
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 300;
    
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-btns {
    display: flex;
    gap: 20px;
    
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =========================================
   4. 关于我们 (About)
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: flex-start;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.company-details {
    margin-top: 40px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-color);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.detail-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.detail-item .label {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.detail-item .value {
    color: var(--text-main);
    text-align: right;
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-card {
    background: white; /* 纯白背景 */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: left; /* 改为左对齐，更商务 */
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent-color);
    background-color: rgba(194, 157, 89, 0.1);
    padding: 12px;
    border-radius: 4px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.stat-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-color); /* 深色文字 */
    white-space: nowrap; /* 防止标题换行 */
}

.stat-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .stat-card {
        padding: 20px; /* 减小内边距 */
        gap: 15px;
    }
    
    .stat-card i {
        font-size: 1.5rem;
        padding: 10px;
    }
    
    .stat-content h4 {
        font-size: 1rem;
    }
    
    .stat-content p {
        font-size: 0.75rem;
    }
}

/* =========================================
   5. 核心服务 (Services)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white; /* 纯白背景 */
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(15, 23, 42, 0.05); /* 浅色背景 */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.service-card:hover .card-icon {
    background-color: var(--accent-color); /* 悬停时变为金色 */
}

.service-card:hover .card-icon i {
    color: white; /* 悬停时图标变白 */
}

.card-icon i {
    font-size: 2rem;
    color: var(--accent-color); /* 默认图标为金色 */
    transition: color 0.3s ease;
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-color); /* 深色文字 */
}

.service-card .en-title {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================================
   6. 画廊 (Gallery)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* =========================================
   7. 联系方式 (Contact)
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* 改为单列居中布局 */
    gap: 60px;
    background-color: #f8fafc; /* 浅色背景 */
    color: var(--text-main);
    padding: 80px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-info .section-tag {
    color: var(--accent-color);
}

.contact-info .section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 改为两列布局 */
    gap: 50px;
    margin-top: 50px;
    align-items: start;
    max-width: 800px; /* 限制整体宽度，更聚拢 */
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    text-align: center;
}

/* 地址项特殊处理：放在第二行，跨两列居中 */
.info-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 500px; /* 限制地址文字宽度，防止过长 */
    margin: 0 auto;
}

.info-item .icon {
    width: 60px;
    height: 60px;
    background-color: rgba(194, 157, 89, 0.1); /* 浅色背景 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .icon {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.info-item .icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.info-item:hover .icon i {
    color: white;
}

.info-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.info-item p, .info-item a {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.info-item a:hover {
    color: var(--accent-color);
}

.contact-cta {
    margin-top: 40px;
}

.cta-box {
    background: transparent;
    padding: 0;
    box-shadow: none;
    color: var(--text-main);
}

.cta-box h4, .cta-box p {
    display: none; /* 隐藏多余文字 */
}

/* =========================================
   8. 页脚 (Footer)
   ========================================= */
footer {
    background-color: #f1f5f9; /* 浅灰背景 */
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    padding-top: 0;
}

.footer-left h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1rem;
}

/* =========================================
   9. 响应式适配 (Responsive)
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none; /* 隐藏桌面导航 */
    }
    
    .hamburger {
        display: block; /* 显示汉堡菜单 */
    }
    
    #hero {
        height: auto;
        min-height: 500px;
        padding: 60px 0;
        padding-top: calc(var(--header-height) + 40px); /* 移动端增加顶部内边距 */
    }
    
    .hero-content {
        border-left: none;
        padding: 0 20px; /* 修复移动端内边距不对称的问题，保持左右一致 */
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.9rem; /* 减小副标题字号 */
    }
    
    .hero-title {
        font-size: 2rem; /* 减小主标题字号 */
    }

    .section-title {
        font-size: 1.8rem; /* 调整移动端 section-title 大小 */
    }
    
    .hero-desc {
        font-size: 1rem; /* 减小描述文字号 */
        margin-left: auto;
        margin-right: auto; /* 确保文字块居中 */
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 16px;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        padding: 40px 20px;
    }

    .section-padding {
        padding: 60px 0; /* 移动端减小内边距 */
    }
    
    .service-card {
        padding: 30px 24px; /* 移动端减小卡片内边距，更精致 */
    }
    
    /* 移动端适配时恢复单列布局 */
    .info-list {
        grid-template-columns: 1fr; /* 移动端改为单列 */
        gap: 40px;
    }

    .info-item:nth-child(1) {
        grid-column: auto;
        grid-row: auto; /* 移动端恢复自然顺序（地址在最前） */
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* =========================================
   10. 动画类 (Animations)
   ========================================= */
/* 基础淡入上浮动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动触发动画的通用类 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟类，用于错落有致的显示效果 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
