:root {
    --primary: #0f6b5c;
    --primary-dark: #084a40;
    --primary-light: #e8f5f2;
    --accent: #e07a3a;
    --accent-soft: #fdf0e8;
    --text: #1a2e2a;
    --text-muted: #5a6f6a;
    --surface: #ffffff;
    --surface-alt: #f4f8f7;
    --border: #d4e4e0;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 4px 24px rgba(15, 107, 92, 0.08);
    --shadow-hover: 0 12px 32px rgba(15, 107, 92, 0.12);
    --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', 'Segoe 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);
}

/* —— 导航 —— */
.z999d5navbar-line {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
    box-shadow: none;
}

.z999d5navbar-brand img {
    height: 42px;
    width: auto;
}

.z999d5nav-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);
}

.z999d5nav-link:hover,
.z999d5nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.35rem 0.5rem;
}

.navbar-collapse {
    background: var(--surface);
}

/* —— 按钮 —— */
.z999d5btn {
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.3;
}

.z999d5btn-main {
    background: var(--accent);
    color: #fff;
}

.z999d5btn-main:hover {
    background: #c96a2f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.z999d5btn-outline-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.z999d5btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.z999d5btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.z999d5btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.z999d5btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.z999d5btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* —— Hero —— */
.z999d5hero-line {
    position: relative;
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, #128f7a 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    overflow: hidden;
}

.z999d5hero-line-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(224, 122, 58, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.z999d5hero-line .container {
    position: relative;
    z-index: 1;
}

.z999d5hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.z999d5hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.z999d5hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.z999d5hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z999d5hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.z999d5hero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* —— 简介条 —— */
.z999d5intro-strip {
    background: var(--accent-soft);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.z999d5intro-strip p {
    margin: 0;
    text-align: center;
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

/* —— 通用区块 —— */
.z999d5section {
    padding: 4rem 0;
}

.z999d5section-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.z999d5section-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.z999d5section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.98rem;
}

/* —— Bento 功能 —— */
.z999d5features-line {
    background: var(--surface-alt);
}

.z999d5bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
}

.z999d5bento-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
}

.z999d5bento-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.z999d5bento-wide {
    grid-column: span 2;
}

.z999d5bento-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.z999d5bento-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.z999d5bento-item p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* —— 统计 —— */
.z999d5stats-line {
    background: var(--primary-dark);
    color: #fff;
    padding: 2.5rem 0;
}

.z999d5stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.z999d5stat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.z999d5stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* —— 下载卡片 —— */
.z999d5download-section {
    background: var(--surface);
}

.z999d5dl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.z999d5dl-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.z999d5dl-card h3 {
    font-size: 1.05rem;
    margin: 0.75rem 0 0.5rem;
    color: var(--primary-dark);
}

.z999d5dl-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    flex-grow: 0;
}

.z999d5dl-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.z999d5dl-list li {
    padding: 0.2rem 0 0.2rem 1rem;
    position: relative;
}

.z999d5dl-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.z999d5dl-card .z999d5btn {
    margin-top: auto;
    white-space: normal;
}

.z999d5platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
}

.z999d5icon-pc { background: linear-gradient(135deg, #0078d4, #005a9e); }
.z999d5icon-mac { background: linear-gradient(135deg, #555, #222); }
.z999d5icon-android { background: linear-gradient(135deg, #3ddc84, #2a9d5c); }
.z999d5icon-app { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

/* —— 小贴士 —— */
.z999d5knowledge-line {
    background: var(--surface-alt);
}

.z999d5tip-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    height: 100%;
    overflow: hidden;
}

.z999d5tip-card h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.z999d5tip-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* —— 安全 —— */
.z999d5security-section {
    background: var(--surface);
}

.z999d5security-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    text-align: center;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.z999d5security-card:hover {
    box-shadow: var(--shadow);
}

.z999d5security-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.z999d5security-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.z999d5security-features {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    text-align: left;
}

.z999d5feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.z999d5feature-item:last-child {
    margin-bottom: 0;
}

.z999d5feature-item i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* —— FAQ —— */
.z999d5faq-line {
    background: var(--surface-alt);
}

.z999d5faq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    height: 100%;
    overflow: hidden;
}

.z999d5faq-card h5 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.z999d5faq-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* —— 文章区 —— */
.z999d5article-line {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.z999d5article-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow var(--transition);
}

.z999d5article-card:hover {
    box-shadow: var(--shadow);
}

.z999d5thumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.z999d5article-card .card-body {
    padding: 0.75rem;
}

.z999d5article-link {
    color: var(--text);
}

.z999d5article-link:hover {
    color: var(--primary);
}

/* —— 页脚 —— */
.z999d5footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z999d5footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z999d5footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z999d5footer-links li {
    margin-bottom: 0.5rem;
}

.z999d5footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.z999d5footer-link:hover {
    color: var(--accent);
}

.z999d5footer p.small {
    color: rgba(255, 255, 255, 0.65);
}

.z999d5footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

.z999d5footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
}

.z999d5friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z999d5friend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

/* —— 列表/内页 —— */
.z999d5article-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z999d5article-content img {
    max-width: 100%;
    height: auto;
}

.z999d5thumb-list,
.z999d5thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: var(--radius);
}

.z999d5thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
}

.z999d5thumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
}

.listbox .card,
article.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.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) {
    .z999d5bento-grid {
        grid-template-columns: 1fr;
    }

    .z999d5bento-wide {
        grid-column: span 1;
    }

    .z999d5stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .z999d5hero-line {
        padding: 3rem 0 2.5rem;
    }

    .z999d5hero-visual {
        margin-top: 0.5rem;
    }
}

@media (max-width: 767px) {
    .z999d5section {
        padding: 2.75rem 0;
    }

    .z999d5navbar-line {
        padding: 0.5rem 0;
    }

    .z999d5navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z999d5nav-link {
        padding: 0.5rem 0.65rem !important;
    }

    .z999d5hero-buttons {
        flex-direction: column;
    }

    .z999d5hero-buttons .z999d5btn {
        width: 100%;
    }

    .z999d5hero-image {
        max-width: 220px;
    }

    .z999d5stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .z999d5stat-number {
        font-size: 1.5rem;
    }

    .z999d5dl-card {
        padding: 1.15rem;
    }

    .z999d5dl-card .z999d5btn {
        width: 100%;
    }

    .z999d5security-card {
        padding: 1.15rem;
    }

    .z999d5thumb-home {
        height: 96px;
    }

    #article .z999d5article-card .card-body {
        padding: 0.65rem;
    }

    #article h3.h6 {
        font-size: 0.9rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .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;
    }

    .z999d5thumb-list,
    .z999d5thumb-related {
        height: 72px !important;
    }

    .z999d5thumb-side {
        height: 50px !important;
    }

    .z999d5thumb-cover {
        max-height: 200px;
    }

    .z999d5footer .row > [class*="col-"] {
        text-align: center;
    }

    .z999d5friend-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .z999d5intro-strip p {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }

    .z999d5bento-item {
        padding: 1.15rem;
    }

    .z999d5stats-bar {
        grid-template-columns: 1fr;
    }

    .z999d5thumb-home {
        height: 88px;
    }

    .z999d5thumb-list,
    .z999d5thumb-related {
        height: 64px !important;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
    }
}

/* 兼容旧类名 */
.z999d5hero-section { }
.z999d5feature-card { }
.z999d5download-card { }
.z999d5navbar { background: var(--surface); }
