:root {
  color-scheme: light;
  --paper: #fafaf7;
  --paper-2: #f2efe8;
  --card: #fff;
  --ink: #1d1c19;
  --muted: #74716a;
  --soft: #9c988f;
  --line: #e2ded5;
  --clay: #a8512f;
  --clay-2: #cc785c;
  --green: #5d8d7b;
  --shadow: 0 14px 34px rgba(47, 42, 34, .08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191a18;
  --paper-2: #22231f;
  --card: #242520;
  --ink: #f1efe8;
  --muted: #b3afa5;
  --soft: #89867d;
  --line: #393a34;
  --clay: #d47c5d;
  --clay-2: #ec9a7a;
  --green: #80ad9b;
  --shadow: 0 15px 38px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #e7e4dc; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(65, 61, 53, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 61, 53, .045) 1px, transparent 1px),
    #e7e4dc;
  background-size: 24px 24px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body.entry-pending { overflow: hidden; }

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.entry-screen {
  --entry-paper: #fbfaf6;
  --entry-ink: #191916;
  --entry-muted: #66645d;
  --entry-line: #ddd9d0;
  --entry-clay: #a8512f;
  --entry-green: #658f70;
  position: fixed;
  inset: 0;
  z-index: 300;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--entry-ink);
  background: var(--entry-paper);
  transition:
    opacity .52s cubic-bezier(.4, 0, .2, 1),
    visibility 0s linear;
}

.entry-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .6;
  background-image:
    linear-gradient(rgba(73, 69, 61, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 69, 61, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
}

.entry-stamp {
  position: absolute;
  top: 15%;
  right: -38px;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  color: var(--entry-clay);
  border: 4px solid currentColor;
  border-radius: 50%;
  font: 900 39px/1 ui-monospace, monospace;
  opacity: .12;
  transform: rotate(10deg);
  animation: entry-stamp-float 6s ease-in-out infinite;
}

.entry-header {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(77, 73, 65, .14);
}

.entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 19px/1 "Songti SC", "SimSun", serif;
}

.entry-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(83, 51, 35, .16);
}

.entry-domain { color: #8d8980; font: 11px/1 ui-monospace, monospace; }

.entry-layout {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100dvh - 76px);
  margin: 0 auto;
  padding: 62px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 118px);
}

.entry-copy { max-width: 630px; }

.entry-logo-stage {
  position: relative;
  width: 78px;
  height: 78px;
  margin-bottom: 31px;
}

.entry-logo-stage img {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(92, 48, 29, .24);
  animation: entry-logo-float 4.8s ease-in-out 1.2s infinite;
}

.entry-orbit {
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(168, 81, 47, .3);
  border-radius: 25px;
  transform: rotate(11deg);
  animation: entry-orbit 9s linear infinite;
}

.entry-orbit-b {
  inset: -22px 4px 4px -22px;
  border-color: rgba(93, 141, 123, .25);
  transform: rotate(-8deg);
  animation-direction: reverse;
  animation-duration: 12s;
}

.entry-badge {
  width: fit-content;
  margin: 0 0 25px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--entry-muted);
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--entry-line);
  border-radius: 999px;
  font-size: 13px;
}

.entry-badge > span {
  width: 8px;
  height: 8px;
  background: var(--entry-green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(101, 143, 112, .12);
}

.entry-copy h1 {
  margin: 0;
  font: 900 86px/.96 "Songti SC", "STSong", "SimSun", serif;
  letter-spacing: 0;
}

.entry-slogan {
  margin: 29px 0 0;
  color: #57564f;
  font: 800 27px/1.45 "Songti SC", "STSong", "SimSun", serif;
}

.entry-slogan::first-letter { color: var(--entry-clay); }

.entry-description {
  max-width: 570px;
  margin: 19px 0 0;
  color: var(--entry-muted);
  font-size: 15px;
  line-height: 1.95;
}

.entry-button {
  min-width: 178px;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 18px 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  background: var(--entry-ink);
  border: 1px solid var(--entry-ink);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 13px 28px rgba(25, 25, 22, .15);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.entry-button:hover {
  background: var(--entry-clay);
  border-color: var(--entry-clay);
  transform: translateY(-2px);
}

.entry-button:focus-visible { outline: 3px solid rgba(168, 81, 47, .28); outline-offset: 4px; }
.entry-button svg { width: 20px; height: 20px; stroke-width: 2; transition: transform .2s ease; }
.entry-button:hover svg { transform: translateX(3px); }

.entry-preview {
  position: relative;
  padding: 21px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--entry-line);
  border-radius: 8px;
  box-shadow: 0 28px 75px rgba(45, 41, 34, .13);
  transform: rotate(1.5deg);
}

.entry-preview::before {
  content: "";
  position: absolute;
  inset: 9px -10px -10px 9px;
  z-index: -1;
  border: 1px solid rgba(168, 81, 47, .2);
  border-radius: 8px;
}

.entry-preview-head {
  padding: 2px 2px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 800 14px/1.2 "Songti SC", "SimSun", serif;
}

.entry-live { color: var(--entry-green); font: 600 10px/1.2 system-ui, sans-serif; white-space: nowrap; }
.entry-live i { width: 6px; height: 6px; margin-right: 6px; display: inline-block; background: currentColor; border-radius: 50%; animation: entry-live 1.6s ease-in-out infinite; }

.entry-preview-post {
  padding: 19px;
  background: #fff;
  border: 1px solid #e6e2da;
  border-radius: 6px;
}

.entry-preview-meta { display: flex; align-items: center; gap: 9px; color: var(--entry-muted); font-size: 11px; }
.entry-preview-meta small { margin-left: auto; color: #969289; }
.entry-avatar { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--entry-clay); border-radius: 50%; font: 800 13px/1 "Songti SC", serif; }
.entry-preview-post h2 { margin: 18px 0 8px; font: 800 18px/1.5 "Songti SC", "SimSun", serif; }
.entry-preview-post p { margin: 0; color: var(--entry-muted); font-size: 12px; line-height: 1.75; }

.entry-topics {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.entry-topics span {
  min-width: 0;
  padding: 11px 8px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--entry-muted);
  background: #f1eee7;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
}

.entry-topics b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #557ca8;
  border-radius: 5px;
  font: 800 12px/1 "Songti SC", serif;
}

.entry-topics span:nth-child(2) b { background: var(--entry-clay); }
.entry-topics span:nth-child(3) b { background: var(--entry-green); }

.entry-piece {
  opacity: 0;
  animation: entry-piece-in .72s cubic-bezier(.16, 1, .3, 1) var(--entry-delay, 0ms) both;
}

.entry-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .52s cubic-bezier(.4, 0, .2, 1),
    visibility .52s step-end;
}

.entry-screen.is-leaving .entry-layout {
  transform: translateY(-18px);
  transition: transform .52s cubic-bezier(.4, 0, .2, 1);
}

.app-shell.community-reveal {
  animation: community-reveal .65s cubic-bezier(.16, 1, .3, 1) both;
}

.app-shell {
  position: relative;
  width: min(100%, 540px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 70px rgba(48, 43, 35, .17);
  transition: background .2s ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 66px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
}

.topbar-leading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.back-button {
  flex: 0 0 auto;
}

.brand-button {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.brand-button img { width: 34px; height: 34px; border-radius: 16px; box-shadow: 0 7px 17px rgba(89, 45, 27, .18); }
.brand-button span { min-width: 0; display: grid; gap: 1px; }
.brand-button strong { font-family: "Songti SC", "SimSun", serif; font-size: 18px; line-height: 1.2; }
.brand-button small { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }

.topbar-actions { display: flex; align-items: center; gap: 5px; }

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.icon-button:hover { background: var(--paper-2); }
.icon-button svg { width: 20px; height: 20px; }

#mainView {
  min-height: calc(100vh - 66px);
  padding-bottom: calc(100px + var(--safe-bottom));
}

.page-loading {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.loading-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--clay);
  border-radius: 20px;
  font: 800 15px/1 ui-monospace, monospace;
  animation: breathe 1.3s ease-in-out infinite alternate;
}

@keyframes breathe { to { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(168, 81, 47, .28); } }

.home-page { padding-bottom: 10px; }

.community-overview {
  padding: 24px 16px 20px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.overview-school {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--clay);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--clay) 22%, var(--line));
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.overview-school span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.overview-copy { margin-top: 20px; }
.overview-eyebrow { margin: 0 0 7px; color: var(--muted); font: 700 8px/1 ui-monospace, monospace; }
.overview-copy h1 { margin: 0; font: 800 25px/1.35 "Songti SC", "SimSun", serif; }
.overview-copy h1 strong { color: var(--clay); }
.overview-copy > p:last-child { max-width: 440px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

.hero-wrap { padding: 14px 14px 0; }

.hero {
  position: relative;
  min-height: 174px;
  padding: 24px 23px 21px;
  overflow: hidden;
  color: #fff;
  background: #9f4b2c;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero[data-tone="green"] { background: #477866; }
.hero[data-tone="blue"] { background: #476c94; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,.2) 46% 47%, transparent 47%),
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}

.hero::after {
  content: "DQ";
  position: absolute;
  right: -8px;
  bottom: -28px;
  color: rgba(255,255,255,.12);
  font: 900 104px/1 ui-monospace, monospace;
}

.hero-copy { position: relative; z-index: 1; max-width: 355px; }
.hero-eyebrow { margin: 0 0 9px; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .1em; opacity: .8; }
.hero h1, .hero h2 { margin: 0; font: 800 20px/1.45 "Songti SC", "SimSun", serif; letter-spacing: 0; }
.hero p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.7; }

.hero-action {
  position: relative;
  z-index: 1;
  min-height: 32px;
  margin-top: 17px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.hero-dots { display: flex; justify-content: center; gap: 5px; margin: 10px 0 0; }
.hero-dots span { width: 5px; height: 5px; background: var(--line); border-radius: 50%; }
.hero-dots span.active { width: 17px; background: var(--clay); border-radius: 8px; }

.notice-strip {
  width: calc(100% - 28px);
  min-width: 0;
  min-height: 43px;
  margin: 12px 14px 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.notice-label { flex: 0 0 auto; color: var(--clay); font: 800 11px/1 "Songti SC", serif; }
.notice-strip p { min-width: 0; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.notice-strip svg { flex: 0 0 auto; width: 14px; margin-left: auto; color: var(--soft); }

.section { padding: 21px 14px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.section-head h2 { margin: 0; font: 800 18px/1.2 "Songti SC", "SimSun", serif; }
.section-head button, .text-button { padding: 0; color: var(--muted); background: none; border: 0; font-size: 11px; cursor: pointer; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 7px; }

.category-item {
  min-width: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
}

.category-item:focus-visible { outline: 3px solid color-mix(in srgb, var(--clay) 22%, transparent); outline-offset: 4px; border-radius: 14px; }
.category-item:active .category-icon { transform: translateY(1px) scale(.97); }

.category-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 11%, var(--card));
  border: 1px solid color-mix(in srgb, var(--category-color) 22%, var(--line));
  border-radius: 16px;
}

.category-icon svg { width: 22px; height: 22px; stroke-width: 1.7; }
.category-item span:last-child { max-width: 100%; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }

.feed-section { padding-top: 25px; }

.feed-head {
  position: sticky;
  top: 66px;
  z-index: 15;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  border-top: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.feed-head h2 { margin: 0; font: 800 18px/1.2 "Songti SC", "SimSun", serif; }

.segment {
  padding: 3px;
  display: flex;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.segment button {
  min-width: 46px;
  height: 27px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 10px;
  cursor: pointer;
}

.segment button.active { color: var(--ink); background: var(--card); box-shadow: 0 2px 7px rgba(50,45,38,.08); font-weight: 700; }

.feed-list { padding: 0 14px; }

.post-card {
  position: relative;
  padding: 18px 2px 15px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.post-card:hover .post-title { color: var(--clay); }

.post-meta { display: flex; align-items: center; min-width: 0; color: var(--muted); font-size: 10px; }
.avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font: 700 12px/1 "Songti SC", serif;
}
.author-link {
  min-width: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.author-link.is-static { cursor: default; }
.author-link:not(.is-static):hover .post-author { color: var(--clay); }
.author-link:focus-visible { outline: 2px solid color-mix(in srgb, var(--clay) 35%, transparent); outline-offset: 3px; border-radius: 10px; }
.post-author { max-width: 150px; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.verified { color: #4f83ae; }
.post-time { margin-left: auto; }

.automated-badge {
  width: fit-content;
  margin-top: 9px;
  padding: 4px 7px;
  display: block;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
}

.post-card .automated-badge + .post-title { margin-top: 8px; }

.category-chip {
  margin-left: 7px;
  padding: 3px 6px;
  color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--category-color) 18%, transparent);
  border-radius: 10px;
  font-size: 9px;
}

.post-title {
  margin: 13px 0 6px;
  font: 800 16px/1.48 "Songti SC", "SimSun", serif;
  transition: color .15s ease;
}

.post-content {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-price { margin: 10px 0 0; color: var(--clay); font: 800 18px/1 ui-monospace, monospace; }

.post-images { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.post-images img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.post-images.one { grid-template-columns: minmax(0, 68%); }
.post-images.one img { aspect-ratio: 4 / 3; }
.post-images.two { grid-template-columns: repeat(2, 1fr); }
.post-videos, .detail-videos { margin-top: 12px; }
.post-videos video, .detail-videos video {
  display: block;
  width: 100%;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
  border-radius: 12px;
}

.post-actions {
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 19px;
  color: var(--muted);
  font-size: 10px;
}

.post-actions span { display: inline-flex; align-items: center; gap: 5px; }
.post-actions svg { width: 15px; height: 15px; }
.post-actions .active { color: var(--clay); }
.post-actions .views { margin-left: auto; }

.load-more {
  width: 100%;
  height: 42px;
  margin: 13px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

.empty-state {
  min-height: 260px;
  padding: 40px 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg { width: 42px; height: 42px; color: var(--soft); }
.empty-state strong { color: var(--ink); font: 800 16px/1.3 "Songti SC", serif; }
.empty-state p { margin: 0; font-size: 11px; line-height: 1.7; }

.page-header { padding: 25px 17px 15px; border-bottom: 1px solid var(--line); }
.page-header .eyebrow { margin: 0 0 7px; color: var(--clay); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .1em; }
.page-header h1 { margin: 0; font: 800 26px/1.2 "Songti SC", serif; }
.page-header p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.category-page .category-grid { padding: 20px 14px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.category-page .category-item { min-height: 88px; padding: 14px; grid-template-columns: 50px minmax(0, 1fr); align-items: center; justify-items: start; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.category-page .category-item span:last-child { font: 700 14px/1.2 "Songti SC", serif; }

.service-page { min-height: calc(100vh - 66px); }

.service-hero {
  padding: 24px 17px 22px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  background: color-mix(in srgb, var(--service-color) 9%, var(--paper));
  border-bottom: 1px solid color-mix(in srgb, var(--service-color) 20%, var(--line));
}

.service-hero-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--service-color);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--service-color) 28%, var(--line));
  border-radius: 16px;
}

.service-hero-copy { min-width: 0; }
.service-hero-copy .eyebrow { margin: 1px 0 6px; color: var(--service-color); font: 700 9px/1 ui-monospace, monospace; }
.service-hero-copy h1 { margin: 0; font: 800 26px/1.2 "Songti SC", "SimSun", serif; }
.service-hero-copy > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.service-publish {
  grid-column: 1 / -1;
  min-height: 41px;
  margin-top: 5px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: var(--service-color);
  border: 1px solid var(--service-color);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.service-publish svg { width: 17px; height: 17px; }

.service-summary {
  padding: 18px 17px;
  border-bottom: 1px solid var(--line);
}

.service-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-summary-head strong { font: 800 14px/1.2 "Songti SC", "SimSun", serif; }
.service-summary-head > span { color: var(--muted); font-size: 9px; }

.service-tags { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.service-tags span { padding: 7px 9px; color: var(--service-color); background: color-mix(in srgb, var(--service-color) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--service-color) 17%, var(--line)); border-radius: 12px; font-size: 10px; }

.service-rule {
  margin: 13px 0 0;
  padding-top: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
}

.service-rule svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; color: var(--service-color); }
.service-feed { padding-top: 0; }

.notice-list { padding: 10px 14px; }
.notice-card { padding: 18px 2px; border-bottom: 1px solid var(--line); }
.notice-card time { color: var(--soft); font-size: 9px; }
.notice-card h2 { margin: 7px 0 8px; font: 800 16px/1.4 "Songti SC", serif; }
.notice-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-wrap; }

.profile-head { padding: 28px 17px 22px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.profile-head .avatar { width: 54px; height: 54px; margin: 0; font-size: 20px; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy h1 { margin: 0; font: 800 20px/1.3 "Songti SC", serif; }
.profile-copy p { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.profile-edit { min-height: 31px; padding: 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 10px; cursor: pointer; }

.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 14px; border-bottom: 1px solid var(--line); }
.profile-stats button { padding: 5px; display: grid; gap: 4px; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.profile-stats button:last-child { border-right: 0; }
.profile-stats strong { font: 800 19px/1 ui-monospace, monospace; }
.profile-stats span { color: var(--muted); font-size: 10px; }
.public-profile-bio { margin: 0; padding: 16px 17px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.8; white-space: pre-wrap; }
.public-profile-stats .profile-stat { min-width: 0; padding: 5px; display: grid; gap: 4px; justify-items: center; border-right: 1px solid var(--line); text-align: center; }
.public-profile-stats .profile-stat:last-child { border-right: 0; }
.public-profile-stats .profile-stat strong { max-width: 100%; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.public-profile-posts { padding-top: 7px; }
.section-heading { min-height: 45px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font: 800 15px/1.3 "Songti SC", serif; }
.section-heading span { color: var(--muted); font-size: 9px; }

.menu-list { padding: 9px 14px 0; }
.menu-item { width: 100%; min-height: 51px; padding: 0 2px; display: flex; align-items: center; gap: 12px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.menu-item > svg { width: 19px; color: var(--muted); }
.menu-item span { min-width: 0; flex: 1; font-size: 12px; }
.menu-item small { color: var(--muted); font-size: 9px; }
.menu-item .chevron { width: 14px; color: var(--soft); }
.menu-item.danger { color: #b64d4d; }

.login-callout { min-height: 65vh; padding: 55px 24px; display: grid; place-content: center; justify-items: center; text-align: center; }
.login-callout img { width: 66px; height: 66px; border-radius: 22px; box-shadow: var(--shadow); }
.login-callout h1 { margin: 20px 0 8px; font: 800 25px/1.3 "Songti SC", serif; }
.login-callout p { max-width: 290px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.primary-button, .secondary-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.primary-button { color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.primary-button:hover { background: var(--clay); border-color: var(--clay); }
.secondary-button { color: var(--ink); background: var(--card); border: 1px solid var(--line); }
.login-callout .primary-button { margin-top: 23px; }

.publish-fab {
  position: fixed;
  left: 50%;
  bottom: calc(21px + var(--safe-bottom));
  z-index: 45;
  width: 54px;
  height: 54px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--clay);
  border: 5px solid color-mix(in srgb, var(--paper) 88%, transparent);
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(126, 57, 31, .34);
  transform: translateX(-50%);
  cursor: pointer;
}
.publish-fab:hover { background: var(--clay-2); }
.publish-fab svg { width: 22px; height: 22px; stroke-width: 2.2; }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(100%, 540px);
  min-height: calc(67px + var(--safe-bottom));
  padding: 7px 10px var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  backdrop-filter: blur(19px) saturate(1.25);
  transform: translateX(-50%);
}

.bottom-nav button {
  min-width: 0;
  height: 50px;
  padding: 2px 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.bottom-nav svg { width: 20px; height: 20px; }
.bottom-nav span { font-size: 9px; }
.bottom-nav button.active { color: var(--clay); }

.modal-layer {
  position: fixed;
  inset: 0;
  /* 必须高于开始页（z-index:300），否则在落地页打开弹窗会被整页遮住 */
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(21, 20, 18, .44);
  backdrop-filter: blur(3px);
  animation: fade-in .18s ease;
}

.modal {
  width: min(100%, 540px);
  max-height: min(92vh, 860px);
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -25px 60px rgba(0,0,0,.18);
  animation: sheet-up .23s cubic-bezier(.16, 1, .3, 1);
}

.modal.compact { width: min(calc(100% - 24px), 450px); margin-bottom: 16px; border-radius: 16px; }
.modal-head { position: sticky; top: 0; z-index: 2; min-height: 58px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--paper) 91%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.modal-head h2 { margin: 0; font: 800 17px/1.2 "Songti SC", serif; }
.modal-head .icon-button { width: 36px; height: 36px; }

.modal-body { padding: 18px 16px calc(24px + var(--safe-bottom)); }

.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label { font-size: 11px; font-weight: 700; }
.field small { color: var(--muted); font-size: 9px; line-height: 1.6; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 43px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}
.field textarea { min-height: 122px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--clay); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 11%, transparent); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.form-actions .primary-button { min-width: 110px; }

.switch-line { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-line span { font-size: 11px; }
.switch { position: relative; width: 40px; height: 23px; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 20px; transition: .2s ease; }
.switch i::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: .2s ease; }
.switch input:checked + i { background: var(--clay); }
.switch input:checked + i::after { transform: translateX(17px); }
.identity-choice { margin: 3px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; }
.identity-choice legend { margin-bottom: 8px; font-size: 11px; font-weight: 700; }
.identity-choice label { position: relative; min-width: 0; cursor: pointer; }
.identity-choice input { position: absolute; opacity: 0; pointer-events: none; }
.identity-choice label > span { min-height: 72px; padding: 11px; display: grid; align-content: center; gap: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s ease, background .15s ease; }
.identity-choice strong { font-size: 11px; }
.identity-choice small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.identity-choice input:checked + span { background: color-mix(in srgb, var(--clay) 7%, var(--card)); border-color: color-mix(in srgb, var(--clay) 55%, var(--line)); box-shadow: inset 3px 0 0 var(--clay); }
.identity-choice input:focus-visible + span { outline: 2px solid color-mix(in srgb, var(--clay) 30%, transparent); outline-offset: 2px; }

.upload-zone { padding: 15px; text-align: center; background: var(--paper-2); border: 1px dashed var(--line); border-radius: 14px; }
.upload-zone input { display: none; }
.upload-zone label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); font-size: 11px; }
.upload-zone svg { width: 18px; }
.image-previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.image-previews span { position: relative; }
.image-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.image-previews button { position: absolute; top: 3px; right: 3px; width: 21px; height: 21px; padding: 0; color: #fff; background: rgba(0,0,0,.58); border: 0; border-radius: 50%; cursor: pointer; }
.video-preview > div { display: grid; gap: 8px; margin-top: 10px; }
.video-preview video { width: 100%; max-height: 260px; background: #111; border-radius: 12px; }
.video-preview button { justify-self: end; border: 0; background: transparent; color: var(--clay); cursor: pointer; font: inherit; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.auth-tabs button { height: 40px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.auth-tabs button.active { color: var(--clay); border-bottom-color: var(--clay); font-weight: 700; }
.auth-note { color: var(--muted); font-size: 9px; line-height: 1.7; }
/* 已认证状态条：明暗主题都靠变量走 */
.verify-done { margin: 0 0 14px; padding: 8px 0 8px 11px; border-left: 3px solid var(--green); color: var(--ink); font-size: 12px; font-weight: 700; }
.field-hint { margin: 6px 0 0; color: var(--soft); font-size: 9px; line-height: 1.6; }
.modal input[readonly] { background: var(--paper-2); color: var(--muted); }

.detail-article { padding: 4px 0 16px; }
.detail-article .post-title { margin-top: 18px; font-size: 22px; }
.detail-article .post-content { display: block; overflow: visible; font-size: 13px; line-height: 1.9; white-space: pre-wrap; }
.detail-images { display: grid; gap: 8px; margin-top: 17px; }
.detail-images img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 14px; }
.contact-box { margin-top: 16px; padding: 12px; background: var(--paper-2); border-left: 3px solid var(--clay); border-radius: 10px; color: var(--muted); font-size: 11px; }
.detail-toolbar { display: flex; gap: 8px; margin: 17px 0 5px; }
.detail-toolbar button { flex: 1; min-height: 37px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 10px; cursor: pointer; }
.detail-toolbar svg { width: 16px; }
.detail-toolbar .active { color: var(--clay); border-color: color-mix(in srgb, var(--clay) 45%, var(--line)); }

.comments { margin-top: 23px; border-top: 1px solid var(--line); }
.comments h3 { margin: 18px 0 4px; font: 800 15px/1.3 "Songti SC", serif; }
.comment { padding: 14px 0; display: grid; grid-template-columns: 30px minmax(0,1fr); column-gap: 9px; border-bottom: 1px solid var(--line); }
.comment .avatar { width: 30px; height: 30px; margin: 0; }
.comment-avatar-button { padding: 0; border: 0; cursor: pointer; }
.comment-head { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.comment-author-button { padding: 0; color: var(--ink); background: none; border: 0; font-size: 10px; font-weight: 700; cursor: pointer; }
.comment-author-button:hover { color: var(--clay); }
.comment-head time { margin-left: auto; flex-shrink: 0; white-space: nowrap; }
.comment p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.comment-form { margin-top: 15px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.comment-form input { min-width: 0; height: 39px; padding: 0 10px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; outline: none; }
.comment-form button { min-width: 65px; color: #fff; background: var(--ink); border: 0; border-radius: 12px; cursor: pointer; }

.search-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.search-bar input { min-width: 0; height: 42px; padding: 0 12px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; outline: none; }
.search-bar button { min-width: 70px; color: #fff; background: var(--ink); border: 0; border-radius: 12px; cursor: pointer; }
.search-results { margin-top: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  z-index: 200;
  max-width: min(80vw, 370px);
  padding: 10px 14px;
  color: #fff;
  background: rgba(26, 25, 22, .9);
  border-radius: 12px;
  box-shadow: 0 9px 25px rgba(0,0,0,.18);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { opacity: .5; transform: translateY(40px); } }
@keyframes entry-piece-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes entry-logo-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}
@keyframes entry-orbit { to { transform: rotate(371deg); } }
@keyframes entry-stamp-float {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(12px) rotate(14deg); }
}
@keyframes entry-live {
  0%, 100% { opacity: .45; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes community-reveal {
  from { opacity: .35; transform: scale(.975); }
  to { opacity: 1; transform: scale(1); }
}

@media (min-width: 700px) {
  .modal-layer { align-items: center; }
  .modal { border-radius: 16px; max-height: 88vh; }
  .modal.compact { margin: 0; }
}

@media (max-width: 820px) {
  .entry-header { width: calc(100% - 30px); height: 66px; }
  .entry-layout {
    width: min(520px, calc(100% - 30px));
    min-height: auto;
    padding: 42px 0 64px;
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .entry-logo-stage { width: 66px; height: 66px; margin-bottom: 27px; }
  .entry-logo-stage img { width: 66px; height: 66px; border-radius: 16px; }
  .entry-copy h1 { font-size: 66px; }
  .entry-slogan { margin-top: 24px; font-size: 23px; }
  .entry-preview { transform: none; }
  .entry-stamp { top: 130px; width: 112px; height: 112px; font-size: 31px; }
}

@media (max-width: 420px) {
  .topbar { padding-inline: 9px; }
  .topbar-leading { gap: 2px; }
  .brand-button { gap: 7px; }
  .brand-button small { max-width: 112px; }
  .entry-header { height: 61px; }
  .entry-brand { font-size: 17px; }
  .entry-domain { font-size: 9px; }
  .entry-layout { padding-top: 30px; gap: 42px; }
  .entry-logo-stage { margin-bottom: 24px; }
  .entry-badge { max-width: 100%; margin-bottom: 22px; padding: 9px 11px; font-size: 11px; }
  .entry-copy h1 { font-size: 57px; }
  .entry-slogan { font-size: 21px; }
  .entry-description { font-size: 13px; line-height: 1.85; }
  .entry-button { min-height: 52px; margin-top: 29px; }
  .entry-preview { padding: 16px; }
  .entry-preview-post { padding: 16px; }
  .entry-preview-post h2 { font-size: 16px; }
}

@media (max-width: 360px) {
  .brand-button small { max-width: 82px; }
  .category-grid { gap-inline: 2px; }
  .category-icon { width: 43px; height: 43px; }
  .community-overview { padding-inline: 13px; }
  .hero { min-height: 180px; padding-inline: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .identity-choice { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* ===== 2026-11-12 新增组件 ===== */

.entry-links { display: flex; align-items: center; gap: 14px; }
.entry-links a { color: var(--muted); font-size: 11px; text-decoration: none; }
.entry-links a:hover { color: var(--clay); }

.notify-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d05876;
  border-radius: 16px;
  font-size: 9px;
  font-weight: 700;
  pointer-events: none;
}
.topbar-actions .icon-button { position: relative; }

.notification-list { display: grid; gap: 6px; }
.notification-item {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}
.notification-item .notification-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.notification-item.unread .notification-dot { background: var(--clay); }
.notification-item.unread { border-color: color-mix(in srgb, var(--clay) 35%, var(--line)); }
.notification-item time { color: var(--muted); font-size: 10px; white-space: nowrap; }

.install-banner {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  z-index: 60;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 460px);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--clay) 30%, var(--line));
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(48, 43, 35, .18);
  font-size: 12px;
}
.install-banner span { flex: 1; display: flex; align-items: center; gap: 6px; }
.install-banner button[data-action="install-pwa"] {
  padding: 6px 14px;
  color: #fff;
  background: var(--clay);
  border: 0;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
}
.install-banner button[data-action="dismiss-install"] {
  width: 24px;
  height: 24px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

.blocked-list { display: grid; gap: 8px; }
.blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 12px;
}
.block-button { margin-top: 12px; }

.legal-links { margin-top: 18px; display: flex; gap: 16px; justify-content: center; }
.legal-links button { background: none; border: 0; color: var(--muted); font-size: 11px; text-decoration: underline; cursor: pointer; }

/* ===== 桌面端双栏布局 ===== */
@media (min-width: 1024px) {
  .app-shell { width: min(100%, 1080px); }

  .home-page {
    display: grid;
    grid-template-columns: 350px 1fr;
    column-gap: 28px;
    align-items: start;
  }
  .home-page > .community-overview,
  .home-page > .hero-wrap,
  .home-page > .notice-strip,
  .home-page > .section {
    grid-column: 1;
  }
  .home-page > .feed-section {
    grid-column: 2;
    grid-row: 1 / span 6;
    position: sticky;
    top: 66px;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    padding: 18px 20px 130px;
  }
  .home-page > .feed-section .feed-head { position: sticky; top: 0; z-index: 5; background: var(--paper); padding-block: 6px; }

  .service-page {
    display: grid;
    grid-template-columns: 350px 1fr;
    column-gap: 28px;
    align-items: start;
    padding-top: 16px;
  }
  .service-page > .service-hero,
  .service-page > .service-summary { grid-column: 1; }
  .service-page > .service-feed {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 66px;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    padding: 8px 20px 130px;
  }

  .bottom-nav {
    left: max(0px, calc((100vw - 1080px) / 2));
    bottom: 16px;
    transform: none;
    width: 350px;
    min-height: 0;
    padding: 6px 10px;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(48, 43, 35, .18);
  }
  .bottom-nav button { height: 46px; }
  .publish-fab { bottom: 92px; left: auto; right: calc((100vw - 1080px) / 2 + 36px); transform: none; }

  #mainView { padding-bottom: 120px; }
}

.desktop-nav { display: none; }

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 18px;
  }
  .desktop-nav button {
    padding: 7px 14px;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
  }
  .desktop-nav button:hover { background: var(--paper-2); color: var(--ink); }
  .desktop-nav button.active { color: var(--clay); background: color-mix(in srgb, var(--clay) 10%, transparent); font-weight: 600; }
  .bottom-nav { display: none; }
  .publish-fab { bottom: 32px; }
  .home-page > .feed-section { padding-bottom: 40px; }
  .service-page > .service-feed { padding-bottom: 40px; }
  #mainView { padding-bottom: 60px; }
}

/* ===== 找回密码 / 绑定邮箱 ===== */
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-row .secondary-button { flex-shrink: 0; min-width: 96px; padding: 0 14px; font-size: 12px; white-space: nowrap; }
.code-row .secondary-button:disabled { opacity: .55; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--clay); font-size: 11px; text-decoration: underline; cursor: pointer; }
.auth-forgot { margin-top: 10px; text-align: center; }

/* 个人页：学院专业与自我介绍 */
.profile-intro {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ===== 联系客服 ===== */
.support-status {
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.6;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
}
.support-status.online { border-color: color-mix(in srgb, var(--clay) 35%, var(--line)); color: var(--clay); }
/* 旧弹窗版客服样式已废弃，改为独立对话页，见文件末尾 .support-page */

/* 登录页「回到开始页」按钮 */
.entry-return { margin-top: 12px; display: flex; justify-content: center; }
.entry-return .secondary-button { min-height: 34px; padding: 0 16px; font-size: 12px; }

/* 顶栏：开始页（左）与返回键（右），中间留出明显间距 */
.topbar-sep {
  flex: 0 0 auto;
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background: var(--line);
}
.topbar-entry {
  flex: 0 0 auto;
  padding: 0 4px 0 2px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.topbar-entry:hover { color: var(--clay); }
.topbar-leading .back-button { margin-left: 2px; }
@media (max-width: 400px) {
  .topbar-entry { font-size: 10px; }
  .topbar-sep { margin: 0 6px; }
  .brand-button small { display: none; }
}

/* 开始页：进入 + 申诉按钮并排 */
.entry-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.entry-actions .entry-button { margin-top: 0; }
.entry-appeal-button {
  min-height: 54px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--entry-ink, #2c2823);
  background: rgba(255, 255, 255, .72);
  border: 1px solid color-mix(in srgb, var(--entry-ink, #2c2823) 28%, transparent);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s, background .2s;
}
.entry-appeal-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.entry-appeal-button:hover {
  color: var(--entry-clay, #a8512f);
  border-color: var(--entry-clay, #a8512f);
  background: #fff;
  transform: translateY(-2px);
}
@media (max-width: 420px) {
  .entry-actions { gap: 10px; }
  .entry-appeal-button { min-height: 46px; padding: 0 14px; font-size: 12px; }
}

/* 主界面隐藏返回键，仅子页面显示 */
.back-button[hidden],
.topbar-sep[hidden] { display: none !important; }

/* ===== 开始页下半部分：小助手提醒 ===== */
.entry-screen {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.entry-layout { padding-bottom: 18px; }

.entry-scroll-hint {
  margin: 18px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--entry-muted, #66645d);
  font-size: 12px;
  letter-spacing: .02em;
}
.entry-scroll-hint svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: entry-hint-bounce 1.8s ease-in-out infinite;
}
@keyframes entry-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.entry-tips {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 26px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(77, 73, 65, .14);
}
.entry-tips-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.entry-tips-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--entry-clay, #a8512f);
  border-radius: 10px;
  font: 800 17px/1 "Songti SC", serif;
}
.entry-tips-head h2 {
  margin: 0;
  font: 800 19px/1.2 "Songti SC", "Noto Serif SC", serif;
}
.entry-tips-head p {
  margin: 4px 0 0;
  color: var(--entry-muted, #66645d);
  font-size: 12px;
}

.entry-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.entry-tip {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(77, 73, 65, .14);
  border-radius: 10px;
}
.entry-tip-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--entry-clay, #a8512f);
  background: rgba(168, 81, 47, .09);
  border-radius: 8px;
}
.entry-tip-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.entry-tip h3 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 800;
}
.entry-tip p {
  margin: 0;
  color: var(--entry-muted, #66645d);
  font-size: 12px;
  line-height: 1.75;
}

.entry-bottom {
  margin-top: 22px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(25, 25, 22, .035);
  border: 1px dashed rgba(77, 73, 65, .22);
  border-radius: 12px;
}
.entry-bottom-copy strong { display: block; font-size: 14px; }
.entry-bottom-copy p { margin: 4px 0 0; color: var(--entry-muted, #66645d); font-size: 12px; }
.entry-button-small {
  min-width: 0;
  min-height: 46px;
  margin-top: 0;
  padding: 0 16px 0 20px;
  gap: 14px;
  font-size: 14px;
}

.entry-foot {
  margin: 22px 0 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(77, 73, 65, .12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--entry-muted, #66645d);
  font-size: 11px;
}
.entry-foot a { color: inherit; text-decoration: underline; }

@media (max-width: 720px) {
  .entry-tips { width: calc(100% - 32px); margin-top: 22px; padding-top: 24px; }
  .entry-tips-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .entry-bottom { flex-direction: column; align-items: stretch; text-align: left; }
  .entry-bottom .entry-button { width: 100%; justify-content: space-between; }
  .entry-foot { flex-direction: column; gap: 6px; }
}

/* ===== 开始页：数据条 / 章节 / 收尾 CTA ===== */
.entry-stats {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--entry-muted, #66645d);
  font-size: 12px;
}
.entry-stats strong {
  color: var(--entry-ink, #191916);
  font: 800 14px/1 ui-monospace, monospace;
}
.entry-stat-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.entry-chapter,
.entry-tips {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 6px;
}
.entry-chapter { border-top: 1px solid rgba(77, 73, 65, .14); margin-top: 34px; }
.entry-chapter-head { display: flex; align-items: baseline; gap: 10px; }
.entry-chapter-no {
  color: var(--entry-clay, #a8512f);
  font: 700 12px/1 ui-monospace, monospace;
  letter-spacing: .08em;
}
.entry-chapter h2 {
  margin: 0;
  font: 800 21px/1.3 "Songti SC", "Noto Serif SC", serif;
}
.entry-chapter-lead {
  margin: 10px 0 16px;
  max-width: 640px;
  color: var(--entry-muted, #66645d);
  font-size: 13px;
  line-height: 1.8;
}

.entry-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.entry-chips span {
  padding: 5px 11px;
  color: #5f5a51;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(77, 73, 65, .16);
  border-radius: 999px;
  font-size: 11px;
}

.entry-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.entry-sample {
  padding: 15px 16px 12px;
  background: #fff;
  border: 1px solid rgba(77, 73, 65, .13);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(60, 52, 40, .05);
}
.entry-sample-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.entry-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.entry-avatar-anon { background: #8d8677; }
.entry-avatar-user { background: #b98a63; }
.entry-sample-meta strong { display: block; font-size: 12px; }
.entry-sample-meta small { color: var(--entry-muted, #66645d); font-size: 10px; }
.entry-sample p { margin: 0 0 10px; font-size: 13px; line-height: 1.75; }
.entry-sample-foot {
  display: flex;
  gap: 14px;
  color: var(--entry-muted, #66645d);
  font-size: 10px;
}
.entry-sample-note { margin: 12px 0 0; color: var(--entry-muted, #66645d); font-size: 10px; opacity: .8; }

.entry-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.entry-step {
  padding: 16px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(77, 73, 65, .14);
  border-radius: 10px;
}
.entry-step-no {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  color: var(--entry-clay, #a8512f);
  background: rgba(168, 81, 47, .08);
  border: 1px solid rgba(168, 81, 47, .18);
  border-radius: 999px;
  font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: .06em;
}
.entry-step h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.entry-step p { margin: 0; color: var(--entry-muted, #66645d); font-size: 12px; line-height: 1.75; }

.entry-rules { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.entry-rules li { display: flex; align-items: flex-start; gap: 11px; }
.entry-rules li span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--entry-clay, #a8512f);
  border: 1px solid rgba(168, 81, 47, .3);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.entry-rules li p { margin: 3px 0 0; font-size: 13px; }
.entry-rules-note { margin: 16px 0 0; color: var(--entry-muted, #66645d); font-size: 11px; line-height: 1.8; }

.entry-final {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 38px auto 0;
  padding: 40px 24px;
  text-align: center;
  color: #f6f2ea;
  background: #1a1a17;
  border-radius: 16px;
}
.entry-final h2 {
  margin: 0;
  font: 800 24px/1.35 "Songti SC", "Noto Serif SC", serif;
}
.entry-final > p {
  margin: 10px 0 22px;
  color: rgba(246, 242, 234, .68);
  font-size: 13px;
}
.entry-final-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.entry-final-primary,
.entry-final-ghost {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.entry-final-primary { color: #1a1a17; background: #f6f2ea; border: 1px solid #f6f2ea; }
.entry-final-primary:hover { background: #fff; }
.entry-final-ghost { color: #f6f2ea; background: transparent; border: 1px solid rgba(246, 242, 234, .38); }
.entry-final-ghost:hover { border-color: #f6f2ea; }

/* ===== 滚动渐入 ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* 标语：滑入 + 下划线扫出 */
.entry-slogan {
  position: relative;
  display: inline-block;
  animation: entry-slogan-cycle 4s cubic-bezier(.2, .8, .2, 1) .4s infinite both;
}
.entry-slogan::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 3px;
  background: var(--entry-clay, #a8512f);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: entry-underline-cycle 4s cubic-bezier(.2, .8, .2, 1) .4s infinite both;
}
@keyframes entry-slogan-in {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: none; }
}
@keyframes entry-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .entry-slogan, .entry-slogan::after { animation: none; }
  .entry-slogan::after { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .entry-stats { width: calc(100% - 32px); gap: 9px; font-size: 11px; }
  .entry-chapter, .entry-tips { width: calc(100% - 32px); padding-top: 30px; }
  .entry-chapter { margin-top: 26px; }
  .entry-chapter h2 { font-size: 18px; }
  .entry-samples, .entry-steps { grid-template-columns: minmax(0, 1fr); }
  .entry-final { width: calc(100% - 32px); margin-top: 30px; padding: 30px 18px; border-radius: 14px; }
  .entry-final h2 { font-size: 20px; }
  .entry-final-actions { flex-direction: column; }
  .entry-final-primary, .entry-final-ghost { width: 100%; }
}

/* 标语：每 4 秒循环滑入 + 下划线扫出 */
@keyframes entry-slogan-cycle {
  0% { opacity: 0; transform: translateX(-26px); }
  10% { opacity: 1; transform: none; }
  86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateX(-26px); }
}
@keyframes entry-underline-cycle {
  0% { transform: scaleX(0); }
  14% { transform: scaleX(1); }
  86% { transform: scaleX(1); }
  94%, 100% { transform: scaleX(0); }
}

/* 顶部：站名下的「账号申诉」小入口 */
.entry-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.entry-brand-name { line-height: 1; }
.entry-brand-appeal {
  padding: 0 0 1px;
  color: var(--entry-muted, #66645d);
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(77, 73, 65, .35);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.entry-brand-appeal:hover {
  color: var(--entry-clay, #a8512f);
  border-color: var(--entry-clay, #a8512f);
}
@media (prefers-reduced-motion: reduce) {
  .entry-slogan { animation: none; }
  .entry-slogan::after { animation: none; transform: scaleX(1); }
}

/* 安装引导步骤 */
.install-steps {
  margin: 12px 0 14px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.install-steps b { color: var(--ink); }

/* 开始页：右上空白区的申诉入口 */
.entry-appeal-fab {
  position: absolute;
  top: 92px;
  right: max(20px, calc((100vw - 1160px) / 2));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  color: #5f5a51;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(77, 73, 65, .2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.entry-appeal-fab svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.entry-appeal-fab:hover {
  color: var(--entry-clay, #a8512f);
  border-color: var(--entry-clay, #a8512f);
  background: #fff;
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .entry-appeal-fab { top: 84px; right: 16px; padding: 6px 11px; font-size: 10px; }
}

/* 申诉凭证预览 */
.appeal-preview { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.appeal-preview-item { position: relative; width: 64px; height: 64px; }
.appeal-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.appeal-preview-item button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(25, 25, 22, .78);
  border: 0;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

/* 图形验证码 */
.captcha-row { display: flex; align-items: center; gap: 8px; }
.captcha-row input { flex: 1 1 auto; min-width: 0; }
.captcha-box {
  flex: 0 0 auto;
  width: 130px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  background: #f3efe7;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.captcha-box svg { display: block; width: 100%; height: 100%; }

/* 安装引导图示 */
.install-guide { display: grid; gap: 10px; margin: 4px 0 10px; }
.install-guide figure { margin: 0; }
.install-guide img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.install-guide figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

/* 头像：图片模式 / 可点击更换 */
.avatar { overflow: hidden; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit { position: relative; padding: 0; border: 0; cursor: pointer; }
.avatar-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--clay);
  border: 2px solid var(--paper);
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

/* 个人资料标签 */
.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.profile-facts span {
  padding: 3px 9px;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
}
.profile-facts span.muted { opacity: .75; }

/* 公告轮播：可左右滑动 + 自动翻页 */
.notice-carousel {
  position: relative;
  margin: 12px 14px 0;
  overflow: hidden;
}
.notice-track {
  display: flex;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.notice-carousel .notice-strip {
  width: 100%;
  flex: 0 0 100%;
  margin: 0;
}
.notice-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 7px 0 2px;
}
.notice-dots button {
  width: 5px;
  height: 5px;
  padding: 0;
  background: var(--line);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width .25s, background .25s;
}
.notice-dots button.active {
  width: 15px;
  border-radius: 8px;
  background: var(--clay);
}
@media (min-width: 980px) {
  .home-page > .notice-carousel { grid-column: 1; }
}

/* 公告轮播内文字最多两行，避免截断看不全 */
.notice-carousel .notice-strip {
  padding: 9px 12px;
  align-items: flex-start;
}
.notice-carousel .notice-strip p {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}
.notice-carousel .notice-strip .notice-label { padding-top: 2px; }
.notice-carousel .notice-strip svg { margin-top: 3px; }

/* 评论空状态：避免 0 评论时页面显得像坏了 */
.comment-empty {
  padding: 26px 16px 22px;
  text-align: center;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.comment-empty svg {
  width: 28px;
  height: 28px;
  opacity: .3;
  margin-bottom: 8px;
}
.comment-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}
.comment-empty p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

/* 发帖表单顶部引导：降低新人心理门槛 */
.publish-hint {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--clay) 7%, var(--paper-2));
  border-left: 2px solid color-mix(in srgb, var(--clay) 45%, transparent);
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.75;
}

/* ============================================================
   信息流节奏优化
   手机首屏必须能看到真实内容，列表要有呼吸感和色彩节奏
   ============================================================ */

@media (max-width: 1023px) {
  /* 欢迎区收紧成一行状态条：用户已经在社区里了，不需要再看一遍产品介绍 */
  .community-overview {
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .overview-copy { display: none; }
  .overview-school { padding: 5px 9px; font-size: 10px; }
  .overview-school::after {
    content: "校园生活社区";
    margin-left: 2px;
    padding-left: 9px;
    color: var(--soft);
    border-left: 1px solid var(--line);
    font-weight: 500;
  }

  /* 主视觉卡降低高度，不再吃掉半屏 */
  .hero-wrap { padding: 10px 12px 0; }
  .hero { min-height: 124px; padding: 15px 17px 14px; }
  .hero-eyebrow { margin-bottom: 6px; font-size: 8px; }
  .hero h1, .hero h2 { font-size: 20px; line-height: 1.38; }
  .hero p { margin-top: 5px; font-size: 11px; line-height: 1.6; }
  .hero-action { min-height: 28px; margin-top: 10px; padding: 0 11px; font-size: 10.5px; }
  .hero::after { right: -6px; bottom: -18px; font-size: 74px; }
  .hero-dots { margin-top: 7px; }

  .notice-carousel .notice-strip { padding: 8px 11px; }

  /* 校园服务改成横滑一排，省下一整行高度 */
  .section { padding-top: 14px; }
  .section-head { margin-bottom: 9px; }
  .section-head h2 { font-size: 16px; }
  .section > .category-grid {
    display: flex;
    gap: 8px;
    margin: 0 -14px;
    padding: 2px 14px 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .section > .category-grid::-webkit-scrollbar { display: none; }
  .section > .category-grid .category-item {
    flex: 0 0 auto;
    width: 60px;
    gap: 5px;
    scroll-snap-align: start;
  }
  .section > .category-grid .category-icon { width: 44px; height: 44px; border-radius: 14px; }
  .section > .category-grid .category-icon svg { width: 20px; height: 20px; }
  .section > .category-grid .category-item span:last-child { font-size: 10.5px; }

  .feed-section { padding-top: 14px; }
  .feed-head { padding-block: 8px; }
  .feed-head h2 { font-size: 16px; }
}

/* 列表卡片：标题更清楚、摘要收到两行、操作行更容易读 */
.post-card { padding: 19px 2px 16px; }
.post-meta { font-size: 10.5px; }
.post-author { font-size: 11.5px; }
.category-chip { padding: 3px 7px; font-weight: 700; }
.post-title { margin: 11px 0 7px; font-size: 17px; line-height: 1.5; }
.post-content { font-size: 12.5px; line-height: 1.66; -webkit-line-clamp: 2; }
.post-actions { margin-top: 13px; gap: 20px; font-size: 10.5px; }
.post-actions svg { width: 15px; height: 15px; }

/* 列表里"自动发布"徽章重复太多次反而像噪音，详情页保留 */
.feed-list .post-card .automated-badge,
.search-results .post-card .automated-badge { display: none; }

/* 首条做大卡：让第一屏有个视觉落点，而不是一堵等高的墙 */
.post-card.is-lead {
  margin: 0 -14px;
  padding: 17px 14px 16px;
  background: color-mix(in srgb, var(--clay) 4%, var(--paper-2));
  border-bottom: 1px solid var(--line);
}
.post-card.is-lead .post-title { font-size: 19px; line-height: 1.42; }
.post-card.is-lead .post-content { -webkit-line-clamp: 3; font-size: 13px; }

@media (min-width: 1024px) {
  .post-card.is-lead {
    margin: 0 -20px;
    padding: 18px 20px 17px;
    border-left: 3px solid color-mix(in srgb, var(--clay) 55%, transparent);
  }
  .post-card.is-lead .post-title { font-size: 20px; }
}

/* 桌面端左栏底部：把空白换成有用的社区提醒 */
.home-side-note { display: none; }

@media (min-width: 1024px) {
  .home-side-note {
    display: block;
    grid-column: 1;
    margin: 18px 14px 0;
    padding: 14px 15px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .home-side-note-title {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
  }
  .home-side-note-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
  }
  .home-side-note ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
  }
  .home-side-note li {
    position: relative;
    padding-left: 13px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
  }
  .home-side-note li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    background: color-mix(in srgb, var(--green) 70%, transparent);
    border-radius: 50%;
  }
}

/* 编辑资料里的头像行 */
.avatar-field { display: flex; align-items: center; gap: 14px; }
.avatar-preview { width: 54px; height: 54px; margin: 0; font-size: 20px; }
.avatar-field-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar-field-btn { min-height: 34px; padding: 0 14px; font-size: 12px; }

/* 主视觉轮播：可左右滑动、点圆点、桌面端点箭头 */
.hero { touch-action: pan-y; }
.hero-dots { gap: 6px; }
.hero-dots button {
  position: relative;
  width: 5px;
  height: 5px;
  padding: 0;
  background: var(--line);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width .25s, background .25s;
}
/* 圆点本身太小，用手指垫一层透明点击区 */
.hero-dots button::after { content: ""; position: absolute; inset: -10px -5px; }
.hero-dots button.active { width: 17px; background: var(--clay); border-radius: 8px; }
.hero-dots button:focus-visible { outline: 2px solid color-mix(in srgb, var(--clay) 45%, transparent); outline-offset: 3px; }

.hero-arrow { display: none; }

@media (hover: hover) and (min-width: 720px) {
  .hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .18s, background .18s;
    cursor: pointer;
  }
  .hero:hover .hero-arrow,
  .hero-arrow:focus-visible { opacity: 1; }
  .hero-arrow:hover { background: rgba(0, 0, 0, .32); }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .hero-arrow svg { width: 16px; height: 16px; }
  .hero-arrow.prev svg { transform: rotate(180deg); }
}

/* 主视觉改成真正的滑动轨道：跟手拖动 + 位移动画 */
.hero-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}
.hero-track {
  display: flex;
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.hero-track > .hero {
  flex: 0 0 100%;
  min-width: 100%;
  border-radius: 0;
  box-shadow: none;
}
.hero { touch-action: pan-y; }
/* 拖动时不要选中文字，鼠标给个可抓取的指针 */
.hero-viewport { user-select: none; -webkit-user-select: none; cursor: grab; }
.hero-viewport:active { cursor: grabbing; }
.hero-viewport button { cursor: pointer; }
/* 公告轮播和主视觉用同一套滑动曲线 */
.notice-carousel { touch-action: pan-y; }
.notice-track { transition: transform .42s cubic-bezier(.22, .61, .36, 1); }
.notice-carousel { user-select: none; -webkit-user-select: none; }

/* 安装引导：iPhone / 安卓 切换标签 */
.install-tabs {
  display: flex;
  gap: 6px;
  margin: 4px 0 14px;
  padding: 3px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.install-tabs button {
  flex: 1;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.install-tabs button.active {
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 7px rgba(50, 45, 38, .08);
}
.install-panel[hidden] { display: none !important; }

/* 安装引导：应用商店预告 */
.install-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--clay) 7%, var(--paper-2));
  border-left: 3px solid color-mix(in srgb, var(--clay) 50%, transparent);
  border-radius: 0 7px 7px 0;
  font-size: 12px;
  line-height: 1.7;
}

/* 装在桌面后是全屏应用，别让双击 / 双指把整页放大 */
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* 图片不参与拖拽和长按选中，避免误触放大 */
.post-images img, .detail-images img, .avatar-img {
  -webkit-user-drag: none;
  -webkit-touch-callout: default;
}

/* 联系客服：独立对话页，像微信一样 */
.support-page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 132px);
  min-height: 300px;
}
.support-status-bar {
  flex: 0 0 auto;
  padding: 8px 14px;
  color: var(--muted);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}
.support-status-bar.online { color: var(--green); }
.support-thread {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.support-empty { margin: auto; color: var(--soft); font-size: 12.5px; text-align: center; }
.support-msg { max-width: 78%; display: flex; flex-direction: column; }
.support-msg.mine { align-self: flex-end; align-items: flex-end; }
.support-msg p {
  margin: 0;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.support-msg.mine p {
  color: #fff;
  background: var(--clay);
  border-color: transparent;
  border-bottom-right-radius: 4px;
}
.support-msg.admin p { border-bottom-left-radius: 4px; }
.support-msg.system { align-self: center; max-width: 88%; }
.support-msg.system p {
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line);
  font-size: 11.5px;
  text-align: center;
}
.support-msg time { margin-top: 3px; color: var(--soft); font-size: 10px; }
.support-compose {
  flex: 0 0 auto;
  padding: 9px 12px calc(9px + var(--safe-bottom));
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.support-compose textarea {
  flex: 1 1 auto;
  min-height: 38px;
  max-height: 110px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
}
.support-compose textarea:focus { border-color: color-mix(in srgb, var(--clay) 45%, var(--line)); }
.support-compose button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
}
.support-compose button:disabled { opacity: .55; }

/* 客服对话页里藏掉悬浮发布按钮，避免压住输入框 */
body.is-support .publish-fab { display: none; }

/* 个人页的独立 ID */
.profile-handle {
  margin: 4px 0 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}
.profile-handle span {
  padding: 1px 6px;
  color: var(--clay);
  border: 1px solid color-mix(in srgb, var(--clay) 28%, var(--line));
  border-radius: 10px;
  font-size: 10px;
}
.profile-handle-static { margin: 4px 0 0; color: var(--soft); font-size: 11px; }

/* 注册成功后展示 ID */
.handle-reveal {
  margin: 14px 0 16px;
  padding: 16px 10px;
  text-align: center;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px dashed color-mix(in srgb, var(--clay) 40%, var(--line));
  border-radius: 16px;
  font: 800 26px/1.2 ui-monospace, monospace;
  letter-spacing: .12em;
  user-select: all;
}

/* 搜索结果里的用户卡片：按 ID 搜到人 */
.search-user {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}
.search-user .avatar { margin: 0; }
.search-user-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.search-user-copy strong { overflow: hidden; color: var(--ink); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.search-user-copy small { color: var(--muted); font-size: 11px; }
.search-user-go { flex: 0 0 auto; color: var(--clay); font-size: 11px; }

/* 搜索结果：用户区分组标题 */
.search-section {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* 开始页：加载速度的真实说明 */
.entry-speed {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 26px auto 0;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(77, 73, 65, .13);
  border-radius: 12px;
}
.entry-speed h2 {
  margin: 0;
  font: 800 15px/1.3 "Songti SC", "Noto Serif SC", serif;
  letter-spacing: .01em;
}
.entry-speed p {
  margin: 9px 0 0;
  color: var(--entry-muted, #66645d);
  font-size: 12.5px;
  line-height: 1.85;
}
.entry-speed strong { color: #4a4640; font-weight: 700; }
.entry-speed-note { color: #8a857b !important; font-size: 11.5px !important; }
@media (max-width: 640px) {
  .entry-speed { padding: 16px 15px; border-radius: 10px; }
  .entry-speed h2 { font-size: 14px; }
  .entry-speed p { font-size: 12px; line-height: 1.8; }
}

/* 首页社区提醒：手机端也显示，默认两条，可展开 */
@media (max-width: 1023px) {
  .home-side-note {
    display: block;
    margin: 12px 14px 0;
    padding: 11px 13px 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .home-side-note-title {
    margin: 0 0 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
  }
  .home-side-note-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
  }
  .home-side-note ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 5px;
  }
  .home-side-note li {
    position: relative;
    padding-left: 12px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.65;
  }
  .home-side-note li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--clay) 55%, transparent);
  }
  .home-side-note li:nth-child(n+3) { display: none; }
  .home-side-note.expanded li { display: block; }
  .note-toggle {
    margin: 8px 0 0;
    padding: 0;
    color: var(--clay);
    background: none;
    border: 0;
    font-size: 11px;
    cursor: pointer;
  }
}

@media (min-width: 1024px) {
  .note-toggle { display: none; }
}

/* ============================================================
   2026 视觉更新：更圆的角、更轻的框
   砖橙主色不动，只调形态与层次
   ============================================================ */
:root {
  --r-btn: 999px;
  --r-field: 14px;
  --r-card: 22px;
  --r-sheet: 28px;
  --ease-out: cubic-bezier(.32, .72, 0, 1);
  --lift: 0 1px 2px rgba(47, 42, 34, .04), 0 10px 26px rgba(47, 42, 34, .055);
}
[data-theme="dark"] {
  --lift: 0 1px 2px rgba(0, 0, 0, .28), 0 12px 30px rgba(0, 0, 0, .3);
}

/* 按钮：统一胶囊形，按下去有轻微回弹 */
.primary-button, .secondary-button, .block-button,
.text-button, .link-button {
  border-radius: var(--r-btn);
  transition: transform .2s var(--ease-out), background-color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.primary-button { box-shadow: 0 8px 18px rgba(29, 28, 25, .13); }
.primary-button:hover { box-shadow: 0 10px 22px rgba(168, 81, 47, .2); }
.primary-button:active, .secondary-button:active, .block-button:active { transform: scale(.97); }

.icon-button, .back-button { transition: background-color .2s ease, transform .15s var(--ease-out); }
.icon-button:active, .back-button:active { transform: scale(.9); }

/* 输入框：填充底，聚焦时才浮出边线 */
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea, .field select,
.modal input:not([type="checkbox"]):not([type="radio"]),
.modal textarea, .modal select {
  border-radius: var(--r-field);
  background: var(--paper-2);
  border-color: transparent;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus,
.modal input:focus, .modal textarea:focus, .modal select:focus {
  background: var(--card);
  border-color: color-mix(in srgb, var(--clay) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 10%, transparent);
}

/* 信息流：从"分割线列表"变成一张张卡片 */
.feed-list { display: grid; gap: 12px; padding-bottom: 6px; }
.post-card {
  padding: 16px 16px 14px;
  background: var(--card);
  border: 0;
  border-radius: var(--r-card);
  box-shadow: var(--lift);
  transition: transform .2s var(--ease-out), box-shadow .2s ease;
}
.post-card:active { transform: scale(.988); }
.post-card.is-lead {
  margin: 0;
  border: 0;
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--clay) 5%, var(--card));
}
.search-results .post-card { border-radius: var(--r-card); box-shadow: var(--lift); margin-bottom: 10px; }

@media (min-width: 1024px) {
  .post-card.is-lead { margin: 0; border-left: 0; }
}

/* 标签：全胶囊 */
.category-chip, .automated-badge { border-radius: 999px; padding-inline: 9px; }

/* 弹窗：顶部更圆，去硬边 */
.modal { border-color: transparent; border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.modal.compact { border-radius: 24px; }
.modal-head { border-bottom-color: color-mix(in srgb, var(--line) 55%, transparent); }

/* 顶栏线更淡；底栏像浮起来的托盘 */
.topbar { border-bottom-color: color-mix(in srgb, var(--line) 50%, transparent); }
.bottom-nav {
  border-top-color: color-mix(in srgb, var(--line) 45%, transparent);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 32px rgba(47, 42, 34, .07);
}

/* 我的页面：菜单变成一格格圆角块 */
.menu-list { display: grid; gap: 4px; padding: 10px 12px 0; }
.menu-item {
  padding: 0 12px;
  border-bottom: 0;
  border-radius: 16px;
  transition: background-color .18s ease;
}
.menu-item:hover { background: var(--paper-2); }
.menu-item.danger:hover { background: color-mix(in srgb, #b64d4d 8%, transparent); }

/* 统计条：三等分各成一张小卡 */
.profile-stats { border-bottom: 0; gap: 8px; padding: 14px 12px; }
.profile-stats button {
  border-right: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--lift);
  transition: transform .2s var(--ease-out);
}
.profile-stats button:active { transform: scale(.97); }

/* 分段切换 */
.segment { border-radius: 999px; border-color: transparent; }
.segment button { border-radius: 999px; }

/* 分类图标：去边框，圆一点 */
.category-icon {
  border-radius: 18px;
  border-color: transparent;
  background: color-mix(in srgb, var(--category-color) 12%, var(--card));
}

/* 客服对话：气泡更圆、去描边，输入框做胶囊 */
.support-msg p {
  border-color: transparent;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(47, 42, 34, .05);
}
.support-msg.mine p { border-bottom-right-radius: 6px; }
.support-msg.admin p { border-bottom-left-radius: 6px; }
.support-msg.system p { border-radius: 999px; border-style: solid; }
.support-compose { border-top-color: color-mix(in srgb, var(--line) 50%, transparent); }
.support-compose textarea { border-radius: 20px; background: var(--paper-2); border-color: transparent; }
.support-compose textarea:focus { background: var(--card); border-color: color-mix(in srgb, var(--clay) 45%, transparent); }

/* 详情页联系框 */
.contact-box { border-radius: 18px; border-left-width: 3px; }

/* 图片与视频容器 */
.detail-images img { border-radius: 18px; }

/* 菜单：整组收进一张圆角卡，行间只留一条极淡的分隔 */
.menu-list {
  margin: 10px 12px 0;
  padding: 6px 8px;
  gap: 0;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--lift);
}
.menu-item {
  border-radius: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: var(--paper-2); }

/* 分类图标：加一点极淡的落影，从扁平变有厚度 */
.category-icon { box-shadow: 0 6px 14px rgba(47, 42, 34, .05); }
[data-theme="dark"] .category-icon { box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }

/* ============================================================
   2026 视觉升级 Ⅱ：材质、层次、动效
   圆角之后补的是"感觉"：玻璃、光、移动
   ============================================================ */

/* 背景：去掉图纸网格，换成两团很淡的光 */
.app-shell {
  background:
    radial-gradient(880px 460px at 8% -8%, color-mix(in srgb, var(--clay) 8%, transparent), transparent 62%),
    radial-gradient(760px 420px at 98% 2%, color-mix(in srgb, var(--green) 7%, transparent), transparent 58%),
    var(--paper);
}

/* 顶栏：毛玻璃，滚动时内容从下面透过去 */
.topbar {
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  backdrop-filter: blur(26px) saturate(1.75);
  -webkit-backdrop-filter: blur(26px) saturate(1.75);
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--ink) 8%, transparent);
}
.brand-button img { border-radius: 12px; box-shadow: 0 8px 20px color-mix(in srgb, var(--clay) 26%, transparent); }

/* 底部导航：从"贴底白条"变成悬浮玻璃 Dock */
.bottom-nav {
  width: min(calc(100% - 28px), 512px);
  bottom: calc(10px + var(--safe-bottom));
  min-height: 62px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--card) 65%, transparent);
  border-radius: 30px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: blur(28px) saturate(1.9);
  -webkit-backdrop-filter: blur(28px) saturate(1.9);
  box-shadow:
    0 16px 40px rgba(47, 42, 34, .15),
    0 2px 8px rgba(47, 42, 34, .05),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.bottom-nav button {
  height: 50px;
  border-radius: 22px;
  transition: background-color .22s ease, color .22s ease, transform .22s cubic-bezier(.32, .72, 0, 1);
}
.bottom-nav button.active {
  color: var(--clay);
  background: color-mix(in srgb, var(--clay) 12%, transparent);
}
.bottom-nav button:active { transform: scale(.94); }
.bottom-nav svg { transition: transform .22s cubic-bezier(.32, .72, 0, 1); }
.bottom-nav button.active svg { transform: translateY(-1px) scale(1.06); }

[data-theme="dark"] .bottom-nav {
  border-color: color-mix(in srgb, #fff 10%, transparent);
  background: color-mix(in srgb, var(--card) 86%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* 发布键：嵌在 Dock 中间，从 Dock 里"长"出来 */
.publish-fab {
  width: 58px;
  height: 58px;
  bottom: calc(30px + var(--safe-bottom));
  border: 0;
  background: linear-gradient(145deg, var(--clay-2), var(--clay));
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--clay) 40%, transparent),
    0 2px 6px color-mix(in srgb, var(--clay) 30%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .24s cubic-bezier(.32, .72, 0, 1), box-shadow .24s ease;
}
.publish-fab:hover { background: linear-gradient(145deg, var(--clay-2), var(--clay)); transform: translateX(-50%) scale(1.06); }
.publish-fab:active { transform: translateX(-50%) scale(.94); }

/* 内容区给悬浮 Dock 让位 */
#mainView { padding-bottom: calc(104px + var(--safe-bottom)); }

/* Hero：加光斑、加大字号，去掉图纸纹 */
.hero {
  border-radius: 26px;
  background:
    radial-gradient(125% 140% at 88% -25%, rgba(255, 255, 255, .3), transparent 58%),
    radial-gradient(90% 100% at 0% 115%, rgba(0, 0, 0, .24), transparent 62%),
    #9f4b2c;
  box-shadow: 0 20px 44px color-mix(in srgb, #9f4b2c 32%, transparent);
  isolation: isolate;
}
.hero[data-tone="green"] { background: radial-gradient(125% 140% at 88% -25%, rgba(255,255,255,.3), transparent 58%), radial-gradient(90% 100% at 0% 115%, rgba(0,0,0,.24), transparent 62%), #477866; }
.hero[data-tone="blue"] { background: radial-gradient(125% 140% at 88% -25%, rgba(255,255,255,.3), transparent 58%), radial-gradient(90% 100% at 0% 115%, rgba(0,0,0,.24), transparent 62%), #476c94; }
.hero::before { opacity: .16; background-image: linear-gradient(118deg, transparent 0 52%, rgba(255,255,255,.24) 52% 53%, transparent 53%); background-size: auto; }
.hero h1, .hero h2 { font-size: 22px; line-height: 1.36; letter-spacing: -.01em; }
.hero p { color: rgba(255, 255, 255, .86); }
.hero-action {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-weight: 700;
}
.hero-action:hover { background: rgba(255, 255, 255, .26); }

/* 卡片：顶部一条细高光，悬停轻微上浮 */
.post-card {
  border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
  box-shadow: var(--lift), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .24s cubic-bezier(.32, .72, 0, 1), box-shadow .24s ease, border-color .24s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--clay) 16%, transparent);
  box-shadow: 0 2px 4px rgba(47, 42, 34, .05), 0 18px 36px rgba(47, 42, 34, .09), inset 0 1px 0 rgba(255, 255, 255, .95);
}
[data-theme="dark"] .post-card { box-shadow: var(--lift), inset 0 1px 0 rgba(255, 255, 255, .06); }

/* 分类标签：淡渐变，不再是一块死板的纯色 */
.category-chip {
  border: 0;
  color: var(--category-color);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--category-color) 17%, transparent),
    color-mix(in srgb, var(--category-color) 8%, transparent));
  font-weight: 700;
  letter-spacing: .2px;
}
.category-icon { border-radius: 20px; }

/* 入场：卡片依次浮上来 */
@keyframes dq-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.feed-list .post-card { animation: dq-rise .5s cubic-bezier(.22, 1, .36, 1) backwards; }
.feed-list .post-card:nth-child(2) { animation-delay: .03s; }
.feed-list .post-card:nth-child(3) { animation-delay: .06s; }
.feed-list .post-card:nth-child(4) { animation-delay: .09s; }
.feed-list .post-card:nth-child(5) { animation-delay: .12s; }

/* 主按钮：一点渐变，不再是一块死黑 */
.primary-button {
  background: linear-gradient(140deg, var(--ink), color-mix(in srgb, var(--ink) 82%, var(--clay)));
  border-color: transparent;
}
.primary-button:hover { background: linear-gradient(140deg, var(--clay), var(--clay-2)); }

@media (prefers-reduced-motion: reduce) {
  .feed-list .post-card { animation: none; }
  .post-card, .publish-fab, .bottom-nav button { transition: none; }
}

/* 细节：头像浮起来，标题收紧字距 */
.avatar { box-shadow: 0 0 0 2px var(--card), 0 4px 10px rgba(47, 42, 34, .1); }
.post-title { letter-spacing: -.008em; }
.section-heading h2, .feed-head h2 { letter-spacing: -.01em; }

/* 顶栏滚动收缩 */
.topbar { transition: height .26s cubic-bezier(.32, .72, 0, 1), box-shadow .26s ease, background-color .26s ease; }
.topbar.is-scrolled {
  height: 54px;
  box-shadow: 0 8px 22px rgba(47, 42, 34, .07), inset 0 -1px 0 color-mix(in srgb, var(--ink) 9%, transparent);
}
.topbar.is-scrolled .brand-button img { width: 28px; height: 28px; }
.topbar.is-scrolled .brand-button strong { font-size: 16px; }
.topbar.is-scrolled .brand-button small { opacity: 0; transition: opacity .2s ease; }
.brand-button img { transition: width .26s cubic-bezier(.32, .72, 0, 1), height .26s cubic-bezier(.32, .72, 0, 1); }

/* 吸顶标题栏跟随顶栏收缩（移动端），桌面端保持原高度避免双列错位 */
.feed-head { transition: top .26s cubic-bezier(.32, .72, 0, 1); }
body.topbar-compact .feed-head { top: 54px; }
@media (min-width: 1024px) {
  .topbar, .topbar.is-scrolled { height: 66px; }
  .topbar.is-scrolled .brand-button img { width: 34px; height: 34px; }
  .topbar.is-scrolled .brand-button strong { font-size: 18px; }
  .topbar.is-scrolled .brand-button small { opacity: 1; }
  body.topbar-compact .feed-head { top: 66px; }
}

/* 详情页工具栏里的浏览量，只展示不可点，和三个按钮同高 */
.detail-views {
  flex: 0 0 auto;
  min-height: 37px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.detail-views svg { width: 16px; }

/* 站内确认框 / 举报选项 */
.confirm-text { margin: 0 0 4px; color: var(--ink); font-size: 13px; line-height: 1.75; }
.confirm-actions { display: flex; gap: 10px; margin-top: 22px; }
.confirm-actions button { flex: 1; min-height: 42px; border-radius: 999px; }
.danger-btn { background: #b64d4d; border-color: #b64d4d; }
.danger-btn:hover { background: #c25a5a; border-color: #c25a5a; }
.report-options { display: grid; gap: 8px; margin-top: 14px; }
.report-option {
  padding: 13px 15px;
  text-align: left;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.report-option:hover { border-color: color-mix(in srgb, var(--clay) 45%, transparent); background: var(--card); }

/* [hidden] 必须真的隐藏：.field 的 display:grid 会覆盖浏览器默认的 display:none，
   导致「价格」这类按分类隐藏的字段一直显示。 */
[hidden] { display: none !important; }

/* ============================================================
   评论回复：缩进 + 左侧细线，回复入口在每条评论右下
   ============================================================ */
.comment-reply-btn {
  margin-top: 5px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 10px;
  cursor: pointer;
  transition: color .18s ease;
}
.comment-reply-btn:hover { color: var(--clay); }

.comment.is-reply {
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 8px;
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--clay) 20%, transparent);
  border-bottom-color: transparent;
}
.comment.is-reply .avatar { width: 26px; height: 26px; }
.comment.is-reply p { margin-top: 4px; }
.comment-reply-to {
  padding: 1px 7px;
  color: var(--clay);
  background: color-mix(in srgb, var(--clay) 10%, transparent);
  border-radius: 999px;
  font-size: 9px;
}

/* 回复提示条：紧贴输入框上沿 */
.reply-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--clay) 7%, var(--paper-2));
  border-radius: 999px;
  font-size: 11px;
}
.reply-hint b { color: var(--ink); }
.reply-hint button {
  margin-left: auto;
  display: inline-flex;
  padding: 2px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.reply-hint:not([hidden]) + .comment-form { margin-top: 8px; }

/* 首页公告：纵向展示 3 条，与公告页的 .notice-list 区分 */
.home-notice-list { display: grid; gap: 8px; margin: 12px 14px 0; }
.home-notice-list .notice-strip { width: 100%; margin: 0; }
.home-notice-list .notice-more {
  justify-self: start;
  padding: 2px 0;
  background: none;
  border: 0;
  color: var(--accent, #a8512f);
  font-size: 12px;
}
