:root {
    --yt-primary: #0d7a6b;
    --yt-primary-dark: #065a4f;
    --yt-accent: #e8a838;
    --yt-accent-hover: #d49220;
    --yt-surface: #f4f7f6;
    --yt-card: #ffffff;
    --yt-text: #1a2e2a;
    --yt-muted: #5c726c;
    --yt-border: rgba(13, 122, 107, 0.14);
    --yt-radius: 12px;
    --yt-radius-lg: 20px;
    --yt-shadow: 0 4px 24px rgba(6, 90, 79, 0.08);
    --yt-shadow-hover: 0 12px 32px rgba(6, 90, 79, 0.12);
    --yt-transition: 0.25s ease;
    --yt-container: min(1140px, 100% - 2rem);
}

*,
*::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(--yt-text);
    line-height: 1.65;
    background: var(--yt-surface);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--yt-primary);
    text-decoration: none;
}

a:hover {
    color: var(--yt-primary-dark);
}

/* —— 导航 —— */
.z7c4afnavbar {
    background: var(--yt-card);
    border-bottom: 1px solid var(--yt-border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z7c4afnavbar .container,
.z7c4afcontainer.container {
    max-width: var(--yt-container);
}

.z7c4afnavbar-brand img {
    height: 42px;
    width: auto;
}

.z7c4afnav-link {
    color: var(--yt-text) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--yt-transition), color var(--yt-transition);
}

.z7c4afnav-link:hover {
    color: var(--yt-primary) !important;
    background: rgba(13, 122, 107, 0.08);
}

.navbar-toggler {
    border: 1px solid var(--yt-border);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: var(--yt-card);
}

/* —— 首页区块通用 —— */
.yt-section {
    padding: 4.5rem 0;
}

.yt-section-alt {
    background: var(--yt-card);
}

.yt-section-tint {
    background: linear-gradient(180deg, #e8f3f0 0%, var(--yt-surface) 100%);
}

.yt-wrap {
    width: var(--yt-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.yt-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.75rem;
}

.yt-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--yt-primary-dark);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.yt-head p {
    color: var(--yt-muted);
    margin: 0;
    font-size: 1rem;
}

.yt-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yt-primary);
    background: rgba(13, 122, 107, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

/* —— Hero —— */
.z7c4afhero-section {
    background: linear-gradient(145deg, var(--yt-primary-dark) 0%, var(--yt-primary) 55%, #128f7d 100%);
    color: #fff;
    padding: 4rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.z7c4afhero-section::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -20%;
    width: 45%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(232, 168, 56, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.z7c4afhero-content {
    position: relative;
    z-index: 1;
}

.z7c4afhero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.z7c4afhero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.z7c4afhero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z7c4afhero-buttons .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.z7c4afhero-buttons .btn-light {
    background: #fff;
    color: var(--yt-primary-dark);
}

.z7c4afhero-buttons .btn-primary,
.z7c4afbtn.btn-primary {
    background: var(--yt-accent);
    color: #1a2e2a;
}

.z7c4afhero-buttons .btn-primary:hover,
.z7c4afbtn.btn-primary:hover {
    background: var(--yt-accent-hover);
    color: #1a2e2a;
}

.z7c4afhero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.z7c4afhero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--yt-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.z7c4afhero-image-shadow {
    display: none;
}

/* —— 优势 Bento —— */
.yt-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.yt-bento-item {
    background: var(--yt-card);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--yt-shadow);
    transition: box-shadow var(--yt-transition), transform var(--yt-transition);
    overflow: hidden;
}

.yt-bento-item:hover {
    box-shadow: var(--yt-shadow-hover);
    transform: translateY(-2px);
}

.yt-bento-item.span-4 { grid-column: span 4; }
.yt-bento-item.span-6 { grid-column: span 6; }
.yt-bento-item.span-8 { grid-column: span 8; }

.yt-bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13, 122, 107, 0.12);
    color: var(--yt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.yt-bento-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--yt-primary-dark);
}

.yt-bento-item p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--yt-muted);
    line-height: 1.6;
}

/* —— 知识条 —— */
.yt-knowledge {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.yt-knowledge-card {
    background: var(--yt-card);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius);
    padding: 1.35rem 1.5rem;
    border-left: 4px solid var(--yt-accent);
}

.yt-knowledge-card h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--yt-primary-dark);
}

.yt-knowledge-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--yt-muted);
}

/* —— 统计 —— */
.z7c4afstats-section {
    background: var(--yt-primary-dark);
    color: #fff;
    padding: 3rem 0;
}

.z7c4afstats-section .row {
    --bs-gutter-y: 1.5rem;
}

.z7c4afstat-item {
    text-align: center;
    padding: 0.5rem;
}

.z7c4afstat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--yt-accent);
}

.z7c4afstat-label {
    font-size: 0.9rem;
    opacity: 0.88;
    margin-top: 0.25rem;
}

/* —— 下载 —— */
.z7c4afdownload-section {
    padding: 4.5rem 0;
    background: var(--yt-surface);
}

.z7c4afdownload-card {
    background: var(--yt-card);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-lg);
    box-shadow: var(--yt-shadow);
    height: 100%;
    overflow: hidden;
    transition: box-shadow var(--yt-transition);
}

.z7c4afdownload-card:hover {
    box-shadow: var(--yt-shadow-hover);
}

.z7c4afdownload-card .card-body {
    padding: 1.5rem !important;
}

.z7c4afplatform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.z7c4afios-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.z7c4afandroid-icon {
    background: linear-gradient(135deg, var(--yt-primary), var(--yt-primary-dark));
}

.z7c4afdownload-info {
    background: rgba(13, 122, 107, 0.06);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius);
    padding: 1rem 1.15rem;
}

.z7c4afinfo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--yt-muted);
}

.z7c4afinfo-item:last-child {
    margin-bottom: 0;
}

.z7c4afinfo-item i {
    color: var(--yt-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z7c4afdownload-action .btn {
    width: 100%;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 1rem;
    white-space: normal;
}

/* —— 安全 —— */
.z7c4afsecurity-section {
    padding: 4.5rem 0;
    background: var(--yt-card);
}

.z7c4afsecurity-card {
    background: var(--yt-surface);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-lg);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.z7c4afsecurity-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--yt-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.z7c4afsecurity-card h3 {
    font-size: 1.05rem;
    color: var(--yt-primary-dark);
    margin: 0 0 0.75rem;
    text-align: left;
}

.z7c4afsecurity-features {
    background: var(--yt-card);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius);
    padding: 0.85rem 1rem;
    flex: 1;
}

.z7c4affeature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--yt-muted);
}

.z7c4affeature-item:last-child {
    margin-bottom: 0;
}

.z7c4affeature-item i {
    color: var(--yt-primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.z7c4afcertificate-card {
    background: var(--yt-surface);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius);
    padding: 1.35rem;
    text-align: center;
    height: 100%;
}

.z7c4afcertificate-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: rgba(13, 122, 107, 0.12);
    color: var(--yt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.z7c4afcertificate-card h4 {
    font-size: 0.95rem;
    color: var(--yt-primary-dark);
    margin: 0 0 0.35rem;
}

.z7c4afcertificate-card p {
    font-size: 0.82rem;
    color: var(--yt-muted);
    margin: 0;
}

/* —— FAQ —— */
.yt-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.yt-faq-item {
    background: var(--yt-card);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius);
    padding: 1.25rem 1.35rem;
}

.yt-faq-item h5 {
    font-size: 0.98rem;
    color: var(--yt-primary-dark);
    margin: 0 0 0.5rem;
}

.yt-faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--yt-muted);
}

/* —— 文章区 —— */
#article {
    background: var(--yt-surface);
}

#article .card {
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius);
    overflow: hidden;
}

.z7c4afthumb-home {
    height: 120px;
    object-fit: cover;
    width: 100%;
}

/* —— 页脚 —— */
.z7c4affooter {
    background: var(--yt-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z7c4affooter-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z7c4affooter-link {
    color: rgba(255, 255, 255, 0.7);
}

.z7c4affooter-link:hover {
    color: var(--yt-accent);
}

.z7c4affooter-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z7c4affooter-links li {
    margin-bottom: 0.5rem;
}

.z7c4affooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

.z7c4affooter-bottom a {
    color: rgba(255, 255, 255, 0.75);
}

.z7c4affriend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z7c4affriend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

/* —— 列表/内页 —— */
.z7c4afpy-5.bg-light,
section.z7c4afpy-5 {
    background: var(--yt-surface) !important;
}

.z7c4afpages .pagelist,
.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z7c4afarticle-content {
    line-height: 1.75;
    word-break: break-word;
}

.z7c4afarticle-content img {
    max-width: 100%;
    height: auto;
}

.card.shadow-sm {
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius);
    box-shadow: var(--yt-shadow) !important;
    overflow: hidden;
}

.z7c4afmeta-tags .z7c4aftagitem a {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: rgba(13, 122, 107, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .yt-bento-item.span-4,
    .yt-bento-item.span-6,
    .yt-bento-item.span-8 {
        grid-column: span 12;
    }

    .yt-knowledge {
        grid-template-columns: 1fr;
    }

    .z7c4afsecurity-section .row.g-4 > [class*="col-"] {
        margin-bottom: 0;
    }
}

.yt-bento-item,
.z7c4afdownload-card,
.z7c4afsecurity-card,
.yt-faq-item,
.yt-knowledge-card {
    min-width: 0;
}

#article .card-body h3 a,
#article .card-body h6 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .yt-section,
    .z7c4afdownload-section,
    .z7c4afsecurity-section {
        padding: 3rem 0;
    }

    .z7c4afhero-section {
        padding: 2.5rem 0 3rem;
    }

    .z7c4afhero-buttons {
        flex-direction: column;
    }

    .z7c4afhero-buttons .btn {
        width: 100%;
    }

    .z7c4afhero-image {
        max-width: 220px;
        margin-top: 1.5rem;
    }

    .yt-faq-grid {
        grid-template-columns: 1fr;
    }

    .z7c4afdownload-card .d-flex.align-items-center {
        flex-wrap: wrap;
    }

    .z7c4afdownload-card .d-flex.align-items-center .ms-3 {
        margin-left: 0 !important;
        flex: 1 1 100%;
    }

    .z7c4afnavbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--yt-border);
        border-radius: var(--yt-radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z7c4afstat-number {
        font-size: 1.75rem;
    }

    #article .row-cols-lg-5 {
        --bs-columns: 2;
    }

    .z7c4afthumb-home {
        height: 96px !important;
    }

    .z7c4afthumb-list,
    .z7c4afthumb-related {
        height: 72px !important;
    }

    .z7c4afthumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .yt-wrap,
    .z7c4afcontainer.container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    #article .z7c4afthumb-home {
        height: 88px !important;
    }

    .z7c4afthumb-list,
    .z7c4afthumb-related {
        height: 64px !important;
    }

    .z7c4afcertificate-card {
        padding: 1rem;
    }

    .z7c4afsecurity-card {
        padding: 1.15rem;
    }
}
