:root {
  color-scheme: light;
  --aurora-ink: #394553;
  --aurora-muted: #81705b;
  --aurora-line: #d4cdbb;
  --aurora-paper: #f7f6f1;
  --aurora-sky: #e2ece9;
  --aurora-coral: #1597a2;
  --aurora-night: #82715b;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #d5d1bd;
  color: var(--aurora-ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: #d5d1bd; }
a { color: inherit; }

.aurora-skip-link, .aurora-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.aurora-skip-link:focus { z-index: 100; top: .6rem; left: .6rem; width: auto; height: auto; padding: .5rem .75rem; clip: auto; background: #fff; color: #1597a2; }
.aurora-header { position: sticky; top: 0; z-index: 30; border-top: 2px solid #dd861a; background: var(--aurora-night); color: #fff7ee; box-shadow: 0 1px 6px rgb(61 50 35 / 28%); }
.aurora-header-inner { width: min(1100px, calc(100% - 2rem)); min-height: 52px; margin: 0 auto; display: flex; align-items: center; gap: 1.15rem; }
.aurora-brand { display: inline-flex; align-items: center; gap: .48rem; color: #fff7ee; font-size: .95rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.aurora-brand-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 5px; background: #1597a2; color: #fff; font-size: .85rem; font-weight: 800; }
.aurora-nav { display: flex; align-items: center; gap: .2rem; margin-right: auto; color: rgb(255 247 238 / 82%); font-size: .82rem; }
.aurora-nav a, .aurora-account a { text-decoration: none; transition: color .2s ease; }
.aurora-nav a { padding: .42rem .55rem; border-radius: 4px; }
.aurora-nav a:hover, .aurora-nav a[aria-current="page"], .aurora-account a:hover { background: rgb(255 255 255 / 11%); color: #fff; }
.aurora-header-search { display: flex; align-items: center; width: 170px; height: 29px; overflow: hidden; border: 1px solid rgb(255 247 238 / 22%); border-radius: 4px; background: rgb(255 255 255 / 10%); }
.aurora-header-search:focus-within { border-color: #1597a2; box-shadow: 0 0 0 3px rgb(21 151 162 / 30%); }
.aurora-header-search input { min-width: 0; width: 100%; height: 100%; padding: 0 .5rem; border: 0; outline: 0; background: transparent; color: #fff7ee; font: inherit; font-size: .75rem; }
.aurora-header-search input::placeholder { color: rgb(255 247 238 / 62%); }
.aurora-header-search button { width: 29px; height: 100%; border: 0; background: transparent; color: rgb(255 247 238 / 80%); cursor: pointer; font-size: 1rem; }
.aurora-account { display: flex; align-items: center; gap: .25rem; color: #fff7ee; font-size: .78rem; white-space: nowrap; }
.aurora-account a, .aurora-account button { padding: .4rem .5rem; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.aurora-account form { margin: 0; }
.aurora-alert-link { display: inline-flex; align-items: center; gap: .25rem; }
.aurora-alert-count { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 .28rem; border-radius: 999px; background: #dd861a; color: #fff; font-size: .6rem; font-style: normal; font-weight: 800; line-height: 1; }
.aurora-alert-link[aria-current="page"] { background: rgb(255 255 255 / 11%); color: #fff; }
.aurora-admin { color: #fff7ee !important; font-weight: 700; }
.aurora-user { display: inline-flex; align-items: center; gap: .55rem; }
.aurora-user b { display: none; font: inherit; font-weight: inherit; }
.aurora-user em { font-style: normal; }
.aurora-user span { position: relative; display: grid; place-items: center; width: 29px; height: 29px; overflow: hidden; border: 1px solid #79c3c2; border-radius: 10px; background: linear-gradient(135deg, #c8e3dd, #92c8bd); box-shadow: 0 0 0 2px rgb(184 222 214 / 62%), 0 4px 10px rgb(57 69 83 / 20%), inset 0 1px 0 rgb(255 255 255 / 52%); color: #285f5b; font-family: "Microsoft YaHei", sans-serif; font-size: .76rem; font-weight: 800; }
.aurora-user span img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aurora-join { background: #1597a2 !important; color: #fff !important; font-weight: 700; }

.aurora-main { flex: 1 0 auto; width: min(1100px, calc(100% - 2rem)); margin: 1.35rem auto 2rem; }
.aurora-breadcrumb { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; color: #6c604f; font-size: .76rem; }
.aurora-breadcrumb a { text-decoration: none; }
.aurora-breadcrumb strong { color: var(--aurora-ink); font-weight: 650; }
.aurora-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.15rem; align-items: start; }
.aurora-sidebar { display: grid; min-width: 0; gap: .8rem; align-content: start; }
.aurora-content { min-width: 0; padding: clamp(1rem, 2.4vw, 1.75rem); border: 0; border-radius: 8px; background: #f7f6f1; box-shadow: 0 2px 10px rgb(0 0 0 / 6%); }
.aurora-aside, .aurora-categories, .aurora-rules { padding: 1rem; border-radius: 8px; background: #f7f6f1; box-shadow: 0 1px 6px rgb(61 50 35 / 9%); }
.aurora-aside { border-top: 3px solid #c9b887; }
.aurora-kicker { display: block; margin: -1rem -1rem .7rem; padding: .65rem .8rem; border-radius: 8px 8px 0 0; background: #e5e2d5; color: #394553; font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.aurora-aside h2 { margin: .45rem 0; color: #394553; font-size: 1.1rem; font-weight: 700; }
.aurora-aside p { margin: 0; color: #6f6250; font-size: .78rem; line-height: 1.7; }
.aurora-action { display: flex; justify-content: space-between; margin-top: 1rem; padding: .55rem .7rem; border-radius: 4px; background: #1597a2; color: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; }
.aurora-action:hover { background: #117982; color: #fff; }
.aurora-login-link { display: block; margin-top: .65rem; color: #6f6250; font-size: .72rem; text-align: center; text-decoration: none; }
.aurora-sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin: -1rem -1rem .7rem; padding: .65rem .8rem; border-radius: 8px 8px 0 0; background: #e5e2d5; }
.aurora-sidebar-heading h2, .aurora-rules h2 { margin: 0; color: #394553; font-size: .86rem; }
.aurora-sidebar-heading h2 { color: #394553; }
.aurora-sidebar-heading a { padding: .18rem .4rem; border: 1px solid #bdb5a1; border-radius: 3px; color: #665d4e; font-size: .7rem; font-weight: 700; text-decoration: none; }
.aurora-sidebar-heading a:hover { border-color: #b77b38; background: #d9d4c4; color: #4e493f; }
.aurora-category-list { display: grid; gap: .1rem; }
.aurora-category-list .nav-item { display: block; padding: .45rem .5rem; border-radius: 4px; color: #655a4b; font-size: .78rem; text-decoration: none; }
.aurora-category-list .nav-item:hover, .aurora-category-list .nav-item.active { background: #d9e9e6; color: #117982; font-weight: 700; }
.aurora-rules h2 { margin: -1rem -1rem .7rem; padding: .65rem .8rem; border-radius: 8px 8px 0 0; background: #e5e2d5; color: #394553; }
.aurora-rules p { display: flex; gap: .5rem; margin: .6rem 0 0; color: #6f6250; font-size: .72rem; line-height: 1.45; }
.aurora-rules p span { color: #1597a2; font-weight: 800; }
.aurora-footer { margin-top: 1rem; border-top: 2px solid #b77b38; background: #d3cab0; color: #665d4e; }
.aurora-footer-inner { position: relative; display: flex; align-items: center; width: min(1100px, calc(100% - 2rem)); min-height: 68px; margin: 0 auto; gap: 1rem; font-size: .74rem; }
.aurora-footer-brand { display: inline-flex; align-items: center; gap: .45rem; color: #4e493f; font-weight: 800; }
.aurora-footer-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 4px; background: #1597a2; color: #fff; font-size: .7rem; }
.aurora-footer-note { color: #7a705d; }
.aurora-footer-home { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; color: #665d4e; font-weight: 700; text-decoration: none; }
.aurora-footer-home:hover { color: #117982; }
.aurora-footer-home span { color: #1597a2; font-size: .95rem; }

.aurora-topic-card { padding: 1.2rem 0; border-bottom: 1px solid var(--aurora-line); }
.aurora-topic-card:first-child { padding-top: 0; }
.aurora-topic-card h2 { margin: .4rem 0; font-size: 1.1rem; letter-spacing: -.015em; }
.aurora-topic-card h2 a { text-decoration: none; }
.aurora-topic-card h2 a:hover { color: var(--aurora-coral); }
.aurora-topic-card p, .aurora-topic-category { color: var(--aurora-muted); font-size: .82rem; }
.aurora-topic-category { text-decoration: none; }

/* Home feed: the core supplies semantic classes, while Aurora owns the visual hierarchy. */
.home-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 0 0 1.55rem; border-bottom: 1px solid var(--aurora-line); }
.home-heading h1 { margin: 0; color: var(--aurora-ink); font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.home-heading span { display: inline-block; margin-top: .55rem; color: var(--aurora-muted); font-size: .86rem; }
.feed-create { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 .95rem; border-radius: 999px; background: var(--aurora-coral); box-shadow: 0 8px 20px rgb(232 120 89 / 25%); color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.feed-create:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgb(232 120 89 / 32%); }
.topic-feed { padding-top: 1.15rem; }
.topic-empty { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 315px; margin-top: .25rem; padding: 2rem 1rem; overflow: hidden; border: 1px dashed #cbd5d5; border-radius: 18px; background: linear-gradient(135deg, #fbfcf8, #edf5f3); text-align: center; }
.topic-empty::before { content: ""; position: absolute; width: 175px; height: 175px; border: 1px solid #c8dcd7; border-radius: 50%; box-shadow: 0 0 0 18px rgb(200 220 215 / 34%), 0 0 0 36px rgb(200 220 215 / 18%); }
.topic-empty::after { content: "✦"; position: absolute; top: calc(50% - 72px); left: calc(50% - 10px); color: var(--aurora-coral); font-size: 1.35rem; }
.topic-empty h2 { position: relative; z-index: 1; margin: 1.8rem 0 .55rem; color: var(--aurora-ink); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.topic-empty h2::after { content: "新的讨论会从这里开始"; display: block; margin-top: .5rem; color: var(--aurora-muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .84rem; font-weight: 400; }
.topic-empty a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; margin: .35rem 0 0; padding: .72rem 1rem; border: 1px solid var(--aurora-night); border-radius: 999px; background: var(--aurora-night); color: #fff; font-size: .84rem; font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.topic-empty a:hover { background: #344a5a; color: #fff; transform: translateY(-2px); }

.topic-feed-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--aurora-line); }
.topic-feed-item:hover h2 a { color: var(--aurora-coral); }
.topic-avatar { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #b9d0c9; border-radius: 50%; background: #e4ece7; color: #49675f; font-size: .78rem; font-weight: 800; }
.topic-feed-main h2 { margin: 0 0 .45rem; font-size: 1rem; letter-spacing: -.015em; }
.topic-feed-main h2 a { color: var(--aurora-ink); text-decoration: none; }
.topic-feed-meta { display: flex; flex-wrap: nowrap; gap: .25rem; overflow: hidden; color: var(--aurora-muted); font-size: .78rem; white-space: nowrap; }
.topic-feed-meta a { color: inherit; text-decoration: none; }
.topic-feed-meta .topic-activity { display: inline; color: #9a958a; }
.topic-feed-meta .topic-activity::before, .topic-feed-meta .topic-created::before, .topic-feed-meta .topic-reply-author::before { content: "·"; margin-right: .25rem; color: #9a958a; }
.topic-feed-meta .topic-author::before { content: "发布 · "; color: #9a958a; }
.topic-feed-meta time, .topic-page-meta time { overflow: hidden; text-overflow: ellipsis; visibility: hidden; }
.topic-feed-meta time.aurora-time-ready, .topic-page-meta time.aurora-time-ready { visibility: visible; }
.topic-category, .topic-pinned { color: #5d8682 !important; font-weight: 650; }
.topic-replies { display: grid; min-width: 46px; color: var(--aurora-muted); text-align: center; text-decoration: none; }
.topic-replies strong { color: var(--aurora-ink); font-size: 1rem; }
.topic-replies span { font-size: .7rem; }

/* Developer market */
.market-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; padding: .15rem 0 1.65rem; border-bottom: 1px solid var(--aurora-line); }
.market-heading .eyebrow { margin: 0 0 .6rem; color: #5d8682; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.market-heading h1 { margin: 0; color: var(--aurora-ink); font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.market-heading p:not(.eyebrow) { max-width: 590px; margin: .8rem 0 0; color: var(--aurora-muted); font-size: .91rem; line-height: 1.75; }
.market-submit-link { align-self: center; white-space: nowrap; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.25rem; }
.market-card { position: relative; min-height: 212px; padding: 1.15rem; border: 1px solid #dce7e4; border-radius: 14px; background: linear-gradient(145deg, #fff, #f7fbf9); box-shadow: 0 9px 24px rgb(32 52 58 / 4%); }
.market-card::after { content: ""; position: absolute; right: 1rem; bottom: 1rem; width: 35px; height: 35px; border: 1px solid #c9ddd7; border-radius: 50%; opacity: .65; }
.market-card-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.market-kind, .market-version { display: inline-flex; align-items: center; min-height: 24px; padding: 0 .55rem; border-radius: 999px; font-size: .67rem; font-weight: 800; }
.market-kind { background: var(--aurora-sky); color: #47736e; }
.market-version { border: 1px solid #d9e2e0; color: var(--aurora-muted); }
.market-card h2 { max-width: calc(100% - 2.2rem); margin: 1.15rem 0 .25rem; color: var(--aurora-ink); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.market-package { margin: 0; color: #5b827c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; overflow-wrap: anywhere; }
.market-card p:not(.market-package) { margin: .85rem 0 2.7rem; color: var(--aurora-muted); font-size: .82rem; line-height: 1.65; }
.market-download { position: absolute; bottom: 1rem; left: 1.15rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--aurora-ink); font-size: .78rem; font-weight: 800; text-decoration: none; }
.market-download span { color: var(--aurora-coral); font-size: 1rem; transition: transform .2s ease; }
.market-download:hover { color: var(--aurora-coral); }
.market-download:hover span { transform: translateY(2px); }
.market-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 275px; padding: 2rem; border: 1px dashed #c5d7d2; border-radius: 16px; background: linear-gradient(135deg, #fbfcf8, #edf5f3); text-align: center; }
.market-empty h2 { margin: 0 0 .55rem; color: var(--aurora-ink); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.market-empty p { margin: 0 0 1rem; color: var(--aurora-muted); font-size: .84rem; }
.market-empty a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border-radius: 999px; background: var(--aurora-night); color: #fff; font-size: .8rem; font-weight: 750; text-decoration: none; }
.market-empty a:hover { background: #344a5a; color: #fff; }
.market-submit { max-width: 760px; margin: 0 auto; }
.market-back { display: inline-flex; margin-bottom: 1.25rem; color: #557c76; font-size: .8rem; font-weight: 750; text-decoration: none; }
.market-submit > h1 { margin: 0; color: var(--aurora-ink); font-family: Georgia, serif; font-size: 2.25rem; font-weight: 500; }
.market-submit > p { margin: .75rem 0 1.2rem; color: var(--aurora-muted); line-height: 1.75; }
.market-submit > .form { max-width: none; margin: 0; padding: 1.25rem; border: 1px solid #dbe7e3; border-radius: 16px; background: #f9fcfa; }
.market-submit > h2 { margin: 2rem 0 .85rem; color: var(--aurora-ink); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.market-submission { padding: .85rem 0; border-bottom: 1px solid var(--aurora-line); color: var(--aurora-muted); font-size: .84rem; }

/* Search */
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: end; margin: 0 0 1.8rem; padding: 1rem; border: 1px solid #dbe7e3; border-radius: 15px; background: linear-gradient(135deg, #f7fbf9, #fffdf9); }
.search label { display: grid; gap: .45rem; color: #53645f; font-size: .76rem; font-weight: 800; }
.search input { width: 100%; min-height: 45px; padding: 0 .85rem; border: 1px solid #d3e1dd; border-radius: 10px; outline: none; background: #fff; color: var(--aurora-ink); font: inherit; }
.search input:focus { border-color: #78a99d; box-shadow: 0 0 0 4px rgb(120 169 157 / 14%); }
.search button { min-height: 45px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--aurora-night); color: #fff; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 800; }
.search button:hover { background: #344a5a; }
.search + h1 { margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--aurora-line); color: var(--aurora-ink); font-family: Georgia, serif; font-size: clamp(1.85rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; }
.search + h1 + p { margin: 1.4rem 0; padding: 1rem; border-left: 3px solid #9ec3b9; background: #f4faf7; color: #5d716c; font-size: .86rem; }
.search ~ .topic { position: relative; margin: 0; padding: 1rem 1.15rem 1rem 1.3rem; border-bottom: 1px solid var(--aurora-line); transition: background .18s ease; }
.search ~ .topic::before { content: ""; position: absolute; top: 1.18rem; left: 0; width: 4px; height: 26px; border-radius: 4px; background: #c8ded7; }
.search ~ .topic:hover { background: #f7fbf9; }
.search ~ .topic a:first-child { color: #5d8682; font-size: .74rem; font-weight: 800; text-decoration: none; }
.search ~ .topic h2 { margin: .38rem 0 0; font-size: 1.05rem; line-height: 1.4; }
.search ~ .topic h2 a { color: var(--aurora-ink); text-decoration: none; }
.search ~ .topic h2 a:hover { color: var(--aurora-coral); }

/* Topic detail */
.topic-page-heading { padding-bottom: 1.4rem; border-bottom: 1px solid var(--aurora-line); }
.topic-heading-topline, .topic-page-meta, .topic-actions, .post-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .8rem; }
.topic-heading-topline { margin-bottom: 1rem; color: var(--aurora-muted); font-size: .78rem; }
.topic-heading-topline .topic-category { padding: .32rem .6rem; border-radius: 999px; background: var(--aurora-sky); color: #47736e !important; font-weight: 750; text-decoration: none; }
.topic-state { padding: .32rem .6rem; border: 1px solid #dce5e3; border-radius: 999px; color: #778783; }
.topic-state.is-locked { border-color: #ebc9bd; background: #fff4ef; color: #a3553f; }
.topic-title-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; min-width: 0; }
.topic-title-row h1 { min-width: 0; max-width: 780px; margin: 0; overflow-wrap: anywhere; color: var(--aurora-ink); font-family: Georgia, serif; font-size: clamp(1.85rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.post-edit { flex: 0 0 auto; color: var(--aurora-coral); font-size: .8rem; font-weight: 400; text-decoration: none; white-space: nowrap; }
.topic-page-meta { margin-top: 1.2rem; color: var(--aurora-muted); font-size: .78rem; }
.topic-owner-avatar, .reply-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 12px; background: #dcece7; color: #3f7068; font-weight: 800; }
.topic-page-meta a, .reply-author-meta a { color: var(--aurora-ink); font-weight: 750; text-decoration: none; }
.topic-meta-count { padding-left: .75rem; border-left: 1px solid var(--aurora-line); color: #557c76; font-weight: 700; }
.topic-actions { margin-top: 1.2rem; }
.topic-actions form, .post-tools form { margin: 0; }
.topic-actions button, .post-tools button, .report-control summary { padding: .48rem .7rem; border: 1px solid #d6e0de; border-radius: 999px; background: #fff; color: #58706d; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; }
.topic-actions button:hover, .post-tools button:hover, .report-control summary:hover { border-color: #94b9b0; background: #eef7f4; color: #2b5b55; }
.topic-actions > a { display: inline-flex; align-items: center; min-height: 31px; padding: .48rem .7rem; border: 1px solid #d6e0de; border-radius: 999px; background: #fff; color: #58706d; font-size: .75rem; font-weight: 700; text-decoration: none; }
.topic-actions > a:hover { border-color: #94b9b0; background: #eef7f4; color: #2b5b55; }
.report-control { position: relative; }
.report-control summary { list-style: none; }
.report-control summary::-webkit-details-marker { display: none; }
.report-control form { min-width: 250px; margin-top: .5rem; padding: .75rem; border: 1px solid var(--aurora-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgb(26 47 52 / 12%); }
.report-control textarea { width: 100%; min-height: 80px; padding: .6rem; border: 1px solid #dce3e2; border-radius: 8px; resize: vertical; }
.topic-thread { min-width: 0; margin-top: 1.35rem; }
.replies-heading { display: flex; align-items: center; gap: .65rem; margin: 1.6rem 0 .8rem; color: var(--aurora-ink); font-size: 1rem; }
.replies-heading span { color: var(--aurora-coral); font-size: .82rem; }
.post { position: relative; min-width: 0; margin: 0 0 .85rem; padding: 1.15rem; border: 1px solid var(--aurora-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgb(32 52 58 / 4%); }
.post-original { border-color: #d2e3de; background: linear-gradient(135deg, #fff, #f7fbf9); }
.reply-author { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.reply-author-meta { display: grid; gap: .15rem; min-width: 0; }
.reply-author-meta time { color: var(--aurora-muted); font-size: .72rem; visibility: hidden; }
.reply-author-meta time.aurora-time-ready { visibility: visible; }
.author-role { width: fit-content; padding: .12rem .38rem; border-radius: 999px; background: #fff0e9; color: #b7644c; font-size: .65rem; font-weight: 750; }
.reply-floor { margin-left: auto; padding: .35rem .55rem; border: 0; background: transparent; color: #87938f; cursor: pointer; font-size: .72rem; }
.reply-floor:hover { color: #3f7068; background: #edf7f4; }
.post-delete { margin: 0; }
.post-delete button { padding: .35rem .55rem; border: 0; border-radius: 4px; background: transparent; color: #a35c47; cursor: pointer; font: inherit; font-size: .72rem; }
.post-delete button:hover { background: #fff0ea; color: #8d4636; }
.post .body { min-width: 0; margin: 1.15rem 0; color: #354440; font-size: .95rem; line-height: 1.9; overflow-wrap: anywhere; }
.post .body img, .post .body iframe, .post .body video, .post .body embed, .post .body object { max-width: 100%; height: auto; }
.post .body blockquote { margin: .8rem 0; padding: .7rem .9rem; border-left: 3px solid #9fc5bb; background: #f3f8f6; color: #63736f; }
/* Reply previews retain the quoted member while avoiding nested quote chains. */
.post-reply .body blockquote.aurora-quote-preview[data-reply-to]::before { content: attr(data-reply-to); display: block; margin-bottom: .25rem; color: #51716a; font-size: .78rem; font-weight: 700; }
.post-reply .body blockquote.aurora-quote-preview > :first-child { max-height: 4.8em; margin: 0; overflow: hidden; }
.post-tools { padding-top: .85rem; border-top: 1px solid #edf0ef; }
.post-tools button { border: 0; background: #f4f7f6; }
.post-tools { gap: .3rem .8rem; }
.post-tools button, .post-tools .report-control summary { padding: .2rem 0; border: 0; border-radius: 0; background: transparent; color: #87938f; font-size: .74rem; font-weight: 400; }
.post-tools .report-control summary { display: inline-flex; align-items: center; }
.post-tools button:hover, .post-tools .report-control summary:hover { background: transparent; color: #117982; }
.post-tools .report-control form { margin-top: .6rem; }
.locked-note { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; background: #fff5f0; color: #a35c47; font-size: .84rem; }
.reply-composer { margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #cfe1dc; border-radius: 17px; background: linear-gradient(145deg, #f5faf8, #fffdf9); }
.reply-quote-note { margin: 0 0 1rem; padding: .7rem .85rem; border-left: 3px solid #78a99d; background: #edf7f4; color: #52706a; font-size: .8rem; }
.reply-quote-note strong { display: block; margin-bottom: .35rem; color: #3f7068; }
.reply-quote-note blockquote { margin: 0; color: #63736f; line-height: 1.65; white-space: pre-wrap; }
.reply-composer-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.reply-composer-heading h2 { margin: 0; color: var(--aurora-ink); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.reply-composer-heading span, .reply-composer-actions small { color: var(--aurora-muted); font-size: .75rem; }
.reply-editor { display: grid; gap: .45rem; color: #53645f; font-size: .78rem; font-weight: 750; }
.reply-editor textarea { width: 100%; min-height: 160px; padding: .9rem; border: 1px solid #d2e1dd; border-radius: 12px; outline: none; background: #fff; color: var(--aurora-ink); font: inherit; line-height: 1.7; resize: vertical; }
.reply-editor textarea:focus { border-color: #78a99d; box-shadow: 0 0 0 4px rgb(120 169 157 / 14%); }
.reply-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; }
.reply-composer-actions button { min-height: 42px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--aurora-coral); color: #fff; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 750; }
.reply-composer-actions button:hover { background: #d9674f; }
.aurora-login-reply-editor { display: grid; place-items: center; min-height: 160px; border: 1px solid #d2e1dd; border-radius: 12px; background: #fff; }
.aurora-login-reply .primary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 1.1rem; border-radius: 999px; background: var(--aurora-coral); color: #fff; font-size: .8rem; font-weight: 750; text-decoration: none; }
.aurora-login-reply .primary:hover { background: #d9674f; }

/* Member center */
.member-center { max-width: 900px; margin: 0 auto; }
.member-hero { display: flex; align-items: center; gap: 1rem; padding: 1.35rem; border: 1px solid #d5e4df; border-radius: 17px; background: linear-gradient(130deg, #edf7f3, #fffaf5); }
.member-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 66px; height: 66px; overflow: hidden; border-radius: 20px; background: #d1e8e1; color: #3d7168; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 700; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-hero h1 { margin: 0; color: var(--aurora-ink); font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.member-hero p { margin: .3rem 0 0; color: var(--aurora-muted); font-size: .78rem; }
.member-hero > a { margin-left: auto; padding: .55rem .75rem; border: 1px solid #bad1ca; border-radius: 999px; color: #356760; font-size: .76rem; font-weight: 750; text-decoration: none; }
.member-tabs { display: flex; gap: .35rem; overflow-x: auto; margin: 1.1rem 0; padding: .3rem; border-bottom: 1px solid var(--aurora-line); }
.member-tabs a { padding: .6rem .75rem; color: var(--aurora-muted); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.member-tabs a[aria-current="page"] { border-bottom: 2px solid var(--aurora-coral); color: var(--aurora-ink); }
.member-panel { padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--aurora-line); border-radius: 16px; background: #fff; }
.member-panel h2 { margin: 0 0 1rem; color: var(--aurora-ink); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.member-form { display: grid; gap: .9rem; }
.member-form label { display: grid; gap: .4rem; color: #526660; font-size: .78rem; font-weight: 700; }
.member-form input, .member-form select, .member-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #dce3e2; border-radius: 9px; outline: none; background: #fbfcfa; color: var(--aurora-ink); font: inherit; }
.member-form input:focus, .member-form select:focus, .member-form textarea:focus { border-color: #78a99d; box-shadow: 0 0 0 3px rgb(120 169 157 / 14%); }
.member-form button { width: fit-content; min-height: 40px; padding: 0 .9rem; border: 0; border-radius: 999px; background: var(--aurora-night); color: #fff; cursor: pointer; font-weight: 700; }
.member-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1.4rem; }
.member-stats a { display: grid; gap: .25rem; padding: .9rem; border: 1px solid #dce7e4; border-radius: 12px; background: #f7fbf9; text-decoration: none; }
.member-stats strong { color: var(--aurora-ink); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.member-stats span { color: var(--aurora-muted); font-size: .72rem; }
.member-list { display: grid; gap: .55rem; }
.messages { max-width: 760px; margin: 0 auto; }
.messages > header { margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--aurora-line); }
.messages h1 { margin: 0; color: var(--aurora-ink); font-size: 1.45rem; }
.messages-back { display: inline-flex; margin-bottom: 1rem; color: #51716a; font-size: .8rem; text-decoration: none; }
.message-thread { display: grid; gap: .65rem; }
.message { max-width: 82%; padding: .75rem .85rem; border: 1px solid #d4cdbb; border-radius: 6px; background: #f7f6f1; color: var(--aurora-ink); }
.message-sent { justify-self: end; border-color: #b9d5cf; background: #edf5f2; }
.message strong, .message time { color: var(--aurora-muted); font-size: .72rem; }
.message p { margin: .35rem 0; line-height: 1.65; overflow-wrap: anywhere; }
.message-compose { display: grid; gap: .65rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--aurora-line); }
.message-compose label { display: grid; gap: .4rem; color: #526660; font-size: .8rem; font-weight: 700; }
.message-compose textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #c8c0ae; border-radius: 4px; background: #f9f8f3; color: var(--aurora-ink); font: inherit; line-height: 1.6; resize: vertical; }
.message-compose button { width: fit-content; min-height: 38px; padding: 0 .85rem; border: 0; border-radius: 4px; background: #1597a2; color: #fff; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; }
/* "标记会话已读" — core 输出为无 class 的裸 <form><button>，仅出现在私信会话视图，
   紧跟 .message-thread，据此精确定位，避免误伤发送框或其他页面表单。 */
.member-panel .message-thread + form { display: flex; justify-content: flex-end; margin: .85rem 0 0; }
.member-panel .message-thread + form button { display: inline-flex; align-items: center; gap: .38rem; min-height: 34px; padding: 0 .95rem; border: 1px solid var(--aurora-line); border-radius: 999px; background: transparent; color: var(--aurora-muted); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 700; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.member-panel .message-thread + form button::before { content: ""; display: inline-block; width: 9px; height: 5px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.member-panel .message-thread + form button:hover { border-color: var(--aurora-coral); background: var(--aurora-sky); color: #117982; }
.message-unread { padding: .1rem .35rem; border-radius: 3px; background: #fff0ea; color: #a35c47; font-size: .65rem; }
.member-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.member-actions form { margin: 0; }
.member-actions button { min-height: 34px; padding: 0 .7rem; border: 1px solid #c8c0ae; border-radius: 4px; background: #f7f6f1; color: #6f6250; cursor: pointer; font: inherit; font-size: .76rem; }
.member-clear-notifications button { border-color: #d9b4a8; color: #a35c47; }
.member-clear-notifications button:hover { background: #fff0ea; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem; border: 1px solid #e6ecea; border-radius: 10px; color: var(--aurora-muted); font-size: .8rem; }
.member-row a { color: var(--aurora-ink); font-weight: 700; text-decoration: none; }
.public-bio { margin: 1rem 0; color: #60716c; line-height: 1.8; }

/* Recent posts use the core's existing markup, with a denser reading-first layout. */
.member-panel > h2 + .member-list .member-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: start; padding: .85rem .9rem; }
.member-panel > h2 + .member-list .member-row > a:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-panel > h2 + .member-list .member-row > span { grid-column: 1 / 2; display: -webkit-box; overflow: hidden; color: #7a705d; font-size: .76rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.member-panel > h2 + .member-list .member-row > a:last-child { align-self: center; padding: .28rem .45rem; border: 1px solid #c8c0ae; border-radius: 4px; color: #6f6250; font-size: .72rem; font-weight: 400; }
.member-panel > h2 + .member-list .member-row > a:last-child:hover { border-color: #1597a2; background: #e2ece9; color: #117982; }
.member-post { position: relative; display: grid; gap: .45rem; margin-top: .6rem; padding: .9rem 1rem .9rem 1.15rem; border: 1px solid #d4cdbb; border-radius: 5px; background: #f7f6f1; }
.member-post::before { content: ""; position: absolute; top: .95rem; bottom: .95rem; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: #a8ceca; }
.member-post > a { color: #394553; font-size: .88rem; font-weight: 700; line-height: 1.45; text-decoration: none; }
.member-post > a:hover { color: #117982; }
.member-post > p { display: -webkit-box; margin: 0; overflow: hidden; color: #7a705d; font-size: .77rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Composer and account forms share the same calm paper treatment. */
.form { max-width: 760px; margin: 0 auto; }
.form h1 { margin: 0 0 1.7rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--aurora-line); color: var(--aurora-ink); font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: -.045em; }
.form h1::after { content: "把值得讨论的想法写下来"; display: block; margin-top: .6rem; color: var(--aurora-muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .88rem; font-weight: 400; letter-spacing: 0; }
.form label { display: grid; gap: .52rem; margin: 1.15rem 0; color: #4d5b68; font-size: .82rem; font-weight: 730; letter-spacing: .01em; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid #dce3e2; border-radius: 12px; outline: none; background: #fbfcfa; color: var(--aurora-ink); font: inherit; font-size: .95rem; font-weight: 450; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.form input, .form select { min-height: 47px; padding: 0 .9rem; }
.form textarea { min-height: 250px; padding: .95rem; line-height: 1.7; resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #687982 50%), linear-gradient(135deg, #687982 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #7ba7a1; background: #fff; box-shadow: 0 0 0 4px rgb(123 167 161 / 15%); }
.form textarea::placeholder, .form input::placeholder { color: #a8b0b5; }
.form .primary, .form button.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 1.1rem; padding: 0 1.2rem; border: 0; border-radius: 999px; background: var(--aurora-coral); box-shadow: 0 9px 21px rgb(232 120 89 / 24%); color: #fff; cursor: pointer; font: inherit; font-size: .87rem; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.form .primary:hover, .form button.primary:hover { background: #db684f; transform: translateY(-2px); box-shadow: 0 13px 25px rgb(232 120 89 / 30%); }
.form .primary:active, .form button.primary:active { transform: translateY(0); }
.form details { margin: 1.2rem 0; padding: .9rem 1rem; border: 1px solid var(--aurora-line); border-radius: 12px; background: #f7faf8; }
.form summary { cursor: pointer; color: #486e6b; font-size: .84rem; font-weight: 700; }
.form small { color: var(--aurora-muted); font-weight: 400; }

@media (max-width: 780px) {
  .aurora-header-inner, .aurora-main { width: min(100% - 2rem, 620px); }
  .aurora-grid { grid-template-columns: 1fr; }
  .aurora-aside { min-height: 250px; }
  .home-heading { align-items: start; flex-direction: column; }
  .market-heading { grid-template-columns: 1fr; align-items: start; }
  .market-submit-link { justify-self: start; }
  .market-grid { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; }
  .search button { width: 100%; }
  .topic-feed-item { grid-template-columns: 38px minmax(0, 1fr); }
  .topic-replies { display: none; }
  .form textarea { min-height: 190px; }
  .topic-title-row, .reply-composer-heading { align-items: start; flex-direction: column; }
  .topic-page-meta { align-items: flex-start; }
  .topic-meta-count { border-left: 0; padding-left: 0; }
  .reply-composer-actions { align-items: stretch; flex-direction: column; }
  .reply-composer-actions button { width: 100%; }
  .aurora-login-reply .primary { width: 100%; }
  .member-hero { align-items: flex-start; flex-wrap: wrap; }
  .member-hero > a { margin-left: 0; }
  .member-stats { grid-template-columns: 1fr; }
  .member-panel > h2 + .member-list .member-row { gap: .25rem .7rem; padding: .75rem; }
  .member-panel > h2 + .member-list .member-row > span { font-size: .74rem; }
  .member-post { padding: .8rem .85rem .8rem 1rem; }
}

@media (min-width: 781px) {
  .aurora-sidebar {
    position: sticky;
    top: 4.25rem;
    align-self: start;
  }
}

@media (max-width: 430px) {
  .aurora-content { padding: 1.1rem; border-radius: 16px; }
  .aurora-aside { border-radius: 16px; }
}

/* Forum-density refinement: shared controls and reading surfaces. */
.aurora-content h1, .aurora-content h2, .aurora-content h3 { font-family: inherit; letter-spacing: 0; }
.home-heading { margin: calc(-1 * clamp(1rem, 2.4vw, 1.75rem)); margin-bottom: 0; padding: .45rem clamp(1rem, 2.4vw, 1.75rem); border-top: 3px solid #c9b887; border-radius: 8px 8px 0 0; background: #e5e2d5; }
.home-heading h1 { font-size: 1.25rem; line-height: 1.15; }
.home-heading span { margin-top: .15rem; font-size: .72rem; }
.home-heading .feed-create { align-self: center; min-height: 31px; padding-inline: .7rem; border: 1px solid #117982; border-radius: 4px; background: #1597a2; box-shadow: none; font-size: .76rem; color: #fff; }
.home-heading .feed-create:hover { border-color: #0f6d74; background: #117982; box-shadow: none; color: #fff; transform: none; }
.market-heading { padding-bottom: 1rem; border-color: #d4cdbb; }
.aurora-action, .feed-create, .form .primary, .form button.primary, .reply-composer-actions button, .search button, .member-form button { background: #1597a2; }
.aurora-action:hover, .feed-create:hover, .form .primary:hover, .form button.primary:hover, .reply-composer-actions button:hover, .search button:hover, .member-form button:hover { background: #117982; }
.home-heading h1, .market-heading h1, .search + h1, .topic-title-row h1, .form h1 { font-family: inherit; font-weight: 700; letter-spacing: 0; }
.home-heading h1, .market-heading h1 { font-size: 1.45rem; }
.feed-create, .form .primary, .form button.primary, .reply-composer-actions button { border-radius: 4px; background: #1597a2; box-shadow: none; }
.feed-create:hover, .form .primary:hover, .form button.primary:hover, .reply-composer-actions button:hover { background: #117982; box-shadow: none; transform: none; }
.aurora-login-reply .primary { border-radius: 4px; background: #1597a2; box-shadow: none; }
.aurora-login-reply .primary:hover { background: #117982; box-shadow: none; transform: none; }
.topic-feed { padding-top: .65rem; }
.topic-feed-item { gap: .75rem; margin-inline: calc(-1 * clamp(1rem, 2.4vw, 1.75rem)); padding: 1rem clamp(1rem, 2.4vw, 1.75rem); border-bottom: 0; }
.topic-feed-item:hover { background: #f1eee5; }
.topic-feed-item:hover h2 a { color: #1597a2; }
.topic-avatar, .topic-owner-avatar, .reply-avatar { position: relative; display: grid; place-items: center; overflow: visible; border: 1px solid currentColor; border-radius: 11px; box-shadow: 0 0 0 2px rgb(255 255 255 / 86%), 0 0 0 3px color-mix(in srgb, currentColor 38%, transparent), 0 5px 12px rgb(20 37 58 / 22%), inset 0 1px 0 rgb(255 255 255 / 22%); font-family: "Microsoft YaHei", sans-serif; font-weight: 800; letter-spacing: .01em; text-shadow: 0 1px 1px rgb(0 0 0 / 22%); }
.topic-avatar::after, .topic-owner-avatar::after, .reply-avatar::after { position: absolute; top: 4px; right: 4px; width: 4px; height: 4px; border-radius: 50%; background: #efffff; box-shadow: 0 0 5px 1px rgb(105 190 191 / 58%); content: ""; }
.topic-owner-avatar { width: 35px; height: 35px; font-size: .78rem; }
.reply-avatar { width: 40px; height: 40px; font-size: .82rem; }
.topic-feed-item.is-pinned .topic-feed-main h2 { padding-left: 0; }
  .topic-feed-main h2 { font-size: .95rem; }
  .topic-feed-main h2 a { color: #394553; }
  .topic-feed-meta { gap: .18rem; font-size: .74rem; }
.topic-category, .topic-pinned { color: #117982 !important; }
.topic-meta-count { color: #87938f !important; font-weight: 400; }
.topic-pinned { display: inline-block; width: 1rem; height: 1rem; color: transparent !important; font-size: 0; line-height: 1; vertical-align: -.17rem; }
.topic-pinned::before { color: #117982; content: "\1F4CC"; font-size: .85rem; }
.topic-replies strong { color: #394553; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid #d4cdbb; }
.pagination-control { flex: 0 0 auto; }
.pagination-control-next { display: flex; }
.pagination-pages { display: flex; align-items: center; justify-content: center; gap: .35rem; flex-wrap: wrap; }
.pagination a, .pagination-pages > span[aria-current="page"], .pagination-page, .pagination-gap { display: grid; place-items: center; min-width: 31px; height: 31px; padding: 0 .45rem; border: 1px solid #c8c0ae; border-radius: 4px; background: #f7f6f1; color: #6f6250; font-size: .76rem; font-weight: 700; text-decoration: none; }
.pagination a:hover { border-color: #1597a2; color: #117982; }
.pagination-pages > span[aria-current="page"] { border-color: #1597a2; background: #1597a2; color: #fff; }
.pagination-gap { min-width: auto; border-color: transparent; background: transparent; }
.pagination-prev, .pagination-next { min-width: auto !important; height: auto !important; padding: .3rem !important; border-color: transparent !important; background: transparent !important; }
.pagination-prev:hover, .pagination-next:hover { background: transparent !important; text-decoration: underline; text-underline-offset: .18em; }
.topic-page-heading { padding-bottom: 1rem; border-color: #d4cdbb; }
.topic-heading-topline .topic-category { border-radius: 3px; background: #d9e9e6; color: #117982 !important; }
.topic-state { border-radius: 3px; }
.topic-title-row h1 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.post-edit { color: #87938f; }
.topic-actions button, .post-tools button, .report-control summary { border-radius: 4px; color: #6f6250; }
.topic-actions button:hover, .post-tools button:hover, .report-control summary:hover { border-color: #1597a2; background: #e2ece9; color: #117982; }
.topic-actions > a { border-radius: 4px; color: #6f6250; }
.topic-actions > a:hover { border-color: #1597a2; background: #e2ece9; color: #117982; }
.post { padding: 1rem; border-color: #d4cdbb; border-radius: 6px; box-shadow: none; }
.post-original { border-color: #b9d5cf; background: #f4f5ef; }
.author-role { border-radius: 3px; background: #e2ece9; color: #117982; }
.post .body { color: #394553; font-size: .94rem; line-height: 1.8; }
.post .body a { color: #117982; }
.post .body blockquote { border-color: #1597a2; background: #edf3ef; color: #5d665e; }
.post .body pre { padding: .85rem; border: 1px solid #4e5b63; border-radius: 4px; background: #394553; color: #f7f6f1; overflow: auto; }
.post .body code { padding: .1rem .3rem; border-radius: 3px; background: #e1dfd4; color: #394553; }
.post .body pre code { padding: 0; background: transparent; color: inherit; }
.reply-composer, .member-hero, .member-panel, .market-submit > .form { border-color: #c8c0ae; border-radius: 6px; background: #f1eee5; }
.reply-composer-heading h2, .member-hero h1, .member-panel h2 { font-family: inherit; font-weight: 700; }
.reply-editor textarea, .form input, .form select, .form textarea, .member-form input, .member-form select, .member-form textarea, .search input { border-color: #c8c0ae; border-radius: 4px; background: #f9f8f3; }
.reply-editor textarea:focus, .form input:focus, .form select:focus, .form textarea:focus, .member-form input:focus, .member-form select:focus, .member-form textarea:focus, .search input:focus { border-color: #1597a2; box-shadow: 0 0 0 3px rgb(21 151 162 / 18%); }
.search { border-color: #c8c0ae; border-radius: 6px; background: #f1eee5; }
.search button, .member-form button { border-radius: 4px; background: #1597a2; }
.search button:hover, .member-form button:hover { background: #117982; }
.market-card, .market-empty { border-color: #d4cdbb; border-radius: 6px; background: #f7f6f1; box-shadow: none; }
.market-card::after { border-color: #a8ceca; }
.market-card h2, .market-empty h2, .market-submit > h1, .market-submit > h2 { font-family: inherit; font-weight: 700; }
.market-kind { border-radius: 3px; background: #d9e9e6; color: #117982; }
.market-version { border-radius: 3px; }
.market-download, .market-back { color: #117982; }
.member-avatar { border: 2px solid #79c4c4; border-radius: 17px; background: linear-gradient(135deg, #c3dfd9, #88bfb4); box-shadow: 0 0 0 3px rgb(145 204 194 / 34%), 0 9px 20px rgb(57 69 83 / 19%), inset 0 1px 0 rgb(255 255 255 / 52%); color: #285f5b; }
.member-tabs a[aria-current="page"] { border-color: #1597a2; color: #117982; }
.member-stats a, .member-row { border-color: #d4cdbb; border-radius: 5px; background: #f7f6f1; }
.member-stats strong, .member-row a { color: #394553; }

/* Private messages use three-column conversation rows and standalone controls. */
.messages .member-list { gap: .45rem; }
.messages .member-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .9rem; align-items: center; padding: .85rem .95rem; color: var(--aurora-muted); text-decoration: none; transition: border-color .16s ease, background-color .16s ease; }
.messages .member-row:hover { border-color: #9ebfea; background: #f7faff; }
.messages .member-row > span:first-child { min-width: 0; color: var(--aurora-ink); }
.messages .member-row > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.messages .member-row time { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #71829a; font-size: .7rem; white-space: nowrap; }
.messages > form:not(.message-compose) { display: flex; justify-content: flex-end; margin: .8rem 0 0; }
.messages > form:not(.message-compose) button, .message-compose button { min-height: 38px; padding: 0 .85rem; border: 0; border-radius: 3px; background: var(--aurora-coral); color: #fff; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; }
.messages > form:not(.message-compose) button:hover, .message-compose button:hover { background: #1259bf; }
.message-thread { gap: .75rem; }
.message { max-width: min(82%, 580px); padding: .8rem .9rem; border-color: var(--aurora-line); border-radius: 4px; background: #fff; }
.message-sent { border-color: #c4d9f5; background: #eef6ff; }
.message-compose { padding: 1rem; border: 1px solid var(--aurora-line); border-radius: 4px; background: #f8fbff; }
.message-compose textarea { min-height: 104px; }

@media (max-width: 520px) {
  .messages .member-row { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .messages .member-row time { grid-column: 1; grid-row: auto; justify-self: start; }
  .messages .member-row > span:nth-child(2) { white-space: normal; }
  .message { max-width: 92%; }
  .messages > form:not(.message-compose) button, .message-compose button { width: 100%; }
}

@media (max-width: 780px) {
  .aurora-header-inner, .aurora-main { width: min(100% - 1.25rem, 620px); }
  .aurora-footer-inner { width: min(100% - 1.25rem, 620px); }
  .aurora-header-inner { min-height: 48px; gap: .3rem; padding: .35rem 0; }
  .aurora-brand { flex: 0 0 auto; min-width: 0; font-size: .95rem; }
  .aurora-brand > span:last-child { display: block; width: 5.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .aurora-account { flex: 0 0 auto; margin-left: 0; gap: 0; }
  .aurora-account a, .aurora-account button { min-height: 30px; padding: .32rem .38rem; }
  .aurora-alert-link { gap: .16rem; }
  .aurora-alert-count { min-width: 14px; height: 14px; padding: 0 .2rem; font-size: .54rem; }
  .aurora-account-member .aurora-admin { display: none; }
  .aurora-user { gap: .25rem; }
  .aurora-user b { display: inline; }
  .aurora-user em { display: none; }
  .aurora-nav { order: initial; flex: 1 1 auto; width: auto; margin: 0; gap: 0; }
  .aurora-nav a { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-height: 30px; padding: .32rem .2rem; text-align: center; }
  .aurora-header-search { display: flex; flex: 0 0 22px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #1597a2; box-shadow: inset 0 -1px 0 rgb(0 0 0 / 16%); }
  .aurora-header-search:focus-within { border: 0; box-shadow: inset 0 -1px 0 rgb(0 0 0 / 16%); }
  .aurora-header-search input { display: none; }
  .aurora-header-search button { position: relative; flex: 1 1 auto; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 0; transition: background-color .15s ease; }
  .aurora-header-search button:hover, .aurora-header-search button:focus-visible { background: #117982; }
  .aurora-header-search button::before { content: ""; position: absolute; top: 5px; left: 5px; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
  .aurora-header-search button::after { content: ""; position: absolute; top: 12px; left: 12px; width: 6px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
  .aurora-grid { gap: .8rem; }
  .aurora-content { padding: 1rem; }
  .aurora-aside, .aurora-categories, .aurora-rules { border-radius: 6px; }
  .home-heading { align-items: center; flex-direction: row; gap: .6rem; }
  .home-heading .feed-create { align-self: center; width: auto; min-height: 34px; margin: 0 0 0 auto; padding-inline: .7rem; box-sizing: border-box; justify-content: center; white-space: nowrap; }
  .topic-feed-meta { display: flex; flex-wrap: nowrap; gap: .14rem; overflow: visible; font-size: clamp(.52rem, 2.55vw, .74rem); white-space: nowrap; }
  .topic-feed-meta .topic-author::before { content: none; }
  .topic-feed-meta .topic-activity::before, .topic-feed-meta .topic-created::before, .topic-feed-meta .topic-reply-author::before { margin-right: .14rem; }
  .aurora-login-reply-editor { min-height: 116px; padding: 1rem; }
  .aurora-login-reply .primary { width: auto; min-width: 0; padding-inline: .9rem; }
}

@media (max-width: 520px) {
  .aurora-header-inner { gap: .16rem; }
  .aurora-nav a { padding-inline: .12rem; font-size: .76rem; }
  .aurora-account a, .aurora-account button { padding-inline: .3rem; }
  .aurora-footer-inner { align-items: flex-start; flex-wrap: wrap; min-height: 78px; padding: .85rem 0; gap: .3rem .7rem; }
  .aurora-footer-note { width: calc(100% - 32px); }
  .aurora-footer-home { position: absolute; right: .8rem; }
  .pagination { gap: .2rem; }
  .pagination-pages { gap: .2rem; }
  .pagination a, .pagination-pages > span[aria-current="page"], .pagination-page, .pagination-gap { min-width: 27px; height: 29px; padding-inline: .28rem; }
  .pagination-prev, .pagination-next { padding-inline: .2rem !important; }
}

/* Flat visual system: remove decorative depth and keep forum content primary. */
:root {
  --aurora-ink: #172033;
  --aurora-muted: #64748b;
  --aurora-line: #dbe3ee;
  --aurora-paper: #ffffff;
  --aurora-sky: #e8f1ff;
  --aurora-coral: #1769e0;
  --aurora-night: #111b2e;
  --aurora-avatar-bg: #e8f1ff;
  --aurora-avatar-text: #1957a9;
  /* 插件兼容桥：标准主题变量映射到 Aurora 扁平配色，避免插件使用固定白底。 */
  --background: #f4f7fb;
  --surface: var(--aurora-paper);
  --foreground: var(--aurora-ink);
  --muted: var(--aurora-muted);
  --line: var(--aurora-line);
  --soft: #f7f9fc;
  --accent: var(--aurora-coral);
  --default-card-bg: var(--aurora-paper);
  --default-secondbg: #f7f9fc;
  --default-card-border: var(--aurora-line);
  --default-main: var(--aurora-coral);
  --default-secondtext: var(--aurora-muted);
  --default-fontcolor: var(--aurora-ink);
  --default-card-btn-bg: #eef3fb;
  --default-background: #f4f7fb;
  background: #f4f7fb;
}

body { background: #f4f7fb; }
.aurora-header { border-top: 0; border-bottom: 1px solid #243451; background: var(--aurora-night); box-shadow: none; }
.aurora-brand-mark, .aurora-footer-mark { border-radius: 3px; background: var(--aurora-coral); }
.aurora-nav a, .aurora-account a, .aurora-account button { border-radius: 3px; }
.aurora-nav a:hover, .aurora-nav a[aria-current="page"], .aurora-account a:hover { background: #263858; }
.aurora-header-search { border-color: #344766; border-radius: 3px; background: #1b2942; }
.aurora-header-search:focus-within { border-color: #79aaf2; box-shadow: 0 0 0 2px rgb(121 170 242 / 28%); }
.aurora-join { background: var(--aurora-coral) !important; }
.aurora-user span, .member-avatar { border: 1px solid #a9c8f5; border-radius: 50%; background: var(--aurora-avatar-bg); box-shadow: none; color: var(--aurora-avatar-text); text-shadow: none; }

.aurora-main { margin-top: 1.5rem; }
.aurora-breadcrumb { color: var(--aurora-muted); }
.aurora-content, .aurora-aside, .aurora-categories, .aurora-rules { border: 1px solid var(--aurora-line); border-radius: 4px; background: var(--aurora-paper); box-shadow: none; }
.aurora-content { padding: clamp(1rem, 2.4vw, 1.75rem); }
.aurora-aside { border-top: 3px solid var(--aurora-coral); }
.aurora-kicker, .aurora-sidebar-heading, .aurora-rules h2, .home-heading { background: #f7f9fc; }
.aurora-kicker, .aurora-sidebar-heading, .aurora-rules h2 { border-radius: 3px 3px 0 0; color: var(--aurora-ink); }
.aurora-sidebar-heading a { border-color: #c7d3e3; border-radius: 3px; color: #40516a; }
.aurora-sidebar-heading a:hover { border-color: #8fb5ed; background: #edf5ff; color: #1257b9; }
.aurora-category-list .nav-item { border-radius: 3px; color: #4e5f78; }
.aurora-category-list .nav-item:hover, .aurora-category-list .nav-item.active { background: #e8f1ff; color: #1558bc; }
.aurora-action { border-radius: 3px; background: var(--aurora-coral); }
.aurora-action:hover { background: #1259bf; }

.aurora-footer { border-top: 1px solid var(--aurora-line); background: #fff; color: var(--aurora-muted); }
.aurora-footer-brand { color: var(--aurora-ink); }
.aurora-footer-note, .aurora-footer-home { color: var(--aurora-muted); }
.aurora-footer-home:hover, .aurora-footer-home span { color: var(--aurora-coral); }

.home-heading { margin: calc(-1 * clamp(1rem, 2.4vw, 1.75rem)); margin-bottom: 0; border-top: 3px solid var(--aurora-coral); border-bottom: 1px solid var(--aurora-line); border-radius: 3px 3px 0 0; }
.home-heading .feed-create, .feed-create, .form .primary, .form button.primary, .reply-composer-actions button, .search button, .member-form button, .aurora-login-reply .primary { border-radius: 3px; background: var(--aurora-coral); box-shadow: none; }
.home-heading .feed-create:hover, .feed-create:hover, .form .primary:hover, .form button.primary:hover, .reply-composer-actions button:hover, .search button:hover, .member-form button:hover, .aurora-login-reply .primary:hover { background: #1259bf; box-shadow: none; transform: none; }
.topic-feed-item { border-bottom: 0; }
.topic-feed-item:hover { background: #f7faff; }
.topic-feed-item:hover h2 a, .topic-feed-main h2 a:hover, .aurora-topic-card h2 a:hover { color: var(--aurora-coral); }
.topic-views { display: inline-flex; align-items: center; gap: .24rem; min-width: 0; margin-left: .22rem; color: #71829a; font-size: .68rem; line-height: 1; }
.topic-views::before { content: none; }
.topic-views i { position: relative; display: inline-block; width: 11px; height: 7px; border: 1.25px solid currentColor; border-radius: 50%; }
.topic-views i::after { position: absolute; top: 1px; left: 3px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; content: ""; }
.topic-feed-item:hover .topic-views { color: var(--aurora-coral); }
.topic-title-row h1 { font-size: 1.8rem; line-height: 1.3; }
.topic-replies { position: relative; display: grid; place-items: center; width: 30px; height: 26px; min-width: 30px; }
.topic-replies strong { position: relative; z-index: 1; color: #71829a; font-size: .74rem; line-height: 1; }
.topic-replies span { position: absolute; inset: 2px 1px 5px; border: 1.5px solid #71829a; border-radius: 4px; color: transparent; font-size: 0; }
.topic-replies span::after { position: absolute; bottom: -5px; left: 5px; width: 5px; height: 5px; border-bottom: 1.5px solid #71829a; border-left: 1.5px solid #71829a; background: #fff; content: ""; transform: skewY(-35deg); }
.topic-feed-item:hover .topic-replies strong { color: var(--aurora-coral); }
.topic-feed-item:hover .topic-replies span { border-color: var(--aurora-coral); }
.topic-feed-item:hover .topic-replies span::after { border-color: var(--aurora-coral); }
.topic-avatar, .topic-owner-avatar, .reply-avatar { border: 1px solid #b8d0f2; border-radius: 50%; background: #e8f1ff; box-shadow: none; color: #1957a9; text-shadow: none; }
.topic-avatar::after, .topic-owner-avatar::after, .reply-avatar::after { display: none; }
.topic-category, .topic-pinned, .topic-meta-count { color: #1769e0 !important; }
.topic-empty, .market-empty { border-color: #b8cce5; border-radius: 4px; background: #f8fbff; }
.topic-empty::before, .topic-empty::after { display: none; }
.topic-empty a, .market-empty a { border-radius: 3px; background: var(--aurora-coral); }
.topic-empty a:hover, .market-empty a:hover { background: #1259bf; transform: none; }

.market-card, .market-empty, .reply-composer, .member-hero, .member-panel, .market-submit > .form, .search, .post { border-color: var(--aurora-line); border-radius: 4px; background: #fff; box-shadow: none; }
.market-card::after { display: none; }
.market-kind, .market-version, .topic-heading-topline .topic-category, .topic-state, .author-role { border-radius: 3px; }
.market-kind, .topic-heading-topline .topic-category, .author-role { background: #e8f1ff; color: #1558bc !important; }
.post-original { border-color: #c9daf1; background: #f8fbff; }
.topic-actions button, .post-tools button, .report-control summary, .topic-actions > a { border-radius: 3px; }
.topic-actions button:hover, .post-tools button:hover, .report-control summary:hover, .topic-actions > a:hover { border-color: #9ebfea; background: #edf5ff; color: #1558bc; }
.post .body { color: #27364d; }
.post .body a, .post-tools button:hover, .post-tools .report-control summary:hover { color: var(--aurora-coral); }
.post .body blockquote { border-color: #77a7e8; background: #f3f8ff; color: #52627a; }
.post .body pre { border-color: #1d2c43; border-radius: 3px; background: #172033; }
.post .body code { border-radius: 2px; background: #eaf0f7; }
.reply-quote-note, .search + h1 + p, .locked-note { border-radius: 3px; border-color: #6b9fe8; background: #f1f7ff; color: #405774; }
.report-control form { border-color: var(--aurora-line); border-radius: 3px; box-shadow: none; }

.reply-editor textarea, .form input, .form select, .form textarea, .member-form input, .member-form select, .member-form textarea, .search input, .message-compose textarea { border-color: #cbd7e6; border-radius: 3px; background: #fff; }
.reply-editor textarea:focus, .form input:focus, .form select:focus, .form textarea:focus, .member-form input:focus, .member-form select:focus, .member-form textarea:focus, .search input:focus { border-color: #5791e4; box-shadow: 0 0 0 3px rgb(23 105 224 / 13%); }
.member-stats a, .member-row, .member-post, .message { border-color: var(--aurora-line); border-radius: 3px; background: #fff; }
.message-sent { border-color: #c4d9f5; background: #eef6ff; }
.member-post::before { background: #5791e4; }
.member-hero > a { border-color: #aac7ec; border-radius: 3px; color: #1558bc; }
.pagination a, .pagination-pages > span[aria-current="page"], .pagination-page, .pagination-gap { border-color: #cbd7e6; border-radius: 3px; background: #fff; color: #4d607c; }
.pagination a:hover { border-color: #5791e4; color: #1558bc; }
.pagination-pages > span[aria-current="page"] { border-color: var(--aurora-coral); background: var(--aurora-coral); color: #fff; }


/* Identity markers use one quiet treatment across generated initials and uploaded photos. */
.aurora-user span { width: 24px; height: 24px; border: 1px solid #9bbbe8; border-radius: 4px; background: linear-gradient(135deg, #dceaff 0 50%, #e9f5ee 50% 76%, #fff0df 76%); color: #174c9d; font-size: .66rem; line-height: 1; }
.aurora-user span img, .member-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.topic-avatar, .topic-owner-avatar, .reply-avatar { overflow: hidden; border: 0; border-radius: 4px; background: var(--aurora-avatar-bg); color: var(--aurora-avatar-text); font-size: .74rem; font-weight: 700; line-height: 1; }
.topic-avatar { width: 34px; height: 34px; }
.topic-owner-avatar { width: 32px; height: 32px; }
.reply-avatar { width: 36px; height: 36px; }
.member-avatar { width: 72px; height: 72px; border: 2px solid #fff; border-radius: 6px; background: var(--aurora-avatar-bg); box-shadow: 0 0 0 1px #aac5e8; color: var(--aurora-avatar-text); font-family: inherit; font-size: 1.55rem; font-weight: 700; line-height: 1; }

@media (max-width: 780px) {
  .aurora-header-search { width: 20px; height: 20px; border: 1px solid #405576; border-radius: 3px; background: transparent; box-shadow: none; }
  .aurora-header-search:focus-within { border-color: #79aaf2; box-shadow: 0 0 0 2px rgb(121 170 242 / 28%); }
  .aurora-header-search button { border-radius: 3px; }
  .aurora-header-search button:hover, .aurora-header-search button:focus-visible { background: #263858; }
  .aurora-header-search button::before { top: 3px; left: 3px; width: 7px; height: 7px; border-width: 1.5px; }
  .aurora-header-search button::after { top: 12px; left: 12px; width: 5px; height: 1.5px; }
  .aurora-aside, .aurora-categories, .aurora-rules, .aurora-content { border-radius: 4px; }
  .aurora-nav { flex: 0 1 auto; gap: .1rem; }
  .aurora-nav a { flex: 0 0 auto; padding-inline: .35rem; }
  .aurora-header-search { margin-left: auto; }
  .aurora-account { margin-left: .15rem; }
  .topic-title-row h1 { width: 100%; font-size: 1.4rem; line-height: 1.4; overflow-wrap: anywhere; }
  .topic-feed-item { position: relative; padding-right: 1rem; }
  .topic-feed-main { padding-right: 3rem; }
  .topic-feed-meta { flex-wrap: nowrap; gap: .12rem; overflow: visible; font-size: .62rem; white-space: nowrap; }
  .topic-feed-meta > * { min-width: 0; overflow-wrap: normal; }
  .topic-replies { position: absolute; right: 1rem; bottom: .82rem; display: grid; place-items: center; width: 25px; height: 22px; min-width: 25px; text-decoration: none; }
  .topic-replies strong { color: #71829a; font-size: .68rem; font-weight: 400; line-height: 1; }
  .topic-replies span { display: block; inset: 2px 1px 5px; }
  .topic-replies span::after { display: block; }
}

/* Keep signed-in navigation on one compact row on narrow screens. */
@media (max-width: 780px) {
  body[data-aurora-signed-in="true"] .aurora-header-inner {
    display: flex;
    min-height: 48px;
    gap: .2rem;
    padding: .35rem 0;
  }
  body[data-aurora-signed-in="true"] .aurora-brand { flex: 0 0 auto; }
  body[data-aurora-signed-in="true"] .aurora-brand > span:last-child { display: none; }
  body[data-aurora-signed-in="true"] .aurora-header-search { flex: 0 0 20px; margin-left: auto; }
  body[data-aurora-signed-in="true"] .aurora-account {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: .12rem;
    gap: .34rem;
  }
  body[data-aurora-signed-in="true"] .aurora-account-member .aurora-admin { display: inline-flex; }
  body[data-aurora-signed-in="true"] .aurora-nav {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  body[data-aurora-signed-in="true"] .aurora-nav a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: .32rem .52rem;
  }
  body[data-aurora-signed-in="true"] .aurora-alert-link {
    width: 30px;
    justify-content: center;
    padding-inline: 0;
    font-size: 0;
  }
  body[data-aurora-signed-in="true"] .aurora-alert-link::before {
    color: #fff7ee;
    font-size: .88rem;
    line-height: 1;
  }
  body[data-aurora-signed-in="true"] .aurora-alert-link[href="/me?tab=notifications"]::before { content: "\1F514"; }
  body[data-aurora-signed-in="true"] .aurora-account-member .aurora-alert-link[href="/messages"] { display: none; }
  body[data-aurora-signed-in="true"] .aurora-notification-link.aurora-has-unread-alerts::after {
    position: absolute;
    top: 5px;
    right: 4px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--aurora-night);
    border-radius: 50%;
    background: #ef4444;
    content: "";
  }
  body[data-aurora-signed-in="true"] .aurora-notification-link .aurora-alert-count { display: none; }
  body[data-aurora-signed-in="true"] .aurora-alert-count {
    font-size: .54rem;
  }
}

@media (max-width: 400px) {
  body[data-aurora-signed-in="true"] .aurora-account { gap: 0; font-size: .72rem; }
  body[data-aurora-signed-in="true"] .aurora-account a,
  body[data-aurora-signed-in="true"] .aurora-account button { padding-inline: .26rem; }
  body[data-aurora-signed-in="true"] .aurora-nav a { padding-inline: .32rem; font-size: .74rem; }
}

@media (max-width: 780px) {
  .aurora-focus-page .aurora-sidebar { display: none; }
  .aurora-focus-page .aurora-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Header icons: same 1.7px line-icon treatment as Quantum, tuned for Aurora's flat palette. */
.aurora-brand-mark svg { display: block; width: 16px; height: 16px; }
.aurora-icon { display: block; width: 15px; height: 15px; flex: none; opacity: .92; }
.aurora-header-search button { display: grid; place-items: center; }
.aurora-alert-link { position: relative; }
.aurora-account form button { display: inline-flex; align-items: center; gap: .3rem; }
.aurora-alert-link:hover .aurora-icon,
.aurora-account form button:hover .aurora-icon { opacity: 1; }

@media (max-width: 900px) {
  body[data-aurora-signed-in="true"] .aurora-link-label,
  body[data-aurora-signed-in="true"] .aurora-logout-label { display: none; }
}

@media (max-width: 780px) {
  .aurora-header-search button::before,
  .aurora-header-search button::after { content: none; display: none; }
  .aurora-header-search button .aurora-icon { width: 13px; height: 13px; }
  body[data-aurora-signed-in="true"] .aurora-alert-link::before { content: none; }
  body[data-aurora-signed-in="true"] .aurora-alert-link .aurora-link-label,
  body[data-aurora-signed-in="true"] .aurora-logout-label { display: none; }
  body[data-aurora-signed-in="true"] .aurora-account form button { gap: 0; }
}

/* 友情链接：与 Aurora 侧栏卡片保持一致的扁平外观。 */
.aurora-sidebar .friend-links-sidebar {
  padding: 1rem;
  border: 1px solid var(--aurora-line);
  border-radius: 4px;
  background: var(--aurora-paper);
  box-shadow: none;
}

/* 正文图片灯箱：点击放大查看。 */
.post .body img.aurora-zoomable { cursor: zoom-in; }
.post .body img.aurora-zoomable:focus-visible { outline: 2px solid var(--aurora-coral); outline-offset: 2px; }
body.aurora-viewer-open { overflow: hidden; }
.aurora-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: rgb(18 22 24 / 88%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.aurora-image-viewer.is-open { opacity: 1; visibility: visible; }
.aurora-image-viewer figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
.aurora-image-viewer img {
  width: auto;
  height: auto;
  max-width: min(1200px, calc(100vw - 5rem));
  max-height: calc(100vh - 7rem);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(0 0 0 / 45%);
  cursor: default;
  object-fit: contain;
}
.aurora-image-viewer figcaption {
  max-width: min(60rem, 90vw);
  color: rgb(255 255 255 / 78%);
  font-size: .82rem;
  line-height: 1.6;
  text-align: center;
}
.aurora-image-viewer figcaption[hidden] { display: none; }
.aurora-image-viewer-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.aurora-image-viewer-close:hover { background: rgb(255 255 255 / 22%); border-color: rgb(255 255 255 / 50%); }
.aurora-image-viewer-close svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .aurora-image-viewer { padding: 1rem; }
  .aurora-image-viewer img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 5rem); }
  .aurora-image-viewer-close { top: .5rem; right: .5rem; }
}
