/* 全局样式 */
* {
    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-challenge {
    max-width: 760px;
    margin: -22px auto 36px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
}

.hero-challenge-main {
    margin: 0 auto 28px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.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;
}

.card-version {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.8;
}

.card-version code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all;
}

.sha256-line {
    margin-top: 4px;
}

.sha256-download {
    font-size: 12px;
    margin-left: 8px;
    color: #2c8e6c;
    text-decoration: underline;
}

.verify-note {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

.verify-note code {
    background: #f0f0f0;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 12px;
}

.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;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.platform-item {
    background: #fff;
    border-radius: 10px;
    padding: 26px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.platform-item h3 {
    color: #2c8e6c;
    margin-bottom: 12px;
    font-size: 20px;
}

.platform-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.video-grid,
.product-download-grid,
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.product-download-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-card,
.download-product-card,
.doc-entry {
    background: #fff;
    border: 1px solid #e6ece9;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
}

.video-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
}

.video-card-latest {
    border-color: #2c8e6c;
    box-shadow: 0 8px 24px rgba(44,142,108,0.12);
}

.video-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(26,58,74,0.92), rgba(44,142,108,0.9)),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,0.18), transparent 28%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.video-card h3,
.download-product-card h3,
.doc-entry h3 {
    color: #2c8e6c;
    margin-bottom: 10px;
    font-size: 20px;
}

.video-card p,
.download-product-card p,
.doc-entry p {
    color: #5f6b66;
    font-size: 14px;
    line-height: 1.8;
}

.video-card .btn-sm {
    align-self: flex-start;
    margin-top: auto;
}

.download-product-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.download-product-card span {
    display: block;
    margin: auto 0 16px;
    color: #1f5c7a;
    font-size: 13px;
    font-weight: 700;
}

.download-product-card .btn-sm {
    align-self: flex-start;
}

.btn-sm.outline,
.component-card-actions .btn-sm.outline {
    background: #fff;
    color: #2c8e6c;
    border: 1px solid #2c8e6c;
}

.btn-sm.outline:hover,
.component-card-actions .btn-sm.outline:hover {
    background: #f0f9f4;
}

.doc-entry {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-entry:hover {
    transform: translateY(-3px);
    border-color: #2c8e6c;
    box-shadow: 0 8px 20px rgba(44,142,108,0.12);
}

.legacy-card {
    max-width: 900px;
    margin: 50px auto 0;
    background: #fff;
    border: 1px dashed #b8c8c1;
    border-radius: 8px;
    padding: 28px;
}

.legacy-card h2 {
    color: #2c8e6c;
    margin-bottom: 10px;
}

.legacy-card p {
    color: #5f6b66;
    line-height: 1.8;
}

.legacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.legacy-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 16px;
    background: #f2f6f4;
    color: #4d5b56;
    font-size: 13px;
}

.hero-kicker {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

.trial-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 30px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.trial-copy,
.trial-form {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.trial-copy h3 {
    color: #2c8e6c;
    margin-bottom: 16px;
    font-size: 22px;
}

.trial-copy ul {
    padding-left: 20px;
    margin-bottom: 18px;
}

.trial-copy li {
    color: #444;
    margin-bottom: 10px;
    line-height: 1.7;
}

.trial-copy p {
    color: #666;
    line-height: 1.8;
}

.trial-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.trial-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #333;
    font-weight: 600;
}

.trial-form input[type="text"],
.trial-form input[type="tel"],
.trial-form input[type="email"],
.trial-form textarea {
    width: 100%;
    border: 1px solid #d7dde2;
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    color: #333;
    background: #fff;
}

.trial-form textarea {
    resize: vertical;
    min-height: 96px;
}

.trial-form input:focus,
.trial-form textarea:focus {
    outline: none;
    border-color: #2c8e6c;
    box-shadow: 0 0 0 3px rgba(44,142,108,0.14);
}

.trial-form fieldset {
    border: 1px solid #d7dde2;
    border-radius: 8px;
    padding: 14px 16px 16px;
}

.trial-form legend {
    padding: 0 8px;
    color: #2c8e6c;
    font-weight: 600;
}

.trial-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.trial-options label {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #444;
}

.trial-options input {
    width: 16px;
    height: 16px;
    accent-color: #2c8e6c;
}

.trial-message {
    min-height: 22px;
    font-size: 14px;
    color: #666;
}

.trial-message.success {
    color: #1f7a4d;
}

.trial-message.error {
    color: #d92d20;
}

/* 培训 */
.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 {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-item .qrcode p {
    font-size: 12px;
    margin-top: 8px;
}

.contact-item .qrcode-error {
    width: 120px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px dashed #cfd8dc;
    border-radius: 8px;
    color: #667085;
    background: #f8fafc;
    line-height: 1.5;
}

.contact-note {
    margin-top: 42px;
    color: #e5483f;
    font-size: 18px;
}

/* 页脚 */
.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-challenge {
        margin: -12px auto 28px;
        font-size: 15px;
    }

    .hero-challenge-main {
        margin: 0 auto 20px;
        font-size: 24px;
    }

    .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,
    .platform-grid,
    .trial-layout,
    .video-grid,
    .product-download-grid,
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-grid,
    .trial-options {
        grid-template-columns: 1fr;
    }

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

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 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-challenge {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-challenge-main {
        font-size: 22px;
        line-height: 1.4;
    }

    .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;
    }

    .video-card,
    .download-product-card,
    .doc-entry,
    .legacy-card {
        padding: 20px;
    }

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

    .container {
        padding: 0 16px;
    }
}

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

/* ===== 系统要求 ===== */
.requirements-section {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.requirements-section h3 {
    text-align: center;
    font-size: 24px;
    color: #2c8e6c;
    margin-bottom: 10px;
}

.requirements-section > .section-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

.req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.req-item {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.req-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.req-item h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 8px;
}

.req-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.btn-sm {
    display: inline-block;
    padding: 10px 24px;
    background: #2c8e6c;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

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

.install-checklist {
    background: #f0f9f4;
    border: 1px solid #d4edda;
    border-radius: 12px;
    padding: 28px 32px;
}

.install-checklist h4 {
    color: #2c8e6c;
    font-size: 16px;
    margin-bottom: 16px;
}

.install-checklist ol {
    padding-left: 20px;
}

.install-checklist li {
    padding: 6px 0;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.install-checklist li::marker {
    color: #2c8e6c;
    font-weight: 600;
}

/* ===== FAQ ===== */
.faq-section {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h3 {
    text-align: center;
    font-size: 24px;
    color: #2c8e6c;
    margin-bottom: 30px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    background: #fff;
    padding: 20px 24px;
}

.faq-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 15px;
}

.faq-answer {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.faq-answer code {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: Consolas, "Courier New", monospace;
}

.faq-answer a {
    color: #2c8e6c;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .req-grid {
        grid-template-columns: 1fr;
    }

    .install-checklist {
        padding: 20px;
    }

    .faq-item {
        padding: 16px 18px;
    }
}
