/* =========================================
    1. 全局变量与重置 (Global Tokens)
    ========================================= */
:root {
    /* 核心色彩 */
    --primary-green: #6f42c1; /* 设计稿吸取的主色 - 紫色 */
    --primary-dark: #5835CB;  /* Hover 深色 */
    --text-main: #333333;     /* 标题黑 */
    --text-body: #666666;     /* 正文灰 */
    --text-light: #999999;    /* 浅灰说明 */
    
    /* 背景色 */
    --bg-white: #FFFFFF;
    --bg-gray: #F7F9FC;       /* 极浅的灰背景 */
    
    /* 布局参数 */
    --container-width: 1200px;
    --section-padding: 100px; /* 强呼吸感间距 */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* 更柔和的投影 */
    --card-hover-shadow: 0 20px 40px rgba(111, 66, 193, 0.15);
    --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased; /* 字体抗锯齿 */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* 通用容器 */
.container {
    max-width: var(--container-width);
    width: 92%;
    margin: 0 auto;
}

/* 按钮组件 */
.btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--bg-white);
    padding: 14px 36px;
    border-radius: 0px; /* 圆角胶囊样式 */
    font-weight: 600;
    font-size: 17px;
    border: 1px solid var(--primary-green);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}
.btn:hover { 
    background-color: var(--primary-dark); 
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #ddd;
    box-shadow: none;
}
.btn-outline:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 通用标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 32px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 16px;
}
.section-title p {
    color: var(--text-body);
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* =========================================
    2. 顶部导航 (Header)
    ========================================= */
header {
    background: var(--bg-white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 80px; } /* 替换 Logo */

.nav-menu { display: flex; gap: 40px; }
.nav-menu a { font-size: 16px; color: var(--text-body); font-weight: 500; }
.nav-menu a:hover { color: var(--primary-green); }

.header-right { display: flex; align-items: center; gap: 20px; }
.search-btn { color: var(--text-main); font-size: 18px; cursor: pointer; }
.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; color: var(--text-main); }

/* =========================================
    3. 首屏区域 (Hero)
    ========================================= */
.hero {
    background-color: var(--bg-gray);
    padding: 50px 0 50px;
}
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-text { flex: 1; padding-right: 50px; }
.hero-text h1 {
    font-size: 46px;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.2;
}
.hero-text p {
    font-size: 18px;
    margin-bottom: 35px;
    color: var(--text-body);
    line-height: 1.8;
}
.hero-img { flex: 1; }

/* =========================================
    4. 特性图标条 (Features Bar - 修正版)
    ========================================= */
.features-bar {
    background-color: var(--primary-green);
    color: var(--bg-white);
    width: 100%;
}
.features-container {
    /* 修改：取消最大宽度限制，实现全屏铺满 */
    max-width: 100%; 
    width: 100%;
    margin: 0;
}
.features-row {
    display: flex;
    width: 100%;
    padding: 0;
}
.feature-item {
    flex: 1; /* 核心：强制等宽 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px; 
    padding: 40px 10px; /* 高度保持舒适 */
    border-right: 1px solid rgba(255, 255, 255, 0.15); 
    transition: background-color 0.3s;
    cursor: default;
    position: relative;
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background-color: rgba(0,0,0,0.05); }

/* Phosphor Icons 样式调整 */
.feature-item i {
    font-size: 52px; /* 图标稍微加大 */
    margin-bottom: 0;
    opacity: 1; /* 保持纯白高亮 */
}
.feature-item span {
    font-size: 18px; /* 文字加大以匹配全宽布局 */
    letter-spacing: 1px;
    font-weight: 400;
}

/* =========================================
    5. 服务介绍 (Service Intro)
    ========================================= */
.service-intro { padding: var(--section-padding) 0; }
.service-inner { display: flex; align-items: center; gap: 60px; }
.service-img { flex: 1; border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); }
.service-text { flex: 1; }
.service-text h2 { font-size: 30px; margin-bottom: 25px; color: var(--text-main); font-weight: 700; }
.service-text p { margin-bottom: 20px; text-align: justify; font-size: 16px; line-height: 30px;}

/* =========================================
    6. 促销卡片 (Promo Cards)
    ========================================= */
.promo-section { padding-bottom: var(--section-padding); background: var(--bg-white); }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.promo-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    gap: 25px;
}
.promo-img-circle {
    width: 260px; height: 260px; border-radius: 5px;
    background: #eee; flex-shrink: 0; overflow: hidden;
    background-position: center; background-size: cover;
}
.promo-content h3 { font-size: 20px; margin-bottom: 15px; color: var(--text-main); line-height: 1.4; }
.promo-content li { font-size: 16px; margin-bottom: 8px; color: var(--text-body); }
.promo-content li i { color: var(--primary-green); margin-right: 8px; }

/* =========================================
    7. 地区价格 (Regions - 重点交互)
    ========================================= */
.regions-section { padding: var(--section-padding) 0; background: var(--bg-gray); }
.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* 紧贴 */
    max-width: 1050px;
    margin: 0 auto;
    align-items: center; /* 垂直对齐 */
}
.region-card {
    background: var(--bg-white);
    border: 1px solid #e5e5e5;
    padding: 50px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
/* 左右圆角处理 */
.region-card:first-child { border-radius: 8px 0 0 8px; border-right: none; }
.region-card:last-child { border-radius: 0 8px 8px 0; border-left: none; }

.region-card h3 { font-size: 22px; margin-bottom: 5px; color: var(--text-main); }
.region-card .price { display: block; font-size: 16px; color: var(--text-light); margin-bottom: 30px; }
.region-card ul li { margin-bottom: 12px; font-size: 14px; color: var(--text-body); }

/* Hover 效果优化 */
.region-card:not(.active):hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    z-index: 8;
}
.region-card:not(.active):hover h3 {
    color: var(--primary-green);
}

/* 中间高亮 Active 状态 */
.region-card.active {
    background: var(--primary-green);
    color: var(--bg-white);
    transform: scale(1.1); /* 放大 */
    z-index: 10;
    border: none;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(111, 66, 193, 0.3);
    padding: 70px 20px;
}
.region-card.active:hover {
    transform: scale(1.15);
    box-shadow: 0 30px 60px rgba(111, 66, 193, 0.4);
}
.region-card.active h3, 
.region-card.active .price,
.region-card.active ul li { color: var(--bg-white); }

.region-card.active .btn-outline {
    color: var(--bg-white); border-color: rgba(255,255,255,0.6);
}
.region-card.active .btn-outline:hover {
    background: var(--bg-white); color: var(--primary-green); border-color: var(--bg-white);
}

/* =========================================
    8. 团队与评价 (Team & Reviews)
    ========================================= */
.team-section { padding: var(--section-padding) 0; background: var(--bg-gray); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.team-member { background: var(--bg-white); border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); }
.team-img { height: 280px; background: #ddd; background-size: cover; background-position: top; }
.team-info { padding: 20px; }
.team-info h4 { font-size: 16px; margin-bottom: 4px; }
.team-info span { font-size: 12px; color: var(--text-light); text-transform: uppercase; }

.reviews-section { padding: var(--section-padding) 0; }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.review-card { padding: 50px 40px; border-radius: 6px; }
.review-card.light { background: var(--bg-gray); }
.review-card.green { background: var(--primary-green); color: var(--bg-white); }
.review-text { font-size: 15px; line-height: 1.8; margin-bottom: 30px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 15px; }
.reviewer img { width: 50px; height: 50px; border-radius: 50%; }

/* =========================================
    9. 数据统计 (Stats)
    ========================================= */
.stats-section {
    background: var(--primary-green);
    padding: 100px 0;
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* 增加背景纹理感 */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.stats-grid { display: flex; justify-content: space-between; max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.stat-item { text-align: center; }
.stat-item h3 { 
    font-size: 64px; 
    font-weight: 600; 
    margin-bottom: 15px; 
    line-height: 1; 
    font-family: 'Poppins', sans-serif;
}
.stat-item p { 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    opacity: 0.9; 
    font-weight: 500;
}
.stat-item i { 
    font-size: 40px; 
    margin-bottom: 25px; 
    opacity: 0.8; 
    display: inline-block;
}

/* =========================================
    10. 新闻区域 (News - 补全细节)
    ========================================= */
.news-section { padding: var(--section-padding) 0; background: var(--bg-white); }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.news-item { 
    background: var(--bg-white); 
    transition: all 0.3s ease;
}
.news-item:hover {
    transform: translateY(-10px);
}
.news-item:hover .news-icon-box {
    background: var(--primary-green);
    color: var(--bg-white);
    box-shadow: 0 10px 25px rgba(111, 66, 193, 0.2);
}
.news-icon-box {
    height: 180px; 
    background: #f0f8f5;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-green); 
    font-size: 56px; 
    margin-bottom: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.news-item h4 { font-size: 18px; margin-bottom: 12px; font-weight: 700; color: var(--text-main); }
.news-item p { font-size: 14px; color: var(--text-body); margin-bottom: 20px; line-height: 1.7; min-height: 72px; }
.news-link { 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--text-main); 
    text-transform: uppercase; 
    display: inline-block;
    position: relative;
}
.news-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s;
}
.news-item:hover .news-link::after { width: 100%; }
.news-item:hover .news-link { color: var(--primary-green); }

/* =========================================
    11. APP 下载 & Footer
    ========================================= */
.cta-strip { background: var(--primary-dark); padding: 40px 0; color: white; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; }

.app-showcase { padding-top: 80px; background: var(--bg-gray); text-align: center; padding-bottom: 0; }
.phones-container {
    height: 400px; margin-top: 40px;
    background: url('https://via.placeholder.com/1200x400/e0e0e0/999999?text=Phones+Mockup') no-repeat bottom center;
    background-size: contain;
}

footer { background: var(--bg-white); padding: 100px 0 30px; border-top: 1px solid #f0f0f0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 70px; }
.footer-col h5 { font-size: 18px; margin-bottom: 30px; color: var(--text-main); font-weight: 700; }
.footer-col ul li { margin-bottom: 15px; font-size: 14px; color: var(--text-body); }
.footer-col ul li a { transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary-green); padding-left: 5px; }
.footer-bottom { 
    border-top: 1px solid #f5f5f5; 
    padding-top: 40px; 
    text-align: center; 
    font-size: 13px; 
    color: #999; 
}

/* =========================================
    12. 响应式适配 (Mobile)
    ========================================= */
@media (max-width: 768px) {
    .nav-menu, .search-btn { display: none; } /* 简化头部 */
    .header-inner { justify-content: center; }
    
    .hero-inner, .service-inner, .cta-inner { flex-direction: column; text-align: center; }
    .hero-text { padding-right: 0; margin-bottom: 40px; }
    
    /* 修正图标条移动端布局 */
    .features-row { flex-wrap: wrap; }
    .feature-item {
        flex: 0 0 50%;
        border-right: 1px solid rgba(255,255,255,0.2);
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .feature-item:nth-child(2n) { border-right: none; } /* 每行第2个去右边框 */
    .feature-item:nth-last-child(-n+2) { border-bottom: none; } /* 最后一行去下边框 */

    .promo-grid, .regions-grid, .team-grid, .reviews-grid, .news-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .regions-grid { gap: 20px; padding: 20px; }
    .region-card { border-radius: 8px !important; border: 1px solid #eee !important; }
    .region-card.active { transform: none; }

    .stats-grid { flex-wrap: wrap; gap: 30px; justify-content: center; }
    .stat-item { width: 45%; }
}