/* 晨读一刻 · 沿用「设计工作台」的设计语言：左侧导航 + 卡片网格 + ORION 式实色统计块 + 线条图标。
   为中老年读者：基础字号 16px，正文宋体 18px，另有「大字」模式。 */
:root {
  color-scheme: light;
  --page:#f4f6fa; --card:#ffffff; --ink:#0f1b2d; --ink2:#4b5768; --muted:#8a94a3; --line:#e6e9ef; --grid:#eef1f5;
  --accent:#eb6834; --accent-soft:#fdeee6;
  --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100;
  --radius:14px; --shadow:0 1px 2px rgba(15,27,45,.04),0 4px 14px rgba(15,27,45,.05);
  --f:"PingFang SC","HarmonyOS Sans SC","MiSans","Microsoft YaHei","Noto Sans SC",system-ui,-apple-system,"Segoe UI",sans-serif;
  --serif:"Noto Serif SC","Songti SC","STSong","SimSun",serif;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html, body { margin:0; }
body { background:var(--page); color:var(--ink); font-family:var(--f); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
button { font:inherit; color:inherit; cursor:pointer; background:none; border:0; padding:0; }
img { display:block; width:100%; object-fit:cover; background:var(--grid); }
h1, h2, h3, p { margin:0; }
.serif { font-family:var(--serif); }
.num { font-variant-numeric:tabular-nums; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
svg.i { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- 框架 ---------- */
.app { display:grid; grid-template-columns:232px minmax(0,1fr); min-height:100vh; }
.side { background:var(--card); border-right:1px solid var(--line); padding:22px 14px; display:flex; flex-direction:column; gap:24px; position:sticky; top:0; height:100vh; }
.brand { display:flex; align-items:center; gap:10px; padding:0 8px; }
.logo { width:36px; height:36px; border-radius:10px; background:url(icon.svg) center/cover; flex:none; box-shadow:0 4px 10px rgba(235,104,52,.3); }
.brand b { font-size:17px; letter-spacing:.04em; }
.brand b span { display:block; font-size:11.5px; color:var(--muted); font-weight:400; letter-spacing:0; }
.nav { display:flex; flex-direction:column; gap:2px; }
.nav a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; color:var(--ink2); font-size:15px; }
.nav a:hover { background:var(--page); }
.nav a.on { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.nav .cnt { margin-left:auto; font-size:12px; color:var(--muted); }
.side .foot { margin-top:auto; display:flex; flex-direction:column; gap:10px; font-size:12.5px; color:var(--muted); padding:0 8px; }
.bigtoggle { display:flex; align-items:center; gap:8px; color:var(--ink2); font-size:14px; border:1px solid var(--line); border-radius:10px; padding:8px 12px; }
.bigtoggle:hover { border-color:var(--accent); color:var(--accent); }
.main { padding:24px 28px 56px; display:flex; flex-direction:column; gap:18px; min-width:0; }

/* ---------- 顶部 ---------- */
.topbar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.hello { flex:1; min-width:240px; }
.hello h1 { font-size:24px; font-weight:700; letter-spacing:.01em; }
.hello p { margin-top:3px; color:var(--muted); font-size:13.5px; }
.btn { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:10px; padding:8px 14px; font-size:14px; background:var(--card); color:var(--ink2); white-space:nowrap; }
.btn:hover { border-color:var(--accent); color:var(--accent); }
.btn.pri { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
.btn.pri:hover { filter:brightness(1.05); color:#fff; }
.btn.on { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
.btn.on svg { fill:currentColor; }
.btn svg.i { width:17px; height:17px; }
.back { display:inline-flex; align-items:center; gap:4px; color:var(--ink2); font-size:14px; }
.back:hover { color:var(--accent); }

/* ---------- 卡片网格 ---------- */
.grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; }
.card { background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); border:1px solid rgba(15,27,45,.04); padding:18px 20px; display:flex; flex-direction:column; gap:12px; min-width:0; }
.card h2 { font-size:15.5px; font-weight:600; display:flex; align-items:center; gap:8px; }
.card h2 .sub { font-weight:400; color:var(--muted); font-size:12.5px; }
.card h2 .more { margin-left:auto; font-weight:500; font-size:13px; color:var(--accent); }
.card h2 svg.i { color:var(--accent); width:18px; height:18px; }
.c3{grid-column:span 3}.c4{grid-column:span 4}.c5{grid-column:span 5}.c6{grid-column:span 6}.c7{grid-column:span 7}.c8{grid-column:span 8}.c12{grid-column:span 12}
@media (max-width:1180px) { .c3{grid-column:span 6} .c4,.c5,.c7{grid-column:span 6} .c8{grid-column:span 12} }

/* ORION 式实色统计块 */
.stat { flex-direction:row; align-items:center; gap:14px; }
.stat .ic { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex:none; }
.stat .lab { font-size:13px; }
.stat .val { font-size:26px; font-weight:700; line-height:1.2; }
.stat .hint { font-size:12.5px; }
.stat.solid { background:var(--sc); border:0; color:#fff; box-shadow:0 8px 20px color-mix(in srgb,var(--sc) 28%,transparent); }
.stat.solid .lab, .stat.solid .hint { color:rgba(255,255,255,.88); }
.stat.solid .ic { background:rgba(255,255,255,.2); color:#fff; }
.stat.solid .ic svg.i { width:24px; height:24px; }

/* 图标块 */
.tile { width:34px; height:34px; border-radius:10px; background:var(--tc); color:#fff; display:inline-flex; align-items:center; justify-content:center; flex:none; box-shadow:0 2px 6px color-mix(in srgb,var(--tc) 35%,transparent); }
.tile svg.i { width:18px; height:18px; }
.pill { display:inline-flex; align-items:center; gap:5px; font-size:12px; padding:1px 9px; border-radius:999px; background:var(--page); color:var(--ink2); white-space:nowrap; flex:none; }
.pill::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--pc); }
.due { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--ink2); white-space:nowrap; flex:none; }
.due::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--dc,var(--s1)); }

/* 列表 */
.rows { display:flex; flex-direction:column; }
.row { display:flex; align-items:center; gap:12px; padding:11px 0; border-top:1px solid var(--grid); min-width:0; }
.row:first-child { border-top:0; }
.row .t { flex:1; min-width:0; }
.row .t b { display:block; font-weight:600; font-size:15.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row .t span { display:block; font-size:13.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
a.row:hover { background:#f8fafd; border-radius:10px; }
.row .thumb { width:84px; height:60px; border-radius:10px; flex:none; }
.row .date { font-size:12.5px; color:var(--muted); flex:none; }
.empty { color:var(--muted); font-size:14px; padding:14px 0; text-align:center; }

/* ---------- 首页组件 ---------- */
/* 问候图 */
.greet { position:relative; padding:0; overflow:hidden; min-height:380px; color:#fff; }
.greet > img { position:absolute; inset:0; height:100%; }
.greet::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.22) 0%,rgba(0,0,0,0) 38%,rgba(0,0,0,.55) 100%); }
.g-in { position:relative; z-index:1; flex:1; display:flex; flex-direction:column; padding:22px 24px; }
.g-date { display:flex; align-items:center; gap:12px; }
.g-date b { font-size:56px; font-weight:300; line-height:1; }
.g-date span { font-size:13px; line-height:1.6; border-left:1px solid rgba(255,255,255,.7); padding-left:12px; }
.g-term { margin-top:10px; font-size:14.5px; font-family:var(--serif); }
.g-hi { margin-top:auto; font-size:30px; font-weight:700; font-family:var(--serif); letter-spacing:4px; text-shadow:0 1px 8px rgba(0,0,0,.3); }
.g-q { margin-top:6px; font-size:20px; line-height:1.75; font-family:var(--serif); text-shadow:0 1px 8px rgba(0,0,0,.35); }
.g-acts { position:absolute; right:16px; top:16px; z-index:2; display:flex; gap:8px; }
.g-save { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.6); color:#fff; border-radius:10px; padding:7px 12px; font-size:13.5px; backdrop-filter:blur(6px); }
.g-save svg.i { width:16px; height:16px; }

/* 今日一读 */
.read { padding:0; overflow:hidden; gap:0; }
.read img { aspect-ratio:16/9; }
.read .rb { padding:16px 20px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.read h3 { font-family:var(--serif); font-size:21px; line-height:1.45; }
.read p { font-size:14.5px; color:var(--ink2); line-height:1.75; }
.read .meta { display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--muted); margin-top:auto; padding-top:6px; }
.read .meta .btn { margin-left:auto; }
.kicker { font-size:12px; color:var(--accent); font-weight:600; letter-spacing:.1em; }

/* 时令 */
.term-top { display:flex; align-items:center; gap:14px; }
.term-n { font-family:var(--serif); font-size:38px; font-weight:700; color:var(--s3); letter-spacing:4px; line-height:1; }
.term-s { font-size:12.5px; color:var(--muted); line-height:1.7; border-left:1px solid var(--line); padding-left:14px; }
.term-d { font-size:14.5px; color:var(--ink2); line-height:1.75; }
.hou { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.hou span { background:var(--page); border-radius:10px; padding:8px 6px; text-align:center; font-size:13.5px; font-family:var(--serif); color:var(--ink2); line-height:1.4; }
.hou small { display:block; font-size:11px; color:var(--muted); font-family:var(--f); margin-bottom:2px; }
.hou span.on { background:color-mix(in srgb,var(--s3) 12%,#fff); color:var(--s3); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--s3) 35%,#fff); }
.quote { font-family:var(--serif); font-size:15.5px; line-height:1.8; color:var(--ink); }
.quote small { display:block; text-align:right; font-size:12.5px; color:var(--muted); font-family:var(--f); }

/* 诗词 */
.poem { justify-content:center; text-align:center; background:linear-gradient(160deg,#fff 0%,#fdf3ec 100%); }
.poem p { font-family:var(--serif); font-size:22px; line-height:1.8; padding:6px 0; }
.poem small { font-size:13px; color:var(--muted); }

/* 天象 */
.moon { display:flex; align-items:center; gap:14px; }
.moon i { font-style:normal; font-size:44px; line-height:1; }
.moon b { display:block; font-size:19px; }
.moon span { font-size:12.5px; color:var(--muted); }

/* 历史 */
.yr { width:58px; flex:none; font-size:20px; font-weight:700; color:var(--s1); font-variant-numeric:tabular-nums; }
.his-t { flex:1; font-size:14.5px; line-height:1.6; }
.his-t small { display:block; font-size:12px; color:var(--muted); }

/* 栏目格 */
.catgrid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.catgrid a { display:flex; align-items:center; gap:10px; padding:10px; border-radius:12px; border:1px solid var(--line); }
.catgrid a:hover { border-color:var(--accent); }
.catgrid b { display:block; font-size:14.5px; font-weight:600; }
.catgrid span { font-size:12px; color:var(--muted); }

/* 栏目页大卡 */
.catcard { padding:0; overflow:hidden; gap:0; }
.catcard img { aspect-ratio:16/9; }
.catcard .cb { display:flex; align-items:center; gap:12px; padding:14px 16px; }
.catcard b { font-size:17px; display:block; }
.catcard span { font-size:12.5px; color:var(--muted); }

/* 搜索 */
.search { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:12px; padding:9px 14px; background:var(--card); color:var(--muted); }
.search:focus-within { border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }
.search input { flex:1; border:0; outline:0; font:inherit; font-size:15px; background:transparent; color:var(--ink); }
.month { font-size:13px; color:var(--muted); font-weight:600; padding-top:10px; }

/* ---------- 文章页 ---------- */
.art-wrap { max-width:780px; width:100%; margin:0 auto; display:flex; flex-direction:column; gap:16px; }
.art { padding:30px 36px 32px; gap:0; }
.art h1 { font-family:var(--serif); font-size:28px; line-height:1.5; }
.art .meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:13px; color:var(--muted); margin:12px 0 4px; }
.art .cover { border-radius:12px; aspect-ratio:16/9; margin:18px 0 6px; }
.content { font-family:var(--serif); font-size:18px; line-height:2; color:#25303f; }
.content p { margin:18px 0; text-align:justify; }
.content h2 { font-size:19px; margin:34px 0 4px; padding-left:12px; border-left:4px solid var(--accent); line-height:1.5; }
.content blockquote { margin:22px 0; padding:16px 20px; background:var(--accent-soft); border-radius:12px; color:#8a3d1c; font-size:17px; line-height:1.9; }
.content figure { margin:24px 0; }
.content figure img { border-radius:12px; aspect-ratio:3/2; }
.content figcaption { text-align:center; font-size:13px; color:var(--muted); margin-top:8px; font-family:var(--f); }
.gold { position:relative; margin-top:26px; border-radius:14px; overflow:hidden; aspect-ratio:16/9; color:#fff; }
.gold > img { position:absolute; inset:0; height:100%; }
.gold::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.55) 100%); }
.gold div { position:absolute; inset:auto 0 0 0; z-index:1; padding:22px 24px; }
.gold small { font-size:12px; letter-spacing:4px; opacity:.9; }
.gold p { font-family:var(--serif); font-size:22px; line-height:1.65; margin-top:6px; text-shadow:0 1px 6px rgba(0,0,0,.3); }
.acts { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:20px; }
.pn { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.pn a { font-size:12.5px; color:var(--muted); }
.pn a.r { text-align:right; }
.pn b { display:block; color:var(--ink); font-size:15px; font-weight:600; margin-top:2px; }

/* 微信转发指引 */
.wxguide { position:fixed; inset:0; z-index:60; background:rgba(15,27,45,.72); color:#fff; display:flex; flex-direction:column; align-items:flex-end; padding:10px 22px; }
.wxguide .arrow { font-size:64px; line-height:1; margin-right:4px; }
.wxbox { margin-top:12px; background:var(--card); color:var(--ink); border-radius:16px; padding:20px 22px; max-width:320px; box-shadow:0 20px 50px rgba(0,0,0,.3); }
.wxbox b { font-size:20px; }
.wxbox p { margin-top:8px; font-size:16px; line-height:1.7; color:var(--ink2); }
.wxbox em { font-style:normal; color:var(--accent); font-weight:600; }
.wxbox .tip { font-size:13.5px; color:var(--muted); }
.wxbox .ok { display:block; margin-top:14px; text-align:center; background:var(--accent); color:#fff; border-radius:10px; padding:10px; font-weight:600; }

/* ---------- 底部标签（手机） ---------- */
.tabbar { display:none; }
.toast { position:fixed; left:50%; transform:translateX(-50%); bottom:calc(28px + env(safe-area-inset-bottom,0px)); background:var(--ink); color:#fff; border-radius:12px; padding:11px 16px; font-size:14.5px; z-index:40; box-shadow:0 10px 30px rgba(15,27,45,.25); max-width:calc(100vw - 32px); }

@media (max-width:760px) {
  .app { grid-template-columns:minmax(0,1fr); }
  .side { display:none; }
  .main { padding:16px 14px 96px; gap:14px; padding-top:max(16px,env(safe-area-inset-top,0px)); }
  .grid { gap:12px; }
  .c3,.c4,.c5,.c6,.c7,.c8,.c12 { grid-column:span 12; }
  .stat.c3 { grid-column:span 6; }
  .stat { padding:13px; gap:10px; }
  .stat .ic { width:36px; height:36px; border-radius:10px; }
  .stat .val { font-size:21px; }
  .greet { min-height:0; aspect-ratio:1/1; }
  .g-date b { font-size:46px; }
  .g-q { font-size:17.5px; }
  .catgrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .art { padding:22px 18px 24px; }
  .art h1 { font-size:24px; }
  .row .pill { display:none; }
  .row .thumb { width:76px; height:56px; }
  .tabbar { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:31; background:var(--card); border-top:1px solid var(--line); padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px)); }
  .tabbar a { flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12px; color:var(--muted); padding:4px 0; }
  .tabbar a.on { color:var(--accent); font-weight:600; }
  .tabbar svg.i { width:22px; height:22px; }
  .toast { bottom:calc(84px + env(safe-area-inset-bottom,0px)); }
}

/* 大字模式（适合中老年） */
html.big .main { zoom:1.16; }
html.big .tabbar a { font-size:13.5px; }
