/* ==========================================================================
   ehviewer 专题站 —— 共用样式表
   配色：墨绿 + 暗夜蓝 + 深灰（图库阅读应用调性）
   字体：系统通用无衬线字体栈，零外部字体依赖
   ========================================================================== */

:root {
    --bg: #0c141c;
    --bg-soft: #101a24;
    --panel: #152330;
    --panel-2: #1a2b3a;
    --line: #23384a;
    --line-soft: #1c2c3a;
    --txt: #dfeaf2;
    --txt-strong: #f2f8fb;
    --muted: #8ea3b3;
    --teal: #25b58e;
    --teal-2: #1a8a6c;
    --teal-soft: rgba(37, 181, 142, .12);
    --gold: #d9ab55;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .38);
    --maxw: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--txt);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.78;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: #4dd6ae;
}

h1,
h2,
h3,
h4 {
    color: var(--txt-strong);
    line-height: 1.35;
    font-weight: 700;
}

ul,
ol {
    list-style-position: outside;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------ 顶部导航 ------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(12, 20, 28, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--txt-strong);
}

.brand-name:hover {
    color: var(--teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--txt);
    font-size: 15px;
}

.nav-links a:hover {
    background: var(--teal-soft);
    color: var(--teal);
}

.nav-links a.is-active {
    background: var(--teal-soft);
    color: var(--teal);
    font-weight: 700;
}

.nav-cta {
    flex: 0 0 auto;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
    color: #06231b !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-cta:hover {
    filter: brightness(1.08);
}

.nav-mobile-cta {
    display: none;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--txt);
    border-radius: 2px;
}

.nav-toggle span + span {
    margin-top: 5px;
}

/* ------------------------------ 通用按钮 ------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
    color: #06231b;
    box-shadow: 0 12px 26px rgba(37, 181, 142, .26);
}

.btn-primary:hover {
    color: #06231b;
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--txt);
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ------------------------------ Hero 区 ------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 66px 0 78px;
    background:
        radial-gradient(900px 420px at 12% 0%, rgba(37, 181, 142, .16), transparent 62%),
        radial-gradient(760px 400px at 88% 18%, rgba(41, 98, 158, .18), transparent 62%),
        linear-gradient(180deg, #0d1721 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 52px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.hero-tag i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal);
}

.hero h1 {
    font-size: 42px;
    letter-spacing: .5px;
    margin-bottom: 18px;
}

.hero h1 em {
    font-style: normal;
    color: var(--teal);
}

.hero-lead {
    color: var(--muted);
    font-size: 16.5px;
    max-width: 560px;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-note {
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--muted);
}

/* 手机预览 */
.hero-device {
    display: flex;
    justify-content: center;
}

.phone {
    position: relative;
    width: 268px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #16232f, #101a24);
    padding: 12px;
    box-shadow: var(--shadow);
}

.phone::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 6px;
    border-radius: 999px;
    background: #0a1119;
}

.phone img {
    width: 100%;
    border-radius: 20px;
    margin-top: 6px;
}

.phone-cap {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 12px;
}

/* ------------------------------ 数据条 ------------------------------ */
.stats {
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 26px 18px;
    text-align: center;
    border-right: 1px solid var(--line-soft);
}

.stat:last-child {
    border-right: 0;
}

.stat b {
    display: block;
    font-size: 26px;
    color: var(--teal);
    font-weight: 700;
}

.stat span {
    display: block;
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 4px;
}

/* ------------------------------ 区块通用 ------------------------------ */
.section {
    padding: 74px 0;
}

.section.alt {
    background: var(--bg-soft);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-head h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.section-head p {
    color: var(--muted);
    font-size: 15.5px;
}

.section-head.left {
    margin-left: 0;
    text-align: left;
}

/* ------------------------------ 功能卡片 ------------------------------ */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 181, 142, .5);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--teal);
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: 14.5px;
}

/* ------------------------------ 预览图廊 ------------------------------ */
.gallery {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}

.shot {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 10px;
    transition: transform .2s ease, border-color .2s ease;
}

.shot:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 181, 142, .5);
}

.shot img {
    width: 100%;
    border-radius: 10px;
}

.shot figcaption {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.gallery-note {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

/* ------------------------------ 入口卡片 ------------------------------ */
.entries {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.entry {
    display: block;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 28px 24px;
    color: var(--txt);
    transition: transform .2s ease, border-color .2s ease;
}

.entry:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 181, 142, .55);
    color: var(--txt);
}

.entry-kicker {
    font-size: 12.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
}

.entry h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.entry p {
    color: var(--muted);
    font-size: 14px;
}

/* ------------------------------ 评价 ------------------------------ */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 24px;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), #1b6f8f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #06231b;
    flex: 0 0 auto;
}

.review-head b {
    display: block;
    font-size: 15px;
    color: var(--txt-strong);
}

.review-head span {
    font-size: 12.5px;
    color: var(--muted);
}

.stars {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.review p {
    color: var(--muted);
    font-size: 14.5px;
}

/* ------------------------------ FAQ ------------------------------ */
.faq {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.qa {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.qa-q {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: var(--txt-strong);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 52px 18px 22px;
    cursor: pointer;
    position: relative;
    line-height: 1.6;
}

.qa-q::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .22s ease;
}

.qa.is-open .qa-q::after {
    transform: translateY(-30%) rotate(-135deg);
}

.qa-a {
    display: none;
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 14.8px;
    border-top: 1px solid var(--line-soft);
    margin-top: -1px;
    padding-top: 16px;
}

.qa.is-open .qa-a {
    display: block;
}

/* ------------------------------ 下载 CTA ------------------------------ */
.cta-band {
    padding: 74px 0;
    background:
        radial-gradient(700px 320px at 20% 10%, rgba(37, 181, 142, .2), transparent 60%),
        linear-gradient(135deg, #12212c 0%, #0d1922 100%);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
}

.cta-band h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.cta-band p {
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 26px;
}

.cta-meta {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13.5px;
}

/* ------------------------------ 内页 ------------------------------ */
.page-hero {
    padding: 58px 0 46px;
    background:
        radial-gradient(720px 340px at 15% 0%, rgba(37, 181, 142, .14), transparent 62%),
        linear-gradient(180deg, #0e1923 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line-soft);
}

.crumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.crumb a {
    color: var(--muted);
}

.crumb a:hover {
    color: var(--teal);
}

.page-hero h1 {
    font-size: 34px;
    margin-bottom: 14px;
}

.page-hero .lead {
    color: var(--muted);
    max-width: 780px;
    font-size: 16px;
}

.article {
    padding: 56px 0 20px;
}

.article-inner {
    max-width: 900px;
    margin: 0 auto;
}

.article h2 {
    font-size: 25px;
    margin: 44px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--teal);
}

.article h2:first-child {
    margin-top: 0;
}

.article h3 {
    font-size: 18.5px;
    margin: 26px 0 8px;
}

.article p {
    margin-bottom: 15px;
    color: #c9d8e2;
}

.article ul,
.article ol {
    margin: 0 0 16px 22px;
    color: #c9d8e2;
}

.article li {
    margin-bottom: 8px;
}

.article strong {
    color: var(--txt-strong);
}

.steps {
    list-style: none;
    margin: 0 0 18px;
    counter-reset: st;
    display: grid;
    gap: 14px;
}

.steps li {
    position: relative;
    counter-increment: st;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 18px 20px 18px 62px;
    margin: 0;
}

.steps li::before {
    content: counter(st);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps li b {
    color: var(--txt-strong);
}

.table-wrap {
    overflow-x: auto;
    margin: 0 0 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 520px;
}

th,
td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    color: #c9d8e2;
}

th {
    background: var(--panel-2);
    color: var(--txt-strong);
    font-weight: 700;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.callout {
    background: var(--teal-soft);
    border: 1px solid rgba(37, 181, 142, .32);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 0 0 18px;
    color: #cfe3dc;
    font-size: 14.8px;
}

.callout b {
    color: var(--teal);
}

.rel-links {
    margin: 46px 0 0;
    padding: 26px 28px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
}

.rel-links h2 {
    font-size: 20px;
    border: 0;
    padding: 0;
    margin: 0 0 14px;
}

.rel-links ul {
    list-style: none;
    margin: 0;
    display: grid;
    gap: 10px;
}

.rel-links li a {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.rel-links li a::before {
    content: "→";
    color: var(--teal);
    flex: 0 0 auto;
}

.rel-links li span {
    color: var(--muted);
    font-size: 13.5px;
}

/* ------------------------------ 页脚 ------------------------------ */
.site-footer {
    background: #0a1119;
    border-top: 1px solid var(--line-soft);
    padding: 46px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand b {
    font-size: 18px;
    color: var(--txt-strong);
}

.footer-col h4 {
    font-size: 14.5px;
    margin-bottom: 12px;
    color: var(--txt-strong);
}

.footer-col ul {
    list-style: none;
    margin: 0;
}

.footer-col li {
    margin-bottom: 9px;
}

.footer-col a {
    color: var(--muted);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--teal);
}

.footer-desc {
    color: var(--muted);
    font-size: 13.8px;
    max-width: 400px;
}

.disclaimer {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.copyright {
    margin-top: 20px;
    color: #6f8494;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: space-between;
}

/* 回到顶部 */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(21, 35, 48, .82);
    color: var(--teal);
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.to-top.is-show {
    display: flex;
}

.to-top:hover {
    border-color: var(--teal);
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-device {
        order: -1;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .entries {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .reviews {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 20px 20px;
        background: #0e1822;
        border-bottom: 1px solid var(--line);
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .nav-mobile-cta {
        display: block;
        margin-top: 10px;
    }

    .nav-mobile-cta a {
        background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
        color: #06231b !important;
        text-align: center;
        font-weight: 700;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15.5px;
    }

    .section {
        padding: 54px 0;
    }

    .hero {
        padding: 44px 0 56px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .section-head h2,
    .cta-band h2 {
        font-size: 24px;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    .article h2 {
        font-size: 21px;
    }

    .cards,
    .entries,
    .reviews {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        border-bottom: 1px solid var(--line-soft);
    }

    .stat:nth-child(2n) {
        border-right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 13px 24px;
        font-size: 15px;
    }
}
