/* btok 官网主题 — 青绿 + 琥珀，单文件样式 */
:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #14b8a6;
    --accent: #d97706;
    --accent-light: #fbbf24;
    --bg: #f0fdfa;
    --bg-alt: #ecfdf5;
    --surface: #ffffff;
    --text: #134e4a;
    --text-muted: #5b7c78;
    --border: rgba(15, 118, 110, 0.14);
    --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;
    --nav-h: 72px;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

.z18a0econtainer {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* —— 导航 —— */
.z18a0enavbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}

.z18a0enavbar .navbar-brand img {
    height: 42px;
    width: auto;
}

.z18a0enav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
}

.z18a0enav-link:hover,
.z18a0enav-link:focus {
    color: var(--primary) !important;
    background: var(--bg-alt);
}

.z18a0enavbar-toggler {
    border: 1px solid var(--border);
    padding: 0.35rem 0.55rem;
}

.z18a0enavbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

@media (max-width: 991px) {
    .z18a0enavbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z18a0enavbar .nav-link {
        padding: 0.55rem 0.5rem !important;
    }
}

/* —— 按钮 —— */
.z18a0ebtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.z18a0ebtn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    border-color: transparent;
}

.z18a0ebtn-primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.z18a0ebtn-accent {
    background: linear-gradient(135deg, var(--accent), #b45309);
    color: #fff !important;
}

.z18a0ebtn-accent:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
}

.z18a0ebtn-outline {
    background: var(--surface);
    color: var(--primary) !important;
    border-color: var(--primary);
}

.z18a0ebtn-outline:hover {
    background: var(--bg-alt);
    color: var(--primary-dark) !important;
}

.z18a0ebtn-ghost {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.z18a0ebtn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.z18a0ebtn-outline-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.z18a0ebtn-outline-sm:hover {
    border-color: var(--primary);
    background: var(--bg-alt);
}

.z18a0ebtn-block {
    width: 100%;
}

/* —— Hero —— */
.z18a0ehero {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 45%, #0d9488 100%);
    color: #fff;
    padding: 4rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.z18a0ehero::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.z18a0ehero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.z18a0ehero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.z18a0ehero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.z18a0ehero-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 540px;
}

.z18a0ehero-lead strong {
    color: var(--accent-light);
    font-weight: 600;
}

.z18a0ehero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z18a0ehero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.z18a0ehero-img {
    max-width: 280px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
    .z18a0ehero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .z18a0ehero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .z18a0ehero-cta {
        justify-content: center;
    }

    .z18a0ehero-visual {
        order: -1;
    }

    .z18a0ehero-img {
        max-width: 220px;
    }
}

@media (max-width: 575px) {
    .z18a0ehero {
        padding: 2.5rem 0 3rem;
    }

    .z18a0ehero-cta {
        flex-direction: column;
    }

    .z18a0ehero-cta .z18a0ebtn {
        width: 100%;
    }
}

/* —— 通用区块 —— */
.z18a0esection {
    padding: 4rem 0;
}

.z18a0esection-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.z18a0esection-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.75rem;
}

.z18a0esection-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.z18a0esection-head-light h2,
.z18a0esection-head-light p {
    color: #fff;
}

.z18a0esection-head-light p {
    opacity: 0.9;
}

/* —— Bento 特点 —— */
.z18a0efeatures {
    background: var(--surface);
}

.z18a0ebento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.z18a0ebento-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
    min-height: 0;
}

.z18a0ebento-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.z18a0ebento-wide {
    grid-column: span 2;
}

.z18a0ebento-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.z18a0ebento-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--primary-dark);
}

.z18a0ebento-item p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .z18a0ebento {
        grid-template-columns: repeat(2, 1fr);
    }

    .z18a0ebento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 575px) {
    .z18a0ebento {
        grid-template-columns: 1fr;
    }

    .z18a0ebento-wide {
        grid-column: span 1;
    }
}

/* —— 统计条 —— */
.z18a0estats {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    padding: 2.5rem 0;
}

.z18a0estats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
}

.z18a0estat {
    text-align: center;
    color: #fff;
    flex: 1 1 140px;
    min-width: 0;
    padding: 0.5rem;
}

.z18a0estat strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.z18a0estat span {
    font-size: 0.9rem;
    opacity: 0.88;
}

.z18a0estat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .z18a0estat-divider {
        display: none;
    }

    .z18a0estats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* —— 下载区 —— */
.z18a0edownload {
    background: linear-gradient(165deg, var(--primary-dark), #0d9488);
    color: #fff;
}

.z18a0edownload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.z18a0edl-card {
    position: relative;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.z18a0edl-card-accent {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.15);
}

.z18a0edl-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.z18a0edl-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.z18a0edl-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.z18a0edl-icon-pc {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

.z18a0edl-icon-mobile {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.z18a0edl-head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.z18a0edl-head p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.z18a0edl-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    flex-grow: 1;
}

.z18a0edl-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.z18a0edl-list li:last-child {
    border-bottom: none;
}

.z18a0edl-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.z18a0edownload-note {
    text-align: center;
    margin: 1.5rem auto 0;
    max-width: 720px;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .z18a0edownload-grid {
        grid-template-columns: 1fr;
    }
}

/* —— 安全 —— */
.z18a0esecurity {
    background: var(--bg-alt);
}

.z18a0esec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z18a0esec-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    text-align: center;
    transition: box-shadow var(--transition);
    overflow: hidden;
}

.z18a0esec-card:hover {
    box-shadow: var(--shadow);
}

.z18a0esec-card i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.65rem;
}

.z18a0esec-card h3 {
    font-size: 1rem;
    margin: 0 0 0.4rem;
    color: var(--primary-dark);
}

.z18a0esec-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.z18a0ecert-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.z18a0ecert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.z18a0ecert i {
    color: var(--accent);
}

@media (max-width: 991px) {
    .z18a0esec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .z18a0esec-grid {
        grid-template-columns: 1fr;
    }
}

/* —— 知识区 —— */
.z18a0eknowledge {
    background: var(--surface);
}

.z18a0eknow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.z18a0eknow-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    overflow: hidden;
}

.z18a0eknow-card h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin: 0 0 0.65rem;
}

.z18a0eknow-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

@media (max-width: 991px) {
    .z18a0eknow-grid {
        grid-template-columns: 1fr;
    }
}

/* —— FAQ —— */
.z18a0efaq {
    background: var(--bg-alt);
}

.z18a0efaq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.z18a0efaq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    overflow: hidden;
}

.z18a0efaq-item h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
}

.z18a0efaq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .z18a0efaq-grid {
        grid-template-columns: 1fr;
    }
}

/* —— 文章列表（首页） —— */
.z18a0earticles {
    background: var(--surface);
    padding-bottom: 3.5rem;
}

.z18a0earticles-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.z18a0earticles-head h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.z18a0earticle-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
}

.z18a0earticle-card:hover {
    box-shadow: var(--shadow);
}

.z18a0earticle-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-alt);
}

.z18a0earticle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.z18a0earticle-body {
    padding: 0.85rem;
    flex: 1;
    min-width: 0;
}

.z18a0earticle-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.z18a0earticle-body h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.z18a0earticle-body h3 a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.z18a0earticle-body h3 a:hover {
    color: var(--primary);
}

/* —— 页脚 —— */
.z18a0efooter {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z18a0efooter a {
    color: rgba(255, 255, 255, 0.8);
}

.z18a0efooter a:hover {
    color: var(--accent-light);
}

.z18a0efooter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.z18a0efooter-brand p {
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
    opacity: 0.8;
    line-height: 1.6;
}

.z18a0efooter h4 {
    font-size: 0.95rem;
    margin: 0 0 0.85rem;
    color: #fff;
}

.z18a0efooter ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.z18a0efooter ul li {
    margin-bottom: 0.45rem;
}

.z18a0efriend-links {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.z18a0efriend-links ul {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.z18a0efooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
}

.z18a0efooter-bottom p {
    margin: 0.35rem 0;
}

@media (max-width: 767px) {
    .z18a0efooter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .z18a0efooter-brand {
        grid-column: span 2;
    }
}

@media (max-width: 575px) {
    .z18a0efooter-grid {
        grid-template-columns: 1fr;
    }

    .z18a0efooter-brand {
        grid-column: span 1;
    }
}

/* —— 列表页 / 内页 —— */
.z18a0epage-main {
    padding: 2rem 0 3rem;
    min-height: 50vh;
}

.z18a0epage-header {
    margin-bottom: 1.5rem;
}

.z18a0epage-header h1 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0 0 0.35rem;
}

.z18a0epage-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.z18a0epanel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.z18a0epanel-body {
    padding: 1.25rem;
}

.z18a0esidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.z18a0esidebar-card .card-body,
.z18a0esidebar-body {
    padding: 1.15rem;
}

.z18a0esidebar-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin: 0 0 0.85rem;
}

.z18a0earticle-content {
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z18a0earticle-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.z18a0ethumb-list,
.z18a0ethumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z18a0ethumb-side {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.z18a0ethumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
}

.z18a0emeta-tags {
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.z18a0etagitem {
    display: inline-block;
    margin: 0.25rem 0.35rem 0.25rem 0;
}

.z18a0etagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
}

.listbox .e2 li {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.listbox .e2 li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

/* —— 移动端列表/内页 —— */
@media (max-width: 767px) {
    .z18a0epage-main {
        padding: 1.25rem 0 2rem;
    }

    .z18a0epanel-body {
        padding: 1rem;
    }

    .z18a0ethumb-list,
    .z18a0ethumb-related {
        height: 72px;
    }

    .z18a0ethumb-side {
        height: 50px;
        width: 64px;
    }

    .z18a0ethumb-cover {
        max-height: 200px;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
    }

    .listbox .e2 li p {
        font-size: 0.88rem;
    }
}

@media (max-width: 575px) {
    .z18a0esection {
        padding: 2.75rem 0;
    }

    .z18a0ethumb-list,
    .z18a0ethumb-related {
        height: 64px;
    }
}
