@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    background: #F6FAFF;
    color: #0D1B2A;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, button, textarea, select {
    font: inherit;
}

ul, ol { list-style: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* 布局 */
.min-h-screen { min-height: 100dvh; background: #F6FAFF; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.min-h-dvh { min-height: 100dvh; }
.flex-1 { flex: 1 1 0%; }
.w-full { width: 100%; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Header */
header {
    padding: 16px 0;
}
@media (min-width: 768px) {
    header { padding: 24px 0; }
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .header-inner { padding: 0 56px; }
}
.logo-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
}
.logo-img-wrap {
    position: relative;
    width: 48px;
    height: 48px;
}
.logo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-weight: 700;
    color: #0D1B2A;
    font-size: 20px;
    line-height: 1.2;
}
.logo-title span { color: #1677FF; }
.logo-subtitle {
    color: #64748B;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
}
/* 模板实际使用的 logo 类名（.logo/.logo-img/.logo-name/.logo-sub）与上面的 .logo-btn 系列对齐，
   否则 logo 图和站点名会竖排堆叠、没有尺寸约束 */
.site-header {
    padding: 16px 0;
    /* 首页 main 是 flex:1 + justify-content:center，窗口很矮时里面的内容会向上溢出盖住头部，
       这里把头部抬到其上，logo 永远可见 */
    position: relative;
    z-index: 5;
}
@media (min-width: 768px) {
    .site-header { padding: 24px 0; }
}
a.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
}
a.logo .logo-img {
    display: block;
    flex: none;
    /* 整张横幅 Logo（250×80，约 3.125:1）：固定高度、宽度按比例自适应 */
    height: 65px;
    width: auto;
    object-fit: contain;
    /* 云朵 logo 是透明底插画，浅底上给一点柔和投影才有分量 */
    filter: drop-shadow(0 2px 5px rgba(22, 119, 255, .18));
}
a.logo .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}
a.logo .logo-name {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 700;
    color: #0D1B2A;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -.2px;
    white-space: nowrap;
}
a.logo .logo-brand {
    color: #1677FF;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.15;
}
a.logo .logo-sub {
    color: #64748B;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .5px;
}
/* 仅搜索引擎可见的 SEO 文本：视觉上完全隐藏，但保留在 DOM 里供爬虫读取 */
.seo-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    color: transparent;
}
a.logo:hover .logo-name { color: #1677FF; }
a.logo:hover .logo-img { filter: drop-shadow(0 3px 8px rgba(22, 119, 255, .3)); }
@media (max-width: 767px) {
    a.logo { gap: 9px; }
    a.logo .logo-img { height: 65px; width: auto; }
    a.logo .logo-name { font-size: 17px; }
    a.logo .logo-brand { font-size: 17px; }
    a.logo .logo-sub { font-size: 11px; }
}

/* Main 首页 */
main.home-main {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}
@media (min-width: 768px) {
    main.home-main { padding: 28px 16px; margin-top: -24px; }
}
.hero-wrap {
    margin-bottom: 20px;
    width: 100%;
    max-width: 768px;
    text-align: center;
}
@media (min-width: 768px) {
    .hero-wrap { margin-bottom: 28px; }
}
.hero-img-wrap {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}
@media (min-width: 768px) {
    .hero-img-wrap { margin-bottom: 16px; }
}
.hero-img-inner {
    position: relative;
    height: 96px;
    width: 144px;
}
@media (min-width: 640px) {
    .hero-img-inner { height: 112px; width: 176px; }
}
@media (min-width: 768px) {
    .hero-img-inner { height: 128px; width: 208px; }
}
.hero-img-inner img {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    object-fit: contain;
}
h1.hero-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #0D1B2A;
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    h1.hero-title { font-size: 48px; margin-bottom: 16px; }
}
.hero-desc {
    margin: 0 auto;
    max-width: 672px;
    font-size: 14px;
    line-height: 1.7;
    color: #64748B;
}
@media (min-width: 768px) {
    .hero-desc { font-size: 16px; }
}

/* 搜索框 */
.search-wrap {
    margin-bottom: 20px;
    width: 100%;
    max-width: 672px;
}
@media (min-width: 768px) {
    .search-wrap { margin-bottom: 28px; }
}
.search-form { width: 100%; }
.search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid #E6EEF8;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: all 0.2s;
    min-height: 56px;
}
@media (min-width: 768px) {
    .search-box { height: 64px; }
}
.search-box:focus-within {
    border-color: #1677FF;
    box-shadow: 0 4px 12px 0 rgba(22,119,255,0.12);
}
.search-icon-left {
    padding-left: 16px;
    color: #94A3B8;
    display: flex;
    align-items: center;
}
@media (min-width: 768px) {
    .search-icon-left { padding-left: 24px; }
}
.search-icon-left svg {
    width: 20px;
    height: 20px;
}
.search-input {
    height: 100%;
    min-width: 0;
    background: transparent;
    color: #0D1B2A;
    outline: none;
    border: none;
    padding: 0 12px;
    font-size: 14px;
}
.search-input::placeholder { color: #94A3B8; }
@media (min-width: 768px) {
    .search-input { padding: 0 24px; font-size: 16px; }
}
.search-submit {
    height: 100%;
    flex-shrink: 0;
    border-radius: 0 32px 32px 0;
    background: #1677FF;
    font-weight: 500;
    color: #fff;
    transition: background 0.2s;
    padding: 0 16px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.search-submit:hover { background: #4096FF; }
.search-submit:active { background: #0958D9; }
@media (min-width: 768px) {
    .search-submit { padding: 0 32px; font-size: 16px; }
}
.search-submit svg { width: 16px; height: 16px; }

/* 快速搜索标签 */
.quick-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.tag-btn {
    border-radius: 9999px;
    border: 1px solid #D6E4FF;
    background: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #1677FF;
    transition: all 0.2s;
}
.tag-btn:hover {
    border-color: #1677FF;
    background: #EAF3FF;
}
@media (min-width: 768px) {
    .tag-btn { font-size: 14px; }
}

/* 热搜榜（数据来自后台「热搜管理」，只展示达到门槛的词） */
.hot-rank {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #E6EEF8;
    background: #fff;
    text-align: left;
}
.hot-rank-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}
.hot-rank-label {
    font-size: 12px;
    font-weight: 700;
    color: #0F172A;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hot-rank-label::before {
    content: "";
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: linear-gradient(180deg, #FF8A4C, #FF4D4F);
}
.hot-rank-hint {
    font-size: 11px;
    color: #94A3B8;
}
.hot-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}
.hot-rank-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 2px;
    font-size: 12px;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.hot-rank-item a:hover {
    background: #F5F9FF;
    color: #1677FF;
}
.hot-rank-no {
    flex: 0 0 auto;
    min-width: 20px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #94A3B8;
}
.hot-rank-no.is-top {
    color: #FF4D4F;
}
.hot-rank-word {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .hot-rank-list { grid-template-columns: 1fr 1fr; column-gap: 20px; }
    .hot-rank-item a { font-size: 13px; }
}

/* 网盘切换 */
.disk-switch-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .disk-switch-wrap { margin-bottom: 28px; }
}
.disk-switch {
    display: inline-flex;
    align-items: center;
    border-radius: 24px;
    border: 1px solid #E6EEF8;
    background: #fff;
    padding: 4px;
}
.disk-btn {
    display: flex;
    align-items: center;
    border-radius: 24px;
    font-weight: 500;
    transition: all 0.2s;
    gap: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: #64748B;
    background: transparent;
}
@media (min-width: 640px) {
    .disk-btn { gap: 8px; padding: 10px 20px; font-size: 14px; }
}
@media (min-width: 768px) {
    .disk-btn { padding: 12px 32px; font-size: 16px; }
}
.disk-btn:hover {
    color: #0D1B2A;
    background: #F6FAFF;
}
.disk-btn.active {
    background: #1677FF;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
/* 网盘图标：对齐原站 pansou-disk-iconfont（夸克/迅雷为字体图标，百度为 mask svg） */
@font-face {
    font-family: pansou-disk-iconfont;
    src: url(../images/pansou-disk-iconfont.ttf) format("truetype");
    font-display: block;
}
.disk-icon {
    color: currentColor;
    -webkit-font-smoothing: antialiased;
    font-size: 1.125rem;
    font-style: normal;
    line-height: 1;
    font-family: pansou-disk-iconfont !important;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    text-align: center;
}
.disk-icon-quark:before { content: "\e506"; }
.disk-icon-xunlei:before { content: "\e610"; }
.disk-icon-baidu {
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
    background-color: currentColor;
    -webkit-mask: url(../images/baidu-netdisk.svg) 50%/contain no-repeat;
    mask: url(../images/baidu-netdisk.svg) 50%/contain no-repeat;
}

/* 快捷入口 */
.quick-links {
    margin-bottom: 28px;
    display: grid;
    width: 100%;
    max-width: 768px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    font-size: 14px;
}
@media (min-width: 768px) {
    .quick-links { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 32px; }
}
.quick-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 0 16px;
    font-weight: 600;
    transition: all 0.2s;
}
.quick-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.quick-link.hot {
    border: 1px solid #F3DFC5;
    background: #FFFCF7;
    color: #A44E00;
}
.quick-link.hot:hover {
    border-color: #D6761D;
    background: #FFF0DE;
}
.quick-link.normal {
    border: 1px solid #D6E4FF;
    background: #fff;
    color: #1677FF;
}
.quick-link.normal:hover {
    border-color: #1677FF;
    background: #EAF3FF;
}

/* 三大特性 */
.features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 896px;
}
@media (min-width: 768px) {
    .features { flex-direction: row; justify-content: center; gap: 64px; }
}
@media (min-width: 1024px) {
    .features { gap: 96px; }
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}
.feature-icon {
    margin-bottom: 12px;
    width: 48px;
    height: 48px;
}
.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0D1B2A;
    margin-bottom: 4px;
}
.feature-item p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
}

/* 下方区块 */
section.seo-section {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 16px 32px;
}
@media (min-width: 768px) {
    section.seo-section { padding: 0 56px 40px; }
}
.seo-top-border {
    border-top: 1px solid #E6EEF8;
    padding-top: 28px;
}
.seo-header {
    margin: 0 auto;
    max-width: 768px;
    text-align: center;
}
.seo-header h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #0D1B2A;
}
@media (min-width: 768px) {
    .seo-header h2 { font-size: 24px; }
}
.seo-header p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 2;
    color: #64748B;
}
@media (min-width: 768px) {
    .seo-header p { font-size: 16px; }
}
.seo-grid {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}
@media (min-width: 768px) {
    .seo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.seo-card {
    display: block;
    border-radius: 8px;
    border: 1px solid #E6EEF8;
    background: #fff;
    padding: 16px;
    text-align: left;
    transition: all 0.2s;
}
.seo-card:hover {
    border-color: #1677FF;
    background: #F8FBFF;
}
.seo-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #0D1B2A;
}
.seo-card p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 20px;
    color: #64748B;
}

/* 专题区块 */
.topic-section {
    margin-top: 28px;
    border-top: 1px solid #E6EEF8;
    padding-top: 24px;
}
.topic-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #0D1B2A;
}
@media (min-width: 768px) {
    .topic-title { font-size: 20px; }
}
.topic-desc {
    margin: 8px auto 0;
    max-width: 768px;
    text-align: center;
    font-size: 14px;
    line-height: 2;
    color: #64748B;
}
.topic-grid {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}
@media (min-width: 768px) {
    .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Footer */
footer {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: #64748B;
    padding: 0 16px 24px;
}
@media (min-width: 768px) {
    footer { font-size: 14px; padding: 0 56px 24px; }
}
footer .disclaimer-text { font-weight: 500; color: #334155; }
footer .agree-text {
    margin-top: 4px;
    font-weight: 600;
    color: #334155;
}
.footer-links {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.footer-links a {
    font-weight: 500;
    color: #1677FF;
}
.footer-links a:hover { color: #0958D9; }
.footer-links .sep { color: #CBD5E1; }
.copyright { margin-top: 4px; }
footer .mail-btn {
    display: inline-flex;
    height: 1em;
    width: 1em;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0;
    vertical-align: -0.125em;
    color: currentColor;
    margin: 0 4px;
    transition: opacity 0.2s;
}
footer .mail-btn:hover { opacity: 0.8; }
footer .mail-btn svg { width: 1em; height: 1em; }

/* 返回首页链接（搜索页） */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1677FF;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}
.back-home:hover { color: #0958D9; }
.back-home svg { width: 16px; height: 16px; }

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748B;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.breadcrumb a { color: #1677FF; }
.breadcrumb a:hover { color: #0958D9; }
.breadcrumb .sep { color: #CBD5E1; }

/* 搜索页标题 */
.search-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #0D1B2A;
    margin-bottom: 16px;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .search-page-title { font-size: 32px; }
}

/* 结果列表 */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
/* 详情页「相关推荐」：响应式网格，按屏幕宽度一行自动排多个
   （手机 1 列 / ≥520px 2 列 / ≥900px 3 列 / ≥1280px 4 列） */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.related-grid .result-card {
    margin: 0;
}
.result-card {
    display: block;
    border-radius: 12px;
    border: 1px solid #E6EEF8;
    background: #fff;
    padding: 20px;
    transition: all 0.2s;
}
.result-card:hover {
    border-color: #1677FF;
    background: #F8FBFF;
    box-shadow: 0 2px 8px rgba(22,119,255,0.08);
}
.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #0D1B2A;
    line-height: 1.5;
    margin-bottom: 8px;
}
.result-card:hover .result-title { color: #1677FF; }
.result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748B;
}
.result-meta .tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.tag-cloud { background: #E8F3FF; color: #1677FF; }
.tag-valid { background: #E6FFFB; color: #00B578; }
.tag-invalid { background: #FFF1F0; color: #FF4D4F; }

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}
@media (min-width: 768px) {
    .container { padding: 0 56px; }
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.page-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #E6EEF8;
    background: #fff;
    color: #0D1B2A;
    font-size: 14px;
    transition: all 0.2s;
}
.page-btn:hover { border-color: #1677FF; color: #1677FF; }
.page-btn.active { background: #1677FF; color: #fff; border-color: #1677FF; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 详情页 */
.detail-card {
    background: #fff;
    border: 1px solid #E6EEF8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #0D1B2A;
    margin-bottom: 12px;
    line-height: 1.4;
}
@media (min-width: 768px) {
    .detail-title { font-size: 28px; }
}
.detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #64748B;
    margin-bottom: 20px;
}
.detail-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
    white-space: pre-line;
    word-break: break-word;
}
.get-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    background: #1677FF;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}
.get-link-btn:hover { background: #4096FF; }
.get-link-btn:active { background: #0958D9; }

/* 弹窗 */
/* 遮罩层：小说口令弹窗等用 hidden 属性控制显隐。
   注意不能直接写 display:flex —— 类选择器优先级高于浏览器默认的 [hidden]{display:none}，
   写了之后 hidden 就失效，弹窗会变成一个跟着页面滚动的普通方块（曾出现的线上 bug）。 */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px 16px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.modal-mask:not([hidden]) { display: flex; }
.modal-mask.show { display: flex; }
@media (max-width: 768px) {
    /* 手机端顶部对齐，避免内容比屏幕高时上下都够不到 */
    .modal-mask { align-items: flex-start; padding: 56px 16px 24px; }
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 32px 24px 24px;
    position: relative;
    animation: modalIn 0.2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #94A3B8;
    font-size: 20px;
    transition: all 0.2s;
}
.modal-close:hover { background: #F1F5F9; color: #0D1B2A; }
.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0D1B2A;
    text-align: center;
    margin-bottom: 20px;
}
.qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.qr-wrap canvas, .qr-wrap img {
    border: 1px solid #E6EEF8;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}
.code-row {
    text-align: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #64748B;
}
.code-value {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-weight: 600;
    color: #0D1B2A;
    font-size: 16px;
    letter-spacing: 1px;
    background: #F6FAFF;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 0 4px;
}
.copy-tip {
    text-align: center;
    font-size: 12px;
    color: #1677FF;
    margin-bottom: 16px;
}
.open-link-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #1677FF;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}
.open-link-btn:hover { background: #4096FF; }

/* 分类页面 */
.category-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}
@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.category-card {
    display: block;
    padding: 20px;
    border: 1px solid #E6EEF8;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: all 0.2s;
}
.category-card:hover {
    border-color: #1677FF;
    background: #F8FBFF;
}
.category-card .icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.category-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0D1B2A;
    margin-bottom: 4px;
}
.category-card p {
    font-size: 12px;
    color: #64748B;
}

/* 日历页 */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.calendar-month {
    font-size: 20px;
    font-weight: 700;
    color: #0D1B2A;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}
.calendar-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    padding: 8px 0;
}
.calendar-day {
    min-height: 80px;
    border: 1px solid #E6EEF8;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    font-size: 13px;
    transition: all 0.2s;
}
.calendar-day:hover { border-color: #1677FF; }
.calendar-day.empty { background: transparent; border: none; }
.calendar-day.today { border-color: #1677FF; background: #F0F7FF; }
.calendar-day .date-num {
    font-weight: 600;
    color: #0D1B2A;
    margin-bottom: 4px;
}
.calendar-day .show-item {
    font-size: 11px;
    color: #1677FF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 4px;
    background: #E8F3FF;
    border-radius: 4px;
    margin-bottom: 2px;
    cursor: pointer;
}
.calendar-day .show-item:hover { background: #D6E4FF; }

/* 剧集详情 */
.episodes-list {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}
.episode-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #E6EEF8;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
}
.episode-item:hover { border-color: #1677FF; background: #F8FBFF; }
.episode-name { font-weight: 500; color: #0D1B2A; font-size: 14px; }
.episode-date { font-size: 12px; color: #64748B; }

/* 小说页 */
.novel-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}
.novel-card {
    display: block;
    padding: 20px;
    border: 1px solid #E6EEF8;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s;
}
.novel-card:hover {
    border-color: #1677FF;
    background: #F8FBFF;
}
.novel-title { font-size: 16px; font-weight: 600; color: #0D1B2A; margin-bottom: 8px; }
.novel-meta { font-size: 12px; color: #64748B; }

/* 移动端适配 */
@media (max-width: 639px) {
    .quick-links { gap: 8px; }
    .quick-link { min-height: 44px; padding: 0 12px; font-size: 13px; }
    /* 移动端三大特性横排一排 */
    .features { flex-direction: row !important; gap: 8px; justify-content: space-between; align-items: flex-start; }
    .feature-item { flex: 1; min-width: 0; max-width: none; }
    .feature-icon { width: 36px; height: 36px; margin-bottom: 8px; }
    .feature-item h4 { font-size: 13px; margin-bottom: 4px; }
    .feature-item p { font-size: 11px; line-height: 1.5; }
    .search-box { min-height: 48px; }
    .search-submit { padding: 0 14px; font-size: 13px; }
    .disk-btn { padding: 8px 10px; font-size: 12px; }
    h1.hero-title { font-size: 24px; }
    .hero-desc { font-size: 13px; }
    .logo-img-wrap { width: 40px; height: 40px; }
    .logo-title { font-size: 18px; }
    .result-card { padding: 16px; }
    .detail-card { padding: 16px; }
    .modal-box { padding: 24px 16px 16px; }
}

/* 搜索结果骨架屏加载动画 —— 仿原站shimmer效果 */
.skeleton { background: linear-gradient(90deg,#f0f4fa 25%,#e8f0fb 37%,#f0f4fa 63%); background-size:400% 100%; animation:skeleton-shimmer 1.4s ease infinite; border-radius:8px; }
@keyframes skeleton-shimmer { 0%{background-position:100% 50%;} 100%{background-position:0 50%;} }
.skeleton-card{background:#fff;border:1px solid #e5ecf6;border-radius:12px;padding:18px;margin-bottom:12px;}
.skeleton-line{height:14px;border-radius:6px;margin-bottom:10px;background:linear-gradient(90deg,#f0f4fa 25%,#e8f0fb 37%,#f0f4fa 63%);background-size:400% 100%;animation:skeleton-shimmer 1.4s ease infinite;}
.skeleton-line.title{height:20px;width:60%;margin-bottom:12px;}
.skeleton-line.short{width:35%;}
.skeleton-line.mid{width:75%;}
.skeleton-btn{height:32px;width:120px;border-radius:16px;margin-top:10px;}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0D1B2A;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748B;
}
.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state p { font-size: 14px; }

/* ============ 原站风格 骨架屏 (shimmer) ============ */
@keyframes kb-pulse{0%,100%{opacity:1}50%{opacity:.5}}
@keyframes kb-shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}
.kb-loading{padding:12px 0;}
.kb-skel-card{background:#fff;border:1px solid #E6EEF8;border-radius:16px;padding:18px 20px;margin-bottom:12px;overflow:hidden;}
.kb-skel-line{height:14px;border-radius:6px;background:#EDF2F7;background:linear-gradient(90deg,#EDF2F7 0%,#F6FAFF 50%,#EDF2F7 100%);background-size:800px 100%;animation:kb-shimmer 1.4s ease-in-out infinite;margin-bottom:10px;}
.kb-skel-line.title{height:18px;width:60%;margin-bottom:12px;}
.kb-skel-line.short{width:35%;height:12px;margin-bottom:8px;}
.kb-skel-tag{display:inline-block;width:60px;height:22px;border-radius:8px;background:#EDF2F7;margin-right:8px;margin-bottom:8px;vertical-align:middle;}
.kb-skel-btn{width:120px;height:36px;border-radius:12px;background:#EDF2F7;background:linear-gradient(90deg,#EDF2F7 0%,#F6FAFF 50%,#EDF2F7 100%);background-size:800px 100%;animation:kb-shimmer 1.4s ease-in-out infinite;}
.kb-load-tip{text-align:center;color:#64748B;font-size:13px;padding:10px 0;}
.kb-spinner{display:inline-block;width:16px;height:16px;border:2px solid #E6EEF8;border-top-color:#1677FF;border-radius:50%;animation:kb-spin .8s linear infinite;vertical-align:-3px;margin-right:8px;}
@keyframes kb-spin{to{transform:rotate(360deg)}}

/* ============ 原站风格 获取资源弹窗 (resource-progress modal) ============ */
.kb-modal-backdrop{position:fixed;inset:0;background:#0D1B2A99;z-index:200;display:none;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(4px);animation:kb-fade .2s ease;}
.kb-modal-backdrop.show{display:flex;}
@keyframes kb-fade{from{opacity:0}to{opacity:1}}
.kb-modal{width:min(440px,100%);max-height:calc(100dvh-32px);background:#fff;border-radius:16px;padding:24px 24px 20px;box-shadow:0 12px 30px rgba(13,27,42,.18);position:relative;overflow-y:auto;animation:kb-pop .22s cubic-bezier(.2,.8,.2,1);}
@keyframes kb-pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.kb-modal-close{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:10px;border:0;background:transparent;color:#94A3B8;cursor:pointer;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;transition:all .15s;}
.kb-modal-close:hover{background:#F6FAFF;color:#0D1B2A;}
.kb-modal-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.kb-modal-brand img{width:36px;height:36px;}
.kb-modal-brand-name{font-weight:700;font-size:15px;color:#0D1B2A;}
.kb-modal-brand-sub{font-size:12px;color:#64748B;margin-top:2px;}
.kb-modal-title{font-size:18px;font-weight:700;color:#0D1B2A;margin:4px 0 6px;line-height:1.4;}
.kb-modal-subtitle{font-size:14px;color:#64748B;margin-bottom:18px;line-height:1.6;}
.kb-step{display:flex;align-items:flex-start;gap:12px;padding:10px 0;}
.kb-step-icon{width:28px;height:28px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;background:#F6FAFF;color:#94A3B8;border:1px solid #E6EEF8;}
.kb-step.done .kb-step-icon{background:#22C55E;color:#fff;border-color:#22C55E;}
.kb-step.active .kb-step-icon{background:#1677FF;color:#fff;border-color:#1677FF;animation:kb-pulse 1.2s ease-in-out infinite;}
.kb-step-text{font-size:14px;color:#0D1B2A;padding-top:4px;}
.kb-step.done .kb-step-text{color:#64748B;}
.kb-step-extra{font-size:12px;color:#94A3B8;margin-top:3px;}
.kb-code-box{margin-top:14px;background:#F6FAFF;border:1px solid #E6EEF8;border-radius:12px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.kb-code-label{font-size:12px;color:#64748B;margin-bottom:4px;}
.kb-code{font-size:22px;font-weight:700;color:#0D1B2A;letter-spacing:3px;font-family:ui-monospace,Menlo,Consolas,monospace;}
.kb-copy-btn{background:#1677FF;color:#fff;border:0;border-radius:10px;padding:8px 16px;font-size:13px;cursor:pointer;font-weight:500;transition:all .15s;white-space:nowrap;}
.kb-copy-btn:hover{background:#4096FF;}
.kb-copy-btn.copied{background:#22C55E;}
.kb-qr-wrap{margin-top:16px;text-align:center;}
.kb-qr-wrap img,#kbQrCanvas{width:200px;height:200px;border-radius:12px;border:1px solid #E6EEF8;background:#fff;padding:8px;box-sizing:border-box;}
.kb-qr-tip{font-size:12px;color:#64748B;margin-top:8px;}
.kb-open-btn{display:block;width:100%;margin-top:14px;background:#FF8A00;color:#fff;border:0;border-radius:12px;padding:12px;font-size:15px;font-weight:600;cursor:pointer;transition:all .15s;text-align:center;text-decoration:none;box-sizing:border-box;}
.kb-open-btn:hover{background:#FF9E2C;}
.kb-err-tip{background:#FFF0F5;border:1px solid #FECACA;color:#7F1D1D;padding:12px;border-radius:10px;font-size:13px;margin-top:10px;}

/* ===== 搜索结果页补充样式（原模板引用但缺失的类） ===== */
.search-bar{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #E6EEF8;border-radius:14px;padding:8px 10px;box-shadow:0 2px 10px rgba(13,27,42,.05);}
.search-bar input[type=text]{flex:1;min-width:0;border:0;outline:0;font-size:15px;color:#0D1B2A;background:transparent;padding:8px 4px;}
.search-bar input[type=text]::placeholder{color:#94A3B8;}
.cloud-sel{border:1px solid #E6EEF8;border-radius:10px;background:#F6F9FD;color:#334155;font-size:13px;padding:8px 10px;outline:0;cursor:pointer;}
.btn-search{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:10px;background:#1677FF;color:#fff;font-size:14px;font-weight:600;padding:10px 18px;cursor:pointer;transition:background .15s;white-space:nowrap;}
.btn-search:hover{background:#3B8DFF;}
.result-stats{font-size:14px;color:#64748B;margin-top:18px;}
.result-desc{font-size:13px;color:#64748B;line-height:1.6;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.meta-item{color:#94A3B8;}
.btn-get{margin-top:12px;border:0;border-radius:10px;background:#FF8A00;color:#fff;font-size:13px;font-weight:600;padding:9px 16px;cursor:pointer;transition:background .15s;}
.btn-get:hover{background:#FF9E2C;}
.pager{display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap;margin:28px 0 8px;}
.pager-link{display:inline-block;min-width:34px;text-align:center;padding:8px 12px;border:1px solid #E6EEF8;border-radius:10px;background:#fff;color:#334155;font-size:14px;text-decoration:none;transition:all .15s;}
.pager-link:hover{border-color:#1677FF;color:#1677FF;}
.pager-link.active{background:#1677FF;border-color:#1677FF;color:#fff;}
@media (max-width:640px){
  .search-bar{flex-wrap:wrap;}
  .search-bar input[type=text]{flex:1 1 100%;order:1;}
  .cloud-sel{order:2;flex:1;}
  .btn-search{order:3;}
}


/* ========== 资源详情页 · 其他网盘可用链接（多链接展示） ========== */
.alt-links {
    margin: 18px 0 0;
    padding: 16px;
    border-radius: 16px;
    background: #F6FAFF;
    border: 1px solid #E6EEF8;
}
.alt-links-title {
    font-size: 14px;
    font-weight: 600;
    color: #0D1B2A;
    margin-bottom: 10px;
}
.alt-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.alt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #E6EEF8;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.alt-link:hover {
    border-color: #1677FF;
    box-shadow: 0 4px 10px rgba(22, 119, 255, .12);
}
.alt-link-cloud {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}
.alt-link-txt { white-space: nowrap; }

/* ========== 资源详情页 · 失效提示条 + 按标题继续搜索（对齐 5005 黄条样式） ========== */
.more-source-tip {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FFFBEB;
    border-left: 4px solid #F59E0B;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #92400E;
}
.more-source-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #F59E0B;
}
.more-source-txt { flex: 0 1 auto; }
.more-source-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .35);
    transition: filter .15s, transform .15s;
    max-width: 100%;
}
.more-source-btn:hover { filter: brightness(1.06); color: #fff; }
.more-source-btn:active { transform: translateY(1px); }
.more-source-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .more-source-tip { padding: 10px 12px; }
    .more-source-btn { padding: 8px 12px; }
}

/* 首页 - 最新更新（位于快捷入口与三大特性之间） */
.latest-panel {
    width: 100%;
    max-width: 896px;
    margin-bottom: 32px;
}
.latest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.latest-head-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}
.latest-title {
    font-size: 19px;
    font-weight: 700;
    color: #0D1B2A;
    line-height: 1.2;
}
.latest-sub {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.4;
}
.latest-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 500;
    color: #1677FF;
    white-space: nowrap;
    flex-shrink: 0;
}
.latest-more:hover { color: #0B5FD9; }
.latest-more-arrow { font-size: 15px; line-height: 1; }
.latest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
@media (min-width: 768px) {
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.latest-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #E6EEF8;
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.latest-card:hover {
    border-color: #1677FF;
    background: #F8FBFF;
    box-shadow: 0 8px 20px rgba(22, 119, 255, .12);
    transform: translateY(-1px);
}
.latest-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #0D1B2A;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-card:hover .latest-name { color: #1677FF; }
.latest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.4;
}
.latest-cloud {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #1677FF;
    background: #E8F3FF;
}
.latest-type {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: #64748B;
    background: #F1F5F9;
}
.latest-bad {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: #FF4D4F;
    background: #FFF1F0;
}
.latest-date { margin-left: auto; color: #B0BAC9; }
@media (max-width: 639px) {
    .latest-panel { margin-bottom: 24px; }
    .latest-head { margin-bottom: 12px; }
    .latest-title { font-size: 17px; }
    .latest-sub { display: none; }
    .latest-card { padding: 12px 14px; border-radius: 12px; }
    .latest-name { font-size: 14px; }
}

/* 首页 - 影视热搜榜（紧跟最新更新，海报走站内 /img/cover/ 同源代理） */
.trending-panel {
    width: 100%;
    max-width: 896px;
    margin-bottom: 32px;
}
.trending-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.trending-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.trending-tabs::-webkit-scrollbar { display: none; }
.trending-tab {
    flex-shrink: 0;
    padding: 5px 12px;
    border: 1px solid #E6EEF8;
    border-radius: 999px;
    background: #fff;
    color: #64748B;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.trending-tab:hover { border-color: #1677FF; color: #1677FF; }
.trending-tab.active {
    border-color: #1677FF;
    background: #1677FF;
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 119, 255, .24);
}
.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    transition: opacity .15s;
}
@media (min-width: 640px) {
    .trending-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 768px) {
    .trending-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.trending-grid.is-loading { opacity: .5; }
/* 空态/加载占位：撑满整行，别让 6 列栅格把一句话挤成一列宽 */
.trending-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 24px 16px;
    border: 1px dashed #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}
.trending-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.trending-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #F1F5F9;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    transition: transform .2s, box-shadow .2s;
}
.trending-card:hover .trending-poster {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(22, 119, 255, .18);
}
.trending-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.trending-poster-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 26px;
    color: #CBD5E1;
}
.trending-rank {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 12px 0 10px 0;
    background: rgba(15, 23, 42, .55);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.trending-rank.is-top { background: linear-gradient(135deg, #FF7A45, #FF4D4F); }
.trending-title {
    font-size: 13px;
    font-weight: 600;
    color: #0D1B2A;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-card:hover .trending-title { color: #1677FF; }
.trending-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #94A3B8;
    line-height: 1.2;
}
.trending-score { color: #F59E0B; font-weight: 600; }
.trending-hot { margin-left: auto; }
@media (max-width: 639px) {
    .trending-panel { margin-bottom: 24px; }
    .trending-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
    .trending-grid { gap: 9px; }
    .trending-poster { border-radius: 10px; }
    .trending-title { font-size: 12.5px; }
}

/* 详情页 meta 里的分类：做成可点链接，回到该分类列表页（与面包屑同一个 category_slug） */
.detail-meta .detail-cat {
    color: #1677FF;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 4px;
    transition: color .15s;
}
.detail-meta .detail-cat:hover {
    color: #0B5FD9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 温馨提示条（搜索结果页搜索框下方 / 详情页面包屑下方，文案后台可改可关） */
.notice-bar {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    margin-bottom: 16px;
    border: 1px solid #FCE7B2;
    border-radius: 12px;
    background: #FEF9EC;
    color: #8A5A00;
    font-size: 13.5px;
    line-height: 1.6;
}
.notice-ico {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    color: #F59E0B;
}
.notice-txt {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.notice-txt b {
    font-weight: 700;
    color: #7A4F00;
}
@media (max-width: 639px) {
    .notice-bar {
        padding: 10px 12px;
        margin-bottom: 12px;
        border-radius: 10px;
        font-size: 13px;
    }
    .notice-ico { width: 15px; height: 15px; }
}

/* 页脚（文案来自后台：免责声明 / 页脚文字 / 版权与备案） */
.site-footer .footer-declare {
    margin: 0 auto 10px;
    max-width: 880px;
    font-size: 12.5px;
    line-height: 1.75;
    color: #94A3B8;
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* 公告（后台 SEO 设置 → 公告） */
.site-footer .footer-announce {
    margin: 0 auto 10px;
    max-width: 880px;
    font-size: 12.5px;
    line-height: 1.75;
    color: #94A3B8;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.site-footer .footer-announce-tag,
.site-footer .footer-links-tag {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(22, 119, 255, .1);
    color: #1677FF;
    font-size: 11.5px;
    font-weight: 600;
    vertical-align: 1px;
}
/* 友情链接（后台 SEO 设置 → 友情链接） */
.site-footer .footer-links {
    margin: 0 auto 10px;
    max-width: 880px;
    font-size: 12.5px;
    line-height: 1.9;
    color: #94A3B8;
}
.site-footer .footer-links a {
    color: #94A3B8;
    text-decoration: none;
    margin-right: 14px;
    overflow-wrap: anywhere;
}
.site-footer .footer-links a:hover { color: #1677FF; }
.site-footer .footer-brand {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    line-height: 1.6;
}
.site-footer .footer-copy {
    margin: 0;
    color: #94A3B8;
    line-height: 1.6;
}
@media (max-width: 639px) {
    .site-footer .footer-declare { font-size: 12px; line-height: 1.7; margin-bottom: 8px; }
    .site-footer .footer-brand { font-size: 12.5px; }
}
