/* ============================================================================
   官网（PC / H5 门户）样式
   RTL 维吾尔语 · 深紫色品牌主题。与小程序端视觉同源。
   ========================================================================== */

/* 维吾尔文网页字体：随站点分发，客户端未安装维文字体时也能正确显示。
   仅覆盖阿拉伯 Unicode 区段，拉丁字母与数字继续使用下方拉丁字体。 */
@font-face {
    font-family: "UyghurFallback";
    src: url("/fonts/noto-naskh-arabic-arabic-400.woff2") format("woff2"),
        local("Alkatip Basma Tom"), local("UKIJ Tuz"), local("Microsoft Uighur");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "UyghurFallback";
    src: url("/fonts/noto-naskh-arabic-arabic-700.woff2") format("woff2"),
        local("Alkatip Basma Tom"), local("UKIJ Tuz"), local("Microsoft Uighur");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF;
    font-weight: 700;
    font-display: swap;
}

:root {
    --brand: #7c3aed;
    --brand-strong: #6023d0;
    --brand-soft: #f0e8ff;
    --brand-ink: #4c1d95;
    --ink: #1e1633;
    --ink-soft: #5a5273;
    --muted: #8b85a3;
    --paper: #f6f4fb;
    --card: #ffffff;
    --dark: #2a1456;
    --dark-2: #1c0d3d;
    --line: #e8e3f3;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(76, 29, 149, .08);
    --shadow-lg: 0 24px 60px rgba(76, 29, 149, .16);
    --font: "UyghurFallback", "Noto Naskh Arabic", "UKIJ Tuz", "Alkatip Basma Tom", "Microsoft Uighur", "Segoe UI", Tahoma, sans-serif;
    --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.85;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 800; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 820px; }

.ic { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.28em; }

/* ------------------------------- 按钮 ----------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px;
    padding: 11px 20px; border-radius: 12px; transition: .18s ease; white-space: nowrap;
}
.btn--pill { border-radius: 999px; }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(124, 58, 237, .3); }
.btn--brand:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn--ghost { background: rgba(124, 58, 237, .1); color: var(--brand-ink); }
.btn--ghost:hover { background: rgba(124, 58, 237, .18); }

/* ------------------------------- 顶栏 ----------------------------------- */
.hdr {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.hdr__inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.brand__mark {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; font-size: 22px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 16px; font-weight: 800; color: var(--ink); }
.brand__sub { font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__link {
    padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-soft);
    transition: .15s ease;
}
.nav__link:hover { background: var(--brand-soft); color: var(--brand-ink); }
.nav__link.is-active { color: var(--brand); background: var(--brand-soft); }

.hdr__cta { margin-inline-start: 8px; }
.hdr__toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer; padding: 0 11px;
}
.hdr__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: .2s ease; }

/* ------------------------------- 首屏 ----------------------------------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(120% 140% at 88% 0%, #4c1d95 0%, var(--dark) 46%, var(--dark-2) 100%);
}
.hero__glow {
    position: absolute; inset-inline-end: -140px; top: -160px; width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(167, 139, 250, .55), transparent 68%);
    filter: blur(10px); pointer-events: none;
}
.hero__inner {
    position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
    align-items: center; padding: 74px 22px 84px;
}
.hero__title { font-size: clamp(32px, 4.4vw, 54px); font-weight: 900; letter-spacing: -.5px; }
.hero__title .accent { color: #c4b5fd; }
.hero__sub { margin-top: 18px; font-size: 18px; color: #e4dcff; }
.hero__desc { margin-top: 10px; font-size: 15px; color: #b5a8dd; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__actions .btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.hero__actions .btn--ghost:hover { background: rgba(255, 255, 255, .2); }

.hero__stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 38px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 26px; font-weight: 900; color: #fff; }
.hero__stats span { font-size: 13px; color: #b5a8dd; }

.hero__art { display: flex; justify-content: center; }
.hero__artimg { max-height: 460px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.phones { position: relative; display: flex; gap: 20px; align-items: center; }

.phone {
    width: 190px; height: 386px; border-radius: 30px; padding: 12px;
    background: linear-gradient(160deg, #3b2a63, #241040);
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg);
}
.phone--back { transform: rotate(-7deg) translateY(14px) scale(.94); opacity: .82; }
.phone--front { transform: rotate(4deg); }
.phone__screen {
    height: 100%; border-radius: 20px; background: rgba(255, 255, 255, .06);
    padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.phone__cover { height: 168px; border-radius: 14px; }
.phone__title { font-size: 14px; font-weight: 800; color: #fff; }
.phone__bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.phone__bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.phone__bar--short { opacity: .7; }

/* ------------------------------- 封面 ----------------------------------- */
.cover {
    position: relative; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(140deg, #efe9ff, #e2d7ff); border-radius: var(--radius-sm);
}
.cover__img { width: 100%; height: 100%; object-fit: cover; }
.cover__ph { font-weight: 900; color: var(--brand); opacity: .5; font-size: 34px; }

/* ------------------------------- 区块 ----------------------------------- */
.sec { padding: 62px 0; }
.sec--tight { padding: 40px 0; }
.sec__head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
    margin-bottom: 26px;
}
.sec__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: var(--ink); }
.sec__sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.sec__more { font-weight: 700; color: var(--brand); font-size: 14px; }
.sec__more:hover { color: var(--brand-strong); }

/* ------------------------------- 特色 ----------------------------------- */
.sec--features { padding-top: 48px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-grid--two { grid-template-columns: repeat(2, 1fr); }
.feat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; box-shadow: var(--shadow); transition: .2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feat__icon {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
    font-size: 26px; color: #fff; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}
.feat--violet .feat__icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.feat--teal   .feat__icon { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.feat--amber  .feat__icon { background: linear-gradient(135deg, #fbbf24, #d97706); }
.feat--rose   .feat__icon { background: linear-gradient(135deg, #fb7185, #e11d48); }
.feat--blue   .feat__icon { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.feat--green  .feat__icon { background: linear-gradient(135deg, #4ade80, #16a34a); }
.feat__title { font-size: 17px; font-weight: 800; }
.feat__desc { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* ---------------------------- 作品卡片 ---------------------------------- */
.ncards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.ncards--grid { grid-template-columns: repeat(6, 1fr); }
.ncard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s ease; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #dcd0f7; }
.ncard__link { display: block; padding: 12px; }
.ncard__cover { aspect-ratio: 3 / 4; width: 100%; margin-bottom: 12px; }
.ncard__badge {
    position: absolute; inset-block-start: 8px; inset-inline-start: 8px;
    width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
    background: rgba(28, 13, 61, .78); color: #fff; font-size: 15px; backdrop-filter: blur(4px);
}
.ncard__title {
    font-size: 15px; font-weight: 800; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.ncard__intro {
    margin-top: 4px; font-size: 13px; color: var(--muted); min-height: 2.6em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ncard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.tag {
    display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-ink);
}
.tag--done { background: #e5f6ec; color: #15803d; }
.tag--ghost { background: #f0eef7; color: var(--muted); }
.tag--brand { background: var(--brand); color: #fff; }

/* ------------------------------ 分类 chips ------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips--filters { margin-top: 18px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px;
    color: var(--ink-soft); transition: .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .ic { font-size: 17px; }

/* ------------------------------ 下载区块 -------------------------------- */
.sec--download {
    background: linear-gradient(135deg, #f3ecff 0%, #ece3ff 100%);
}
.dl { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.dl--stack { grid-template-columns: 1fr; }
.dl__title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--brand-ink); }
.dl__desc { margin-top: 12px; font-size: 15px; color: var(--ink-soft); max-width: 52ch; }
.dl__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dl__actions--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.dbtn {
    display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 14px;
    background: #21123f; color: #fff; font-weight: 700; transition: .18s ease;
}
.dbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dbtn__icon { font-size: 22px; }
.dbtn__text { display: flex; flex-direction: column; line-height: 1.25; }
.dbtn__text em { font-style: normal; font-size: 12px; opacity: .7; font-weight: 500; }

.dl__qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qrbox {
    width: 168px; height: 168px; border-radius: 20px; background: #fff; display: grid; place-items: center;
    box-shadow: var(--shadow); padding: 12px;
}
.qrbox--lg { width: 210px; height: 210px; }
.qrbox__img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.qrbox__ph { font-size: 42px; color: var(--brand); opacity: .5; }
.qrbox__desc { font-size: 13px; color: var(--ink-soft); text-align: center; }

/* ------------------------------ 下载卡片 -------------------------------- */
.dbox {
    display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: .2s ease;
}
.dbox:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dcd0f7; }
.dbox__qr { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.dbox__icon {
    width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; font-size: 34px;
    color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); flex: none;
}
.dbox__body { display: flex; flex-direction: column; line-height: 1.4; }
.dbox__title { font-size: 17px; font-weight: 800; }
.dbox__ver { font-style: normal; font-size: 13px; color: var(--brand); font-weight: 700; }
.dbox__note { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ------------------------------ 常见问题 -------------------------------- */
.faqs { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q {
    cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 16px; list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 700; transition: .2s ease; }
.faq[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }
.faq__a p { margin: 0 0 8px; }

/* ------------------------------ 页面头 ---------------------------------- */
.pagehead {
    background: linear-gradient(160deg, #f5f0ff, #efe7ff);
    padding: 54px 0 46px; border-bottom: 1px solid var(--line);
}
.pagehead--brand { background: radial-gradient(120% 160% at 88% 0%, #4c1d95, var(--dark) 60%); color: #fff; border: 0; }
.pagehead--brand .pagehead__sub { color: #cfc2f0; }
.pagehead--slim { padding: 32px 0 26px; }
.pagehead__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; }
.pagehead__sub { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--brand); }

/* ------------------------------ 筛选 ------------------------------------ */
.filters {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px; box-shadow: var(--shadow);
}
.filters__search {
    flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
}
.filters__search .ic { color: var(--muted); font-size: 18px; }
.filters__search input {
    flex: 1; border: 0; background: transparent; font-family: inherit; font-size: 15px;
    padding: 11px 0; color: var(--ink); outline: none;
}
.filters__sort { display: flex; gap: 6px; }
.filters__radio { cursor: pointer; }
.filters__radio input { position: absolute; opacity: 0; pointer-events: none; }
.filters__radio span {
    display: inline-block; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
    color: var(--ink-soft); background: var(--paper); transition: .15s ease;
}
.filters__radio.is-active span,
.filters__radio input:checked + span { background: var(--brand-soft); color: var(--brand-ink); }

/* ------------------------------ 空态 / 分页 ----------------------------- */
.empty {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 70px 20px; text-align: center; color: var(--muted);
    background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty .ic { font-size: 42px; color: var(--brand); opacity: .55; }
.empty p { font-size: 15px; }

.pager { margin-top: 34px; display: flex; justify-content: center; }
.pgn { display: flex; gap: 8px; align-items: center; }
.pgn__item {
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center;
    background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink-soft);
}
.pgn__item:hover { border-color: var(--brand); color: var(--brand); }
.pgn__item.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pgn__item.is-disabled { opacity: .4; }
.pgn__item.is-gap { border: 0; background: transparent; }

/* ------------------------------ 作品详情 -------------------------------- */
.detail { padding: 44px 0 8px; }
.detail__inner { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.detail__cover { width: 100%; aspect-ratio: 3 / 4; box-shadow: var(--shadow-lg); }
.detail__title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; margin-top: 4px; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.detail__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 20px; }
.detail__meta li { display: flex; flex-direction: column; }
.detail__meta span { font-size: 13px; color: var(--muted); }
.detail__meta strong { font-size: 16px; font-weight: 800; }
.detail__intro { margin-top: 24px; }
.detail__intro h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.detail__intro p { color: var(--ink-soft); font-size: 15px; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chapters__row {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.chapters__no {
    width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 13px;
}
.chapters__name { flex: 1; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapters__tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fdeef2; color: #be123c; }
.chapters__tag--free { background: #e5f6ec; color: #15803d; }
.chapters__more { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }

/* ------------------------------ 分类页 ---------------------------------- */
.cate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cate {
    display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: .2s ease;
}
.cate:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dcd0f7; }
.cate__media { width: 60px; height: 60px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--brand-soft); }
.cate__media img { width: 100%; height: 100%; object-fit: cover; }
.cate__ph { font-size: 28px; color: var(--brand); opacity: .6; }
.cate__body { display: flex; flex-direction: column; line-height: 1.35; }
.cate__name { font-size: 16px; font-weight: 800; }
.cate__count { font-style: normal; font-size: 13px; color: var(--muted); }

/* ------------------------------ 统计条 ---------------------------------- */
.statsbar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow);
}
.statsbar--light { background: transparent; box-shadow: none; border-style: dashed; }
.statsbar__item { display: flex; flex-direction: column; align-items: center; }
.statsbar__item strong { font-size: 28px; font-weight: 900; color: var(--brand-ink); }
.statsbar__item span { font-size: 13px; color: var(--muted); }

/* ------------------------------ 关于页 ---------------------------------- */
.about { padding-top: 8px; }
.about__lead p { font-size: 17px; color: var(--ink-soft); }
.about__h2 { font-size: 20px; font-weight: 900; margin: 40px 0 16px; }
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact li {
    display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.contact span { color: var(--muted); font-size: 14px; }
.contact strong { font-weight: 700; }
.doclinks { display: flex; flex-direction: column; gap: 10px; }
.doclinks a {
    display: flex; align-items: center; justify-content: space-between; padding: 15px 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-weight: 700; transition: .15s ease;
}
.doclinks a:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------ 协议正文 -------------------------------- */
.doc {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; font-size: 15px; color: var(--ink-soft); line-height: 2;
}
.doc h1, .doc h2, .doc h3 { color: var(--ink); margin: 22px 0 10px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-inline-start: 22px; list-style: revert; }
.doc a { color: var(--brand); }

/* ------------------------------ 帮助框 ---------------------------------- */
.helpbox {
    margin-top: 30px; padding: 28px; border-radius: var(--radius); text-align: center;
    background: linear-gradient(135deg, #f3ecff, #ece3ff);
}
.helpbox h3 { font-size: 20px; font-weight: 900; color: var(--brand-ink); }
.helpbox p { margin-top: 8px; color: var(--ink-soft); }
.helpbox__actions { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }

/* ------------------------------ 页脚 ------------------------------------ */
.ftr { background: var(--dark-2); color: #c9bcea; margin-top: 40px; }
.ftr__grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 56px 22px 40px;
}
.ftr__col--brand .brand__name { color: #fff; }
.ftr .brand__mark { width: 38px; height: 38px; font-size: 20px; }
.ftr__notice { margin-top: 16px; font-size: 13px; color: #9d8fc9; max-width: 34ch; }
.ftr__title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.ftr__list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ftr__list a { color: #c9bcea; transition: .15s ease; }
.ftr__list a:hover { color: #fff; }
.ftr__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.ftr__bar-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; font-size: 13px; color: #9d8fc9;
}
.ftr__legal { display: flex; gap: 16px; }
.ftr__legal a { color: #9d8fc9; }
.ftr__legal a:hover { color: #fff; }

/* ------------------------------ 响应式 ---------------------------------- */
@media (max-width: 1080px) {
    .ncards, .ncards--grid { grid-template-columns: repeat(4, 1fr); }
    .cate-grid { grid-template-columns: repeat(3, 1fr); }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hdr__inner { height: 64px; }
    .nav {
        position: fixed; inset-block-start: 64px; inset-inline: 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px 20px; gap: 4px;
        transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
        max-height: calc(100vh - 64px); overflow-y: auto;
    }
    .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav__link { padding: 13px 14px; font-size: 16px; }
    .hdr__toggle { display: flex; margin-inline-start: auto; }
    .hdr__cta { display: none; }

    .hero__inner { grid-template-columns: 1fr; padding: 54px 22px 64px; text-align: center; }
    .hero__actions, .hero__stats { justify-content: center; }
    .hero__art { order: -1; }
    .hero__artimg { max-height: 340px; }
    .dl { grid-template-columns: 1fr; }
    .dl__actions--grid { grid-template-columns: 1fr; }
    .detail__inner { grid-template-columns: 1fr; }
    .detail__cover { max-width: 260px; }
    .ftr__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body.site { font-size: 15px; }
    .ncards, .ncards--grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cate-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-grid, .feat-grid--two { grid-template-columns: 1fr; }
    .chapters { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
    .statsbar { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .sec { padding: 44px 0; }
    .sec__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .filters { flex-direction: column; align-items: stretch; }
    .filters__sort { flex-wrap: wrap; }
    .phones .phone--back { display: none; }
    .ftr__grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 22px 28px; }
    .ftr__bar-inner { flex-direction: column; text-align: center; }
}
