/**

 * 页面级布局

 * ------------------------------------------------------------------

 * 由原 dist/*.css 合并而来：只在合并完全相同的规则时做了删除，

 * 其余规则一律原样搬运，规则之间不重新排序。

 * 加载顺序见 index.html，顺序即优先级。

 */


main:focus{outline:none}

/* 后台「页面设置」写进来的值（默认值见 tokens.css 的 --custom-*）。
   原先这些规则只在 admin.css 里，而 admin.css 只有登录后台之后才加载 ——
   站主自己存下的字号、栏宽、卡片圆角，在非后台页面根本不生效。 */
body{font-size:var(--custom-fontSize)}

/* 首页三栏：这里是唯一一份栅格定义（components.css 里那份重复的已删）。
   侧栏与右栏宽度都来自后台「页面设置」，见 settings-client.js。 */
.home-portal{grid-template-columns:var(--custom-sidebarWidth) minmax(0,1fr) 220px}

@media(min-width:1750px){.home-portal{grid-template-columns:260px minmax(0,1fr) 250px}}

/* 窄屏收成单列：左栏是固定宽度、右栏固定 220px，在 375px 下光这两栏就比屏幕宽，
   横向滚动条就是这么来的（与页面设置里的侧栏宽度无关，是栅格本身的问题）。 */
@media(max-width:900px){
  .home-portal{grid-template-columns:minmax(0,1fr)}
}

.portal-center,.portal-left,.portal-right{}

.page-home .hero-copy{}

.portal-article p,.portal-panel p{font-size:calc(var(--custom-fontSize) - 2px)}

.media-custom-cover{width:90px;height:110px;border-radius:12px;object-fit:cover;flex:0 0 90px}

.inner-page .header{position:relative;background:#f7f8fdf5;border-bottom-color:var(--line)}

.inner-page main{}

/* 页面壳：宽度、留白、最小高度只在这里定义一次。
   重构前同一件事写在 pages.css×2、themes.css、admin.css×2，改一处忘三处。 */
.page-wrap{width:min(1250px,calc(100% - 140px));margin:40px auto;padding:60px;min-height:70vh}

.section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:35px}

.section-heading .eyebrow{margin-bottom:16px}

.section-heading h2,.page-heading h1,.reading h1{font-weight:400}

.section-heading h2{font-size:32px;letter-spacing:2px;margin:0}

.text-link{font-size:14px;display:inline-flex;gap:16px;align-items:center;min-height:44px}

.text-link:hover{text-decoration:underline;text-underline-offset:5px}

.small{font-size:13px;color:var(--muted);line-height:1.8}

.home-grid{display:grid;grid-template-columns:1fr 320px;gap:65px}

.content-row{display:grid;grid-template-columns:35px 1fr 24px;gap:24px;border-top:1px solid var(--line);padding:30px 0;transition:background var(--fast)}

.content-row:hover{background:#e6f2f580}

.row-index{font-family:Georgia,serif;font-size:15px;color:var(--muted);padding-top:3px}

.meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px;letter-spacing:1px}

.content-row h3{font-size:23px;font-weight:500;line-height:1.6;margin:12px 0 10px}

.content-row p{font-size:14px;color:var(--muted);margin:0 0 14px;max-width:750px}

.row-arrow{align-self:center;font-size:24px;color:var(--accent)}

.tags{display:flex;gap:8px;flex-wrap:wrap}

.tags span{font-size:12px;color:var(--muted)}

.tags span+span:before{content:'/';margin-right:8px;opacity:.5}

.discovery{background:#e7f1ee;border-radius:2px;padding:36px 30px;align-self:start;min-height:380px;position:relative}

.discovery .eyebrow{font-size:11px}

.discovery-symbol{display:block;font-size:56px;margin:25px 0 30px;color:#709590}

.discovery h3{font-family:"STSong","SimSun",serif;font-size:26px;font-weight:400;line-height:1.7}

.discovery .text-link{border-bottom:1px solid var(--line);width:100%;justify-content:space-between}

.pathways{display:grid;grid-template-columns:repeat(3,1fr);gap:48px;margin-top:90px;padding-top:48px;border-top:1px solid var(--line)}

.pathways a{display:block}

.pathways span{font-size:11px;letter-spacing:2px;color:var(--muted)}

.pathways h3{font-size:23px;font-weight:400;margin:25px 0 12px}

.pathways p{font-size:14px;color:var(--muted)}

.pathways b{font-size:14px;font-weight:400;display:block;margin-top:25px}

.pathways a:hover b{color:var(--accent)}

.page-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:48px}

.page-heading .eyebrow{margin-bottom:22px}

.page-heading h1{font-size:48px;letter-spacing:3px;line-height:1.5;margin-bottom:15px}

.page-heading p:not(.eyebrow){color:var(--muted);font-size:16px;margin-bottom:0}

.list-tools{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}

.filters,.view-toggle{display:flex;flex-wrap:wrap;gap:10px}

.chip{min-height:44px}

.chip:hover{}

.chip.active,.chip[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}

.chip small{margin-left:6px;opacity:.75}

.empty{padding:55px 20px;text-align:center;border-top:1px solid var(--line)}

.empty>span{font-size:40px;color:#7d9a9c}

.empty p{font-size:15px}

.button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;background:var(--accent);color:white;border:1px solid var(--accent);padding:12px 24px;border-radius:8px;font-size:14px}

.button:hover{background:var(--ink)}

.reading{max-width:820px;margin:auto;padding:55px 36px 80px}

.reading-meta{margin-top:45px;justify-content:start;gap:25px}

.reading h1{font-size:44px;line-height:1.5;margin:20px 0;letter-spacing:2px}

.demo-notice{font-size:13px;padding:14px 18px;margin:32px 0;color:var(--muted);background:#e6f0f2;border-left:2px solid #a5bfc5}

.prose{margin-top:38px;font-size:18px;line-height:2;overflow-wrap:anywhere}

.prose p{line-height:2;margin-bottom:28px}

.prose h2{font-size:25px;font-weight:500;margin:48px 0 22px}

.article-end{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:24px;margin-top:50px;font-size:12px;color:var(--muted)}

.source{line-height:1.9}

.relations{margin-top:70px}

.relations .eyebrow{font-size:11px;margin-bottom:15px}

.relations h2{font-size:25px;font-weight:400}

.relations a{border-bottom:1px solid var(--line);display:grid;grid-template-columns:95px 1fr 20px;align-items:center;gap:15px;padding:22px 0}

.relations a span{font-size:12px;color:var(--muted)}

.relations a strong{font-weight:400;font-size:16px}

.mind-map{margin-top:24px;background:radial-gradient(ellipse,#e2f2f680,#f7f8fd 70%)}

.mind-map svg{width:100%;height:auto}

.map-lines line{stroke:#9ab8c4;stroke-width:1;opacity:.6}

.mind-map circle{fill:#4c8a9b;stroke:#d9ebef;stroke-width:8;transition:fill var(--fast)}

.mind-map a:hover circle{fill:#173c4a}

.mind-map text{fill:var(--ink);font-size:14px}

.mind-map .map-center{font-family:SimSun,serif;font-size:28px;letter-spacing:4px}

.mind-map .map-caption{font-size:10px;letter-spacing:2px;fill:var(--muted)}

.map-key{display:grid;grid-template-columns:repeat(3,1fr);gap:0 28px;margin-top:24px}

.map-key a{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);font-size:14px;padding:18px 0}

.timeline{margin:45px 0}

.timeline>a{display:grid;grid-template-columns:130px 1fr;position:relative;margin-left:10px;border-left:1px solid var(--line);padding:20px 0 35px 30px;gap:25px}

.timeline>a:before{position:absolute;content:'';width:9px;height:9px;border-radius:50%;background:var(--accent);top:25px;left:-5px}

.timeline time{font-size:14px;color:var(--muted)}

.timeline h3{font-size:23px;font-weight:400;margin:10px 0 15px}

/* 「世界旅行」的门厅：一页只有卡片，一张卡 = 一个单独做过的页面。
   海边场景（明信片 + 晴日/暮色/海风那排控件）按站主的意思撤掉了，
   所以这里没有底图、没有定位，只有一格一格排下去的卡片。 */
.page-world .world-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}

.world-card{position:relative;display:flex;flex-direction:column;gap:10px;min-height:240px;padding:26px 28px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--argon-shadow);color:inherit;text-decoration:none;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}

.world-card:hover,.world-card:focus-visible{transform:translateY(-3px);box-shadow:var(--argon-shadow-hover);border-color:var(--accent)}

.world-card-mark{font-size:20px;color:var(--accent)}

.world-card-kicker{font-size:10px;letter-spacing:3px;text-transform:uppercase;color:var(--muted)}

.world-card strong{font-family:var(--title-font);font-weight:400;font-size:26px;line-height:1.4;color:var(--ink)}

.world-card p{margin:0;font-size:14px;line-height:1.9;color:var(--muted)}

.world-card-action{margin-top:auto;font-size:13px;color:var(--muted);transition:color .2s ease}

.world-card:hover .world-card-action,.world-card:focus-visible .world-card-action{color:var(--accent)}

.world-tools{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}

@media(max-width:600px){.page-world .world-grid{grid-template-columns:1fr;gap:14px}.world-card{min-height:200px;padding:20px}.world-card strong{font-size:22px}}

@media(prefers-reduced-motion:reduce){.world-card,.world-card-action{transition:none}.world-card:hover,.world-card:focus-visible{transform:none}}

.guest-layout{display:grid;grid-template-columns:1fr 1fr;gap:80px}

.guest-layout label,.login label,#editor label{display:block;font-size:14px;margin:18px 0 10px}

.guest-layout input,.guest-layout textarea{margin-top:0}

.form-end{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:20px}

.hp{position:absolute;left:-9999px;opacity:0}

.guest-messages h2{font-size:23px;font-weight:400}

.message{border-top:1px solid var(--line);padding:22px 0;overflow-wrap:anywhere}

.message>div:first-child{display:flex;justify-content:space-between;gap:16px;font-size:14px}

.message time{font-size:12px;color:var(--muted)}

.message p{font-size:15px;white-space:pre-wrap;margin:16px 0 0}

.search-result{display:flex;flex-direction:column;padding:18px 0;border-top:1px solid var(--line);gap:8px}

.search-result small{font-size:12px;color:var(--muted)}

#search-results{margin-top:25px}

.search-result:hover{color:var(--accent)}

.login{max-width:540px}

.studio-bar{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);align-items:center;padding-bottom:24px}

.studio-layout{display:grid;grid-template-columns:260px 1fr;gap:45px;margin-top:40px}

.studio-layout h2,.moderation h2{font-size:24px;font-weight:400}

.studio-entries button{display:block;text-align:left;padding:18px 0;border-bottom:1px solid var(--line);width:100%;line-height:1.7}

.studio-entries small{display:block;font-size:12px;color:var(--muted)}

.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}

#editor input,#editor select,#editor textarea{margin-top:8px}

#editor .checkbox{display:flex;gap:12px;align-items:center}

.checkbox input{width:20px;height:20px}

details{margin-top:30px;line-height:2}

summary{cursor:pointer}

.history{border-top:1px solid var(--line);padding:20px 0}

.history pre{white-space:pre-wrap;font:inherit;font-size:14px}

.moderation{margin-top:60px;max-width:800px}

#guest-feedback,#save-feedback,#login-error{font-size:14px;color:var(--accent)}

@media(max-width:960px){.home-grid{grid-template-columns:1fr 270px;gap:30px}.page-wrap{padding:65px 30px}.pathways{gap:24px}.pathways h3{font-size:20px}.guest-layout{gap:35px}.map-key{grid-template-columns:1fr 1fr}.studio-layout{grid-template-columns:200px 1fr;gap:25px}}

@media(max-width:600px){.page-wrap{padding:50px 24px}.section-heading{}.section-heading h2{font-size:25px}.section-heading .eyebrow{font-size:10px;letter-spacing:2px}.home-grid{grid-template-columns:1fr;gap:35px}.content-row{grid-template-columns:22px 1fr 18px;gap:12px;padding:25px 0}.content-row h3{font-size:20px}.content-row p{font-size:14px}.meta{font-size:12px;letter-spacing:0}.row-index{font-size:12px}.discovery{min-height:unset;padding:28px}.discovery-symbol{float:right;margin:0 0 0 20px}.discovery h3{font-size:25px}.pathways{grid-template-columns:1fr;gap:30px;margin-top:50px;padding-top:30px}.pathways h3{margin-top:15px;font-size:23px}.pathways b{margin-top:12px}.pathways a{border-bottom:1px solid var(--line);padding-bottom:24px}.page-heading{display:block;margin-bottom:30px}.page-heading h1{font-size:35px;letter-spacing:1px}.page-heading .eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:15px}.page-heading p:not(.eyebrow){font-size:14px}.page-heading>.text-link{margin-top:15px}.list-tools{flex-direction:column;align-items:start;gap:14px}.chip{padding:10px 16px}.reading{padding:35px 24px 60px}.reading h1{font-size:33px;letter-spacing:1px}.prose{font-size:17px}.relations a{grid-template-columns:1fr 20px}.relations a span{grid-column:1/-1}.map-key{grid-template-columns:1fr}.mind-map{overflow-x:auto}.mind-map svg{min-width:600px}.timeline>a{grid-template-columns:1fr;gap:10px;padding-left:23px}.timeline h3{font-size:21px}.guest-layout{grid-template-columns:1fr;gap:45px}.studio-layout{grid-template-columns:1fr}.studio-entries{max-height:220px;overflow:auto}.field-grid{grid-template-columns:1fr;gap:0}.studio-bar{font-size:13px;gap:20px}.article-end{gap:10px}.search-result span{font-size:16px}.content-row p,.message p{overflow-wrap:anywhere}}

@media(max-width:600px){
  .hero{background-position:42% center}
  .hero h1{font-size:46px;letter-spacing:4px}
  .hero-description{letter-spacing:1px;max-width:205px}
  .section-heading{flex-direction:column;gap:10px;align-items:start}
}

/* Navigation is now topbar-only; remove the edge-triggered flyout on every route. */

.sidebar-zone{display:none!important}

/* Image-led collection directory, inspired by editorial gallery cards. */

.collection-visual-hubs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 40px}

.collection-visual-hubs>a{isolation:isolate;position:relative;min-height:210px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:22px;background:linear-gradient(145deg,hsl(var(--hub-hue) 55% 64%),hsl(var(--hub-hue) 48% 36%));color:#fff;transform:translateZ(0)}

.collection-visual-hubs>a:last-child:nth-child(odd){grid-column:auto;min-height:210px}

.collection-visual-hubs>a:before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--hub-cover),linear-gradient(145deg,hsl(var(--hub-hue) 55% 64%),hsl(var(--hub-hue) 48% 36%));background-size:cover;background-position:center;transition:transform .45s cubic-bezier(.4,0,.2,1),filter .3s ease}

.collection-visual-hubs>a:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#07121b0a 15%,hsl(var(--hub-hue) 54% 18% / .25) 42%,hsl(var(--hub-hue) 58% 12% / .94) 100%)}

.collection-visual-hubs>a:hover:before{transform:scale(1.035);filter:saturate(1.08)}

.collection-visual-hubs .collection-hub-count{order:0;display:inline-flex;padding:7px 11px;margin-bottom:10px;border:1px solid #ffffff2b;border-radius:999px;background:#06121b4f;backdrop-filter:blur(12px);font-size:11px;line-height:1;color:#eef9ff}

.collection-visual-hubs small{order:1;color:#c9dfeb;font-size:9px;letter-spacing:2.5px;text-shadow:0 1px 12px #000}

.collection-visual-hubs strong{order:2;margin:12px 0 7px;font-family:var(--title-font);font-size:26px;font-weight:500;letter-spacing:2px;line-height:1.25;color:#fff;text-shadow:0 2px 18px #0008}

.collection-visual-hubs em{order:3;max-width:440px;color:#d7e4eb;font-size:13px;font-style:normal;line-height:1.7;text-shadow:0 1px 12px #000}

.collection-visual-hubs b{order:4;display:flex;align-items:center;gap:12px;margin-top:12px;color:#fff;font-size:14px;font-weight:600}

.collection-visual-hubs b span{font-size:20px;transition:transform .2s ease}

.collection-visual-hubs>a:hover b span{transform:translateX(4px)}

html[data-theme=gothic] .collection-visual-hubs>a{border-color:#b9e2f029!important;background:linear-gradient(145deg,#172838,#09101a)!important;box-shadow:0 18px 48px #0009}

html[data-theme=gothic] .collection-visual-hubs>a:after{background:linear-gradient(180deg,#02050a14 10%,#03070c59 43%,#03070cf2 100%)}

@media(min-width:721px) and (max-width:1050px){.collection-visual-hubs{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:720px){.collection-visual-hubs{grid-template-columns:1fr;gap:16px;margin-bottom:52px}.collection-visual-hubs>a,.collection-visual-hubs>a:last-child:nth-child(odd){grid-column:auto;min-height:210px;padding:22px;border-radius:20px}.collection-visual-hubs strong{font-size:29px}}

@media(prefers-reduced-motion:reduce){.collection-visual-hubs>a:before,.collection-visual-hubs b span{transition:none}.collection-visual-hubs>a:hover:before{transform:none}}

/* Public presentation uses the optimized WebP hero; the legacy JPG remains as a rollback asset. */

/* Owner controls live only at the unlinked studio route. */

.public-owner-control{display:none!important}

/* The public site is presentation-only. The studio still works at its direct URL. */

body:not(.page-studio) a[href="#/studio"],
body:not(.page-studio) #game-review-edit,
body:not(.page-studio) #game-edit-form,
body:not(.page-studio) #music-add,
body:not(.page-studio) #music-editor,
body:not(.page-studio) .novel-help{display:none!important}

.route-loading,.route-error{min-height:55vh;display:grid;place-items:center;padding:40px;text-align:center}

/* Small interaction polish without making the quiet visual language feel busy. */

.game-tile,.portal-article,.collection-hubs a{will-change:transform;transition:transform .22s cubic-bezier(.4,0,.2,1),box-shadow .22s cubic-bezier(.4,0,.2,1),border-color .22s ease}

.game-tile:hover,.portal-article:hover,.collection-hubs a:hover{transform:translateY(-2px)}

@media(prefers-reduced-motion:reduce){.game-tile,.portal-article,.collection-hubs a{will-change:auto;transition:none}.game-tile:hover,.portal-article:hover,.collection-hubs a:hover{transform:none}}

@media(max-width:600px){
  .topbar{height:64px;justify-content:flex-start}
  .topbar #page-nav{width:100%;justify-content:flex-start;gap:22px;padding:0 18px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .topbar #page-nav::-webkit-scrollbar{display:none}
  .topbar #page-nav a{flex:0 0 auto;white-space:nowrap;font-size:13px;letter-spacing:1px;padding:20px 0}
  .inner-page main{padding-top:76px}
}

.collection-visual-hubs>a:focus-visible{outline:3px solid #80cfea;outline-offset:4px}

@media(max-width:720px){.page-wrap{width:calc(100% - 32px);margin:20px auto;padding:40px 22px}body.inner-page main .page-wrap:has(.collection-visual-hubs){margin:16px auto;padding:24px 18px}}

/* Homepage notes: the thought leads; identity and date are supporting metadata. */

#scene-notes .portal-article .portal-card-tag{order:0}

#scene-notes .portal-article p{order:1;font-weight:400;white-space:pre-line}

#scene-notes .portal-article h3{order:2;font-family:inherit;font-size:12px;font-weight:400;line-height:1.6;opacity:.65;margin:0 0 8px;overflow-wrap:anywhere}

#scene-notes .portal-article .portal-card-bottom{order:3}

/* Homepage sidebars participate in the page scroll, without nested scroll areas. */

.page-home .home-portal .portal-left,.page-home .home-portal .portal-right{}

/* Article covers use saved gallery thumbnails. */

.content-row.has-article-cover{display:grid;grid-template-columns:32px 176px minmax(0,1fr) 24px;gap:22px;align-items:center}

.article-row-cover{width:176px;height:118px;object-fit:cover;border-radius:12px}

.article-reading-cover{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-radius:18px;border:1px solid var(--surface-line);box-shadow:0 16px 36px rgba(8,22,38,.14);margin:26px 0}

.article-editor-cover{display:block;width:260px;max-width:100%;height:150px;object-fit:cover;border-radius:12px;margin:12px 0}

.article-editor-cover[hidden]{display:none}

.portal-article-cover{width:100%;object-fit:cover}

@media(max-width:600px){.content-row.has-article-cover{grid-template-columns:88px minmax(0,1fr);gap:14px}.has-article-cover .row-index,.has-article-cover .row-arrow{display:none}.article-row-cover{width:88px;height:88px}}

/* A softly coloured paper surface for homepage notes. */

#scene-notes .portal-article{--note-paper:#fff2c9;--note-ink:#50452e;background:var(--note-paper);border:1px solid #69542520;box-shadow:0 5px 12px #293f4c10;position:relative;color:var(--note-ink)}

#scene-notes .portal-article:nth-child(4n+2){--note-paper:#e4efdb;--note-ink:#354b37}

#scene-notes .portal-article:nth-child(4n+3){--note-paper:#f6e2e7;--note-ink:#60414c}

#scene-notes .portal-article:nth-child(4n){--note-paper:#e2ebf6;--note-ink:#354b64}

#scene-notes .portal-article:before{content:'';width:44px;height:5px;background:currentColor;opacity:.14;border-radius:5px;margin-bottom:10px}

#scene-notes .portal-article p,#scene-notes .portal-article h3,#scene-notes .portal-card-tag,#scene-notes .portal-card-bottom{color:var(--note-ink)}

html[data-theme=gothic] #scene-notes .portal-article{--note-paper:#383324;--note-ink:#f2e6be;background:var(--note-paper);border-color:#d7c89b26}

html[data-theme=gothic] #scene-notes .portal-article:nth-child(4n+2){--note-paper:#29392e;--note-ink:#d8ebd3}

html[data-theme=gothic] #scene-notes .portal-article:nth-child(4n+3){--note-paper:#402e37;--note-ink:#f2d7e1}

html[data-theme=gothic] #scene-notes .portal-article:nth-child(4n){--note-paper:#293748;--note-ink:#d9e5f4}

/* Image-led article cards: 大图 + 暗色渐变 + 顶部标签/日期 + 底部标题，参考 B 站卡片的信息层级。 */

.article-cover-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}

.article-cover-grid>div{min-width:0}

.article-cover-grid>[hidden]{display:none}

.article-cover-grid>.empty{grid-column:1/-1}

.article-cover-card{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;aspect-ratio:1.55;min-height:186px;overflow:hidden;border-radius:16px;border:1px solid rgba(255,255,255,.18);background:linear-gradient(135deg,#203b50,#0c1824 58%,#17303b);color:#fff;text-decoration:none;box-shadow:0 10px 28px rgba(6,20,34,.16);transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}

.article-cover-card>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;opacity:.88;filter:saturate(1.06) contrast(1.02);transform:scale(1.01);transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .3s ease}

.article-cover-card::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(4,10,18,.08) 0%,rgba(4,10,18,.16) 38%,rgba(4,10,18,.74) 70%,rgba(4,10,18,.96) 100%),radial-gradient(130% 80% at 0% 100%,rgba(5,16,28,.48),transparent 58%)}

.article-cover-card.is-placeholder::before{content:'';position:absolute;inset:0;z-index:-2;background:radial-gradient(80% 90% at 15% 0%,rgba(117,183,206,.32),transparent 60%),radial-gradient(70% 80% at 100% 100%,rgba(87,135,170,.28),transparent 65%)}

.article-cover-top{position:absolute;left:14px;right:14px;top:14px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px}

.article-cover-category,.article-cover-date{display:inline-flex;align-items:center;max-width:70%;padding:4px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(5,16,28,.46);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:rgba(255,255,255,.9);font-size:10.5px;line-height:1.4;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.article-cover-date{flex:0 0 auto;max-width:none;font-variant-numeric:tabular-nums}

.article-cover-copy{position:relative;z-index:1;min-width:0;padding:0 16px 15px}

.article-cover-card .article-cover-copy h3{font-family:inherit;font-size:18px;line-height:1.35;font-weight:650;margin:0 0 6px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.35);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}

.article-cover-card .article-cover-copy p{font-size:12px;line-height:1.55;font-weight:400;color:rgba(232,241,247,.72);margin:0 0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.article-cover-meta{display:flex;align-items:center;gap:8px;min-width:0;font-size:10.5px;line-height:1.5;color:rgba(230,240,246,.68)}

.article-cover-meta em{margin-left:auto;display:inline-flex;align-items:center;gap:4px;font-style:normal;font-weight:600;color:#fff;opacity:.9}

.article-cover-meta em i{font-style:normal;transition:transform .2s ease}

html[data-theme=gothic] .article-cover-card .article-cover-copy h3,html[data-theme=gothic] .article-cover-card .article-cover-date{color:#fff!important}

html[data-theme=gothic] .article-cover-card .article-cover-copy p{color:rgba(230,240,246,.72)!important}

.article-cover-card:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.3);box-shadow:0 16px 34px rgba(6,20,34,.24)}

.article-cover-card:hover>img{opacity:1;transform:scale(1.055)}

.article-cover-card:hover .article-cover-meta em i{transform:translate(2px,-2px)}

.article-cover-card:focus-visible{outline:3px solid #78c6e8;outline-offset:4px}

@media(max-width:1200px){.article-cover-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:900px){.article-cover-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}

@media(max-width:600px){.article-cover-grid{grid-template-columns:1fr}.page-wrap:has(.article-cover-grid){padding:24px 18px}.article-cover-card{min-height:196px}}

@media(prefers-reduced-motion:reduce){.article-cover-card,.article-cover-card>img,.article-cover-meta em i{transition:none}.article-cover-card:hover{transform:none}.article-cover-card:hover>img{transform:none}}

/* ================= 关于我 · 平台连接（便当格） =================
   主卡 B 站占 4 列 2 行，其余平台与联系方式按 2 / 3 列错落拼满六列栅格。
   卡片是深色图片卡 + 一层底部渐暗遮罩，两个主题都保持同一套白字层级。
   卡片清单在 site-config.js 的 aboutPlatforms，链接留空的那张根本不渲染（所以这里不用写隐藏态）。 */
.about-platforms{margin:0}

.about-platform-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:98px;gap:14px}

.about-platform{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:18px 20px;background:linear-gradient(145deg,#243141,#0d151e);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius);box-shadow:var(--argon-shadow);color:#fff;text-decoration:none;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}

.about-platform-lg::before{content:'';position:absolute;right:-44px;top:-58px;width:196px;height:196px;border:1px solid rgba(255,255,255,.2);border-radius:50%;box-shadow:0 0 0 26px rgba(255,255,255,.035);z-index:-1;pointer-events:none;transition:transform .55s ease}

.about-platform::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(5,10,16,.08) 20%,rgba(5,10,16,.8) 100%);pointer-events:none}

.about-platform-cover{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;opacity:.9;transform:scale(1.01);transition:transform .55s ease,opacity .3s ease}

.about-platform.has-cover:hover .about-platform-cover,.about-platform.has-cover:focus-visible .about-platform-cover{opacity:1;transform:scale(1.06)}

.about-platform:hover,.about-platform:focus-visible{transform:translateY(-3px);box-shadow:var(--argon-shadow-hover);border-color:var(--accent)}

.about-platform-lg{grid-column:span 4;grid-row:span 2;padding:28px 30px}

.about-platform-md{grid-column:span 2}

.about-platform-wide{grid-column:span 3}

.about-platform-sm,.about-card-sm{grid-column:span 2;padding:14px 16px}

.about-platform strong{font-family:var(--title-font);font-weight:400;font-size:20px;line-height:1.4;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.5)}

.about-platform-lg strong{font-size:34px;letter-spacing:1px}

.about-platform-arrow{position:absolute;top:14px;right:16px;font-size:14px;color:rgba(255,255,255,.72);opacity:.75;text-shadow:0 1px 8px rgba(0,0,0,.5);transition:opacity .2s ease,transform .2s ease}

.about-platform-lg .about-platform-arrow{top:26px;right:28px;font-size:19px}

.about-platform-lg:hover::before,.about-platform-lg:focus-visible::before{transform:scale(1.08)}

.about-platform:hover .about-platform-arrow,.about-platform:focus-visible .about-platform-arrow{opacity:1;transform:translate(2px,-2px)}

@media(max-width:960px){.about-platform-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:92px}.about-platform-lg{grid-column:span 4;grid-row:span 2}.about-platform-md,.about-platform-wide,.about-platform-sm,.about-card-sm{grid-column:span 2}.about-contact-wechat{grid-column:span 4}.about-platform-lg strong{font-size:28px}}

@media(max-width:600px){.about-platforms{margin-top:45px}.about-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:84px;gap:10px}.about-platform-lg{grid-row:span 2}.about-platform-lg,.about-platform-md,.about-platform-wide,.about-platform-sm,.about-card-sm{grid-column:span 2}.about-platform{padding:13px 14px}.about-platform strong{font-size:17px}.about-platform-lg strong{font-size:23px}}

@media(prefers-reduced-motion:reduce){.about-platform,.about-platform-arrow,.about-platform-cover{transition:none}.about-platform:hover,.about-platform:focus-visible{transform:none}.about-platform.has-cover:hover .about-platform-cover,.about-platform.has-cover:focus-visible .about-platform-cover{transform:scale(1.01)}}

/* 联系方式与平台卡共用一个便当格；点卡片仍用原生 dialog 弹二维码。 */
.about-contact{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:14px 16px;min-height:0;background:linear-gradient(145deg,#243141,#0d151e);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius);box-shadow:var(--argon-shadow);color:#fff;font:inherit;text-align:left;cursor:pointer;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}

.about-contact::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(5,10,16,.08) 20%,rgba(5,10,16,.8) 100%);pointer-events:none}

.about-contact-cover{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;opacity:.9;transform:scale(1.01);transition:transform .55s ease,opacity .3s ease}

.about-contact.has-cover:hover .about-contact-cover,.about-contact.has-cover:focus-visible .about-contact-cover{opacity:1;transform:scale(1.06)}

.about-contact:hover,.about-contact:focus-visible{transform:translateY(-3px);box-shadow:var(--argon-shadow-hover);border-color:var(--accent)}

.about-contact strong{font-family:var(--title-font);font-weight:400;font-size:22px;line-height:1.4;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.5)}

.about-contact-note{font-size:12px;line-height:1.7;color:rgba(255,255,255,.72);text-shadow:0 1px 8px rgba(0,0,0,.45)}

.about-contact-arrow{position:absolute;top:16px;right:18px;font-size:15px;color:rgba(255,255,255,.72);opacity:.75;text-shadow:0 1px 8px rgba(0,0,0,.5);transition:opacity .2s ease,transform .2s ease}

.about-contact:hover .about-contact-arrow,.about-contact:focus-visible .about-contact-arrow{opacity:1;transform:translate(2px,-2px)}

.contact-dialog{width:min(420px,calc(100% - 32px));text-align:center}

.contact-dialog .dialog-head{margin-bottom:16px}

.contact-dialog .dialog-head h2{font-weight:400;font-size:22px;letter-spacing:2px;margin:0}

.contact-close{background:none;border:0;padding:4px 8px;font-size:22px;line-height:1;color:var(--muted);cursor:pointer;border-radius:8px}

.contact-close:hover,.contact-close:focus-visible{color:var(--ink)}

.contact-qr{display:block;width:auto;height:auto;max-width:min(320px,72vw);max-height:52svh;margin:0 auto;border:1px solid var(--line);border-radius:var(--radius);background:#fff}

@media(max-width:600px){.about-contact{padding:13px 14px}.about-contact strong{font-size:20px}}

@media(prefers-reduced-motion:reduce){.about-contact,.about-contact-arrow,.about-contact-cover{transition:none}.about-contact:hover,.about-contact:focus-visible{transform:none}.about-contact.has-cover:hover .about-contact-cover,.about-contact.has-cover:focus-visible .about-contact-cover{transform:scale(1.01)}}

/* ---------- 文字页：分类 + 内容（1.69.0） ----------
   一级是主题抽屉（理论 / 情感 / 洞见 / 未分类），进页面「有分类也有内容」：
   上面一排分类卡（封面用这一册最新一篇的图），下面直接是卡片流 + 篇幅筛选 + 翻页。
   分类卡与 .article-cover-card 同一族做法：isolation + 负 z-index 的遮罩，夜境主题自动跟随令牌。 */
.words-sections{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;margin:0 0 26px}
.words-section-card{position:relative;isolation:isolate;display:grid;align-content:end;gap:4px;min-height:138px;padding:16px;border-radius:var(--argon-radius-lg);overflow:hidden;border:1px solid var(--surface-line);background:var(--surface);color:inherit;text-decoration:none;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.words-section-card.has-cover{color:#fff;border-color:transparent;background-image:var(--words-cover);background-size:cover;background-position:center}
.words-section-card.has-cover::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#07101912 25%,#071019e0 100%)}
.words-section-card:hover,.words-section-card:focus-visible{transform:translateY(-3px);box-shadow:var(--argon-shadow-hover)}
.words-section-card.is-active{border-color:var(--argon-indigo);box-shadow:inset 0 0 0 1px var(--argon-indigo)}
.words-section-count{position:absolute;right:12px;top:12px;padding:3px 9px;border-radius:999px;background:var(--argon-tint);color:var(--argon-indigo);font-size:11px;font-weight:600;line-height:1.5}
.words-section-card.has-cover .words-section-count{background:#091826a8;color:#fff}
.words-section-card strong{font-size:19px;font-weight:650;letter-spacing:1px}
.words-section-card small{font-size:11px;line-height:1.5;opacity:.78;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.words-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 20px}
.words-toolbar .filters{display:flex;flex-wrap:wrap;gap:8px}
#words-progress{color:var(--muted)}
.words-pager{margin-top:28px}

/* 落地页那一排按钮 + 合集流（1.75.0）：一个合集一块，每块先摆 6 篇。
   [hidden] 必须显式压回去 —— .words-sections / .words-toolbar 自己带 display，光靠 hidden 属性盖不住。 */
.words-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 18px}
.words-actions .chip{min-height:38px;display:inline-flex;align-items:center;gap:6px}
.words-sections[hidden],.words-toolbar[hidden]{display:none}
#words-list.is-collections{display:block}
.words-collection{margin:0 0 36px}
.words-collection:last-child{margin-bottom:4px}
.words-collection-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 16px;padding-bottom:10px;border-bottom:1px solid var(--surface-line)}
.words-collection-head h3{margin:0;font-family:var(--title-font);font-size:21px;font-weight:650;letter-spacing:1px}
.words-collection-head p{margin:6px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.article-cover-band{padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.14);font-weight:600;font-style:normal;font-size:10px;line-height:1.5}
@media(max-width:600px){.words-sections{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.words-section-card{min-height:112px;padding:13px}.words-section-card strong{font-size:16px}.words-toolbar{flex-direction:column;align-items:start;gap:12px}.words-actions{flex-direction:column;align-items:start;gap:10px}.words-collection{margin-bottom:26px}.words-collection-head h3{font-size:18px}}
