/* Ledger 主题 — 墨绿 + 琥珀，与旧版蓝白渐变区分 */
:root {
    --primary-color: #0f3d32;
    --primary-light: #1a5c4a;
    --secondary-color: #c9a227;
    --accent-color: #e8c547;
    --text-color: #1e2a28;
    --text-muted: #5c6b68;
    --light-bg: #f4f7f6;
    --surface: #ffffff;
    --border-color: rgba(15, 61, 50, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 61, 50, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 61, 50, 0.08);
    --transition-speed: 0.25s;
    --nav-height: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    color: var(--text-color);
    line-height: 1.65;
    background: var(--light-bg);
    padding-top: var(--nav-height);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
}

/* 导航 */
.ze1313navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.65rem 0;
    box-shadow: var(--shadow-sm);
}

.ze1313navbar-brand img {
    height: 40px;
    width: auto;
}

.ze1313nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition-speed), background var(--transition-speed);
}

.ze1313nav-link:hover,
.ze1313nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(15, 61, 50, 0.06);
}

/* 按钮 */
.ze1313btn {
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ze1313btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.ze1313btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.ze1313btn-secondary {
    background: var(--secondary-color);
    color: #1a1a0f;
}

.ze1313btn-secondary:hover {
    background: var(--accent-color);
    color: #1a1a0f;
    transform: translateY(-1px);
}

.ze1313btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.ze1313btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 首屏 */
.ze1313hero-section {
    background: var(--surface);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.ze1313hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 55%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(26, 92, 74, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ze1313hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(15, 61, 50, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.ze1313hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ze1313hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 36em;
    margin-bottom: 1.5rem;
}

.ze1313hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ze1313hero-visual {
    background: linear-gradient(145deg, rgba(15, 61, 50, 0.04), rgba(201, 162, 39, 0.08));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    overflow: hidden;
}

.ze1313hero-image {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
}

/* 简介条 */
.ze1313intro-strip {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.92);
    padding: 1.25rem 0;
}

.ze1313intro-text {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    max-width: 52em;
    margin: 0 auto;
}

.ze1313intro-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* 通用区块 */
.ze1313section {
    padding: 4rem 0;
}

.ze1313section-head {
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.ze1313section-head h2,
.ze1313section-title,
.ze1313section-title-inline {
    color: var(--primary-color);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.ze1313section-head p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 1rem;
}

/* Bento 亮点 */
.ze1313features-section {
    background: var(--light-bg);
}

.ze1313bento-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
}

.ze1313bento-card:hover {
    border-color: rgba(15, 61, 50, 0.22);
    box-shadow: var(--shadow-md);
}

.ze1313bento-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(15, 61, 50, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.ze1313bento-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.ze1313bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 统计 */
.ze1313stats-section {
    background: var(--primary-color);
    color: #fff;
    padding: 2.5rem 0;
}

.ze1313stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.ze1313stat-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent-color);
}

.ze1313stat-label {
    font-size: 0.9rem;
    opacity: 0.88;
    margin-top: 0.25rem;
}

/* 知识区 */
.ze1313knowledge-section {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ze1313knowledge-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ze1313knowledge-list li {
    padding: 1rem 1.15rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.ze1313knowledge-list strong {
    color: var(--primary-color);
}

/* 下载 */
.ze1313download-section {
    background: var(--light-bg);
}

.ze1313download-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;
    overflow: hidden;
}

.ze1313download-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ze1313platform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.ze1313android-icon {
    background: linear-gradient(135deg, #2d8f6f, #1a5c4a);
}

.ze1313windows-icon {
    background: linear-gradient(135deg, #3d6b9e, #2a4d72);
}

.ze1313download-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 600;
}

.ze1313download-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.ze1313download-points li {
    padding: 0.4rem 0 0.4rem 1.25rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ze1313download-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
}

/* 安全 */
.ze1313security-section {
    background: var(--surface);
}

.ze1313security-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    height: 100%;
    text-align: center;
    overflow: hidden;
}

.ze1313security-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ze1313security-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.ze1313security-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.ze1313certificate-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    height: 100%;
}

.ze1313cert-mini {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.65rem;
    display: block;
}

.ze1313certificate-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.ze1313certificate-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* FAQ */
.ze1313faq-section {
    background: var(--light-bg);
}

.ze1313faq-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    height: 100%;
    overflow: hidden;
}

.ze1313faq-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.ze1313faq-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 文章区 */
.ze1313article-section {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
}

.ze1313article-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow var(--transition-speed);
}

.ze1313article-card:hover {
    box-shadow: var(--shadow-md);
}

.ze1313thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.ze1313article-card .card-body {
    padding: 0.75rem;
}

.ze1313article-link {
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.ze1313article-link:hover {
    color: var(--primary-color);
}

/* 页脚 */
.ze1313footer {
    background: #0d2e26;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.ze1313footer-title {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ze1313footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ze1313footer-links li {
    margin-bottom: 0.5rem;
}

.ze1313footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.ze1313footer-link:hover {
    color: #fff;
}

.ze1313friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ze1313friend-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    text-decoration: none;
}

.ze1313friend-links a:hover {
    color: #fff;
}

.ze1313footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    font-size: 0.85rem;
}

.ze1313footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.ze1313footer-bottom a:hover {
    color: var(--accent-color);
}

/* 列表/内页 */
.ze1313page-section {
    padding: 2rem 0 3rem;
}

.ze1313page-section .card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ze1313article-content {
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ze1313article-content img {
    max-width: 100%;
    height: auto;
}

.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;
}

/* 响应式 — 平板 */
@media (max-width: 991px) {
    :root {
        --nav-height: 64px;
    }

    .ze1313stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .ze1313hero-visual {
        margin-top: 0.5rem;
        min-height: 180px;
    }
}

/* 响应式 — 手机 */
@media (max-width: 767px) {
    body {
        padding-top: 58px;
    }

    .ze1313navbar {
        padding: 0.5rem 0;
    }

    .ze1313navbar .navbar-collapse {
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 0.5rem;
    }

    .ze1313navbar .nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .ze1313section {
        padding: 2.75rem 0;
    }

    .ze1313hero-section {
        padding: 2rem 0 1.5rem;
    }

    .ze1313hero-buttons {
        flex-direction: column;
    }

    .ze1313hero-buttons .ze1313btn {
        width: 100%;
    }

    .ze1313intro-text {
        font-size: 0.9rem;
        text-align: left;
    }

    .ze1313bento-card {
        padding: 1.15rem;
    }

    .ze1313download-card {
        padding: 1.15rem;
    }

    .ze1313download-card-head {
        flex-wrap: nowrap;
    }

    .ze1313security-card,
    .ze1313certificate-card,
    .ze1313faq-card {
        padding: 1rem;
    }

    .ze1313thumb-home {
        height: 96px;
    }

    .ze1313thumb-list,
    .ze1313thumb-related {
        height: 72px !important;
    }

    .ze1313thumb-side {
        height: 50px !important;
    }

    .ze1313thumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
        object-fit: cover;
        border-radius: var(--radius-sm);
    }

    #article .row-cols-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .listbox .e2 li {
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .ze1313footer .row > [class*="col-"] {
        text-align: center;
    }

    .ze1313friend-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .ze1313stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .ze1313stat-number {
        font-size: 1.5rem;
    }

    .ze1313stat-label {
        font-size: 0.8rem;
    }

    .ze1313hero-image {
        max-width: 200px;
    }

    .ze1313thumb-home {
        height: 88px;
    }

    .ze1313thumb-list,
    .ze1313thumb-related {
        height: 64px !important;
    }

    .ze1313thumb-cover {
        height: 150px !important;
    }

    #article .row-cols-2 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 边框溢出修复 */
.ze1313container {
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.card,
.ze1313bento-card,
.ze1313download-card,
.ze1313security-card,
.ze1313faq-card,
.ze1313article-card {
    max-width: 100%;
}

/* 兼容旧类名 */
.ze1313hero-image-shadow {
    display: none;
}

.ze1313feature-card,
.ze1313download-info,
.ze1313security-features,
.ze1313guide-item {
    /* 保留选择器避免 CMS 缓存报错，新首页未使用 */
}
