/* 蓝鸢梦想 · 专题页样式 */
.topic-page {
    --topic-ink: #0f172a;
    --topic-muted: #64748b;
    --topic-line: #e5eaf0;
    --topic-soft: #f6f8fb;
    --topic-accent: #0f766e;
    background: #f3f6fa;
    color: var(--topic-ink);
    padding-bottom: 1px;
}

.topic-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(45, 212, 191, .20), transparent 62%),
        radial-gradient(700px 380px at 92% 8%, rgba(59, 130, 246, .18), transparent 64%),
        #0b1424;
    color: #fff;
    padding: 48px 0 62px;
}
.topic-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 85%);
    pointer-events: none;
}
.topic-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}
.topic-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(226, 232, 240, .62);
    font-size: 12px;
    line-height: 1.4;
}
.topic-crumb a { color: rgba(226, 232, 240, .86); text-decoration: none; }
.topic-crumb a:hover { color: #5eead4; }
.topic-crumb em { font-style: normal; color: #fff; }

.topic-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 52px;
    align-items: end;
}
.topic-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #5eead4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}
.topic-kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    background: #5eead4;
}
.topic-hero h1 {
    max-width: 800px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 46px;
    line-height: 1.16;
    font-weight: 850;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.topic-intro {
    max-width: 750px;
    margin: 0 0 22px;
    color: #b8c6d9;
    font-size: 15.5px;
    line-height: 1.9;
}
.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: rgba(226, 232, 240, .66);
    font-size: 12.5px;
}
.topic-meta strong { color: #fff; font-size: 18px; font-weight: 800; }
.topic-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.topic-jump a {
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #dbeafe;
    font-size: 12px;
    text-decoration: none;
    transition: all .2s ease;
}
.topic-jump a:hover { background: #5eead4; border-color: #5eead4; color: #0b1424; }

.topic-overview {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.065);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.topic-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.topic-overview-head em {
    color: #5eead4;
    font-size: 10px;
    font-style: normal;
    letter-spacing: .12em;
}
.topic-overview-list { margin: 0; padding: 0; list-style: none; }
.topic-overview-list li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.10);
}
.topic-overview-num { color: #5eead4; font-size: 11px; font-weight: 800; }
.topic-overview-list a {
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.55;
    text-decoration: none;
}
.topic-overview-list a:hover { color: #5eead4; }
.topic-overview-empty { color: #94a3b8; font-size: 13px; }
.topic-overview-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}
.topic-overview-more span { color: #5eead4; font-size: 18px; }

.topic-body {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 48px));
    margin: -34px auto 0;
    padding-bottom: 64px;
}
.topic-section {
    margin-bottom: 20px;
    padding: 28px 30px;
    border: 1px solid var(--topic-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .045);
}
.topic-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.topic-section-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--topic-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}
.topic-section-head h2 {
    margin: 0;
    color: var(--topic-ink);
    font-size: 26px;
    line-height: 1.3;
    font-weight: 850;
    letter-spacing: -.02em;
}
.topic-section-note, .topic-section-more {
    color: var(--topic-muted);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}
.topic-section-more:hover { color: var(--topic-accent); }

.topic-lead-section { padding: 28px 30px; }
.topic-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 340px;
    gap: 34px;
    align-items: center;
}
.topic-lead-copy {
    margin: 0;
    color: #41516a;
    font-size: 15px;
    line-height: 1.95;
}
.topic-lead-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.topic-lead-stats div {
    padding: 16px 10px;
    border-radius: 14px;
    background: var(--topic-soft);
    text-align: center;
}
.topic-lead-stats strong {
    display: block;
    color: var(--topic-ink);
    font-size: 25px;
    line-height: 1.1;
    font-weight: 850;
}
.topic-lead-stats span {
    display: block;
    margin-top: 6px;
    color: var(--topic-muted);
    font-size: 11px;
}

.topic-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
}
.topic-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9eef4;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.topic-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 30px rgba(15,23,42,.10);
}
.topic-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
}
.topic-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #dbe7f3, #edf2f7);
}
.topic-card-featured .topic-card-media { aspect-ratio: auto; min-height: 280px; height: 100%; }
.topic-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.topic-card-media.is-empty::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15,23,42,.25);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: .1em;
}
.topic-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,.78);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}
.topic-card-copy { padding: 15px 16px 17px; }
.topic-card-copy time {
    color: var(--topic-accent);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .04em;
}
.topic-card-copy h3 {
    margin: 7px 0 8px;
    color: var(--topic-ink);
    font-size: 16.5px;
    line-height: 1.55;
    font-weight: 750;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topic-card-featured .topic-card-copy { display: flex; flex-direction: column; justify-content: center; padding: 22px; }
.topic-card-featured .topic-card-copy h3 { font-size: 22px; line-height: 1.5; -webkit-line-clamp: 4; }
.topic-card-copy p {
    margin: 0;
    color: var(--topic-muted);
    font-size: 12px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-row-list { border-top: 1px solid #edf1f6; }
.topic-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 48px 18px;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #edf1f6;
    color: inherit;
    text-decoration: none;
}
.topic-row:hover .topic-row-main strong { color: var(--topic-accent); }
.topic-row-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 7px;
    border-radius: 8px;
    background: #fff4e8;
    color: #c2410c;
    font-size: 12.5px;
    font-weight: 850;
}
.topic-row-price.is-muted { background: #eef4f3; color: #0f766e; }
.topic-row-main { min-width: 0; }
.topic-row-main strong {
    display: block;
    overflow: hidden;
    color: var(--topic-ink);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color .2s ease;
}
.topic-row-main em {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--topic-muted);
    font-size: 11.5px;
    font-style: normal;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.topic-row time { color: #94a3b8; font-size: 11px; text-align: right; }
.topic-row-arrow { color: #94a3b8; font-size: 16px; text-align: right; }

.topic-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.topic-review {
    display: flex;
    flex-direction: column;
    min-height: 168px;
    padding: 17px 18px;
    border: 1px solid #e9eef4;
    border-radius: 13px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
    transition: all .2s ease;
}
.topic-review:hover { border-color: #b9d8d3; background: #fff; transform: translateY(-2px); }
.topic-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 10px;
    letter-spacing: .06em;
}
.topic-review-top span { color: var(--topic-accent); font-weight: 800; }
.topic-review h3 {
    margin: 10px 0 7px;
    color: var(--topic-ink);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 750;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topic-review p {
    margin: 0 0 12px;
    color: var(--topic-muted);
    font-size: 12px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topic-review-link { margin-top: auto; color: #0f766e; font-size: 11.5px; font-weight: 700; }

.topic-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.topic-guide-step {
    padding: 18px;
    border: 1px solid #e9eef4;
    border-radius: 14px;
    background: #fbfcfe;
}
.topic-guide-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #e8f6f3;
    color: #0f766e;
    font-size: 11px;
    font-weight: 850;
}
.topic-guide-step h3 { margin: 0 0 7px; color: var(--topic-ink); font-size: 15px; font-weight: 800; }
.topic-guide-step p { margin: 0; color: var(--topic-muted); font-size: 12.5px; line-height: 1.8; }
.topic-disclaimer { margin: 18px 0 0; color: #94a3b8; font-size: 11.5px; line-height: 1.7; }

.topic-related-section { margin-bottom: 0; }
.topic-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.topic-related-card {
    display: flex;
    flex-direction: column;
    min-height: 128px;
    padding: 15px;
    border-radius: 12px;
    background: #f6f9f9;
    color: inherit;
    text-decoration: none;
}
.topic-related-card span { color: #0f766e; font-size: 10px; font-weight: 800; }
.topic-related-card strong { margin: 6px 0 10px; color: var(--topic-ink); font-size: 13px; line-height: 1.55; font-weight: 750; }
.topic-related-card em { margin-top: auto; color: #94a3b8; font-size: 11px; font-style: normal; }
.topic-related-card:hover strong { color: #0f766e; }

/* 专题库 */
.topic-archive-hero { padding-bottom: 58px; }
.topic-archive-head { max-width: 900px; }
.topic-archive-head h1 { font-size: 48px; max-width: 850px; }
.topic-archive-head p { max-width: 760px; margin: 0 0 22px; color: #b8c6d9; font-size: 15.5px; line-height: 1.9; }
.topic-group-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.topic-group-nav a {
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #dbeafe;
    font-size: 12px;
    text-decoration: none;
}
.topic-group-nav a em { margin-left: 5px; color: #5eead4; font-style: normal; font-size: 10px; }
.topic-group-nav a:hover { background: #5eead4; border-color: #5eead4; color: #0b1424; }
.topic-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.topic-archive-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    padding: 18px;
    border: 1px solid #e9eef4;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: all .2s ease;
}
.topic-archive-card:hover { transform: translateY(-3px); border-color: #b9d8d3; box-shadow: 0 14px 26px rgba(15,23,42,.07); }
.topic-archive-card-group { color: #0f766e; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.topic-archive-card strong { margin: 8px 0 9px; color: var(--topic-ink); font-size: 17px; line-height: 1.5; font-weight: 800; }
.topic-archive-card p {
    margin: 0 0 14px;
    color: var(--topic-muted);
    font-size: 12px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topic-archive-card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f3f7;
    color: #94a3b8;
    font-size: 10.5px;
}
.topic-archive-card-foot em { margin-left: auto; color: #0f766e; font-style: normal; font-size: 16px; }
.topic-archive-note { color: #94a3b8; font-size: 12px; line-height: 1.8; }
.topic-archive-note p { margin: 0; }

/* 文章页自动回链 */
.article-topics {
    margin: 34px 0 8px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f7fafc;
}
.article-topics-label { margin-bottom: 10px; color: #0f766e; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.article-topics-list { display: flex; flex-wrap: wrap; gap: 8px; }
.article-topics-list a {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid #dce7e5;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}
.article-topics-list a:hover { border-color: #0f766e; color: #0f766e; }

body.dark-mode .topic-page { background: #0b1220; color: #e2e8f0; }
body.dark-mode .topic-section { background: #111a2b; border-color: #223049; box-shadow: none; }
body.dark-mode .topic-section-head h2,
body.dark-mode .topic-card-copy h3,
body.dark-mode .topic-row-main strong,
body.dark-mode .topic-review h3,
body.dark-mode .topic-guide-step h3,
body.dark-mode .topic-related-card strong,
body.dark-mode .topic-archive-card strong { color: #e2e8f0; }
body.dark-mode .topic-lead-copy,
body.dark-mode .topic-card-copy p,
body.dark-mode .topic-review p,
body.dark-mode .topic-guide-step p,
body.dark-mode .topic-archive-card p { color: #94a3b8; }
body.dark-mode .topic-lead-stats div,
body.dark-mode .topic-review,
body.dark-mode .topic-guide-step,
body.dark-mode .topic-related-card,
body.dark-mode .topic-archive-card { background: #162236; border-color: #263650; }
body.dark-mode .topic-row,
body.dark-mode .topic-row-list { border-color: #223049; }
body.dark-mode .topic-row-main em,
body.dark-mode .topic-review-top,
body.dark-mode .topic-row time,
body.dark-mode .topic-row-arrow { color: #7f8da3; }
body.dark-mode .article-topics { background: #111a2b; border-color: #223049; }
body.dark-mode .article-topics-list a { background: #162236; border-color: #2b3d59; color: #cbd5e1; }

@media (max-width: 980px) {
    .topic-hero { padding: 36px 0 50px; }
    .topic-hero-inner { width: min(100% - 32px, 1200px); }
    .topic-hero-grid { grid-template-columns: 1fr; gap: 26px; align-items: start; }
    .topic-hero h1 { font-size: 38px; }
    .topic-overview { max-width: 560px; }
    .topic-body { width: min(100% - 32px, 1200px); }
    .topic-lead-grid { grid-template-columns: 1fr; gap: 20px; }
    .topic-lead-stats { max-width: 440px; }
    .topic-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-card-featured { grid-column: 1 / -1; grid-row: auto; }
    .topic-review-grid { grid-template-columns: 1fr; }
    .topic-guide-grid { grid-template-columns: 1fr; }
    .topic-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-archive-head h1 { font-size: 40px; }
}

@media (max-width: 640px) {
    .topic-hero { padding: 28px 0 42px; }
    .topic-hero-inner { width: calc(100% - 28px); }
    .topic-crumb { margin-bottom: 20px; font-size: 11px; }
    .topic-hero h1 { font-size: 30px; line-height: 1.28; letter-spacing: -.02em; }
    .topic-intro { font-size: 13.5px; line-height: 1.85; }
    .topic-meta { gap: 8px 14px; font-size: 11px; }
    .topic-meta strong { font-size: 15px; }
    .topic-jump { gap: 6px; margin-top: 18px; }
    .topic-jump a { padding: 6px 10px; font-size: 11px; }
    .topic-overview { padding: 15px; border-radius: 14px; }
    .topic-body { width: calc(100% - 20px); margin-top: -22px; padding-bottom: 40px; }
    .topic-section { padding: 20px 16px; border-radius: 14px; margin-bottom: 12px; }
    .topic-section-head { align-items: flex-start; margin-bottom: 16px; }
    .topic-section-head h2 { font-size: 21px; }
    .topic-section-note { padding-top: 3px; font-size: 10.5px; }
    .topic-lead-section { padding: 20px 16px; }
    .topic-lead-copy { font-size: 13.5px; line-height: 1.9; }
    .topic-lead-stats { gap: 7px; }
    .topic-lead-stats div { padding: 12px 5px; }
    .topic-lead-stats strong { font-size: 20px; }
    .topic-card-grid { grid-template-columns: 1fr; gap: 10px; }
    .topic-card-featured { grid-column: span 1; display: flex; }
    .topic-card-featured .topic-card-media { aspect-ratio: 16 / 9; min-height: 0; }
    .topic-card-featured .topic-card-copy { padding: 14px 15px 16px; }
    .topic-card-featured .topic-card-copy h3 { font-size: 18px; }
    .topic-card-copy h3 { font-size: 15.5px; }
    .topic-row { grid-template-columns: 80px minmax(0, 1fr) 16px; gap: 9px; padding: 12px 0; }
    .topic-row time { display: none; }
    .topic-row-price { min-height: 28px; font-size: 11px; }
    .topic-row-main strong { font-size: 13px; }
    .topic-row-main em { font-size: 11px; }
    .topic-review { min-height: 0; padding: 15px; }
    .topic-guide-step { padding: 15px; }
    .topic-related-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .topic-related-card { min-height: 118px; padding: 12px; }
    .topic-related-card strong { font-size: 12px; }
    .topic-archive-head h1 { font-size: 31px; }
    .topic-archive-head p { font-size: 13.5px; }
    .topic-archive-grid { grid-template-columns: 1fr; }
    .topic-archive-card { min-height: 0; padding: 15px; }
    .article-topics { padding: 15px; margin-top: 26px; }
    .article-topics-list a { font-size: 11.5px; }
}
