/* 天下书楼 - 全站样式 */
:root{
  --primary:#0ea56b;
  --primary-dark:#087f52;
  --primary-soft:#e7f7f0;
  --accent:#2f6fed;
  --ink:#182230;
  --text:#334155;
  --muted:#64748b;
  --line:#e5eaf0;
  --bg:#f5f7fa;
  --card:#ffffff;
  --code-bg:#1e293b;
  --code-text:#e2e8f0;
  --radius:12px;
  --shadow:0 10px 30px rgba(15,23,42,.08);
  --header-h:64px;
  --font:"PingFang SC","Microsoft YaHei","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;
  --mono:"JetBrains Mono","Fira Code",Consolas,"Courier New",monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);font-size:15px;line-height:1.75;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--primary)}
img{max-width:100%}
.container{width:min(1200px,calc(100% - 40px));margin:0 auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* 顶部导航 */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}
.header-inner{height:var(--header-h);display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;line-height:1.12;color:var(--ink);white-space:nowrap}
.brand:hover{color:var(--ink)}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--primary),#35c98f);color:#fff;font-family:var(--mono);font-size:15px;font-weight:700;box-shadow:0 6px 14px rgba(14,165,107,.28)}
.brand small{display:block;font-size:11px;font-weight:600;color:var(--muted);letter-spacing:-.017em;line-height:1.1;margin-top:2px}
.topnav{display:flex;align-items:center;gap:4px;margin-left:8px;flex:1}
.topnav a{position:relative;display:inline-block;padding:8px 9px;border-radius:8px;color:#41516a;font-size:13.5px;font-weight:600}
.topnav a:hover,.topnav a.active{background:var(--primary-soft);color:var(--primary-dark)}
.nav-drop{position:relative;display:inline-block}
.nav-drop-menu{display:none;position:absolute;top:calc(100% + 2px);left:0;z-index:60;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 36px rgba(15,40,30,.14);padding:8px;grid-template-columns:repeat(2,minmax(140px,1fr));gap:2px;min-width:300px}
.nav-drop:hover .nav-drop-menu,.nav-drop:focus-within .nav-drop-menu{display:grid}
.nav-drop-menu a{display:block;padding:8px 10px;border-radius:8px;font-size:13px;white-space:nowrap;color:#41516a;font-weight:600}
.nav-drop-menu a:hover{background:var(--primary-soft);color:var(--primary-dark)}
.header-search{display:flex;align-items:center;background:#f1f5f9;border:1px solid transparent;border-radius:999px;padding:4px 4px 4px 14px;width:200px;transition:.2s}
.header-search:focus-within{background:#fff;border-color:var(--primary);box-shadow:0 0 0 3px rgba(14,165,107,.12)}
.header-search input{border:0;outline:0;background:transparent;width:100%;font-size:13px;color:var(--ink)}
.header-search button{border:0;background:var(--primary);color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:14px;line-height:1}
.menu-btn{display:none;border:1px solid var(--line);background:#fff;border-radius:8px;width:40px;height:40px;font-size:20px;line-height:1;cursor:pointer;color:var(--ink)}

/* 移动端导航 */
.mobile-nav{display:none;background:#fff;border-bottom:1px solid var(--line);padding:8px 0 14px}
.mobile-nav a{display:block;padding:10px 6px;color:var(--text);font-weight:600;border-bottom:1px dashed #eef2f7}
.mobile-nav.open{display:block}

/* 首页 Hero */
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#0b3d2e 0%,#0e6b4d 45%,#148f65 100%);color:#fff;padding:64px 0 58px}
.hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:44px 44px;opacity:.7}
.hero:after{content:"";position:absolute;width:520px;height:520px;right:-160px;top:-200px;background:radial-gradient(circle,rgba(63,222,163,.35),transparent 65%);border-radius:50%}
.hero .container{position:relative;z-index:1}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);padding:5px 12px;border-radius:999px;font-size:12px;letter-spacing:.06em}
.hero h1{font-size:42px;line-height:1.25;margin:18px 0 14px;letter-spacing:.01em}
.hero h1 span{color:#8ff0c4}
.hero p{max-width:720px;margin:0;color:rgba(255,255,255,.82);font-size:16px;line-height:1.9}
.hero-stats{display:flex;gap:34px;margin-top:28px;flex-wrap:wrap}
.hero-stats b{display:block;font-size:26px;line-height:1.2}
.hero-stats span{font-size:12px;color:rgba(255,255,255,.66);letter-spacing:.08em}
.hero-quick{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.hero-quick a{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:#fff;padding:7px 13px;border-radius:8px;font-size:13px;font-weight:600}
.hero-quick a:hover{background:rgba(255,255,255,.22);color:#fff}

/* 首页区块 */
.section{padding:46px 0 8px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:20px}
.section-head h2{margin:0;font-size:24px;color:var(--ink);letter-spacing:.02em}
.section-head h2 i{display:inline-block;width:8px;height:22px;border-radius:4px;background:linear-gradient(var(--primary),#54d6a3);margin-right:10px;vertical-align:-3px;font-style:normal}
.section-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.section-more{font-size:13px;font-weight:600;color:var(--primary);white-space:nowrap}

.tutorial-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.tutorial-card{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;transition:.22s;overflow:hidden;display:flex;flex-direction:column;min-height:168px}
.tutorial-card:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--c1,#0ea56b),var(--c2,#64d9a8));opacity:.9}
.tutorial-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d6e2dc}
.card-head{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.card-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-weight:800;font-size:13px;color:#fff;background:linear-gradient(135deg,var(--c1,#0ea56b),var(--c2,#54d6a3));box-shadow:0 6px 14px rgba(15,23,42,.12);flex:none}
.card-head h3{margin:0;font-size:16px;color:var(--ink);line-height:1.3}
.card-head small{display:block;color:var(--muted);font-size:11px;font-weight:500}
.tutorial-card p{margin:0 0 14px;color:var(--muted);font-size:12.5px;line-height:1.7;flex:1}
.card-foot{display:flex;align-items:center;justify-content:flex-end;margin-top:auto;font-size:12px;color:#94a3b8}
.card-foot a{font-weight:700;color:var(--primary);font-size:12.5px}

.home-updates{margin-top:8px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:6px 18px}
.home-updates a{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px dashed #eef2f7;color:var(--text);font-size:13.5px}
.home-updates a:last-child{border-bottom:0}
.home-updates a:hover{color:var(--primary)}
.home-updates .u-class{flex:none;font-size:11px;color:var(--primary-dark);background:var(--primary-soft);border-radius:4px;padding:2px 7px}
.home-updates .u-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-updates .u-arrow{flex:none;width:22px;height:22px;border-radius:50%;background:var(--primary-soft);display:flex;align-items:center;justify-content:center;transition:.2s}
.home-updates .u-arrow:before{content:"";width:6px;height:6px;border-top:1.6px solid var(--primary-dark);border-right:1.6px solid var(--primary-dark);transform:rotate(45deg);margin-left:-2px}
.home-updates a:hover .u-arrow{background:var(--primary)}
.home-updates a:hover .u-arrow:before{border-color:#fff}

/* 布局 */
.layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:26px;padding:26px 0 46px;align-items:start}
.layout-wide{grid-template-columns:minmax(0,1fr)}
.layout>.content:only-child{grid-column:1 / -1}
.sidebar{position:sticky;top:calc(var(--header-h) + 18px);display:flex;flex-direction:column;gap:18px}
.tutorial-nav{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.tutorial-nav-head{padding:18px 18px 14px;background:linear-gradient(160deg,#0e6b4d,#0ea56b);color:#fff}
.tutorial-nav-head .badge{display:inline-block;font-size:10px;letter-spacing:.14em;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);padding:2px 8px;border-radius:999px}
.tutorial-nav-head h2{margin:8px 0 4px;font-size:18px;line-height:1.35}
.tutorial-nav-head p{margin:0;font-size:11.5px;color:rgba(255,255,255,.76)}
.chapter-list{list-style:none;margin:0;padding:8px 0;max-height:calc(100vh - 250px);overflow:auto}
.chapter-list li a{display:flex;gap:9px;padding:9px 16px;color:#41516a;font-size:13px;border-left:3px solid transparent;line-height:1.45}
.chapter-list li a:hover{background:#f7faf8;color:var(--primary-dark)}
.chapter-list li.active a{background:var(--primary-soft);border-left-color:var(--primary);color:var(--primary-dark);font-weight:700}
.chapter-list .idx{flex:none;width:18px;color:#9aa9b8;font-family:var(--mono);font-size:11px;text-align:right}

.content{min-width:0}
.breadcrumb{font-size:12.5px;color:var(--muted);margin-bottom:14px}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--primary)}

/* 列表页 */
.class-hero{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 28px;margin-bottom:18px;position:relative;overflow:hidden}
.class-hero:after{content:"";position:absolute;right:-60px;top:-70px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(14,165,107,.16),transparent 68%)}
.class-hero .kicker{font-size:11px;letter-spacing:.16em;color:var(--primary-dark);font-weight:700}
.class-hero h1{margin:8px 0 8px;font-size:30px;color:var(--ink);line-height:1.3}
.class-hero p{margin:0;color:var(--muted);max-width:760px;font-size:13.5px;line-height:1.8}
.class-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.class-meta span{background:#f1f7f4;border:1px solid #dcefe5;color:#3d6b57;border-radius:999px;padding:3px 11px;font-size:11.5px}
.chapter-cards{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:10px 18px}
.chapter-cards .row{display:flex;align-items:center;gap:14px;padding:13px 4px;border-bottom:1px dashed #eef2f7}
.chapter-cards .row:last-child{border-bottom:0}
.chapter-cards .num{flex:none;width:30px;height:30px;border-radius:9px;background:var(--primary-soft);color:var(--primary-dark);display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:12px;font-weight:700}
.chapter-cards .txt{flex:1;min-width:0}
.chapter-cards .txt h3{margin:0;font-size:14.5px;color:var(--ink);line-height:1.5}
.chapter-cards .txt h3 a{color:var(--ink)}
.chapter-cards .txt h3 a:hover{color:var(--primary)}
.chapter-cards .txt p{margin:2px 0 0;font-size:12px;color:var(--muted);line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chapter-cards .go{flex:none;font-size:12px;color:#9aa9b8}
.chapter-cards .row:hover .go{color:var(--primary)}
.epages{margin:18px 0;color:var(--muted);font-size:12.5px}
.epages a{color:var(--primary-dark)}
.epages b{color:var(--primary)}

/* 文章页 */
.article{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:32px 38px 30px}
.article h1{margin:0 0 10px;font-size:31px;line-height:1.35;color:var(--ink);letter-spacing:.01em}
.article-meta{display:flex;flex-wrap:wrap;gap:16px;color:#94a3b8;font-size:12px;padding-bottom:18px;border-bottom:1px solid #eef2f7;margin-bottom:24px}
.article-body{font-size:15.5px;line-height:1.95;color:#334155}
.article-body p{margin:0 0 16px}
.article-body .lead{font-size:16.5px;color:#41516a;background:#f8fbf9;border-left:3px solid var(--primary);padding:12px 16px;border-radius:0 8px 8px 0}
.article-body h2{font-size:21px;color:var(--ink);margin:32px 0 14px;padding-left:12px;border-left:4px solid var(--primary);line-height:1.4}
.article-body h3{font-size:17px;color:var(--ink);margin:24px 0 10px}
.article-body ul,.article-body ol{padding-left:24px;margin:0 0 18px}
.article-body li{margin:6px 0}
.article-body strong{color:var(--ink)}
.article-body blockquote{margin:18px 0;padding:12px 18px;background:#f8fafc;border-left:4px solid #cbd5e1;color:#475569;border-radius:0 8px 8px 0}
.article-body table{width:100%;border-collapse:collapse;margin:18px 0;font-size:13.5px}
.article-body th,.article-body td{border:1px solid var(--line);padding:9px 12px;text-align:left}
.article-body th{background:#f6f9f7;color:var(--ink);font-weight:700}
.article-body tr:nth-child(even) td{background:#fbfdfc}
.article-body code{font-family:var(--mono);font-size:.9em;background:#eef4f1;color:#0b6b4a;padding:2px 6px;border-radius:5px}
.article-body pre{position:relative;background:var(--code-bg);color:var(--code-text);padding:18px 20px;border-radius:10px;overflow:auto;margin:0 0 20px;font-size:13px;line-height:1.7;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.article-body pre code{background:transparent;color:inherit;padding:0;font-size:13px;border-radius:0}
.code-label{position:absolute;right:12px;top:8px;font-size:10px;letter-spacing:.1em;color:#94a3b8;text-transform:uppercase}
.copy-code{position:absolute;right:8px;bottom:8px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#cbd5e1;font-size:11px;border-radius:6px;padding:3px 8px;cursor:pointer}
.copy-code:hover{background:rgba(255,255,255,.14);color:#fff}
.tip,.note,.warn{margin:20px 0;padding:13px 16px;border-radius:9px;font-size:13.5px;line-height:1.8}
.tip{background:#effaf4;border:1px solid #c9eeda;color:#206b4c}
.note{background:#f2f7ff;border:1px solid #d5e4ff;color:#2b4f8a}
.warn{background:#fff8ec;border:1px solid #ffe3b3;color:#8a5a12}
.article-nav{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:30px;padding-top:22px;border-top:1px solid #eef2f7}
.article-nav a{display:block;background:#f8fafc;border:1px solid var(--line);border-radius:9px;padding:11px 14px;font-size:13px;color:#41516a}
.article-nav a:hover{border-color:#cfe9dc;background:#f2fbf7;color:var(--primary-dark)}
.article-nav span{display:block;font-size:10px;color:#94a3b8;letter-spacing:.1em;margin-bottom:2px}

/* 广告位 */
.ad-slot{position:relative;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f0fdf7,#eef5ff);border:1px dashed #b9dccb;border-radius:var(--radius);overflow:hidden;margin:16px 0;min-height:88px}
.ad-slot:empty:before{content:"广告位";color:#8fb3a3;font-size:12px;letter-spacing:.18em}
.ad-slot .ad-box{display:flex;align-items:center;gap:14px;width:100%;padding:14px 18px;position:relative}
.ad-slot .ad-label{position:absolute;right:8px;top:6px;font-size:9px;letter-spacing:.12em;color:#9db3a8;border:1px solid #cfe4d9;border-radius:3px;padding:0 4px;background:rgba(255,255,255,.7)}
.ad-slot .ad-art{flex:none;width:38px;height:38px;border-radius:9px;background:linear-gradient(135deg,#0ea56b,#3b82f6);display:flex;align-items:center;justify-content:center;color:#fff;font-family:var(--mono);font-size:11px;font-weight:700}
.ad-slot .ad-copy{flex:1;min-width:0}
.ad-slot .ad-copy strong{display:block;font-size:13.5px;color:#1f3d31;line-height:1.4}
.ad-slot .ad-copy span{display:block;font-size:11.5px;color:#6b8a7c;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-slot .ad-cta{flex:none;background:var(--primary);color:#fff;font-size:11.5px;font-weight:700;padding:6px 12px;border-radius:7px}
.ad-slot .ad-cta:hover{background:var(--primary-dark);color:#fff}
.ad-side{min-height:250px;flex-direction:column}
.ad-side .ad-box{flex-direction:column;text-align:center;gap:10px;padding:20px 14px}
.ad-side .ad-copy span{white-space:normal}
.ad-side .ad-art{width:52px;height:52px;font-size:13px}
.ad-bottom{min-height:100px}

/* 页脚 */
.site-footer{background:#0f1a24;color:#94a3b8;margin-top:20px;overflow:hidden}
.footer-main{padding:44px 0 30px}
.footer-brand .brand{color:#fff;margin-bottom:12px}
.footer-brand p{margin:0;font-size:12.5px;line-height:1.9;color:#7d8ea1;max-width:820px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:16px 0;display:flex;justify-content:space-between;gap:14px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;font-size:11.5px;color:#6b7c8f}
.footer-bottom a{color:#8fa1b3}

/* 返回顶部 */
.to-top{position:fixed;right:22px;bottom:26px;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--primary-dark);box-shadow:var(--shadow);cursor:pointer;font-size:18px;display:none;z-index:40}
.to-top.show{display:block}

/* 搜索无结果 */
.no-result{display:none;padding:26px;text-align:center;color:var(--muted);background:#fff;border:1px dashed var(--line);border-radius:var(--radius)}
.no-result.show{display:block}

/* 响应式 */
@media (max-width:1100px){
  .topnav{display:none}
  .menu-btn{display:block}
  .header-search{margin-left:auto;width:200px}
  .header-inner{gap:14px}
}
@media (min-width:901px){
  .home-updates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:34px}
  .home-updates a:nth-last-child(-n+2){border-bottom:0}
}
@media (max-width:900px){
  .layout{grid-template-columns:1fr;padding-top:18px}
  .sidebar{position:static;order:1;width:100%}
  .content{order:2}
  .chapter-list{max-height:none}
  .article{padding:24px 20px}
  .hero h1{font-size:32px}
  .hero{padding:44px 0 40px}
  .footer-main{padding:36px 0 26px}
  .header-search{display:none}
}
@media (max-width:600px){
  .container{width:calc(100% - 28px)}
  .brand small{display:none}
  .hero h1{font-size:27px}
  .hero p{font-size:14px}
  .hero-stats{gap:22px}
  .section-head h2{font-size:20px}
  .tutorial-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
  .tutorial-card{padding:14px;min-height:150px}
  .class-hero{padding:20px}
  .class-hero h1{font-size:23px}
  .article h1{font-size:24px}
  .article-body{font-size:14.5px}
  .article-nav{grid-template-columns:1fr}
  .footer-main{padding:28px 0 20px}
  .footer-brand p{font-size:12px;line-height:1.7}
  .footer-bottom{justify-content:center;text-align:center;padding:12px 0}
}

/* ---------- 在线实例 ---------- */
.pg{position:relative;margin:20px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 6px 18px rgba(15,42,32,.04)}
.pg-head{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#f4faf6;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.pg-label{font-weight:700;color:var(--primary-dark);letter-spacing:.05em}
.pg-lang{background:#e4f4ea;color:#0a7a50;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:600}
.pg-actions{margin-left:auto;display:flex;gap:8px}
.pg-btn{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:8px;padding:5px 13px;font-size:12px;line-height:1.4;cursor:pointer;transition:border-color .15s,background .15s}
.pg-btn:hover{border-color:#a9d3bd;background:#f7fcf9}
.pg-run{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}
.pg-run:hover{background:var(--primary-dark);border-color:var(--primary-dark)}
.pg-run:disabled{opacity:.65;cursor:wait}
.pg-code{display:block;box-sizing:border-box;width:100%;border:0;border-radius:0;padding:14px 16px;background:#fbfdfc;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13px;line-height:1.75;resize:vertical;outline:none;min-height:110px;tab-size:2}
.pg-code:focus{background:#fff;box-shadow:inset 0 0 0 2px #d5eee1}
.pg-result{border-top:1px solid var(--line);padding:12px 14px;background:#101b24}
.pg-status{font-size:11px;letter-spacing:.06em;color:#89a0b4;margin-bottom:7px}
.pg-out{margin:0;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12.5px;line-height:1.75;color:#dbe7f1}
.pg-err{color:#ffb4b4}
.pg-frame{display:block;width:100%;height:200px;border:0;border-radius:8px;background:#fff}
.pg-hidden-frame{position:absolute;left:-9999px;top:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0}
@media (max-width:640px){
  .pg-head{flex-wrap:wrap}
  .pg-actions{margin-left:0;width:100%}
  .pg-btn{flex:1}
}

/* ---------- 门户频道 ---------- */
.channel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.channel-card{display:flex;align-items:center;gap:14px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;transition:.22s;color:var(--text)}
.channel-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d6e2dc;color:var(--text)}
.channel-icon{flex:none;width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--c1,#0ea56b),var(--c2,#54d6a3));box-shadow:0 6px 14px rgba(15,23,42,.12)}
.channel-body{min-width:0;display:flex;flex-direction:column;gap:2px}
.channel-body strong{font-size:15.5px;color:var(--ink)}
.channel-body small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.channel-body em{font-style:normal;font-size:11px;color:var(--primary-dark);background:var(--primary-soft);border-radius:999px;padding:1px 8px;align-self:flex-start;margin-top:3px}

.portal-nav{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.portal-nav-head{padding:18px;background:linear-gradient(160deg,#123f30,#0e8a5c);color:#fff}
.portal-nav-head .badge{display:inline-block;font-size:10px;letter-spacing:.14em;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);padding:2px 8px;border-radius:999px}
.portal-nav-head h2{margin:8px 0 4px;font-size:18px;line-height:1.35}
.portal-nav-head p{margin:0;font-size:11.5px;color:rgba(255,255,255,.76)}
.portal-nav-group{padding:11px 16px;border-bottom:1px dashed #eef2f7}
.portal-nav-group:last-child{border-bottom:0}
.portal-nav-group h4{margin:2px 0 6px;font-size:11px;letter-spacing:.12em;color:#94a3b8;font-weight:700}
.portal-nav-group a{display:inline-block;margin:3px 12px 3px 0;font-size:13px;color:#41516a;font-weight:600}
.portal-nav-group a:hover{color:var(--primary)}
.portal-nav-group a.active{color:var(--primary-dark);background:var(--primary-soft);border-radius:7px;padding:3px 8px;margin:3px 6px 3px 0}
.portal-nav .chapter-list{padding:4px 0 0;max-height:300px}
.portal-nav .chapter-list li a{padding:7px 16px;font-size:12.5px}
.portal-subcats{padding:10px 16px 14px;display:flex;flex-wrap:wrap;gap:8px}
.portal-subcats a{font-size:12.5px;color:#41516a;background:#f6f9f7;border:1px solid #e3ede7;border-radius:999px;padding:4px 12px;font-weight:600}
.portal-subcats a:hover{color:var(--primary-dark);border-color:#cfe9dc;background:#f2fbf7}

/* 书籍频道分类导航 */
.book-nav{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:auto;max-height:calc(100vh - 100px)}
.book-nav-head{display:flex;align-items:center;gap:11px;padding:16px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f1fbf6,#fff 72%)}
.book-nav-mark{display:inline-flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--primary),#35c98f);color:#fff;font-family:var(--mono);font-size:15px;font-weight:700;box-shadow:0 6px 14px rgba(14,165,107,.22)}
.book-nav-title h2{margin:0;font-size:17px;line-height:1.3;color:var(--ink)}
.book-nav-title p{margin:2px 0 0;font-size:11.5px;line-height:1.5;color:var(--muted)}
.book-nav-body{padding:10px}
.book-nav-all{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;border-radius:8px;font-size:13.5px;font-weight:700;line-height:1.4;color:var(--ink)}
.book-nav-all:hover{background:#f5faf7;color:var(--primary-dark)}
.book-nav-all.active{background:var(--primary-soft);color:var(--primary-dark)}
.book-nav-all .bn-arrow{font-family:var(--mono);font-size:13px;color:#9db3a8}
.book-nav-all.active .bn-arrow{color:var(--primary)}
.book-nav-section{margin-top:10px;padding-top:10px;border-top:1px dashed #edf2ef}
.book-nav-section h3{margin:0 0 5px;padding:0 10px;font-size:10.5px;font-weight:700;letter-spacing:.1em;color:#94a3b8}
.book-nav-list{list-style:none;margin:0;padding:0}
.book-nav-list a{position:relative;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 10px;border-radius:8px;font-size:13.5px;font-weight:600;line-height:1.4;color:#41516a}
.book-nav-list a:hover{background:#f5faf7;color:var(--primary-dark)}
.book-nav-list a.active{background:var(--primary-soft);color:var(--primary-dark);font-weight:700}
.book-nav-list a.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--primary)}
.book-nav-list a i{font-style:normal;font-size:15px;line-height:1;color:#c2ccd6}
.book-nav-list a.active i{color:var(--primary)}
.book-subnav{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 4px}
.book-subnav a{display:block;padding:6px 4px;border:1px solid #e6eee9;border-radius:7px;background:#fbfdfc;text-align:center;font-size:12.5px;font-weight:600;line-height:1.4;color:#4b5d6b}
.book-subnav a:hover{border-color:#bfe3d1;background:#f4fbf7;color:var(--primary-dark)}
.book-subnav a.active{border-color:var(--primary);background:var(--primary);color:#fff}
.book-latest{list-style:none;margin:0;padding:0}
.book-latest li a{display:flex;gap:8px;padding:6px 10px;border-radius:7px;font-size:12.5px;line-height:1.45;color:#4b5d6b}
.book-latest li a:hover{background:#f5faf7;color:var(--primary-dark)}
.book-latest .idx{flex:none;width:16px;padding-top:1px;text-align:right;font-family:var(--mono);font-size:10.5px;color:#a3b1bf}
.book-latest li a.active{background:var(--primary-soft);color:var(--primary-dark);font-weight:700}
.book-latest li a.active .idx{color:var(--primary)}

.post-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.post-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;display:flex;flex-direction:column;transition:.2s}
.post-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#d6e2dc}
.post-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.post-cat{font-size:11px;color:var(--primary-dark);background:var(--primary-soft);border-radius:4px;padding:2px 8px}
.post-cat a{color:inherit}
.post-no{font-family:var(--mono);font-size:11px;color:#b6c2cf}
.post-card h3{margin:0 0 8px;font-size:17px;line-height:1.45;color:var(--ink)}
.post-card h3 a{color:var(--ink)}
.post-card h3 a:hover{color:var(--primary)}
.post-card p{margin:0 0 16px;font-size:12.8px;line-height:1.75;color:var(--muted);flex:1}
.post-foot{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#94a3b8;margin-top:auto}
.post-foot a{font-weight:700;color:var(--primary);font-size:12.5px}

.subcat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-bottom:18px}
.subcat-card{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;transition:.2s;color:var(--text)}
.subcat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#d6e2dc;color:var(--text)}
.subcat-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--c1,#0ea56b),var(--c2,#54d6a3));margin-bottom:4px}
.subcat-card strong{font-size:15px;color:var(--ink)}
.subcat-card small{font-size:12px;color:var(--muted);line-height:1.6}

.article-kicker{font-size:11px;letter-spacing:.16em;color:var(--primary-dark);font-weight:700;margin-bottom:10px}

.search-page-form{display:flex;gap:10px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin-bottom:18px}
.search-page-form input[type=search]{flex:1;border:1px solid var(--line);border-radius:8px;padding:9px 13px;font-size:14px;color:var(--ink);outline:none}
.search-page-form input[type=search]:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(14,165,107,.12)}
.search-page-form button{border:0;background:var(--primary);color:#fff;font-size:14px;font-weight:700;padding:9px 22px;border-radius:8px;cursor:pointer}
.search-page-form button:hover{background:var(--primary-dark)}

@media (max-width:900px){
  .post-grid{grid-template-columns:1fr}
  .book-nav{max-height:none;overflow:visible}
}
@media (max-width:600px){
  .channel-grid{grid-template-columns:1fr}
  .subcat-grid{grid-template-columns:1fr 1fr}
  .post-card{padding:16px}
  .book-nav-list{display:grid;grid-template-columns:1fr 1fr;gap:0 4px}
  .book-subnav{grid-template-columns:repeat(3,1fr)}
}

/* ---------- 在线词典 / 字典 ---------- */
.dict-app{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:18px}
.dict-search{display:flex;gap:10px}
.dict-search input{flex:1;border:1px solid var(--line);border-radius:10px;padding:12px 15px;font-size:15px;color:var(--ink);outline:none}
.dict-search input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(14,165,107,.12)}
.dict-search button{border:0;background:var(--primary);color:#fff;font-size:15px;font-weight:700;padding:12px 28px;border-radius:10px;cursor:pointer}
.dict-search button:hover{background:var(--primary-dark)}
.dict-samples{margin-top:12px;font-size:12.5px;color:var(--muted)}
.dict-samples a{display:inline-block;margin:4px 10px 4px 0;padding:3px 10px;background:var(--primary-soft);color:var(--primary-dark);border-radius:999px;font-weight:600}
.dict-samples a:hover{background:#d9f2e7}
.dict-status{margin-top:16px;font-size:13px;color:var(--muted)}
.dict-result{margin-top:6px}
.dict-entry{border-top:1px dashed #e8eef3;padding:18px 0 6px}
.dict-entry:first-child{border-top:0}
.dict-entry-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.dict-entry-head h2{margin:0;font-size:23px;color:var(--ink)}
.dict-pinyin{font-family:var(--mono);font-size:13px;color:var(--primary-dark);background:var(--primary-soft);border-radius:999px;padding:2px 10px}
.dict-entry-body{margin-top:10px;font-size:14px;line-height:1.95;color:var(--text)}
.dict-entry-body p{margin:0 0 6px}
.dict-entry-body strong{color:var(--ink)}
.dict-senses{margin:4px 0 8px;padding-left:20px}
.dict-senses li{margin:2px 0}
.dict-pos{display:inline-block;font-size:11px;font-weight:700;color:#b45309;background:#fef3c7;border-radius:4px;padding:0 6px;margin-right:6px;line-height:1.6}
.dict-example{color:#0f766e}
.dict-quote{color:#64748b;font-size:13px}
.dict-reading{margin-top:8px}
.dict-entry-source{margin-top:10px;font-size:11.5px;color:#94a3b8;line-height:1.7}
.dict-source{margin:18px 0 6px;padding:14px 16px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.8;color:var(--muted)}
.dict-source strong{color:var(--text)}
.dict-entry-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.dict-entry-meta span{font-size:12px;color:#0f766e;background:#ecfdf5;border:1px solid #d1fae5;border-radius:999px;padding:2px 10px}
.dict-entry-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}
.dict-entry-main{min-width:0}
.dict-entry-stroke{background:#f8fcfb;border:1px solid var(--line);border-radius:14px;padding:14px}
.dict-entry-stroke .dict-strokes{margin:0;padding:0;border-top:0}
.dict-entry-stroke .stroke-grid{grid-template-columns:1fr}
.dict-relations{margin-top:14px;padding-top:12px;border-top:1px dashed #eef2f7}
.dict-related-row{display:flex;align-items:flex-start;gap:10px;margin:8px 0}
.dict-related-label{flex:none;font-size:12.5px;font-weight:700;color:var(--muted);line-height:26px}
.dict-chips{display:flex;flex-wrap:wrap;gap:8px}
.dict-chip{display:inline-block;font-size:13px;font-weight:600;color:var(--primary-dark);background:#f0fdf9;border:1px solid #d1fae5;border-radius:8px;padding:2px 11px;transition:.18s}
.dict-chip:hover{background:var(--primary);border-color:var(--primary);color:#fff}
.dict-strokes{margin-top:16px;padding-top:14px;border-top:1px dashed #eef2f7}
.dict-strokes-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.dict-strokes-head h3{margin:0;font-size:15px;color:var(--ink)}
.dict-strokes-head span{font-size:12px;color:var(--muted)}
.stroke-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.stroke-card{background:#fbfdfc;border:1px solid var(--line);border-radius:12px;padding:12px;text-align:left}
.stroke-card.is-empty{opacity:.72}
.stroke-main{display:flex;align-items:center;gap:14px}
.stroke-char{flex:0 0 56px;display:flex;flex-direction:column;align-items:center;gap:2px}
.stroke-char strong{font-size:40px;line-height:1.15;color:var(--ink);font-weight:700}
.stroke-char span{font-size:12px;color:var(--muted);white-space:nowrap}
.stroke-canvas{flex:1;display:flex;align-items:center;justify-content:center;min-height:132px;background:#fff;border:1px dashed #dbe6e1;border-radius:10px}
.stroke-canvas svg{display:block}
.stroke-actions{display:flex;gap:6px;justify-content:center;margin-top:10px;flex-wrap:wrap}
.stroke-actions button{border:0;background:var(--primary);color:#fff;font-size:12px;font-weight:600;padding:5px 10px;border-radius:7px;cursor:pointer}
.stroke-actions button:hover{background:var(--primary-dark)}
.stroke-actions button.ghost{background:#eef6f2;color:var(--primary-dark)}
.stroke-actions button:disabled{background:#e2e8f0;color:#94a3b8;cursor:not-allowed}
.dict-index-top{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin-bottom:18px}
.dict-index-top .dict-inline-search{margin-bottom:12px}
.dict-index-top .dict-letters{margin-bottom:0}
.dict-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-top:12px;padding-top:12px;border-top:1px dashed #e8eef3}
.dict-field{display:flex;flex-direction:column;gap:4px;min-width:94px;font-size:12px;color:#64748b}
.dict-field span{font-weight:600}
.dict-field input,.dict-field select{height:32px;border:1px solid var(--line);border-radius:8px;padding:0 9px;font-size:13px;color:var(--ink);background:#fff;outline:none}
.dict-field input:focus,.dict-field select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(14,165,107,.12)}
.dict-field input#f-first,.dict-field input#f-last{width:76px}
.dict-filter-actions{display:flex;gap:6px;margin-left:auto}
.dict-filter-actions button{height:32px;border:0;background:var(--primary);color:#fff;font-size:13px;font-weight:700;padding:0 16px;border-radius:8px;cursor:pointer}
.dict-filter-actions button.ghost{background:#eef6f2;color:var(--primary-dark)}
.dict-filter-actions button:hover{background:var(--primary-dark)}
.dict-filter-actions button.ghost:hover{background:#dcefe6}
.dict-index-body{min-width:0}
.dict-index-body .dict-detail{margin-top:22px}
.dict-index-body .ad-side{min-height:110px}
.dict-index-body .ad-side .ad-box{flex-direction:row;text-align:left;gap:14px;padding:14px 18px}
.dict-index-body .ad-side .ad-copy span{white-space:normal}
.dict-inline-search{display:flex;gap:8px;margin-bottom:14px}
.dict-inline-search input{flex:1;min-width:0;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:13.5px;color:var(--ink);background:#fff;outline:none}
.dict-inline-search input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(14,165,107,.12)}
.dict-inline-search button{border:0;background:var(--primary);color:#fff;font-size:13px;font-weight:700;padding:0 16px;border-radius:8px;cursor:pointer}
.dict-inline-search button:hover{background:var(--primary-dark)}
.dict-letters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.dict-letter{min-width:30px;height:30px;border:1px solid var(--line);background:#fff;color:#41516a;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;transition:.15s}
.dict-letter:hover{border-color:var(--primary);color:var(--primary-dark)}
.dict-letter.is-active{background:var(--primary);border-color:var(--primary);color:#fff}
.dict-letter.is-empty{opacity:.35;cursor:not-allowed}
.dict-detail{margin-bottom:18px}
.dict-detail:empty{display:none}
.dict-detail-card{border:1px solid #d6efe4;background:#fbfefc;border-radius:14px;padding:18px 20px}
.dict-detail-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.dict-detail-bar h2{margin:0;font-size:14px;letter-spacing:.08em;color:var(--primary-dark)}
.dict-list{display:grid;grid-template-columns:1fr;border-top:1px solid var(--line)}
@media (min-width:821px){
  .dict-list{grid-template-columns:1fr 1fr;column-gap:28px}
}
.dict-index-row{display:flex;align-items:center;gap:12px;padding:11px 6px;border-bottom:1px dashed #eef2f7;color:var(--text)}
.dict-index-row:hover{background:#f7faf8}
.dict-index-title{font-size:17px;font-weight:700;color:var(--ink);min-width:56px}
.dict-index-pinyin{font-family:var(--mono);font-size:12px;color:var(--primary-dark);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dict-index-meta{font-size:11.5px;color:var(--muted);white-space:nowrap}
.dict-index-arrow{color:#94a3b8;font-size:16px;line-height:1}
.dict-pager{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:18px;font-size:13px;color:var(--muted)}
.dict-pager button{min-width:32px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:8px;padding:5px 10px;font-size:13px;cursor:pointer}
.dict-pager button:disabled{opacity:.45;cursor:not-allowed}
.dict-pager button:not(:disabled):hover{border-color:var(--primary);color:var(--primary-dark)}
.dict-pager button.is-active{background:var(--primary);border-color:var(--primary);color:#fff}
.dict-pager-info{padding:0 2px;color:var(--muted)}
@media (max-width:820px){
  .dict-entry-layout{grid-template-columns:1fr;gap:12px}
}
@media (max-width:600px){
  .dict-app{padding:16px}
  .dict-detail-card{padding:14px}
  .dict-index-title{min-width:0}
  .dict-index-pinyin{text-align:right}
  .dict-index-meta{display:none}
  .dict-filters{gap:8px}
  .dict-field{flex:1 1 calc(50% - 8px);min-width:0}
  .dict-filter-actions{margin-left:0;width:100%}
  .dict-filter-actions button{flex:1}
  .dict-related-row{flex-direction:column;gap:4px}
  .dict-related-label{line-height:1.4}
  .stroke-grid{grid-template-columns:1fr}
  .stroke-main{flex-direction:column;gap:8px}
  .stroke-char{flex:0 0 auto;flex-direction:row;gap:8px}
  .stroke-char strong{font-size:32px}
  .stroke-canvas{width:100%;min-height:150px}
}

/* 书籍详情扩展 */
.book-facts{margin:18px 0 22px;background:#f8fbf9;border:1px solid #dfeee7;border-radius:var(--radius);padding:18px 20px}
.book-facts h2{margin:0 0 12px;font-size:17px;color:var(--ink)}
.book-facts-list{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;margin:0}
.book-facts-list div{display:flex;gap:10px;font-size:13.5px;line-height:1.7;border-bottom:1px dashed #e2ece7;padding-bottom:8px}
.book-facts-list dt{flex:0 0 70px;color:var(--muted);margin:0}
.book-facts-list dd{margin:0;color:var(--text)}
/* 书籍详情四段说明：字号略小，保持层级与行距 */
.book-notes{font-size:14.5px;line-height:1.85}
.book-notes > h2{font-size:18px;line-height:1.45;margin:26px 0 10px}
.book-notes > p:not(.lead){margin:0 0 13px}
.book-notes > ul{margin:0 0 16px}
.book-notes > ul > li{margin:4px 0}
@media (max-width:600px){
  .book-notes{font-size:14px;line-height:1.8}
  .book-notes > h2{font-size:17px;margin:22px 0 9px}
  .book-notes > p:not(.lead){margin:0 0 12px}
}
.book-author{margin:22px 0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px}
.book-author h2{margin:0 0 10px;font-size:17px;color:var(--ink)}
.book-author h3{margin:0 0 8px;font-size:16px}
.book-author p{margin:0 0 10px;color:var(--text);font-size:13.5px;line-height:1.85}
.book-author-more{font-size:13px;font-weight:600;color:var(--primary-dark)}
.book-buy{margin:22px 0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px}
.book-buy h2,.related-books h2{margin:0 0 12px;font-size:17px;color:var(--ink)}
.buy-links{display:flex;flex-wrap:wrap;gap:10px}
.buy-link{display:inline-flex;align-items:center;gap:10px;border:1px solid #dbe7e1;background:#f8fbf9;border-radius:10px;padding:9px 13px;font-size:13px;color:var(--text);transition:.2s}
.buy-link:hover{border-color:var(--primary);background:var(--primary-soft);color:var(--primary-dark)}
.buy-platform{font-weight:700;color:var(--ink)}
.buy-price{font-family:var(--mono);color:#c2410c;font-weight:700}
.buy-go{color:var(--primary-dark);font-weight:600}
.related-books{margin:22px 0}
.related-books .post-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.related-books .post-card{padding:16px 18px}
.book-card-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin:0 0 12px;font-size:12px;color:var(--muted)}
.book-card-meta a{color:var(--primary-dark);font-weight:600}
.author-hero .author-bio{margin:10px 0 4px;color:var(--text);font-size:14px;line-height:1.9;max-width:840px}
.author-hero .author-bio p{margin:0 0 8px}
.author-books{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.author-bio-heading{margin:14px 0 6px;font-size:15px;color:var(--primary-dark);letter-spacing:.04em}
.author-sections{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.author-section{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px}
.author-section h2{margin:0 0 14px;font-size:17px;color:var(--ink);padding-left:11px;border-left:4px solid var(--primary);line-height:1.4}
.author-timeline-list{list-style:none;margin:0;padding:0}
.author-timeline-list li{display:flex;gap:14px;padding:9px 0;border-bottom:1px dashed var(--line);font-size:13.5px;line-height:1.7}
.author-timeline-list li:last-child{border-bottom:0}
.author-timeline-list .t-year{flex:0 0 78px;font-family:var(--mono);font-weight:700;color:var(--primary-dark);text-align:right}
.author-timeline-list .t-year-dot{color:var(--muted);text-align:center}
.author-timeline-list .t-text{color:var(--text)}
.author-works-list{list-style:none;margin:0;padding:0}
.author-works-list li{display:flex;gap:12px;padding:10px 0;border-bottom:1px dashed var(--line)}
.author-works-list li:last-child{border-bottom:0}
.author-works-list .w-year{flex:0 0 78px;font-family:var(--mono);font-weight:700;color:var(--primary-dark);font-size:13px;text-align:right}
.author-works-list .w-main{display:flex;flex-direction:column;gap:3px;font-size:13.5px;line-height:1.6}
.author-works-list .w-main strong{color:var(--ink);font-weight:700}
.author-works-list .w-main em{font-style:normal;color:var(--muted);font-size:12.5px}
.author-links{margin:18px 0}
.author-links-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px 14px}
.author-links-list li{display:flex;align-items:center;gap:8px;background:#f8fbf9;border:1px solid #dbe7e1;border-radius:9px;padding:8px 12px;font-size:13px}
.author-links-list a{font-weight:600;color:var(--primary-dark)}
.author-links-list .link-host{color:var(--muted);font-size:11.5px;font-family:var(--mono)}
@media (max-width:768px){
  .author-sections{grid-template-columns:1fr}
  .author-timeline-list .t-year,.author-works-list .w-year{flex-basis:64px}
}
@media (max-width:600px){
  .book-facts-list{grid-template-columns:1fr}
  .book-facts-list dt{flex-basis:60px}
  .buy-link{width:100%;justify-content:space-between}
  .related-books .post-grid{grid-template-columns:1fr}
}
