:root{--ink:#172033;--muted:#778196;--line:#e8ebf1;--accent:#4263eb;--paper:#f7f8fc;--card:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}img{max-width:100%;display:block}.container{width:min(1160px,calc(100% - 40px));margin:auto}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:static;top:auto;z-index:auto}.header-inner{min-height:76px;display:flex;align-items:center;gap:28px}.brand{font-size:24px;font-weight:800;letter-spacing:-.7px;white-space:nowrap}.nav{display:flex;align-items:center;gap:20px;flex:1;flex-wrap:wrap}.nav a{font-size:14px;color:#4c566b}.search{display:flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:#fafbfe}.search input{width:130px;border:0;outline:0;background:transparent;padding:10px 14px}.search button{border:0;background:var(--accent);color:#fff;padding:0 16px;cursor:pointer}
.hero{margin:30px 0 46px;min-height:280px;padding:48px;display:flex;align-items:center;border-radius:24px;background:radial-gradient(circle at 85% 15%,#dbe4ff 0,transparent 32%),linear-gradient(120deg,#edf1ff,#fff 65%);border:1px solid #e4e9ff}.hero h1{font-size:clamp(32px,5vw,52px);line-height:1.2;letter-spacing:-1.5px;margin:12px 0}.hero p{color:var(--muted);margin:0 0 24px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent);font-weight:800}.primary-btn{display:inline-block;background:var(--accent);color:#fff;border-radius:10px;padding:11px 18px;font-weight:700}.primary-btn:hover{color:#fff;opacity:.9}
.section{margin:0 0 60px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.section-heading h2,.page-title h1{margin:4px 0;font-size:30px;letter-spacing:-.7px}.more,.read-more{font-size:13px;color:var(--accent);font-weight:700}.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.article-card,.side-box{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden}.thumb{display:block;aspect-ratio:16/9;background:#edf0f7;overflow:hidden}.thumb img,.list-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.article-card:hover .thumb img{transform:scale(1.04)}.thumb-placeholder{height:100%;display:grid;place-items:center;color:#8b98bb;font-size:12px;letter-spacing:3px;background:linear-gradient(135deg,#e9edfb,#f8f9fd)}.card-body{padding:18px}.meta{font-size:12px;color:var(--muted)}.meta span{padding:0 5px}.card-body h3{font-size:18px;line-height:1.45;margin:9px 0}.card-body p,.list-content p{color:#697489;font-size:14px;margin:0 0 14px}
.page-layout,.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:30px;padding-top:36px;padding-bottom:60px}.page-title{padding:10px 0 24px}.page-title p{color:var(--muted);margin:4px 0}.article-list{display:grid;gap:16px}.list-card{display:flex;gap:20px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:16px}.list-thumb{width:190px;min-width:190px;aspect-ratio:16/10;overflow:hidden;border-radius:10px;background:#edf0f7}.list-content h2{font-size:20px;line-height:1.4;margin:6px 0 8px}.sidebar{padding-top:10px}.side-box{padding:20px;margin-bottom:18px}.side-box h3{font-size:17px;margin:0 0 12px}.side-link{display:block;padding:10px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.5}
.pagination{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:28px 0}.pagination a,.pagination span{padding:8px 12px;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:13px}.pagination span{color:var(--muted)}
.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:20px}.article-detail{min-width:0;background:#fff;border:1px solid var(--line);border-radius:18px;padding:clamp(22px,4vw,48px)}.article-header h1{font-size:clamp(28px,4vw,40px);line-height:1.3;letter-spacing:-.8px;margin:12px 0}.article-meta{font-size:13px;color:var(--muted);margin:14px 0 24px}.article-meta span{margin:0 8px}.detail-cover{width:100%;max-height:440px;object-fit:cover;border-radius:12px;margin:20px 0 28px}.article-content{font-size:17px;line-height:1.95;overflow-wrap:anywhere}.article-content p{margin:0 0 1.25em}.article-content img{height:auto!important;max-width:100%!important;margin:20px auto;border-radius:8px}.article-content h2,.article-content h3{line-height:1.4;margin:1.5em 0 .7em}.article-content blockquote{margin:1.5em 0;padding:12px 18px;border-left:3px solid var(--accent);background:#f5f7ff;color:#59657c}.article-end{text-align:center;color:#a0a8b8;letter-spacing:3px;margin:36px 0}.prev-next{border-top:1px solid var(--line);padding-top:18px;font-size:14px}.prev-next p{margin:8px 0}.prev-next a{color:var(--accent)}
.site-footer{background:#fff;border-top:1px solid var(--line);padding:28px 0;text-align:center;font-size:13px;color:var(--muted)}.site-footer p{margin:4px}.muted{color:var(--muted)}
@media(max-width:900px){.header-inner{flex-wrap:wrap;padding:14px 0;gap:12px}.nav{order:3;width:100%;flex-basis:100%;gap:16px}.search{margin-left:auto}.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-layout,.detail-layout{grid-template-columns:minmax(0,1fr)}.sidebar{padding-top:0}}
@media(max-width:600px){.container{width:calc(100% - 28px)}.brand{font-size:21px}.search input{width:95px}.hero{padding:28px 22px;min-height:240px;margin:20px 0 34px}.article-grid{grid-template-columns:1fr;gap:14px}.card-body{padding:16px}.section-heading h2,.page-title h1{font-size:26px}.page-layout,.detail-layout{padding-top:22px;gap:20px}.list-card{gap:12px;padding:12px}.list-thumb{width:112px;min-width:112px;aspect-ratio:4/3}.list-content h2{font-size:16px;margin:4px 0}.list-content p{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:6px}.article-detail{padding:20px 16px}.article-content{font-size:16px}.nav a{font-size:13px}}


/* Search page */
.search-page{padding-top:34px;padding-bottom:60px}
.search-hero{text-align:center;padding:46px 20px 38px;background:linear-gradient(135deg,#eef2ff,#fff 72%);border:1px solid #e3e8ff;border-radius:22px;margin-bottom:34px}
.search-hero h1{font-size:clamp(30px,4vw,42px);letter-spacing:-1px;margin:8px 0}
.search-hero p{color:var(--muted);margin:0 0 22px}
.search-form-large{display:flex;max-width:650px;margin:0 auto;border:1px solid #dfe4f1;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(37,54,100,.06)}
.search-form-large input{flex:1;min-width:0;padding:16px 18px;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px}
.search-form-large button{border:0;padding:0 28px;background:var(--accent);color:#fff;font-weight:700;cursor:pointer}
.search-hints{font-size:12px;color:var(--muted);margin-top:12px}
.result-tip{font-size:12px;color:var(--muted);padding-bottom:8px}
.list-thumb-empty{display:grid;place-items:center;background:linear-gradient(135deg,#e8edff,#f6f7fc);color:#8b98bb;letter-spacing:2px;font-size:12px}


/* Night mode: toggled by body.dark-mode */
body{transition:background-color .2s,color .2s}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:999px;padding:8px 12px;font-size:13px;cursor:pointer;white-space:nowrap}
body.dark-mode{--ink:#e8ecf5;--muted:#9aa5bb;--line:#30394b;--accent:#8ba2ff;--paper:#111622;--card:#1a2231;background:var(--paper);color:var(--ink)}
body.dark-mode .site-header,body.dark-mode .site-footer,body.dark-mode .article-detail,body.dark-mode .list-card,body.dark-mode .search-form-large,body.dark-mode .pagination a,body.dark-mode .pagination span{background:#1a2231;border-color:var(--line);color:var(--ink)}
body.dark-mode .nav a{color:#c3cadd}
body.dark-mode .search{background:#151c29;border-color:var(--line)}
body.dark-mode .search input{color:var(--ink)}
body.dark-mode .hero,body.dark-mode .search-hero{background:radial-gradient(circle at 85% 15%,#26345c 0,transparent 34%),linear-gradient(120deg,#1b2540,#1a2231 70%);border-color:#303b5c}
body.dark-mode .thumb,body.dark-mode .thumb-placeholder,body.dark-mode .list-thumb-empty{background:#242e42;color:#aebbe0}
body.dark-mode .article-content blockquote{background:#222d42;color:#c3cadd}
body.dark-mode .search-form-large{border-color:var(--line)}
body.dark-mode .search-form-large input{color:var(--ink)}
body.dark-mode .theme-toggle{background:#1a2231;border-color:var(--line);color:var(--ink)}
@media(max-width:600px){.search-page{padding-top:20px}.search-hero{padding:32px 14px 26px}.search-form-large input{padding:13px 12px;font-size:14px}.search-form-large button{padding:0 18px}.result-tip{display:none}}


/* Thumbnail-free article layout */
.article-grid{grid-template-columns:1fr}
.article-card .thumb,.article-card .thumb-placeholder,.list-thumb,.detail-cover{display:none!important}
.article-card{padding:0}
.article-card .card-body{padding:20px 22px}
.article-card .card-body h3{font-size:20px}
.list-card{display:block}
.list-content h2{margin-top:6px}
body.dark-mode .article-card{background:#1a2231;border-color:#30394b}
body.dark-mode .card-body p,body.dark-mode .list-content p{color:#aeb8cc}

/* Robust theme switch */
.theme-toggle{font-family:inherit;line-height:1.3}
body.dark-mode .hero,body.dark-mode .search-hero{color:var(--ink)}





/* 手写在线视频模块：不调用苹果 CMS 视频标签 */
.custom-video-section{margin:0 0 60px;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.custom-video-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;padding:16px 20px;border-radius:13px;background:linear-gradient(110deg,#1256c8,#1687f8);color:#fff}
.custom-video-heading h2{margin:0;color:#fff;font-size:27px;line-height:1.35}
.custom-video-subtitle{margin:4px 0 0;color:#e4f1ff;font-size:13px}
.custom-video-more{flex-shrink:0;color:#fff;font-size:14px;font-weight:700}
.custom-video-more:hover{color:#e4f1ff}
.custom-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.custom-video-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--card);transition:transform .2s,box-shadow .2s}
.custom-video-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(18,86,200,.12)}
.custom-video-cover{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#0b2b67,#147be8 58%,#65c6ff)}
.custom-video-cover img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.custom-video-card:hover .custom-video-cover img{transform:scale(1.04)}
.custom-video-play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:48px;height:48px;padding-left:3px;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.75);border-radius:50%;background:rgba(0,29,84,.58);color:#fff;font-size:17px;box-shadow:0 4px 18px rgba(0,0,0,.18)}
.custom-video-info{padding:13px 15px 15px}
.custom-video-info h3{margin:0 0 10px;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.custom-video-info h3 a:hover{color:var(--accent)}
.custom-video-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px}
.custom-video-meta a{color:var(--accent)}
.custom-video-placeholder{min-height:120px;display:grid;place-items:center}
@media(max-width:900px){.custom-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:600px){.custom-video-section{padding:12px}.custom-video-heading{padding:13px 14px}.custom-video-heading h2{font-size:23px}.custom-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.custom-video-info{padding:10px 11px 12px}.custom-video-info h3{font-size:13px}.custom-video-meta{font-size:11px}}


/* 顶部扩展导航与首页主内容保持同一版心；导航随页面正常滚动 */
.site-header{position:static!important;top:auto!important;z-index:auto!important}
.header-extra-nav{padding-top:1px;padding-bottom:1px}
.header-extra-nav .pretty-nav,
.header-extra-nav .nav-buttons{width:100%;margin-left:0;margin-right:0}
.header-extra-nav .pretty-nav{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.header-extra-nav .pretty-nav a{min-width:0;min-height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.header-extra-nav .pretty-nav .nav-img{flex:0 0 44px;width:44px;height:44px;object-fit:contain;margin:0 auto 9px}
.header-extra-nav .pretty-nav .nav-name{width:100%;margin:0;line-height:1.45;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-extra-nav .nav-buttons{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.header-extra-nav .nav-buttons a{min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:1.4}
@media(max-width:768px){.header-extra-nav .pretty-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.header-extra-nav .pretty-nav a{min-height:90px}.header-extra-nav .pretty-nav .nav-img{flex-basis:36px;width:36px;height:36px;margin-bottom:7px}.header-extra-nav .nav-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.header-extra-nav .pretty-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* 2026-10 compact navigation and article layout */
.pretty-nav{grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;margin:10px 0}
.pretty-nav a{min-height:76px;padding:8px 3px 7px;border-radius:10px}
.pretty-nav .nav-img{width:34px;height:34px;margin-bottom:5px}
.pretty-nav .nav-name{font-weight:800;font-size:13px;line-height:1.25}
.nav-buttons{grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;margin:10px 0}
.nav-buttons a{font-weight:800;padding:10px 3px;font-size:13px}
.section{margin-bottom:22px}.section-heading{margin-bottom:10px}.section-heading h2,.page-title h1{font-size:25px}
.article-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.article-card{border-radius:9px}.article-card .card-body{padding:9px 11px}
.article-card .card-body h3{font-size:15px;line-height:1.4;margin:2px 0 0}
.article-card .meta{font-size:11px;line-height:1.3}
.page-layout.compact-article-page{display:block;padding-top:12px;padding-bottom:24px}
.compact-article-page .page-title{padding:0 0 10px}
.compact-article-page .page-title p{display:none}
.compact-article-page .article-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.compact-article-page .list-card{display:block;padding:0;border-radius:9px;min-width:0}
.compact-article-page .list-content{padding:10px}
.compact-article-page .list-content h2{font-size:15px;line-height:1.4;margin:0 0 5px}
.compact-article-page .list-content p{font-size:12px;line-height:1.45;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.compact-article-page .pagination{margin-top:14px}
@media(max-width:768px){.pretty-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.pretty-nav a{min-height:70px}.pretty-nav .nav-img{width:32px;height:32px}.pretty-nav .nav-name{font-size:12px;font-weight:800}.nav-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.nav-buttons a{font-size:12px;font-weight:800;padding:10px 2px}.article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.article-card .card-body{padding:8px}.article-card .card-body h3{font-size:14px}.compact-article-page .article-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.compact-article-page .list-content{padding:8px}.compact-article-page .list-content h2{font-size:14px}.compact-article-page .list-content p{font-size:11px}}
@media(max-width:360px){.pretty-nav .nav-name{font-size:11px}.nav-buttons a{font-size:11px}}


/* 修正：顶部图标导航与纯文字导航，桌面10列、手机3列 */
.header-extra-nav .pretty-nav,
.header-extra-nav .nav-buttons {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  align-items: stretch;
}
.header-extra-nav .pretty-nav a,
.header-extra-nav .nav-buttons a {
  min-width: 0 !important;
  box-sizing: border-box;
  font-weight: 800 !important;
  text-align: center;
}
.header-extra-nav .pretty-nav .nav-name {
  font-weight: 800 !important;
}
@media (max-width: 768px) {
  .header-extra-nav .pretty-nav,
  .header-extra-nav .nav-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .header-extra-nav .pretty-nav a {
    min-height: 72px !important;
    padding: 8px 2px !important;
  }
  .header-extra-nav .pretty-nav .nav-img {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 5px !important;
  }
  .header-extra-nav .pretty-nav .nav-name {
    font-size: 12px !important;
    font-weight: 800 !important;
  }
  .header-extra-nav .nav-buttons a {
    padding: 10px 3px !important;
    font-size: 12px !important;
    white-space: normal !important;
    line-height: 1.35;
  }
}
@media (max-width: 360px) {
  .header-extra-nav .pretty-nav,
  .header-extra-nav .nav-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}


/* 文章首页与分类页视觉重构：紧凑、清晰、卡片式 */
.section .article-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;align-items:stretch;margin-top:12px
}
.section .article-card{
  position:relative;display:flex;min-width:0;overflow:hidden;
  background:var(--card);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 3px 12px rgba(24,39,75,.045);padding:0!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}
.section .article-card:before{
  content:"";display:block;position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,#4263eb,#8b5cf6)
}
.section .article-card:hover{transform:translateY(-2px);border-color:#c8d2ff;box-shadow:0 8px 20px rgba(45,75,170,.10)}
.section .article-card .card-body{width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:13px 13px 12px 16px!important;min-width:0}
.section .article-card .meta{display:inline-flex;align-items:center;gap:5px;margin:0 0 6px;color:var(--accent);font-size:11px;font-weight:700;line-height:1.4}
.section .article-card .card-body h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:100%;font-size:15px;line-height:1.55;font-weight:750;margin:0 0 9px;overflow-wrap:anywhere}
.section .article-card .card-body h3 a{color:var(--ink)}
.section .article-card .card-body h3 a:hover{color:var(--accent)}
.section .article-card .read-more{margin-top:auto;color:var(--accent);font-size:12px;font-weight:700;line-height:1.4}
.compact-article-page .page-title{margin-bottom:12px;padding:0 0 12px!important;border-bottom:1px solid var(--line)}
.compact-article-page .page-title .eyebrow{display:inline-block;color:var(--accent);font-size:12px;font-weight:750;letter-spacing:.3px;margin-bottom:3px}
.compact-article-page .page-title h1{margin:0;font-size:27px;line-height:1.35;font-weight:800}
.compact-article-page .article-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:stretch}
.compact-article-page .list-card{position:relative;display:flex!important;min-width:0;overflow:hidden;padding:0!important;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 12px rgba(24,39,75,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.compact-article-page .list-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#4263eb,#8b5cf6)}
.compact-article-page .list-card:hover{transform:translateY(-2px);border-color:#c8d2ff;box-shadow:0 8px 20px rgba(45,75,170,.10)}
.compact-article-page .list-content{width:100%;display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:14px 13px 13px 16px!important}
.compact-article-page .list-content h2{font-size:15px!important;line-height:1.55!important;font-weight:750;margin:0 0 7px!important;overflow-wrap:anywhere}
.compact-article-page .list-content h2 a{color:var(--ink)}
.compact-article-page .list-content h2 a:hover{color:var(--accent)}
.compact-article-page .list-content p{font-size:12px!important;line-height:1.6!important;color:var(--muted);margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.compact-article-page .pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:20px 0 8px}
.compact-article-page .pagination a,.compact-article-page .pagination span{border:1px solid var(--line);border-radius:8px;background:var(--card);padding:7px 12px;font-size:13px}
.compact-article-page .pagination a:hover{border-color:var(--accent);color:var(--accent)}
body.dark-mode .section .article-card,body.dark-mode .compact-article-page .list-card{background:var(--card);border-color:var(--line);box-shadow:0 3px 12px rgba(0,0,0,.12)}
body.dark-mode .section .article-card:hover,body.dark-mode .compact-article-page .list-card:hover{border-color:#586da9}
@media(max-width:768px){
 .section .article-grid,.compact-article-page .article-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .section .article-card .card-body{padding:11px 9px 10px 12px!important}
 .section .article-card .card-body h3,.compact-article-page .list-content h2{font-size:13px!important;line-height:1.5!important}
 .section .article-card .meta{font-size:10px}
 .section .article-card .read-more{font-size:11px}
 .compact-article-page .list-content{padding:11px 9px 10px 12px!important}
 .compact-article-page .list-content p{font-size:11px!important;line-height:1.5!important}
 .compact-article-page .page-title h1{font-size:23px}
}
@media(max-width:360px){.section .article-grid,.compact-article-page .article-list{gap:7px!important}.section .article-card .card-body h3,.compact-article-page .list-content h2{font-size:12px!important}}


/* Fresh article redesign: homepage and article category */
.redesigned-article-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.redesigned-article-card{position:relative;min-width:0;border:1px solid #e6eaf2;border-radius:14px;background:linear-gradient(145deg,#fff 0%,#fbfcff 100%);box-shadow:0 5px 18px rgba(26,43,84,.045);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;overflow:hidden}
.redesigned-article-card:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:0 4px 4px 0;background:linear-gradient(180deg,#5878f5,#9bafff)}
.redesigned-article-card:hover{transform:translateY(-3px);border-color:#cbd5ff;box-shadow:0 10px 26px rgba(45,70,150,.09)}
.redesigned-article-card .card-body{padding:17px 17px 15px 21px;display:flex;flex-direction:column;height:100%;min-height:205px}
.article-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.article-category{display:inline-flex;align-items:center;max-width:75%;padding:4px 9px;border-radius:6px;background:#eef2ff;color:#4c63c9;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.article-mark{color:#a4adbf;font-size:10px;letter-spacing:1px;font-weight:700}
.redesigned-article-card .card-body h3{font-size:17px;line-height:1.55;margin:0 0 8px;font-weight:750;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3.1em}
.article-summary{color:#737e92;font-size:13px;line-height:1.75;margin:0 0 13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:3.5em}
.article-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px;border-top:1px solid #edf0f6}
.article-bottom-label{font-size:11px;color:#a0a9bb;letter-spacing:.4px}
.redesigned-article-card .read-more,.redesigned-list-card .read-more{font-size:12px;white-space:nowrap}
.redesigned-type-heading{position:relative;padding:24px 25px 20px;margin:0 0 20px;border-radius:16px;background:linear-gradient(120deg,#eef2ff,#fff 75%);border:1px solid #e4e9ff}
.redesigned-type-heading h1{margin:7px 0 5px;font-size:30px;line-height:1.3}
.redesigned-type-heading p{font-size:13px;line-height:1.7;max-width:760px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.type-heading-line{display:flex;align-items:center;gap:9px;margin-top:13px;color:#8b95aa;font-size:11px}
.type-heading-line span{width:25px;height:3px;border-radius:3px;background:#5878f5}
.redesigned-type-list{gap:12px}
.redesigned-list-card{position:relative;display:flex;gap:15px;align-items:stretch;padding:16px 18px;background:linear-gradient(120deg,#fff,#fcfcff);border:1px solid #e7eaf2;border-radius:13px;box-shadow:0 3px 12px rgba(26,43,84,.035);transition:border-color .2s ease,transform .2s ease;min-width:0}
.redesigned-list-card:hover{border-color:#cbd5ff;transform:translateY(-2px)}
.list-index{width:34px;min-width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eef2ff;color:#5269d1;font-size:13px;font-weight:800}
.redesigned-list-card .list-content{flex:1;min-width:0}
.redesigned-list-card .article-card-top{margin-bottom:7px}
.redesigned-list-card .list-content h2{font-size:18px;line-height:1.5;margin:0 0 7px;font-weight:750;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.redesigned-list-card .article-summary{margin-bottom:8px;min-height:0}
.redesigned-list-card .article-card-bottom{padding-top:8px}
body.dark-mode .redesigned-article-card,body.dark-mode .redesigned-list-card{background:linear-gradient(145deg,#1a2231,#171e2b);border-color:#30394b}
body.dark-mode .redesigned-article-card:before{background:linear-gradient(180deg,#8ba2ff,#647de8)}
body.dark-mode .article-category,body.dark-mode .list-index{background:#293454;color:#b8c5ff}
body.dark-mode .article-summary{color:#aeb8cc}
body.dark-mode .article-card-bottom{border-color:#30394b}
body.dark-mode .redesigned-type-heading{background:linear-gradient(120deg,#202a43,#1a2231 75%);border-color:#30394b}
@media(max-width:900px){.redesigned-article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.redesigned-article-card .card-body{min-height:200px}}
@media(max-width:600px){.redesigned-article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.redesigned-article-card .card-body{padding:13px 11px 12px 14px;min-height:0}.redesigned-article-card:before{top:14px;bottom:14px;width:2px}.article-card-top{margin-bottom:7px}.article-category{font-size:10px;padding:3px 6px}.article-mark{font-size:9px}.redesigned-article-card .card-body h3{font-size:14px;line-height:1.5;margin-bottom:6px;min-height:3em}.article-summary{font-size:11px;line-height:1.65;margin-bottom:8px;min-height:3.3em}.article-card-bottom{padding-top:7px}.article-bottom-label{font-size:10px}.redesigned-article-card .read-more,.redesigned-list-card .read-more{font-size:11px}.redesigned-type-heading{padding:18px 15px 15px;margin-bottom:14px}.redesigned-type-heading h1{font-size:24px}.redesigned-type-heading p{font-size:12px}.redesigned-list-card{gap:10px;padding:12px;border-radius:11px}.list-index{width:27px;min-width:27px;height:27px;border-radius:8px;font-size:11px}.redesigned-list-card .list-content h2{font-size:15px;line-height:1.45}.redesigned-list-card .article-summary{font-size:12px;line-height:1.65;min-height:0}.redesigned-list-card .article-card-bottom{padding-top:7px}}


/* 首页视频区：标题最多两行，紧凑布局，减少多余留白 */
.custom-video-section{margin:0 0 24px!important;padding:14px!important;border-radius:14px!important}
.custom-video-heading{margin-bottom:12px!important;padding:11px 15px!important;border-radius:10px!important}
.custom-video-heading h2{font-size:22px!important;line-height:1.3!important}
.custom-video-subtitle{margin-top:2px!important;font-size:12px!important;line-height:1.35!important}
.custom-video-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important}
.custom-video-card{border-radius:10px!important}
.custom-video-cover{aspect-ratio:16/9!important}
.custom-video-info{padding:8px 9px 9px!important}
.custom-video-info h3{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.4!important;min-height:2.8em!important;max-height:2.8em!important;margin:0 0 6px!important;font-size:13px!important}
.custom-video-meta{gap:4px 6px!important;font-size:11px!important;line-height:1.35!important}
.custom-video-play{width:36px!important;height:36px!important;font-size:15px!important}
.custom-video-placeholder{min-height:0!important;aspect-ratio:16/9!important}
@media(max-width:1100px){.custom-video-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}}
@media(max-width:700px){.custom-video-section{padding:9px!important;margin-bottom:18px!important}.custom-video-heading{padding:9px 10px!important;margin-bottom:9px!important}.custom-video-heading h2{font-size:19px!important}.custom-video-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.custom-video-info{padding:6px 7px 7px!important}.custom-video-info h3{font-size:11px!important;line-height:1.35!important;min-height:2.7em!important;max-height:2.7em!important;margin-bottom:4px!important}.custom-video-meta{font-size:10px!important;gap:3px!important}.custom-video-play{width:30px!important;height:30px!important;font-size:13px!important}}

/* Whole novel cards are clickable links */
.redesigned-article-card{display:block;color:inherit;text-decoration:none!important;cursor:pointer}
.redesigned-article-card:visited,.redesigned-article-card:hover,.redesigned-article-card:focus{color:inherit;text-decoration:none!important}
.redesigned-article-card .card-body h3{color:var(--text,#20283a)}
.redesigned-list-card{display:flex;color:inherit;text-decoration:none!important;cursor:pointer}
.redesigned-list-card:visited,.redesigned-list-card:hover,.redesigned-list-card:focus{color:inherit;text-decoration:none!important}
.redesigned-list-card .list-content h2{color:var(--text,#20283a)}
.redesigned-article-card .read-more,.redesigned-list-card .read-more{color:var(--zy-hover,#5878f5);font-weight:700}


/* 独立重构：首页在线视频区，与小说文章卡片样式完全隔离 */
.custom-video-section{
  clear:both; isolation:isolate; display:block; width:100%; margin:24px 0 30px!important;
  padding:16px!important; border:1px solid var(--line); border-radius:16px;
  background:var(--card); box-shadow:0 5px 20px rgba(23,32,51,.045);
}
.custom-video-section *{box-sizing:border-box}
.custom-video-section .custom-video-heading{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:0 0 14px!important; padding:13px 16px!important; border-radius:11px;
  background:linear-gradient(115deg,#1649a8,#2187e9); color:#fff;
}
.custom-video-section .custom-video-heading h2{margin:0!important;color:#fff;font-size:22px;line-height:1.35;font-weight:800}
.custom-video-section .custom-video-subtitle{margin:3px 0 0!important;color:#e8f3ff;font-size:12px;line-height:1.4}
.custom-video-section .custom-video-more{color:#fff;font-size:13px;font-weight:800;white-space:nowrap;text-decoration:none}
.custom-video-section .custom-video-grid{
  display:grid!important; grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:12px!important; align-items:stretch; width:100%; margin:0!important;
}
.custom-video-section .custom-video-card{
  display:flex; flex-direction:column; min-width:0; overflow:hidden; padding:0!important;
  border:1px solid var(--line); border-radius:10px; background:var(--card);
  box-shadow:0 2px 8px rgba(23,32,51,.035); transition:transform .18s ease,box-shadow .18s ease;
}
.custom-video-section .custom-video-card:hover{transform:translateY(-2px);box-shadow:0 7px 17px rgba(23,32,51,.11)}
.custom-video-section .custom-video-cover{position:relative;display:block;width:100%;aspect-ratio:16/10;min-height:0;overflow:hidden;background:#e8edf5}
.custom-video-section .custom-video-cover img{display:block;width:100%;height:100%;object-fit:cover}
.custom-video-section .custom-video-play{width:34px;height:34px;font-size:13px}
.custom-video-section .custom-video-info{display:flex;flex:1;flex-direction:column;min-width:0;gap:7px;padding:9px!important}
.custom-video-section .custom-video-info h3{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  min-height:0; margin:0!important; font-size:13px; font-weight:750; line-height:1.45; overflow-wrap:anywhere;
}
.custom-video-section .custom-video-info h3 a{display:block;color:var(--ink);text-decoration:none}
.custom-video-section .custom-video-info h3 a:hover{color:var(--accent)}
.custom-video-section .custom-video-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;margin-top:auto;color:var(--muted);font-size:11px;line-height:1.35}
.custom-video-section .custom-video-meta a{color:var(--accent)}
.custom-video-section .custom-video-placeholder{min-height:0;aspect-ratio:16/10;display:grid;place-items:center}
body.dark-mode .custom-video-section{background:var(--card);border-color:var(--line)}
body.dark-mode .custom-video-section .custom-video-card{background:var(--card);border-color:var(--line)}
body.dark-mode .custom-video-section .custom-video-info h3 a{color:var(--ink)}
@media(max-width:1000px){.custom-video-section .custom-video-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}}
@media(max-width:600px){
  .custom-video-section{margin:18px 0 22px!important;padding:10px!important;border-radius:12px}
  .custom-video-section .custom-video-heading{padding:11px 12px!important;margin-bottom:10px!important}
  .custom-video-section .custom-video-heading h2{font-size:19px}
  .custom-video-section .custom-video-subtitle{font-size:11px}
  .custom-video-section .custom-video-more{font-size:12px}
  .custom-video-section .custom-video-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .custom-video-section .custom-video-card{border-radius:8px}
  .custom-video-section .custom-video-info{padding:7px!important;gap:5px}
  .custom-video-section .custom-video-info h3{font-size:12px;line-height:1.4}
  .custom-video-section .custom-video-meta{font-size:10px;gap:3px}
  .custom-video-section .custom-video-play{width:29px;height:29px;font-size:11px}
}


/* 独立重构：首页在线视频区域，与小说文章卡片完全隔离 */
.home-video-zone,.home-video-zone *{box-sizing:border-box}
.home-video-zone{display:block!important;width:100%;margin:20px 0 28px!important;padding:16px!important;border:1px solid var(--line,#e4e8f0)!important;border-radius:16px!important;background:var(--card,#fff)!important;isolation:isolate}
.home-video-zone .home-video-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 14px!important;padding:14px 18px!important;border-radius:12px!important;background:linear-gradient(110deg,#124fc0,#1688f8)!important;color:#fff!important}
.home-video-zone .home-video-head h2{margin:0!important;padding:0!important;color:#fff!important;font-size:23px!important;line-height:1.35!important;font-weight:800!important}
.home-video-zone .home-video-subtitle{margin:3px 0 0!important;color:#eaf3ff!important;font-size:12px!important;line-height:1.4!important}
.home-video-zone .home-video-more{display:inline-block!important;flex:0 0 auto!important;color:#fff!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important;white-space:nowrap!important}
.home-video-zone .home-video-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;width:100%!important;margin:0!important;padding:0!important}
.home-video-zone .home-video-card{display:flex!important;flex-direction:column!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid var(--line,#e4e8f0)!important;border-radius:10px!important;background:var(--card,#fff)!important;box-shadow:0 2px 8px rgba(20,35,70,.05)!important;transition:transform .18s ease,box-shadow .18s ease!important}
.home-video-zone .home-video-card:hover{transform:translateY(-2px)!important;box-shadow:0 7px 18px rgba(20,35,70,.12)!important}
.home-video-zone .home-video-cover{position:relative!important;display:block!important;width:100%!important;aspect-ratio:16/10!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#e8edf5!important}
.home-video-zone .home-video-cover img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.home-video-zone .home-video-play{position:absolute!important;left:50%!important;top:50%!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;padding-left:2px!important;transform:translate(-50%,-50%)!important;border:1px solid rgba(255,255,255,.8)!important;border-radius:50%!important;background:rgba(0,25,70,.62)!important;color:#fff!important;font-size:13px!important}
.home-video-zone .home-video-info{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;gap:7px!important;min-width:0!important;margin:0!important;padding:9px!important}
.home-video-zone .home-video-info h3{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;margin:0!important;padding:0!important;font-size:13px!important;font-weight:700!important;line-height:1.45!important;overflow-wrap:anywhere!important;min-height:2.9em!important}
.home-video-zone .home-video-info h3 a{color:var(--ink,#20283a)!important;text-decoration:none!important}
.home-video-zone .home-video-meta{display:flex!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:4px!important;margin-top:auto!important;color:var(--muted,#788398)!important;font-size:10px!important;line-height:1.35!important}
.home-video-zone .home-video-meta a{color:var(--accent,#2468d8)!important;text-decoration:none!important}
.home-video-zone .home-video-placeholder{display:grid!important;place-items:center!important;aspect-ratio:16/10!important;min-height:0!important;color:#fff!important}
body.dark-mode .home-video-zone{background:var(--card,#1a2231)!important;border-color:var(--line,#30394b)!important}
body.dark-mode .home-video-zone .home-video-card{background:var(--card,#1a2231)!important;border-color:var(--line,#30394b)!important}
body.dark-mode .home-video-zone .home-video-info h3 a{color:var(--ink,#e9edf5)!important}
@media(max-width:1100px){.home-video-zone .home-video-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}}
@media(max-width:700px){.home-video-zone{margin:14px 0 20px!important;padding:9px!important;border-radius:11px!important}.home-video-zone .home-video-head{padding:10px 11px!important;margin-bottom:9px!important;border-radius:9px!important}.home-video-zone .home-video-head h2{font-size:19px!important}.home-video-zone .home-video-subtitle{font-size:11px!important}.home-video-zone .home-video-more{font-size:11px!important}.home-video-zone .home-video-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.home-video-zone .home-video-card{border-radius:8px!important}.home-video-zone .home-video-info{padding:6px!important;gap:4px!important}.home-video-zone .home-video-info h3{font-size:11px!important;line-height:1.4!important;min-height:2.8em!important}.home-video-zone .home-video-meta{font-size:9px!important;gap:3px!important}.home-video-zone .home-video-play{width:27px!important;height:27px!important;font-size:10px!important}}


/* 首页小说卡片样式仅作用于小说区；与 #fresh-video-block 视频区隔离 */
.home-article-zone .redesigned-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-article-zone .redesigned-article-card{display:block;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);text-decoration:none}
.home-article-zone .redesigned-article-card .card-body{padding:15px 16px}
.home-article-zone .redesigned-article-card .article-card-top,.home-article-zone .redesigned-article-card .article-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.home-article-zone .redesigned-article-card h3{margin:10px 0 8px;font-size:17px;line-height:1.45}
.home-article-zone .redesigned-article-card .article-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.6}
@media(max-width:700px){.home-article-zone .redesigned-article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.home-article-zone .redesigned-article-card .card-body{padding:10px}.home-article-zone .redesigned-article-card h3{font-size:14px}.home-article-zone .redesigned-article-card .article-summary{font-size:11px}}


/* 2026-10-27：文章分类页与详情页优化 */
.redesigned-type-heading{overflow:hidden;position:relative;padding:27px 28px 22px;background:radial-gradient(ellipse at 92% 0%,rgba(99,132,255,.13),transparent 42%),linear-gradient(125deg,#f1f4ff 0%,#fff 68%,#f8faff 100%);border:1px solid #e1e7fb;box-shadow:0 8px 26px rgba(40,62,120,.055)}
.redesigned-type-heading:after{content:"";position:absolute;right:-30px;bottom:-48px;width:150px;height:150px;border:1px solid rgba(91,119,231,.12);border-radius:50%;box-shadow:0 0 0 16px rgba(91,119,231,.035),0 0 0 34px rgba(91,119,231,.025);pointer-events:none}
.redesigned-type-heading .type-collection-kicker{display:inline-flex;align-items:center;gap:8px;color:#5874d8;font-size:11px;font-weight:850;letter-spacing:2px}
.redesigned-type-heading .type-collection-kicker:before{content:"";width:20px;height:2px;border-radius:2px;background:currentColor}
.redesigned-type-heading h1{position:relative;z-index:1;font-size:clamp(27px,3vw,34px);letter-spacing:.02em;font-weight:850;color:var(--ink)}
.redesigned-type-heading .type-heading-line{position:relative;z-index:1;gap:10px;margin-top:15px}
.redesigned-type-heading .type-heading-line>span:first-child{width:26px;height:3px;background:linear-gradient(90deg,#5377f5,#8ca3ff)}
.redesigned-type-heading .type-heading-line small{font-size:12px;letter-spacing:.04em}
.redesigned-type-heading .type-heading-rule{height:1px;flex:1;background:linear-gradient(90deg,#e0e6f8,transparent)}
.redesigned-list-card{gap:0;padding:18px 21px;border-radius:14px;box-shadow:0 4px 16px rgba(30,48,90,.035)}
.redesigned-list-card .list-content h2{font-size:18px;letter-spacing:.005em}
.redesigned-list-card .list-content h2 a{color:inherit;text-decoration:none}
.redesigned-list-card .list-content h2 a:hover{color:var(--accent)}
.article-detail-layout{display:block;max-width:1000px;padding-top:28px}
.article-detail-layout>.article-detail{width:100%;box-sizing:border-box}
.article-detail-layout>#fresh-video-block{grid-column:auto;width:100%;margin-top:30px!important}
body.dark-mode .redesigned-type-heading{background:radial-gradient(ellipse at 92% 0%,rgba(99,132,255,.13),transparent 42%),linear-gradient(125deg,#202a43,#1a2231 75%);border-color:#30394b}
body.dark-mode .redesigned-type-heading h1{color:var(--ink)}
@media(max-width:600px){.redesigned-type-heading{padding:20px 17px 17px}.redesigned-type-heading h1{font-size:25px}.redesigned-type-heading .type-heading-line{margin-top:11px}.redesigned-list-card{padding:14px 13px}.redesigned-list-card .list-content h2{font-size:16px}.article-detail-layout{padding-top:18px}.article-detail-layout>#fresh-video-block{margin-top:22px!important}}
