/* Ledger 主题 — 深青 + 琥珀强调色 */
:root {
    --primary-color: #1a535c;
    --secondary-color: #0f3439;
    --accent-color: #f4a261;
    --accent-soft: rgba(244, 162, 97, 0.15);
    --surface: #ffffff;
    --surface-muted: #f0f4f3;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --border-color: rgba(26, 83, 92, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 12px rgba(15, 52, 57, 0.06);
    --shadow-md: 0 8px 28px rgba(15, 52, 57, 0.1);
    --transition-speed: 0.25s;
    --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::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-color);
    line-height: 1.65;
    background: var(--surface);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* —— 导航 —— */
.zc9d80navbar,
.ld-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.65rem 0;
}

.zc9d80navbar-brand img {
    height: 42px;
    width: auto;
}

.zc9d80nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition-speed), background var(--transition-speed);
}

.zc9d80nav-link:hover,
.zc9d80nav-link.active {
    color: var(--primary-color) !important;
    background: var(--accent-soft);
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: var(--surface);
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        max-height: 70vh;
        overflow-y: auto;
    }

    .zc9d80navbar .navbar-nav .nav-link {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.95rem;
    }
}

/* —— 按钮 —— */
.btn-ld-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.35rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-ld-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ld-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-ld-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.ld-section .btn-ld-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ld-section .btn-ld-outline:hover {
    background: var(--accent-soft);
    color: var(--secondary-color);
}

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* —— Hero —— */
.ld-hero,
.zc9d80hero-section {
    position: relative;
    padding: 4.5rem 0 4rem;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(145deg, var(--secondary-color) 0%, var(--primary-color) 55%, #2d6a6f 100%);
}

.ld-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(244, 162, 97, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.zc9d80hero-title,
.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.zc9d80hero-subtitle,
.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 36em;
}

.ld-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(244, 162, 97, 0.25);
    border: 1px solid rgba(244, 162, 97, 0.45);
    margin-bottom: 1rem;
}

.ld-hero-actions,
.zc9d80hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ld-hero-visual {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.ld-hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    max-width: 320px;
    width: 100%;
}

.zc9d80hero-image,
.hero-image {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.ld-hero-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.ld-hero-tags li {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.zc9d80hero-image-shadow {
    display: none;
}

/* —— 通用区块 —— */
.ld-section {
    padding: 4rem 0;
}

.ld-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.ld-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.ld-section-head p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.ld-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.ld-section-head-light h2,
.ld-section-head-light .ld-section-label {
    color: #fff;
}

.ld-section-head-light p {
    color: rgba(255, 255, 255, 0.85);
}

/* —— Bento 特性 —— */
.ld-features {
    background: var(--surface-muted);
}

.ld-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 100%;
}

.ld-bento-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
    overflow: hidden;
    min-height: 0;
}

.ld-bento-item:hover {
    border-color: rgba(26, 83, 92, 0.28);
    box-shadow: var(--shadow-md);
}

.ld-bento-wide {
    grid-column: span 2;
}

.ld-bento-tall {
    grid-row: span 2;
}

.ld-bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.ld-bento-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.ld-bento-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* —— 知识区 —— */
.ld-knowledge {
    background: var(--surface);
}

.ld-knowledge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.ld-knowledge-text h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.ld-knowledge-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ld-check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.ld-check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-color);
}

.ld-check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.ld-knowledge-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ld-info-card {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    background: var(--surface-muted);
}

.ld-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.ld-info-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 统计 —— */
.ld-stats,
.zc9d80stats-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 3.5rem 0;
    color: #fff;
}

.ld-stat-box {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    height: 100%;
}

.zc9d80stat-number,
.stat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.zc9d80stat-label,
.stat-label {
    font-size: 0.88rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* —— 下载 —— */
.ld-download,
.zc9d80download-section {
    background: var(--surface-muted);
    padding: 4rem 0;
}

.ld-dl-panel,
.zc9d80download-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ld-dl-panel:hover,
.zc9d80download-card:hover {
    box-shadow: var(--shadow-md);
}

.ld-dl-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
}

.ld-dl-head h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--secondary-color);
}

.ld-platform-icon,
.zc9d80platform-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;
    flex-shrink: 0;
}

.zc9d80ios-icon,
.ios-icon {
    background: linear-gradient(135deg, #4a6fa5, #2c5282);
}

.zc9d80android-icon,
.android-icon {
    background: linear-gradient(135deg, #3d9970, #2d7a5a);
}

.ld-dl-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.ld-dl-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ld-dl-features i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.ld-dl-panel .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
}

/* —— 安全 —— */
.ld-security,
.zc9d80security-section {
    background: var(--surface);
    padding: 4rem 0;
}

.ld-sec-card,
.zc9d80security-card {
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.15rem;
    height: 100%;
    text-align: center;
    box-shadow: none;
    transition: border-color var(--transition-speed);
    overflow: hidden;
}

.ld-sec-card:hover {
    border-color: rgba(26, 83, 92, 0.3);
}

.ld-sec-icon,
.zc9d80security-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ld-sec-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.ld-sec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.ld-sec-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.ld-sec-list li:last-child {
    border-bottom: none;
}

.ld-cert,
.zc9d80certificate-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    height: 100%;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.ld-cert i {
    font-size: 1.75rem;
    color: var(--accent-color);
    margin-bottom: 0.65rem;
}

.ld-cert h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.35rem;
}

.ld-cert p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— FAQ —— */
.ld-faq {
    background: var(--surface-muted);
}

.ld-faq-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    height: 100%;
}

.ld-faq-card h5 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.ld-faq-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 文章 —— */
.ld-articles {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
}

.ld-article-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-speed);
}

.ld-article-card:hover {
    box-shadow: var(--shadow-md);
}

.ld-article-thumb-wrap {
    overflow: hidden;
    line-height: 0;
}

.ld-article-thumb,
.zc9d80thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.ld-article-card .card-body {
    padding: 0.75rem 0.85rem;
}

.ld-article-title a {
    color: var(--text-color);
}

.ld-article-title a:hover {
    color: var(--primary-color);
}

/* —— 页脚 —— */
.ld-footer,
.zc9d80footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.ld-footer-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    max-width: 28em;
}

.zc9d80footer-title,
.footer-title {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.zc9d80footer-links,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zc9d80footer-links li {
    margin-bottom: 0.5rem;
}

.zc9d80footer-link,
.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.zc9d80footer-link:hover {
    color: #fff;
}

.ld-friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.ld-friend-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    text-decoration: none;
}

.ld-friend-links a:hover {
    color: var(--accent-color);
}

.zc9d80footer-bottom,
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: 0.88rem;
}

.zc9d80footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.zc9d80footer-bottom a:hover {
    color: var(--accent-color);
}

/* —— 列表/内页 —— */
.zc9d80py-5.bg-light,
section.zc9d80py-5 {
    background: var(--surface-muted) !important;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.listbox .e2 li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
    margin: 0;
}

.zc9d80article-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

.zc9d80article-content img {
    max-width: 100%;
    height: auto;
}

.zc9d80thumb-list,
.zc9d80thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.zc9d80thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.zc9d80thumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* 兼容旧类名 */
.zc9d80feature-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 100%;
}

.zc9d80download-info {
    background: var(--surface-muted);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .ld-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .ld-bento-wide {
        grid-column: span 2;
    }

    .ld-bento-tall {
        grid-row: span 1;
    }

    .ld-knowledge-grid {
        grid-template-columns: 1fr;
    }

    .zc9d80footer .row > div {
        text-align: center;
    }

    .ld-footer-desc {
        margin: 0 auto;
    }

    .zc9d80footer-links {
        text-align: center;
    }

    .ld-friend-links {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .ld-hero,
    .zc9d80hero-section {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }

    .zc9d80hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .ld-hero-actions,
    .zc9d80hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .ld-hero-actions .btn {
        width: 100%;
        margin: 0 !important;
    }

    .ld-hero-visual {
        margin-top: 0.5rem;
    }

    .ld-hero-card {
        max-width: 100%;
    }

    .ld-section {
        padding: 2.75rem 0;
    }

    .ld-section-head {
        margin-bottom: 1.75rem;
    }

    .ld-bento {
        grid-template-columns: 1fr;
    }

    .ld-bento-wide,
    .ld-bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .ld-dl-head {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .ld-stat-box {
        padding: 1rem 0.5rem;
    }

    .ld-articles-head {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .ld-article-thumb,
    .zc9d80thumb-home {
        height: 96px;
    }

    .ld-article-title,
    #article h3.h6 {
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .listbox .e2 li .row {
        --bs-gutter-x: 0.65rem;
    }

    .listbox .e2 li h2.h5 {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .zc9d80thumb-list,
    .zc9d80thumb-related {
        height: 72px !important;
    }

    .zc9d80thumb-side {
        height: 50px !important;
    }

    aside .card-body h3.h5 {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .zc9d80navbar-brand img {
        height: 36px;
    }

    .ld-article-thumb,
    .zc9d80thumb-home {
        height: 88px;
    }

    .zc9d80thumb-list,
    .zc9d80thumb-related {
        height: 64px !important;
    }

    .zc9d80thumb-cover {
        max-height: 200px;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
        font-size: 0.9rem;
    }

    .ld-faq-card,
    .ld-info-card,
    .ld-bento-item {
        padding: 1rem;
    }
}

/* 防止边框溢出 */
.container,
.zc9d80container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -12px;
    margin-right: -12px;
}

.row > * {
    padding-left: 12px;
    padding-right: 12px;
}

[class*="col-"] {
    min-width: 0;
}
