:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --text: #1e293b;
    --text-muted: #64748b;
    --surface: #ffffff;
    --surface-alt: #f0fdfa;
    --surface-muted: #f8fafc;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(15, 118, 110, 0.08);
    --shadow-hover: 0 12px 40px rgba(15, 118, 110, 0.12);
    --transition: 0.25s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--surface-muted);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

/* ========== 导航 ========== */
.zd3266navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.zd3266navbar-brand img {
    height: 42px;
    width: auto;
}

.zd3266nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.zd3266nav-link:hover {
    color: var(--primary) !important;
    background: var(--surface-alt);
}

.zd3266navbar .navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.55rem;
}

.zd3266navbar .navbar-collapse {
    background: var(--surface);
}

@media (max-width: 991px) {
    .zd3266navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem 0;
        border-top: 1px solid var(--border);
        max-height: 70vh;
        overflow-y: auto;
    }

    .zd3266navbar .nav-link {
        padding: 0.5rem 0.25rem !important;
    }
}

/* ========== 首页 Hero ========== */
.zd3266hero-section {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 45%, var(--secondary) 100%);
    color: #fff;
    padding: 4.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.zd3266hero-section::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.zd3266hero-content {
    position: relative;
    z-index: 1;
}

.zd3266hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.zd3266hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.zd3266hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    opacity: 0.92;
    margin-bottom: 2rem;
    max-width: 540px;
}

.zd3266hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.zd3266hero-buttons .btn {
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.zd3266hero-buttons .btn-light {
    background: #fff;
    color: var(--primary-dark);
    border: none;
}

.zd3266hero-buttons .btn-light:hover {
    background: var(--surface-alt);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent,
.zd3266hero-buttons .btn-accent {
    background: var(--accent);
    color: #1e293b;
    border: none;
}

.btn-accent:hover,
.zd3266hero-buttons .btn-accent:hover {
    background: #fbbf24;
    color: #1e293b;
    transform: translateY(-2px);
}

.zd3266hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    background: transparent;
}

.zd3266hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: #fff;
}

.zd3266hero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.zd3266hero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.zd3266hero-image-shadow {
    display: none;
}

/* ========== 通用区块 ========== */
.zd3266section {
    padding: 4rem 0;
}

.zd3266section-alt {
    background: var(--surface-alt);
}

.zd3266section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    text-align: center;
}

.zd3266section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

/* ========== 产品优势 features ========== */
.zd3266feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .zd3266feature-grid {
        grid-template-columns: 1fr;
    }
}

.zd3266feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.zd3266feature-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 118, 110, 0.3);
}

.zd3266feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.zd3266feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.zd3266feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ========== 服务规模 stats ========== */
.zd3266stats-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 3.5rem 0;
}

.zd3266stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .zd3266stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

.zd3266stat-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.06);
}

.zd3266stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.zd3266stat-label {
    font-size: 0.9rem;
    opacity: 0.88;
}

/* ========== 下载区域 download ========== */
.zd3266download-section {
    padding: 4rem 0;
    background: var(--surface);
}

.zd3266download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 767px) {
    .zd3266download-grid {
        grid-template-columns: 1fr;
    }
}

.zd3266download-card {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
}

.zd3266download-card:hover {
    box-shadow: var(--shadow);
}

.zd3266download-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.zd3266platform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.zd3266ios-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.zd3266android-icon {
    background: linear-gradient(135deg, var(--primary), #059669);
}

.zd3266download-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.zd3266download-card .text-muted {
    font-size: 0.875rem;
    margin: 0;
}

.zd3266download-info {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}

.zd3266info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.zd3266info-item:last-child {
    margin-bottom: 0;
}

.zd3266info-item i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.zd3266download-action .btn {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    background: var(--primary);
    border: none;
    color: #fff;
    white-space: normal;
}

.zd3266download-action .btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ========== 安全 security ========== */
.zd3266security-section {
    padding: 4rem 0;
    background: var(--surface-alt);
}

.zd3266security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 991px) {
    .zd3266security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .zd3266security-grid {
        grid-template-columns: 1fr;
    }
}

.zd3266security-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    text-align: center;
}

.zd3266security-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.zd3266security-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.zd3266security-features {
    text-align: left;
    background: var(--surface-muted);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
}

.zd3266feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.zd3266feature-item:last-child {
    margin-bottom: 0;
}

.zd3266feature-item i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.zd3266cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

@media (max-width: 767px) {
    .zd3266cert-grid {
        grid-template-columns: 1fr;
    }
}

.zd3266certificate-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.zd3266certificate-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.zd3266certificate-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.zd3266certificate-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========== 知识介绍 ========== */
.zd3266knowledge-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .zd3266knowledge-wrap {
        grid-template-columns: 1fr;
    }
}

.zd3266knowledge-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.zd3266knowledge-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.zd3266knowledge-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.zd3266knowledge-block p:last-child {
    margin-bottom: 0;
}

/* ========== FAQ ========== */
.zd3266faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 767px) {
    .zd3266faq-grid {
        grid-template-columns: 1fr;
    }
}

.zd3266faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    height: 100%;
}

.zd3266faq-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.zd3266faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========== 文章区 ========== */
#article {
    background: var(--surface-muted);
}

#article .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}

#article .card-img-top {
    height: 120px;
    object-fit: cover;
    width: 100%;
}

#article .card-body {
    padding: 0.85rem 1rem;
}

#article h3.h5 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

#article h3.h5 a {
    color: var(--text);
}

#article h3.h5 a:hover {
    color: var(--primary);
}

.zd3266btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.zd3266btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== 页脚 ========== */
.zd3266footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}

.zd3266footer-title {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.zd3266footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zd3266footer-links li {
    margin-bottom: 0.5rem;
}

.zd3266footer-link {
    color: #94a3b8;
    font-size: 0.9rem;
}

.zd3266footer-link:hover {
    color: #5eead4;
}

.zd3266friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zd3266friend-links a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.zd3266friend-links a:hover {
    color: #5eead4;
}

.zd3266footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.25rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

.zd3266footer-bottom a {
    color: #94a3b8;
}

.zd3266footer-bottom a:hover {
    color: #5eead4;
}

@media (max-width: 767px) {
    .zd3266footer .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .zd3266friend-links {
        justify-content: center;
    }
}

/* ========== 列表页 / 内页 ========== */
.zd3266page-main {
    padding: 2.5rem 0 3rem;
    background: var(--surface-muted);
    min-height: 50vh;
}

.zd3266page-main .card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.zd3266page-main .card-body {
    padding: 1.5rem;
}

.zd3266article-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zd3266article-content img {
    max-width: 100%;
    height: auto;
}

.zd3266thumb-list,
.zd3266thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.zd3266thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.zd3266thumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

.listbox .e2 li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ========== 移动端全局修复 ========== */
@media (max-width: 767px) {
    .zd3266hero-section {
        padding: 3rem 0 3.5rem;
        text-align: center;
    }

    .zd3266hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .zd3266hero-buttons {
        justify-content: center;
    }

    .zd3266hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    .zd3266hero-image {
        max-width: 220px;
        margin: 1.5rem auto 0;
    }

    .zd3266section {
        padding: 2.75rem 0;
    }

    .zd3266download-card {
        padding: 1.25rem;
    }

    .zd3266download-card-head {
        flex-direction: column;
        text-align: center;
    }

    .zd3266security-card {
        padding: 1.25rem;
    }

    .zd3266knowledge-block {
        padding: 1.25rem;
    }

    #article .row-cols-md-2 {
        --bs-columns: 2;
    }

    #article .zd3266thumb-home,
    #article .card-img-top {
        height: 96px !important;
    }

    #article h3.h5 {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .zd3266thumb-list,
    .zd3266thumb-related {
        height: 72px !important;
    }

    .zd3266thumb-side {
        height: 50px !important;
    }

    .zd3266page-main .card-body {
        padding: 1rem;
    }

    .listbox .e2 li h2.h5 {
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .zd3266stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    #article .zd3266thumb-home,
    #article .card-img-top {
        height: 88px !important;
    }

    .zd3266thumb-list,
    .zd3266thumb-related {
        height: 64px !important;
    }
}
