/* ========== 全局样式 ========== */
:root {
    --primary: #0D7377;
    --primary-dark: #095B5E;
    --primary-light: #e6f7f8;
    --accent: #14919B;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', '思源黑体', -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 68px;
    }

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-gray);
        font-weight: 500;
        transition: color 0.2s;
        padding: 6px 0;
        border-bottom: 2px solid transparent;
    }

        .nav-links a:hover, .nav-links a.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

.btn-login {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
}

    .btn-login:hover {
        background: var(--primary-dark);
    }

/* ========== 首屏英雄区 ========== */
.hero {
    background: linear-gradient(135deg, #e6f7f8 0%, #d0f0f2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

    .hero::after {
        content: '';
        position: absolute;
        right: -100px;
        top: -50px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(13,115,119,0.08) 0%, transparent 70%);
        border-radius: 50%;
    }

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

    .hero h1 span {
        color: var(--primary);
    }

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(13,115,119,0.3);
    }

.btn-outline {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.2s;
    cursor: pointer;
}

    .btn-outline:hover {
        background: var(--primary-light);
    }

/* ========== 能力卡片区 ========== */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

    .section-title h2 {
        font-size: 32px;
        color: var(--text-dark);
        margin-bottom: 12px;
    }

    .section-title p {
        color: var(--text-light);
        font-size: 16px;
    }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .card .icon-circle {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: var(--primary-light);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        color: var(--primary);
    }

    .card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .card p {
        color: var(--text-light);
        font-size: 14px;
    }

/* ========== 支持标准区 ========== */
.standards {
    padding: 60px 0;
    background: white;
    text-align: center;
}

    .standards .badge-list {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 24px;
    }

.badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
}

/* ========== CTA 区 ========== */
.cta {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 64px 0;
}

    .cta h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .cta p {
        margin-bottom: 24px;
        opacity: 0.9;
    }

    .cta .btn-primary {
        background: white;
        color: var(--primary);
        font-weight: 700;
    }

        .cta .btn-primary:hover {
            background: var(--primary-light);
        }

/* ========== 页脚 ========== */
footer {
    background: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 32px 0;
    font-size: 14px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }
}
/* ========== 产品中心 ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #d0f0f2 100%);
    padding: 60px 0;
    text-align: center;
}

    .page-header h1 {
        font-size: 36px;
        color: var(--text-dark);
        margin-bottom: 12px;
    }

    .page-header p {
        color: var(--text-light);
        font-size: 16px;
    }

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

    .feature-row.reverse {
        flex-direction: row-reverse;
    }

.feature-text {
    flex: 1;
}

    .feature-text h3 {
        font-size: 22px;
        margin-bottom: 12px;
        color: var(--primary);
    }

    .feature-text p {
        color: var(--text-gray);
    }

.feature-img {
    flex: 1;
    background: var(--border);
    border-radius: 12px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
}

.pricing {
    background: white;
    padding: 60px 0;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.price-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

    .price-card:hover {
        border-color: var(--primary);
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .price-card.recommended {
        border-color: var(--primary);
        box-shadow: 0 4px 16px rgba(13,115,119,0.15);
    }

    .price-card .badge-recommend {
        position: absolute;
        top: -12px;
        right: 20px;
        background: var(--primary);
        color: white;
        padding: 4px 16px;
        border-radius: 20px;
        font-size: 12px;
    }

    .price-card h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

.price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin: 16px 0;
}

    .price small {
        font-size: 14px;
        color: var(--text-light);
    }

.price-card ul {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

    .price-card ul li {
        padding: 6px 0;
        color: var(--text-gray);
        font-size: 14px;
    }

        .price-card ul li::before {
            content: '✓ ';
            color: var(--primary);
            font-weight: bold;
        }

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 12px;
    cursor: pointer;
}

    .faq-item h4 {
        font-size: 16px;
        color: var(--primary);
    }

    .faq-item p {
        margin-top: 8px;
        color: var(--text-light);
        display: none;
    }

    .faq-item.open p {
        display: block;
    }

/* ========== 在线检测 ========== */
.workspace {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.panel {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

    .panel h3 {
        font-size: 20px;
        margin-bottom: 20px;
        color: var(--primary);
    }

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .upload-area:hover {
        border-color: var(--primary);
        background: var(--primary-light);
    }

    .upload-area i {
        color: var(--primary);
    }

    .upload-area p {
        color: var(--text-light);
        margin-top: 12px;
    }

select, button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 16px;
    margin-bottom: 16px;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

    button:hover {
        background: var(--primary-dark);
    }

    button:disabled {
        background: #a0aec0;
        cursor: not-allowed;
    }

.result-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

    .result-item .tag {
        display: inline-block;
        padding: 2px 10px;
        border-radius: 12px;
        font-size: 12px;
        margin-right: 8px;
        color: white;
    }

.tag-margin {
    background: #3182ce;
}

.tag-heading {
    background: #dd6b20;
}

.tag-body {
    background: #38a169;
}

.tag-font {
    background: #e53e3e;
}

.tag-ref {
    background: #805ad5;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat {
    background: var(--primary-light);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

    .stat .number {
        font-size: 28px;
        font-weight: 700;
        color: var(--primary);
    }

    .stat .label {
        font-size: 12px;
        color: var(--text-light);
    }

/* ========== 线下程序 ========== */
.hero-section {
    padding: 60px 0;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

    .hero-text h2 {
        font-size: 28px;
        color: var(--text-dark);
        margin-bottom: 16px;
    }

    .hero-text p {
        color: var(--text-gray);
        margin-bottom: 12px;
    }

    .hero-text .highlight {
        color: var(--primary);
        font-weight: 600;
    }

.hero-img {
    flex: 1;
    background: var(--border);
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
}

.advantages {
    padding: 60px 0;
    background: white;
}

    .advantages h2 {
        text-align: center;
        margin-bottom: 40px;
    }

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.adv-card {
    text-align: center;
    padding: 24px;
}

    .adv-card .icon-circle {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: var(--primary-light);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        color: var(--primary);
    }

    .adv-card h3 {
        margin-bottom: 8px;
    }

.download-section {
    padding: 60px 0;
    text-align: center;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

    .compare-table th, .compare-table td {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        text-align: center;
    }

    .compare-table th {
        background: var(--primary-light);
        color: var(--primary);
    }

    .compare-table .check {
        color: #38a169;
        font-weight: bold;
    }

    .compare-table .cross {
        color: #e53e3e;
    }

/* ========== 个人中心 ========== */
.profile-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-top: -30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.user-info h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.user-info .plan-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

    .history-table th, .history-table td {
        padding: 10px 12px;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }

    .history-table th {
        color: var(--text-light);
        font-weight: 500;
        font-size: 13px;
    }

    .history-table tr:hover {
        background: var(--primary-light);
    }

.section {
    padding: 32px 0;
}

    .section h3 {
        font-size: 20px;
        color: var(--text-dark);
        margin-bottom: 16px;
    }
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
/* 模板库 */
.template-library {
    padding: 20px 0;
    background: white;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
}

.search-select {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.template-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

    .template-card:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(13,115,119,0.1);
    }

    .template-card h4 {
        margin-bottom: 8px;
        color: var(--primary);
    }

    .template-card .badge {
        display: inline-block;
        background: var(--primary-light);
        color: var(--primary);
        padding: 2px 10px;
        border-radius: 12px;
        font-size: 12px;
        margin-right: 6px;
    }

.stars {
    color: #f59e0b;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.4);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 600px;
    max-width: 90%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover {
        color: #000;
    }

.review-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.template-layout {
    display: flex;
    gap: 24px;
    margin-top: 10px;
   
}

.map-container {
    flex: 1;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border);
    padding: 12px;
}

.list-container {
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
}

.template-list {
    max-height: 500px;
    overflow-y: auto;
}

.template-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

    .template-card:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(13,115,119,0.1);
    }

    .template-card h4 {
        color: var(--primary);
        margin-bottom: 6px;
    }

.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
}

.stars {
    color: #f59e0b;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 600px;
    max-width: 90%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover {
        color: #000;
    }

.review-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .mobile-menu ul li a {
        display: block;
        padding: 12px 16px;
        color: #333;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        border-radius: 8px;
        transition: background 0.2s;
    }

        .mobile-menu ul li a:hover {
            background: var(--primary-light);
            color: var(--primary);
        }

        .mobile-menu ul li a.btn-login {
            background: var(--primary);
            color: white;
            text-align: center;
            border-radius: 8px;
            padding: 10px 16px;
        }

            .mobile-menu ul li a.btn-login:hover {
                background: var(--primary-dark);
            }

        .mobile-menu ul li a.btn-logout {
            color: #e53e3e;
        }

            .mobile-menu ul li a.btn-logout:hover {
                background: #fff5f5;
            }

    /* 用户菜单特殊样式 */
    .mobile-menu ul li.user-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-top: 1px solid #eee;
        margin-top: 4px;
    }

        .mobile-menu ul li.user-menu-item .user-name {
            font-weight: 500;
            color: #333;
            text-decoration: none;
            flex: 1;
        }

            .mobile-menu ul li.user-menu-item .user-name:hover {
                color: var(--primary);
            }

        .mobile-menu ul li.user-menu-item .logout-link {
            color: #e53e3e;
            text-decoration: none;
            font-size: 13px;
        }

            .mobile-menu ul li.user-menu-item .logout-link:hover {
                text-decoration: underline;
            }
}
/* 桌面端隐藏 */
.mobile-menu {
    display: none !important;
}

/* 移动端显示 */
@media (max-width: 768px) {
    .mobile-menu {
        display: block !important;
    }

    .nav-links {
        display: none !important;
    }
}