/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #2c8e6c;
    font-size: 28px;
    margin-bottom: 5px;
}

.logo .subtitle {
    color: #666;
    font-size: 12px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2c8e6c;
}

/* 汉堡菜单按钮（移动端） */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #2c8e6c;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: #2c8e6c;
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #2c8e6c 0%, #27ae60 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    margin-bottom: 40px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 20px;
}

.feature-item .icon {
    font-size: 20px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #2c8e6c;
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.btn-download {
    background: #2c8e6c;
    color: white;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.btn-download:hover {
    background: #27ae60;
}

.btn-outline {
    background: transparent;
    color: #2c8e6c;
    border: 1px solid #2c8e6c;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.btn-outline:hover {
    background: #f0f0f0;
}

/* 分区 */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: #2c8e6c;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* 卡片 */
.download-cards, .service-cards, .training-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 下载区单卡片居中 */
.download-cards {
    justify-items: center;
}

.download-cards .card {
    max-width: 600px;
    width: 100%;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-featured {
    border: 2px solid #2c8e6c;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #2c8e6c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.card-desc {
    color: #666;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-bottom: 20px;
}

.card-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.card-price {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.price-free {
    font-size: 36px;
    color: #2c8e6c;
    font-weight: bold;
}

.price {
    font-size: 24px;
    color: #666;
}

.price-note {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 服务卡片 */
.service-card {
    text-align: center;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.price-box {
    margin: 20px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.price-label {
    color: #666;
}

.price-value {
    font-weight: bold;
    color: #2c8e6c;
}

.price-unit {
    font-size: 12px;
    color: #999;
}

.badge {
    background: #ff6b6b;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.coming-soon {
    opacity: 0.7;
}

/* 培训 */
.training-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.price-large {
    font-size: 48px;
    color: #2c8e6c;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.price-unit {
    font-size: 16px;
    color: #999;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item h3 {
    color: #2c8e6c;
    margin-bottom: 10px;
}

.contact-item .qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-item .qrcode img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 页脚 */
.footer {
    background: #2c8e6c;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer a {
    color: white;
    text-decoration: none;
}

/* ====== 响应式设计 ====== */

/* 平板及以下 */
@media (max-width: 768px) {
    /* 导航 */
    .hamburger {
        display: flex;
    }

    .navbar .container {
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 0;
        z-index: 999;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
    }

    /* Hero */
    .hero {
        padding: 60px 20px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* 分区 */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    /* 卡片网格 */
    .download-cards,
    .service-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .training-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .contact-item {
        padding: 15px;
    }

    .contact-item h3 {
        font-size: 14px;
    }

    .contact-item p {
        font-size: 13px;
    }
}

/* 手机 */
@media (max-width: 480px) {
    .hero {
        padding: 40px 16px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        max-width: 220px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo .subtitle {
        font-size: 10px;
    }

    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card-features li {
        font-size: 14px;
    }

    .service-icon {
        font-size: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .price-large {
        font-size: 36px;
    }

    .container {
        padding: 0 16px;
    }
}

/* 大屏（1200px 以上）留白优化 */
@media (min-width: 1200px) {
    .hero-features {
        gap: 40px;
    }
}
