/* 纸飞机官网 — 全新主题：青绿 + 深岩灰 */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --accent: #f59e0b;
    --surface: #ffffff;
    --surface-alt: #f0fdfa;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(15, 118, 110, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 118, 110, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
    --container-max: 1140px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--surface);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

/* —— 导航 —— */
.zd9bfcnavbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.zd9bfcnavbar-brand img {
    height: 42px;
    width: auto;
}

.zd9bfcnav-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);
}

.zd9bfcnav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.zd9bfcnavbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.55rem;
}

.zd9bfcnavbar .navbar-collapse {
    background: var(--surface);
}

/* —— 首页区块通用 —— */
.zd9bfcsection {
    padding: 4.5rem 0;
}

.zd9bfcsection-alt {
    background: var(--surface-alt);
}

.zd9bfcsection-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.zd9bfcsection-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.zd9bfcsection-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.zd9bfccontainer {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

/* —— Hero —— */
.zd9bfchero-section {
    background: linear-gradient(160deg, #0f766e 0%, #134e4a 55%, #1e293b 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.zd9bfchero-section::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.zd9bfchero-content {
    position: relative;
    z-index: 1;
}

.zd9bfchero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.zd9bfchero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.zd9bfchero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.zd9bfchero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.zd9bfchero-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;
    border: none;
}

.zd9bfchero-buttons .btn-light {
    background: #fff;
    color: var(--primary-dark);
}

.zd9bfchero-buttons .btn-primary {
    background: var(--accent);
    color: #1e293b;
}

.zd9bfchero-buttons .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.zd9bfchero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.zd9bfchero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.zd9bfchero-image-shadow {
    display: none;
}

/* —— 特点卡片 —— */
.zd9bfcfeature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.zd9bfcfeature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.zd9bfcfeature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.zd9bfcfeature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.zd9bfcfeature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.zd9bfcfeature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* —— 简介条 —— */
.zd9bfcintro-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.zd9bfcintro-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* —— 统计 —— */
.zd9bfcstats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 3rem 0;
}

.zd9bfcstats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.zd9bfcstat-item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.zd9bfcstat-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.zd9bfcstat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.35rem;
}

/* —— 下载区 —— */
.zd9bfcdownload-section {
    padding: 4.5rem 0;
    background: var(--surface-alt);
}

.zd9bfcdownload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.zd9bfcdownload-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.zd9bfcdownload-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.zd9bfcplatform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.zd9bfcios-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.zd9bfcandroid-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.zd9bfcdownload-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.zd9bfcdownload-card .text-muted {
    font-size: 0.875rem;
    color: var(--text-muted) !important;
    margin: 0;
}

.zd9bfcdownload-info {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    flex: 1;
    margin-bottom: 1.25rem;
}

.zd9bfcinfo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.zd9bfcinfo-item:last-child {
    margin-bottom: 0;
}

.zd9bfcinfo-item i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.zd9bfcdownload-action .btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    background: var(--primary);
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.zd9bfcdownload-action .btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* —— 安全 —— */
.zd9bfcsecurity-section {
    padding: 4.5rem 0;
    background: var(--surface);
}

.zd9bfcsecurity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.zd9bfcsecurity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    height: 100%;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.zd9bfcsecurity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.zd9bfcsecurity-card h3 {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.zd9bfcsecurity-features {
    background: var(--surface-alt);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
}

.zd9bfcfeature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.zd9bfcfeature-item:last-child {
    margin-bottom: 0;
}

.zd9bfcfeature-item i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.zd9bfcsecurity-certificates {
    margin-top: 2rem;
}

.zd9bfccert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.zd9bfccertificate-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
}

.zd9bfccertificate-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.zd9bfccertificate-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.zd9bfccertificate-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— FAQ —— */
.zd9bfcfaq-section {
    padding: 4.5rem 0;
    background: var(--surface-alt);
}

.zd9bfcfaq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.zd9bfcfaq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
}

.zd9bfcfaq-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.zd9bfcfaq-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 知识区 —— */
.zd9bfcknowledge-section {
    padding: 4.5rem 0;
    background: var(--surface);
}

.zd9bfcknowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.zd9bfcknowledge-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--surface-alt);
    height: 100%;
}

.zd9bfcknowledge-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.zd9bfcknowledge-block p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.7;
}

.zd9bfcknowledge-block p:last-child {
    margin-bottom: 0;
}

/* —— 文章区 —— */
#article {
    padding: 4rem 0;
    background: var(--surface-alt);
}

#article .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow);
}

#article .card-img-top,
.zd9bfcthumb-home {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

#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);
}

/* —— 页脚 —— */
.zd9bfcfooter {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}

.zd9bfcfooter-title {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.zd9bfcfooter-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zd9bfcfooter-links li {
    margin-bottom: 0.5rem;
}

.zd9bfcfooter-link {
    color: #94a3b8;
    font-size: 0.9rem;
}

.zd9bfcfooter-link:hover {
    color: #5eead4;
}

.zd9bfcfooter p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.zd9bfcfriend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zd9bfcfriend-links a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.zd9bfcfooter-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.25rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

.zd9bfcfooter-bottom a {
    color: #94a3b8;
}

.zd9bfcfooter-bottom a:hover {
    color: #5eead4;
}

/* —— 按钮通用 —— */
.zd9bfcbtn.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.zd9bfcbtn.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.zd9bfcbtn.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.zd9bfcbtn.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* —— 列表页 / 内页 —— */
.zd9bfcpage-wrap {
    padding: 2.5rem 0 3rem;
    background: var(--surface-alt);
    min-height: 50vh;
}

.zd9bfcpage-wrap .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.zd9bfcarticle-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zd9bfcarticle-content img {
    max-width: 100%;
    height: auto;
}

.zd9bfcthumb-list,
.zd9bfcthumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.zd9bfcthumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.zd9bfcthumb-cover {
    max-width: 100%;
    width: 100%;
    height: 200px;
    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;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .zd9bfcfeature-grid {
        grid-template-columns: 1fr;
    }

    .zd9bfcstats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zd9bfcsecurity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zd9bfccert-grid {
        grid-template-columns: 1fr;
    }

    .zd9bfcknowledge-grid {
        grid-template-columns: 1fr;
    }

    .zd9bfcsection {
        padding: 3.5rem 0;
    }

    .zd9bfchero-section {
        padding: 3rem 0 3.5rem;
    }

    .zd9bfchero-image-container {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .zd9bfcnavbar {
        padding: 0.5rem 0;
    }

    .zd9bfcnavbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .zd9bfcnav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .zd9bfcdownload-grid {
        grid-template-columns: 1fr;
    }

    .zd9bfcdownload-card-head {
        flex-wrap: wrap;
    }

    .zd9bfcfaq-grid {
        grid-template-columns: 1fr;
    }

    .zd9bfcstats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .zd9bfcstat-number {
        font-size: 1.5rem;
    }

    .zd9bfcsecurity-grid {
        grid-template-columns: 1fr;
    }

    .zd9bfchero-buttons {
        flex-direction: column;
    }

    .zd9bfchero-buttons .btn {
        width: 100%;
    }

    .zd9bfcfooter .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .zd9bfcfriend-links {
        justify-content: center;
    }

    #article .row-cols-md-2 {
        --bs-columns: 1;
    }

    #article .zd9bfcthumb-home {
        height: 100px !important;
    }

    .zd9bfcthumb-list,
    .zd9bfcthumb-related {
        height: 72px !important;
    }

    .zd9bfcthumb-cover {
        height: 170px !important;
    }

    .listbox .e2 li .row {
        flex-wrap: nowrap;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .zd9bfccontainer {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .zd9bfcsection-head {
        margin-bottom: 1.75rem;
    }

    .zd9bfcdownload-card,
    .zd9bfcsecurity-card,
    .zd9bfcfeature-card,
    .zd9bfcfaq-card {
        padding: 1.15rem;
    }

    .zd9bfcthumb-list,
    .zd9bfcthumb-related {
        height: 64px !important;
    }

    .zd9bfcthumb-cover {
        height: 150px !important;
    }

    #article .zd9bfcthumb-home {
        height: 88px !important;
    }
}

/* Bootstrap 兼容类保留 */
.zd9bfcpy-5 { padding-top: 3rem; padding-bottom: 3rem; }
.zd9bfcmb-0 { margin-bottom: 0 !important; }
.zd9bfcmb-2 { margin-bottom: 0.5rem !important; }
.zd9bfcmb-3 { margin-bottom: 1rem !important; }
.zd9bfcmb-4 { margin-bottom: 1.5rem !important; }
.zd9bfcmb-5 { margin-bottom: 3rem !important; }
.zd9bfcmt-3 { margin-top: 1rem !important; }
.zd9bfcmt-4 { margin-top: 1.5rem !important; }
.zd9bfcmt-5 { margin-top: 3rem !important; }
.zd9bfctext-center { text-align: center; }
