:root {
  --bg-deep: #f5f2ec;
  --bg-mid: #faf8f4;
  --text: #1c2428;
  --muted: rgba(28, 36, 40, 0.62);
  --stroke: rgba(40, 60, 70, 0.10);
  --stroke-fine: rgba(40, 70, 75, 0.14);
  --accent-a: #2a9d94;
  --accent-b: #3b8fb8;
  --link: #0f766e;
  --link-soft: #0e7490;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-btn-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55) 48%, rgba(248, 252, 251, 0.72));
  --glass-btn-bg-hover: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.68) 48%, rgba(240, 250, 248, 0.88));
  --glass-btn-primary-bg: linear-gradient(145deg, rgba(94, 200, 192, 0.88), rgba(45, 168, 160, 0.82) 45%, rgba(70, 170, 200, 0.86));
  --glass-btn-primary-bg-hover: linear-gradient(145deg, rgba(110, 220, 210, 0.95), rgba(50, 180, 170, 0.9) 45%, rgba(80, 185, 215, 0.92));
  --glass-btn-shadow:
    0 10px 28px rgba(40, 60, 70, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(40, 70, 75, 0.04);
  --glass-btn-shadow-hover:
    0 14px 36px rgba(40, 60, 70, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(40, 70, 75, 0.05);
  --glass-btn-blur: blur(16px) saturate(140%);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --layout-max: 1100px;
  --layout-gutter: 16px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
}
/* 去掉浏览器默认蓝色点击/选中框 */
a,
button,
summary,
[role="button"],
.glass-panel,
.nav-item,
.post-card,
.cta,
.ad-dot,
.city-chip,
.suggest-item,
.stance-vote-btn,
.comment-expand,
.comment-main,
.site-ai-fab,
.scroll-hint,
.review-bubble,
.ent-split-tab,
.notice-bar-inner {
  -webkit-tap-highlight-color: transparent;
}
*:focus,
*:focus-visible {
  outline: none !important;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(165deg, #fbf9f5 0%, #f6f3ed 42%, #f2efe8 100%);
  overflow-x: hidden;
}

/* 奶白渐变网格 + 轻颗粒 */
.fluff-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #f8f5ef;
}
.bg-mesh {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 48% 42% at 12% 18%, rgba(210, 236, 228, 0.85), transparent 62%),
    radial-gradient(ellipse 44% 40% at 88% 22%, rgba(220, 232, 242, 0.75), transparent 60%),
    radial-gradient(ellipse 46% 38% at 72% 78%, rgba(232, 226, 210, 0.7), transparent 62%),
    radial-gradient(ellipse 42% 36% at 18% 82%, rgba(228, 234, 220, 0.65), transparent 60%),
    radial-gradient(ellipse 36% 32% at 50% 48%, rgba(255, 255, 255, 0.55), transparent 68%);
}
.bg-wash {
  position: absolute;
  border-radius: 42% 58% 48% 52%;
  opacity: 0.85;
}
.bg-wash-1 {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  top: -8%;
  left: -4%;
  background: radial-gradient(circle, rgba(186, 230, 220, 0.55), transparent 68%);
}
.bg-wash-2 {
  width: min(62vw, 560px);
  height: min(62vw, 560px);
  top: 8%;
  right: -10%;
  background: radial-gradient(circle, rgba(200, 220, 238, 0.48), transparent 70%);
}
.bg-wash-3 {
  width: min(54vw, 480px);
  height: min(54vw, 480px);
  bottom: -12%;
  left: 22%;
  background: radial-gradient(circle, rgba(236, 228, 204, 0.5), transparent 70%);
}
.bg-wash-4 {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 72%);
}
.bg-flow {
  position: absolute;
  inset: -20% -30%;
  pointer-events: none;
}
.bg-flow-1 {
  background: linear-gradient(
    108deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0) 44%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(210, 236, 230, 0.28) 54%,
    transparent 62%,
    transparent 100%
  );
  opacity: 0.55;
}
.bg-flow-2 {
  background: linear-gradient(
    -118deg,
    transparent 0%,
    transparent 46%,
    rgba(220, 232, 242, 0) 52%,
    rgba(230, 238, 246, 0.4) 58%,
    rgba(236, 228, 210, 0.22) 62%,
    transparent 70%,
    transparent 100%
  );
  opacity: 0.4;
}
.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(80, 110, 115, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 110, 115, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 42%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 42%, #000 20%, transparent 78%);
}
.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 75% at 50% 40%, transparent 42%, rgba(210, 200, 185, 0.22) 100%);
}
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

@keyframes bg-mesh-shift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1.5%, 1.2%, 0) scale(1.04); }
}
@keyframes bg-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5%, 4%, 0) scale(1.08); }
}
@keyframes bg-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.02); }
  50% { transform: translate3d(-6%, 3%, 0) scale(1); }
}
@keyframes bg-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, -5%, 0) scale(1.1); }
}
@keyframes bg-flow-sweep {
  0% { transform: translate3d(-18%, -4%, 0) rotate(0.4deg); opacity: 0.35; }
  45% { opacity: 0.95; }
  100% { transform: translate3d(18%, 5%, 0) rotate(-0.4deg); opacity: 0.4; }
}
@keyframes bg-flow-sweep-alt {
  0% { transform: translate3d(14%, 6%, 0) rotate(-0.6deg); opacity: 0.25; }
  50% { opacity: 0.8; }
  100% { transform: translate3d(-16%, -5%, 0) rotate(0.5deg); opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-mesh,
  .bg-wash,
  .bg-flow {
    animation: none !important;
  }
}

.splash {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.splash-hero {
  min-height: 100vh;
  min-height: 100dvh;
}
.page-portal {
  overflow-x: hidden;
}
.page-portal .scroll-hint {
  display: grid;
}

.splash-inner {
  width: min(560px, 100%);
  text-align: center;
}

.brand-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 28px;
  display: block;
  object-fit: cover;
  border-radius: 28px;
  box-shadow:
    0 18px 40px rgba(14, 165, 233, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: rise 0.9s ease both;
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  animation: rise 0.9s ease 0.08s both;
}

.brand-intro {
  margin: 18px auto 0;
  max-width: 28em;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 400;
  animation: rise 0.9s ease 0.16s both;
}

.cta-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 0.9s ease 0.24s both;
}

/* 液态玻璃按钮基座 */
.cta,
.nav-btn,
.city-chip,
.suggest-item,
.home-search button,
.nav-search-form button[type="submit"],
.site-ai-tips button,
.site-ai-send,
.nav-city-btn,
.stance-vote-btn,
.comment-expand,
.city-pick-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--glass-btn-bg);
  backdrop-filter: var(--glass-btn-blur);
  -webkit-backdrop-filter: var(--glass-btn-blur);
  box-shadow: var(--glass-btn-shadow);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.cta:hover,
.nav-btn:hover,
.city-chip:hover,
.city-chip.active,
.suggest-item:hover,
.home-search button:hover,
.nav-search-form button[type="submit"]:hover,
.site-ai-tips button:hover,
.site-ai-send:hover,
.nav-city-btn:hover,
.nav-city-btn[aria-expanded="true"],
.stance-vote-btn:hover,
.comment-expand:hover,
.comment-expand.is-open {
  background: var(--glass-btn-bg-hover);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--glass-btn-shadow-hover);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 14px 28px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
}

.cta:hover {
  transform: translateY(-2px);
}

.cta-primary,
.home-search button,
.nav-search-form button[type="submit"],
.site-ai-send {
  color: #e8fffb;
  background: var(--glass-btn-primary-bg);
  border-color: rgba(180, 240, 230, 0.45);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow:
    0 12px 32px rgba(94, 200, 192, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.cta-primary:hover,
.home-search button:hover,
.nav-search-form button[type="submit"]:hover,
.site-ai-send:hover:not(:disabled) {
  background: var(--glass-btn-primary-bg-hover);
  border-color: rgba(200, 250, 240, 0.55);
  box-shadow:
    0 16px 40px rgba(94, 200, 192, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.cta-secondary {
  color: var(--text);
}

.cta-secondary:hover {
  background: var(--glass-btn-bg-hover);
}

.cta-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.splash-foot {
  margin-top: 48px;
  font-size: 0.8rem;
  color: rgba(28, 36, 40, 0.38);
  animation: rise 0.9s ease 0.32s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .cta:not(.cta-sm) {
    width: 100%;
  }
  .cta-row {
    flex-direction: column;
  }
  .cta-row .cta {
    width: 100%;
  }
}

.glass-panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9));
  border: 1px solid var(--stroke-fine);
  border-radius: 22px;
  box-shadow:
    0 18px 48px rgba(60, 70, 80, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 0.5px rgba(180, 210, 200, 0.2);
}

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px 24px 24px;
  text-align: left;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 700;
}

.auth-brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.auth-desc {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.3);
  font-size: 0.9rem;
}

.auth-form label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-input {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(40, 70, 75, 0.16);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  outline: none;
  font: inherit;
}

.auth-input:focus {
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.16);
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.captcha-row .auth-input {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.captcha-refresh {
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(40, 70, 75, 0.16);
  border-radius: 12px;
  background: #f4f8f7;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
}
.captcha-refresh img {
  display: block;
  width: 148px;
  height: 52px;
}

.agree-box {
  margin: 6px 0 18px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(40, 70, 75, 0.14);
  background: rgba(255,255,255,0.55);
}

.agree-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
  line-height: 1.5;
  cursor: pointer;
}

.agree-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: #0284c7;
}

.agree-check a,
.text-link,
.auth-switch a,
.agree-preview-body a {
  color: #0e7490;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.agree-preview {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.agree-preview summary {
  cursor: pointer;
  color: rgba(28, 36, 40, 0.78);
}

.agree-preview-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  line-height: 1.65;
}

.agree-preview-body p { margin: 0 0 8px; }

.auth-submit {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.terms-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 28px 16px 48px;
}

.terms-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 24px 22px 36px;
}

.terms-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.terms-doc {
  line-height: 1.75;
  font-size: 0.95rem;
  color: rgba(28, 36, 40, 0.88);
}

.terms-header h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
}

.terms-header p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.terms-doc section { margin-top: 22px; }
.terms-doc h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text);
  font-family: var(--font-display);
}
.terms-doc h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
  color: #334155;
}
.terms-doc p { margin: 0 0 10px; }
.terms-doc strong { color: var(--text); font-weight: 700; }
.terms-final {
  margin-top: 18px !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.app-body { min-height: 100vh; }
body.has-enter-splash {
  overflow: hidden;
}
.enter-splash {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background:
    radial-gradient(ellipse 48% 42% at 50% 42%, rgba(210, 236, 228, 0.9), transparent 62%),
    #f8f5ef;
  overflow: hidden;
}
.enter-splash-logo {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  margin: 0;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(15, 80, 74, 0.18));
}
.enter-splash-logo.is-bounce {
  animation: enter-bounce 0.72s ease-in-out infinite;
}
.enter-splash-logo.is-spin {
  animation: enter-spin 0.62s linear forwards;
}
.enter-splash-logo.is-drop {
  animation: enter-drop 0.78s cubic-bezier(0.45, 0.02, 0.85, 0.55) forwards;
}
.enter-splash-bar {
  position: fixed;
  left: 50%;
  top: calc(50% + 68px);
  width: 168px;
  height: 5px;
  margin-left: -84px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.16);
  overflow: hidden;
  z-index: 2;
  transition: opacity 0.28s ease;
}
.enter-splash.is-loaded .enter-splash-bar {
  opacity: 0;
}
.enter-splash-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #5eead4);
}
.enter-splash-pool {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.splash-burst,
.splash-sheet,
.splash-drop {
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.splash-burst {
  width: 22px;
  height: 8px;
  margin: 0 0 0 -11px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.92), rgba(168, 214, 208, 0.28) 58%, transparent 74%);
}
.splash-sheet {
  width: 36px;
  height: 18px;
  margin: 0 0 -4px -18px;
  border-radius: 50% 50% 46% 54%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(42, 157, 148, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.splash-drop {
  width: var(--s, 8px);
  height: calc(var(--s, 8px) * 1.35);
  margin-left: calc(var(--s, 8px) / -2);
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.78), rgba(186, 220, 216, 0.72) 48%, rgba(42, 157, 148, 0.42) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 4px 8px rgba(40, 70, 75, 0.08);
}
.enter-splash.is-ripple .splash-burst {
  animation: splash-burst 0.28s ease-out forwards;
}
.enter-splash.is-ripple .splash-sheet {
  animation: splash-sheet 0.5s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}
.enter-splash.is-ripple .splash-drop {
  animation: splash-drop var(--t, 0.7s) cubic-bezier(0.16, 0.72, 0.28, 1) var(--delay, 0s) forwards;
}
@keyframes splash-burst {
  0% { transform: scale(0.2, 0.4); opacity: 0.95; }
  100% { transform: scale(3.2, 0.7); opacity: 0; }
}
@keyframes splash-sheet {
  0% { transform: translateY(6px) scale(0.35, 0.2); opacity: 0.95; }
  55% { transform: translateY(-54px) scale(1.15, 1.35); opacity: 0.8; }
  100% { transform: translateY(-18px) scale(1.7, 0.45); opacity: 0; }
}
@keyframes splash-drop {
  0% {
    opacity: 0;
    transform: translate(0, 10px) scale(0.35) rotate(0deg);
  }
  10% { opacity: 1; }
  38% {
    opacity: 1;
    transform: translate(var(--x), var(--peak)) scale(1) rotate(var(--rot, 0deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--x) * 1.45), 26px) scale(0.55) rotate(var(--rot, 0deg));
  }
}
.enter-splash.is-done {
  animation: enter-fade 0.48s ease forwards;
}
@keyframes enter-bounce {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  45% { transform: translate(-50%, -50%) translateY(-14px); }
  70% { transform: translate(-50%, -50%) translateY(0) scale(1, 0.92); }
}
@keyframes enter-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes enter-drop {
  0% {
    top: 50%;
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
    opacity: 1;
  }
  72% {
    top: calc(100% - 48px);
    transform: translate(-50%, -50%) rotate(360deg) scale(0.92, 1.08);
    opacity: 1;
  }
  86% {
    top: calc(100% - 18px);
    transform: translate(-50%, -50%) rotate(360deg) scale(1.35, 0.42);
    opacity: 0.85;
  }
  100% {
    top: calc(100% - 16px);
    transform: translate(-50%, -50%) rotate(360deg) scale(1.6, 0.2);
    opacity: 0;
  }
}
@keyframes enter-fade {
  to { opacity: 0; visibility: hidden; }
}
body.has-enter-splash .create-ent-bubble {
  animation: none;
  opacity: 0;
  visibility: hidden;
}
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    var(--layout-gutter)
    0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(245, 242, 236, 0.92) 0%,
    rgba(245, 242, 236, 0.72) 55%,
    rgba(245, 242, 236, 0) 100%
  );
}
.site-chrome > .site-nav,
.site-chrome > .site-search-bar {
  pointer-events: auto;
  width: 100%;
  max-width: calc(var(--layout-max) - var(--layout-gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.site-chrome-spacer {
  width: 100%;
  flex: 0 0 auto;
  pointer-events: none;
}
.site-nav {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  box-sizing: border-box;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  min-width: 0;
  flex: 0 1 auto;
}
.site-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 9px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.site-brand-name {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.site-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: auto;
}
.site-links .nav-item {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.site-links .nav-item-icon {
  display: block;
  opacity: 0.9;
}
.nav-item-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.nav-unread-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  z-index: 1;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #be123c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.92);
  pointer-events: none;
}
.site-links .nav-item-msg .nav-unread-badge {
  letter-spacing: -0.02em;
}
.site-links .nav-item.active,
.site-links .nav-item:hover {
  color: var(--text);
  background: var(--glass-btn-bg);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: var(--glass-btn-blur);
  -webkit-backdrop-filter: var(--glass-btn-blur);
  box-shadow: var(--glass-btn-shadow);
}
.site-links .nav-item-user {
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.92;
}
.site-links .nav-item-logout:hover {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.18);
}
.site-user { display: none; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  padding: 7px 12px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
}
@media (max-width: 720px) {
  .site-brand-name {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92rem;
    overflow: visible;
    text-overflow: clip;
  }
  .site-links .nav-item {
    min-width: 0;
    flex: 1 1 0;
    padding: 6px 4px;
    font-size: 0.68rem;
    gap: 3px;
  }
  .site-links .nav-item-icon {
    width: 22px;
    height: 22px;
  }
  .nav-unread-badge {
    top: -6px;
    right: -8px;
    min-width: 15px;
    height: 15px;
    line-height: 15px;
    font-size: 0.58rem;
    padding: 0 3px;
  }
}
.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 18px var(--layout-gutter) 40px;
  box-sizing: border-box;
}
.site-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px 28px;
  color: rgba(28,36,40,0.4);
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.site-foot a { color: #0e7490; }

.front-alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(40, 70, 75, 0.14);
}
.front-alert.ok { background: rgba(52,211,153,0.15); }
.front-alert.err { background: rgba(251,113,133,0.15); }
.evidence-public-opt {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 8px !important;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.12);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
}
.evidence-public-opt input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
  flex-shrink: 0;
}
.req-mark {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}
.review-missing-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.review-missing-list li {
  margin: 4px 0;
}
.is-invalid-field,
.is-invalid-field.auth-input,
.tags-panel.is-invalid-field,
.stance-picker.is-invalid-field,
.rating-picker.is-invalid-field,
.review-role-picker.is-invalid-field {
  outline: 2px solid rgba(220, 38, 38, 0.55);
  outline-offset: 2px;
  border-radius: 12px;
}
.auth-input.is-invalid-field {
  border-color: rgba(220, 38, 38, 0.55) !important;
  background: rgba(254, 226, 226, 0.35);
}

.ad-carousel {
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 22px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ad-carousel:active { cursor: grabbing; }
.ad-carousel-track { position: relative; min-height: 148px; }
.ad-slide {
  display: none;
  position: relative;
  text-decoration: none;
  color: inherit;
  min-height: 148px;
}
.ad-slide.is-active { display: block; }
.ad-slide img,
.ad-slide .home-ad-fallback {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  pointer-events: none;
}
.home-ad-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(94,200,192,0.35), rgba(126,200,232,0.35));
  font-weight: 600;
}
.ad-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 28px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.45));
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.ad-slide-caption span {
  color: rgba(242, 248, 247, 0.78);
  font-size: 0.85rem;
}
.ad-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.ad-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}
.ad-dot.is-active { background: #0f766e; }

.notice-bar {
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}
.notice-bar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.notice-label {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(160, 240, 230, 0.28), rgba(94, 200, 192, 0.16));
  border: 1px solid rgba(94, 200, 192, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}
.notice-new {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(251, 113, 133, 0.28);
  color: #be123c;
  font-size: 11px;
  font-weight: 700;
}
.notice-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.notice-marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: notice-scroll 14s linear infinite;
  color: var(--muted);
  font-size: 0.9rem;
}
.notice-more {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 0.85rem;
}
@keyframes notice-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.notice-panel[hidden] { display: none !important; }
.notice-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}
.notice-panel-mask {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.78);
}
.notice-panel-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(78vh, 620px);
  overflow: auto;
  padding: 16px 18px 20px;
}
.notice-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.notice-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notice-panel-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.notice-panel-list li:first-child { border-top: 0; padding-top: 0; }
.notice-item-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.notice-panel-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}
.notice-panel-list time {
  display: block;
  margin-top: 6px;
  color: rgba(242,248,247,0.42);
  font-size: 0.78rem;
}

.section-head h2,
.side-card h3,
.comments h2,
.form-panel h1 { margin: 0 0 12px; font-family: var(--font-display); }
.form-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.user-center-head {
  margin-bottom: 18px;
}
.user-level-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.user-level-badge-inline {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke-fine);
  background: rgba(255,255,255,0.65);
}
.user-level-lv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #e8fffb;
  background: var(--glass-btn-primary-bg);
  border: 1px solid rgba(180, 240, 230, 0.4);
  box-shadow: var(--glass-btn-shadow);
  backdrop-filter: var(--glass-btn-blur);
  -webkit-backdrop-filter: var(--glass-btn-blur);
  margin-left: auto;
}
.user-level-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  min-width: 0;
}
.user-level-rules {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  line-height: 1.75;
}
.user-level-rules li { margin-bottom: 6px; }
.user-level-rules strong { color: var(--text); }
.user-center-account {
  margin: 8px 0 0;
  font-size: 0.88rem;
}
.user-level-card {
  margin-top: 4px;
  padding-top: 4px;
}
.user-level-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.user-stat {
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke-fine);
  background: rgba(255,255,255,0.65);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.user-stat strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f766e;
}
.user-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}
.user-stat small {
  font-size: 0.72rem;
  color: var(--muted);
}
.user-stat.is-total {
  background: var(--glass-btn-bg);
  border-color: rgba(94, 200, 192, 0.4);
}
.user-stat.is-total strong { color: var(--accent-a); }
.user-level-detail {
  margin: 12px 0 0;
  font-size: 0.82rem;
}
.user-manage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.user-manage-bar:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 220, 210, 0.42);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.user-manage-bar-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.user-manage-bar-main strong {
  font-size: 1.05rem;
  font-weight: 650;
}
.user-manage-bar-main .muted {
  font-size: 0.84rem;
}
.user-manage-bar-arrow {
  flex: 0 0 auto;
  font-size: 1.6rem;
  line-height: 1;
  color: #0f766e;
  opacity: 0.85;
}
.user-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 8px 0 4px;
  padding: 14px 18px;
  border: 1px solid rgba(185, 28, 28, 0.28);
  border-radius: 16px;
  background: rgba(127, 29, 29, 0.08);
  color: #b91c1c;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
}
.user-logout-btn:hover {
  background: rgba(127, 29, 29, 0.14);
  border-color: rgba(185, 28, 28, 0.42);
}
.user-profile-top h1 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.55rem;
}
.user-profile-top .muted {
  margin: 0;
}
.user-profile-top .text-link {
  color: #0284c7;
  text-decoration: none;
  font-size: 0.9rem;
}
.user-profile-top .text-link:hover {
  color: #0e7490;
  text-decoration: underline;
}
.user-settings-list {
  padding: 6px 0;
}
.user-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.user-setting-row:last-child {
  border-bottom: 0;
}
.user-setting-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.user-setting-text strong {
  font-size: 0.98rem;
  font-weight: 650;
}
.user-setting-text .muted {
  font-size: 0.82rem;
}
.user-switch {
  flex: 0 0 auto;
  position: relative;
  width: 54px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.user-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.user-switch-label {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(242, 247, 246, 0.7);
}
.user-switch.is-on {
  background: var(--glass-btn-primary-bg);
  border-color: rgba(180, 240, 230, 0.45);
}
.user-switch.is-on .user-switch-knob {
  transform: translateX(24px);
}
.user-switch.is-on .user-switch-label {
  right: auto;
  left: 8px;
  color: #e8fffb;
}
.user-boost-banner {
  margin-bottom: 14px;
}
.user-danger-zone h2 {
  color: #b91c1c;
}
.user-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}
.user-check-label input {
  width: 16px;
  height: 16px;
}
.cta-danger {
  color: #fff5f5;
  background: linear-gradient(145deg, rgba(252, 165, 165, 0.42), rgba(239, 68, 68, 0.28) 50%, rgba(248, 113, 113, 0.34));
  border-color: rgba(252, 165, 165, 0.45);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.cta-danger:hover {
  background: linear-gradient(145deg, rgba(252, 165, 165, 0.52), rgba(239, 68, 68, 0.36) 50%, rgba(248, 113, 113, 0.42));
}
@media (max-width: 720px) {
  .user-level-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(125,211,252,0.18);
  color: #0e7490;
  margin-right: 6px;
}
.home-toolbar { padding: 14px 16px; margin-bottom: 16px; }
.home-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.home-search input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.16);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  font: inherit;
}
.home-search button,
.cta-sm {
  padding: 10px 16px !important;
  min-width: auto !important;
  cursor: pointer;
  font: inherit;
  border-radius: 12px !important;
}
.city-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.city-filter a {
  text-decoration: none;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.88rem;
  background: var(--glass-btn-bg);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}
.city-filter a.active,
.city-filter a:hover {
  color: var(--text);
  background: var(--glass-btn-bg-hover);
  border-color: rgba(255,255,255,0.36);
}
.city-filter small { color: rgba(28,36,40,0.45); }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.section-head {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.post-card {
  display: block;
  padding: 16px 18px;
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: auto 148px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
a.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 200, 192, 0.45);
  box-shadow: 0 28px 64px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.28);
}
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 0.85rem; color: var(--muted); }
.post-meta .city {
  color: #0e7490;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(125,211,252,0.12);
}
.post-card h3 { margin: 0; font-size: 1.2rem; font-family: var(--font-display); color: inherit; }
.post-title { margin: 6px 0; color: rgba(28,36,40,0.92); }
.post-excerpt { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.92rem; }
.post-foot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.post-more { color: #0e7490; }

.side-card { padding: 16px; margin-bottom: 12px; }
.ent-list { list-style: none; margin: 0; padding: 0; }
.ent-list li { border-top: 1px solid rgba(40, 70, 75, 0.1); }
.ent-list li:first-child { border-top: 0; }
.ent-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}
.ent-list span { color: var(--muted); font-size: 0.82rem; }
.side-actions { display: grid; gap: 8px; }
.side-actions a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.12);
  background: rgba(255,255,255,0.55);
}
.empty { padding: 28px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }

.detail, .comments, .form-panel { padding: 20px; margin-bottom: 16px; }
.detail h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.8rem; }
.detail-credit {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}
.detail-credit span:not(.muted) {
  color: #0e7490;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.detail-title { color: rgba(28,36,40,0.92); margin: 0 0 14px; }
.detail-body { line-height: 1.8; white-space: pre-wrap; }
.detail-evidence-info { margin-top: 14px; color: var(--muted); }
.detail-evidence { margin-top: 16px; }
.evidence-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.evidence-row img {
  width: 120px; height: 120px; object-fit: cover; border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.15);
}
.ev-pdf {
  display: grid; place-items: center;
  min-width: 120px; min-height: 120px; padding: 10px;
  border-radius: 12px; text-decoration: none; color: #be123c;
  background: rgba(251,113,133,0.15); border: 1px solid rgba(251,113,133,0.25);
  text-align: center; font-size: 0.85rem;
}
.detail-author { margin-top: 16px; color: var(--muted); font-size: 0.85rem; }

.stance-vote { padding: 18px 20px; margin-bottom: 16px; }
.stance-vote-hint { margin: 0 0 12px; font-size: 0.88rem; }
.stance-vote-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.stance-vote-current .badge-inline {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.stance-vote-current .badge-inline.warn {
  background: rgba(250, 204, 21, 0.18);
  color: #b45309;
}
.stance-vote-current .badge-inline.ok {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
}
.stance-vote-current .badge-inline.err {
  background: rgba(239, 68, 68, 0.18);
  color: #dc2626;
}
.stance-vote-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.stance-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 16px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
}
.stance-vote-btn .stance-ico {
  width: 1.7em;
  height: 1.7em;
}
.stance-vote-btn.is-rec {
  color: #166534;
  background: linear-gradient(145deg, rgba(110, 231, 160, 0.32), rgba(34, 197, 94, 0.16) 50%, rgba(74, 222, 128, 0.22));
  border-color: rgba(134, 239, 172, 0.45);
}
.stance-vote-btn.is-avoid {
  color: #b91c1c;
  background: linear-gradient(145deg, rgba(252, 165, 165, 0.32), rgba(239, 68, 68, 0.16) 50%, rgba(248, 113, 113, 0.22));
  border-color: rgba(252, 165, 165, 0.45);
}
.stance-vote-btn.is-rec:hover {
  background: linear-gradient(145deg, rgba(134, 239, 172, 0.42), rgba(34, 197, 94, 0.24) 50%, rgba(74, 222, 128, 0.3));
}
.stance-vote-btn.is-avoid:hover {
  background: linear-gradient(145deg, rgba(252, 165, 165, 0.42), rgba(239, 68, 68, 0.24) 50%, rgba(248, 113, 113, 0.3));
}
.stance-vote-btn:hover {
  transform: translateY(-2px);
}
.stance-vote-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stance-vote-form[hidden] { display: none !important; }
.stance-vote-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.stance-vote-form textarea.auth-input {
  min-height: 100px;
  resize: vertical;
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .stance-vote-btns { gap: 12px; }
  .stance-vote-btn { width: 52px; height: 52px; }
}

.comment-form textarea {
  width: 100%; min-height: 90px; margin-bottom: 10px;
  padding: 12px; border-radius: 12px; resize: vertical;
  border: 1px solid rgba(40, 70, 75, 0.16);
  background: rgba(255,255,255,0.72); color: var(--text); font: inherit;
}
.reply-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(94, 200, 192, 0.14);
  border: 1px solid rgba(94, 200, 192, 0.35);
  color: var(--muted);
  font-size: 0.88rem;
}
.reply-banner[hidden] { display: none !important; }
.reply-banner strong { color: #0f766e; }
.reply-excerpt {
  flex: 1 1 160px;
  color: rgba(242,248,247,0.55);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reply-cancel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--glass-btn-bg);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #0e7490;
  cursor: pointer;
  font: inherit;
  padding: 4px 10px;
  margin-left: auto;
  border-radius: 999px;
}
.reply-cancel:hover {
  background: var(--glass-btn-bg-hover);
  border-color: rgba(186, 230, 253, 0.4);
}
.comment-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.comment-node {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list > .comment-node {
  padding: 12px 0;
  border-top: 1px solid rgba(40, 70, 75, 0.1);
}
.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.comment-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 6px;
}
.comment-main {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.comment-main.is-replyable {
  cursor: pointer;
}
.comment-main.is-replyable:hover,
.comment-main.is-replyable:focus-visible {
  background: rgba(94, 200, 192, 0.1);
  outline: none;
}
.comment-expand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border-color: rgba(94, 200, 192, 0.4);
  background: linear-gradient(145deg, rgba(160, 240, 230, 0.24), rgba(94, 200, 192, 0.12) 50%, rgba(126, 200, 232, 0.16));
  color: #0f766e;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  white-space: nowrap;
}
.comment-expand:hover,
.comment-expand.is-open {
  border-color: rgba(94, 200, 192, 0.6);
  background: linear-gradient(145deg, rgba(160, 240, 230, 0.34), rgba(94, 200, 192, 0.2) 50%, rgba(126, 200, 232, 0.24));
}
.comment-expand-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 700;
}
.comment-head {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}
.comment-head strong { color: var(--text); }
.evaluator-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
  border: 1px solid rgba(134, 239, 172, 0.28);
}
.evaluator-badge.is-guest {
  background: rgba(148, 163, 184, 0.14);
  color: rgba(203, 213, 225, 0.78);
  border-color: rgba(148, 163, 184, 0.22);
  font-weight: 600;
}
.comment-main.is-evaluator .comment-head strong {
  color: #166534;
}
.comment-reply-to {
  color: #0f766e;
  font-size: 0.8rem;
}
.comment-quote {
  max-width: min(100%, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(186, 230, 253, 0.85);
  font-size: 0.78rem;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  padding: 2px 8px;
}
.comment-reply-hint {
  margin-left: auto;
  color: #0e7490;
  font-size: 0.78rem;
  opacity: 0.75;
}
.comment-main.is-replyable:hover .comment-reply-hint { opacity: 1; }
.comment-body { margin: 0; line-height: 1.65; }

/* 知识树连线 */
.comment-tree {
  list-style: none;
  margin: 2px 0 0 8px;
  padding: 0 0 0 0;
  position: relative;
}
.comment-tree[hidden] { display: none !important; }
.comment-tree > .comment-node {
  position: relative;
  padding: 8px 0 4px 22px;
}
.comment-tree > .comment-node::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(94, 200, 192, 0.4);
}
.comment-tree > .comment-node::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 16px;
  height: 2px;
  background: rgba(94, 200, 192, 0.4);
}
.comment-tree > .comment-node:last-child::before {
  bottom: auto;
  height: 22px;
}
.back-line { margin: 8px 0 0; }
.back-line a { color: #0e7490; text-decoration: none; }

.did-you-mean {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(125,211,252,0.35);
  background: rgba(125,211,252,0.10);
}
.existing-ent-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.12);
}
.existing-ent-tip[hidden] { display: none !important; }
.existing-ent-tip-body {
  flex: 1;
  min-width: 200px;
}
.existing-ent-tip-body strong {
  display: block;
  color: #b45309;
  margin-bottom: 4px;
}
.existing-ent-tip-body p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}
.existing-ent-tip .cta {
  flex: 0 0 auto;
  text-decoration: none;
}
.dym-title { font-size: 12px; color: #0e7490; margin-bottom: 8px; }
.dym-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dym-item {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.6);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}

@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
}

.site-search-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 8px auto 0;
  padding: 10px 14px;
  box-sizing: border-box;
}
.site-chrome.is-search-hidden .site-search-bar {
  display: none;
}
.site-chrome.is-search-hidden {
  padding-bottom: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .site-search-bar {
    transition: none;
  }
}
.nav-search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: stretch;
}
.nav-city-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 132px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-city-btn:hover,
.nav-city-btn[aria-expanded="true"] {
  border-color: rgba(94,200,192,0.55);
}
.nav-city-btn.is-locating {
  opacity: 0.85;
}
.nav-city-icon {
  flex: 0 0 auto;
  color: #0d9488;
}
.nav-city-label {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}
.nav-city-caret {
  flex: 0 0 auto;
  opacity: 0.7;
}
.nav-city-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.nav-search-form .search-suggest-wrap {
  flex: 1;
  min-width: 0;
}
.nav-search-form input {
  flex: 1;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.16);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  font: inherit;
}
.nav-search-form button[type="submit"],
.nav-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  color: #e8fffb;
}
.nav-search-submit svg {
  display: block;
}
@media (max-width: 640px) {
  .nav-city-btn { max-width: 108px; padding: 0 8px; }
  .nav-city-label { max-width: 54px; font-size: 0.84rem; }
  .nav-search-form button[type="submit"],
  .nav-search-submit {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }
}

.rating-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #06141a;
  line-height: 1.2;
}
.rating-badge small {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.8;
}
.rate-1  { background: #ef4444; color: #fff; }
.rate-2  { background: #f97316; color: #fff; }
.rate-3  { background: #fb923c; color: #1a1a1a; }
.rate-4  { background: #fbbf24; color: #1a1a1a; }
.rate-5  { background: #facc15; color: #1a1a1a; }
.rate-6  { background: #a3e635; color: #1a1a1a; }
.rate-7  { background: #84cc16; color: #1a1a1a; }
.rate-8  { background: #4ade80; color: #064e3b; }
.rate-9  { background: #22c55e; color: #fff; }
.rate-10 { background: #16a34a; color: #fff; }

.rating-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}
.rating-option {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
}
.rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rating-option span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #06141a;
}
.rating-option.rate-1 span  { background: #ef4444; color: #fff; }
.rating-option.rate-2 span  { background: #f97316; color: #fff; }
.rating-option.rate-3 span  { background: #fb923c; }
.rating-option.rate-4 span  { background: #fbbf24; }
.rating-option.rate-5 span  { background: #facc15; }
.rating-option.rate-6 span  { background: #a3e635; }
.rating-option.rate-7 span  { background: #84cc16; }
.rating-option.rate-8 span  { background: #4ade80; }
.rating-option.rate-9 span  { background: #22c55e; color: #fff; }
.rating-option.rate-10 span { background: #16a34a; color: #fff; }
.rating-option input:checked + span {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 0 2px #fff, 0 8px 18px rgba(0,0,0,0.25);
}
.rating-option:hover span { transform: translateY(-1px); }
.rating-legend {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 14px;
  max-width: 100%;
}

.stance-picker {
  display: flex;
  gap: 10px;
  margin: 4px 0 16px;
}
.stance-option {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
  flex: 1;
}
.stance-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.stance-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(40, 70, 75, 0.14);
  background: rgba(255,255,255,0.72);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.stance-option span .stance-ico {
  width: 1.25em;
  height: 1.25em;
}
.stance-option.stance-rec span { color: #15803d; }
.stance-option.stance-avoid span { color: #dc2626; }
.stance-option input:checked + span {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}
.stance-option.stance-rec input:checked + span {
  background: rgba(34,197,94,0.22);
  border-color: rgba(74,222,128,0.55);
}
.stance-option.stance-avoid input:checked + span {
  background: rgba(239,68,68,0.2);
  border-color: rgba(248,113,113,0.55);
}

/* 评价身份：选中态要足够明显 */
.review-role-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.review-role-option span {
  color: var(--muted, #5b6b6e);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(40, 70, 75, 0.12);
  font-weight: 650;
}
.review-role-option:hover span {
  color: var(--text, #1c2b2e);
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.08);
}
.review-role-option input:checked + span,
.review-role-option:has(input:checked) span {
  color: #0f766e;
  background: rgba(45, 212, 191, 0.28);
  border-color: rgba(13, 148, 136, 0.65);
  box-shadow:
    0 0 0 2px rgba(45, 212, 191, 0.35),
    0 6px 16px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
  font-weight: 750;
}
@media (max-width: 560px) {
  .review-role-picker {
    grid-template-columns: 1fr;
  }
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.tag-chip {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
}
.tag-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tag-chip span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(40, 70, 75, 0.14);
  background: rgba(255,255,255,0.75);
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tag-picker-rec .tag-chip input:checked + span {
  color: #166534;
  background: rgba(34,197,94,0.2);
  border-color: rgba(74,222,128,0.5);
}
.tag-picker-avoid .tag-chip input:checked + span {
  color: #b91c1c;
  background: rgba(239,68,68,0.18);
  border-color: rgba(248,113,113,0.5);
}

.tags-panel { margin-bottom: 4px; }
.tags-panel[hidden] { display: none !important; }

.stance-ico {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  flex: 0 0 auto;
}
.stance-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.stance-badge.is-rec {
  background: rgba(34,197,94,0.2);
  color: #15803d;
}
.stance-badge.is-avoid {
  background: rgba(239,68,68,0.2);
  color: #dc2626;
}
.pk-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pk-rec, .pk-avoid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pk-rec { color: #15803d; }
.pk-avoid { color: #dc2626; }
.pk-block {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.08);
}
.pk-vs {
  color: rgba(28,36,40,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.pk-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(239,68,68,0.85), rgba(239,68,68,0.85));
  position: relative;
}
.pk-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 999px 0 0 999px;
  min-width: 0;
}
.pk-count {
  margin-top: 6px;
  font-size: 0.75rem;
}

.word-stats {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}
.word-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.word-label {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 4.5em;
}
.word-label.rec { color: #15803d; }
.word-label.avoid { color: #dc2626; }
.word-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.word-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid transparent;
}
.word-chip.rec {
  background: rgba(34,197,94,0.14);
  color: #166534;
  border-color: rgba(74,222,128,0.28);
}
.word-chip.avoid {
  background: rgba(239,68,68,0.14);
  color: #b91c1c;
  border-color: rgba(248,113,113,0.28);
}
.word-chip small {
  opacity: 0.7;
  font-size: 0.7rem;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
}
.word-chip.muted-chip {
  background: rgba(28, 36, 40, 0.04);
  color: rgba(28,36,40,0.45);
  border-color: rgba(255,255,255,0.1);
}

.review-role-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.review-role-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--muted);
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--stroke-fine);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.review-role-chip:hover {
  color: var(--text);
  background: rgba(45,212,191,0.12);
  border-color: rgba(45,212,191,0.35);
}
.review-role-chip.is-active {
  color: #0f766e;
  background: rgba(45,212,191,0.18);
  border-color: rgba(45,212,191,0.45);
  box-shadow: 0 0 0 1px rgba(45,212,191,0.12) inset;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.role-badge.role-jobseeker {
  background: rgba(56,189,248,0.16);
  color: #0284c7;
  border-color: rgba(56,189,248,0.28);
}
.role-badge.role-employee {
  background: rgba(45,212,191,0.16);
  color: #0f766e;
  border-color: rgba(45,212,191,0.3);
}
.role-badge.role-partner {
  background: rgba(251,191,36,0.14);
  color: #b45309;
  border-color: rgba(251,191,36,0.28);
}

.city-field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}
.city-field-row .auth-input { margin-bottom: 0; }
.city-pick-btn {
  white-space: nowrap;
  min-width: auto !important;
  padding: 12px 16px !important;
  cursor: pointer;
  font: inherit;
}

.city-modal[hidden] { display: none !important; }
.city-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.city-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.city-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(85vh, 640px);
  max-height: min(85dvh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
  padding: 0;
}
.city-modal-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid rgba(40, 70, 75, 0.1);
}
.city-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 18px 18px;
  touch-action: pan-y;
}
.city-modal-body label,
.city-modal-label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
}
.city-modal-label { margin-top: 8px; }
.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 80px;
  padding-bottom: 4px;
}
.city-chip {
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.city-chip:hover,
.city-chip.active {
  border-color: rgba(94, 200, 192, 0.55);
  background: linear-gradient(145deg, rgba(160, 240, 230, 0.28), rgba(94, 200, 192, 0.16) 50%, rgba(126, 200, 232, 0.22));
}

.city-select-form { margin-bottom: 12px; }
.city-select-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr auto auto;
  gap: 10px;
  align-items: end;
}
.city-select-row label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.city-select-row .auth-input {
  margin: 0;
  padding: 10px 12px;
}
@media (max-width: 720px) {
  .city-select-row { grid-template-columns: 1fr; }
  .city-field-row { grid-template-columns: 1fr; }
}

.suggest-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(94, 200, 192, 0.35);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
}
.suggest-title {
  font-size: 12px;
  color: #0f766e;
  margin: 8px 0 6px;
}
.suggest-title:first-child { margin-top: 0; }
.suggest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suggest-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: none;
}
.suggest-item small {
  color: var(--muted);
  font-size: 0.75rem;
}
.suggest-item:hover {
  border-color: rgba(94, 200, 192, 0.45);
  background: linear-gradient(145deg, rgba(160, 240, 230, 0.24), rgba(94, 200, 192, 0.14) 50%, rgba(126, 200, 232, 0.18));
}

.search-suggest-wrap {
  position: relative;
  flex: 1;
}
.search-suggest-wrap input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.16);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  font: inherit;
}
.search-suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  margin-top: 0;
  max-height: 320px;
  overflow: auto;
}
.nav-search-form input[type="search"] {
  /* moved into wrap */
}

/* 底部悬浮下滑引导 */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  color: #0f766e;
  background: var(--glass-btn-bg);
  backdrop-filter: var(--glass-btn-blur);
  -webkit-backdrop-filter: var(--glass-btn-blur);
  box-shadow: var(--glass-btn-shadow);
  cursor: pointer;
  animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}
.scroll-hint[hidden] { display: none !important; }
.scroll-hint:hover {
  color: #e8fffb;
  border-color: rgba(94, 200, 192, 0.55);
  background: var(--glass-btn-primary-bg);
}
@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.92; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}

/* 详情页 / 企业页：右下角评价内容引导气泡 */
.page-post .scroll-hint,
.page-enterprise .scroll-hint { display: none !important; }
.review-bubble {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(240px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(94, 200, 192, 0.45);
  border-radius: 18px 18px 4px 18px;
  color: #e8fffb;
  background: var(--glass-btn-primary-bg);
  backdrop-filter: var(--glass-btn-blur);
  -webkit-backdrop-filter: var(--glass-btn-blur);
  box-shadow: var(--glass-btn-shadow);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  animation: review-bubble-float 2s ease-in-out infinite;
}
.review-bubble[hidden] { display: none !important; }
.review-bubble:hover {
  border-color: rgba(94, 200, 192, 0.7);
  background: var(--glass-btn-primary-bg-hover);
}
.review-bubble-arrow {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(94, 200, 192, 0.22);
  color: #0f766e;
  font-size: 0.85rem;
}
@keyframes review-bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .review-bubble { animation: none; }
}
.review-content {
  scroll-margin-top: 88px;
}

.enterprise-panel-note {
  margin: 12px 0 0;
  font-size: 0.86rem;
}
.reviews-panel {
  padding: 18px 20px;
  margin-bottom: 16px;
}
.reviews-panel .section-head {
  margin-bottom: 14px;
}
.review-item {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.review-item:first-of-type {
  border-top: none;
  padding-top: 4px;
}
.review-item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.review-item-author { font-size: 0.82rem; }
.review-item-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-family: var(--font-display);
}
.review-item-body {
  margin: 0 0 10px;
  line-height: 1.7;
  color: var(--text);
}
.review-legal-note {
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(28, 36, 40, 0.42);
  letter-spacing: 0.01em;
  flex: 1;
  min-width: 0;
}
.review-item-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.review-item-foot .report-trigger,
.review-item-foot .like-btn {
  flex: 0 0 auto;
  margin: 2px 0 0;
}
.content-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.comment-foot {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.like-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(40, 70, 75, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(28, 36, 40, 0.55);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.like-btn:hover {
  color: #be123c;
  border-color: rgba(190, 18, 60, 0.28);
  background: rgba(251, 113, 133, 0.1);
}
.like-btn.is-liked {
  color: #be123c;
  border-color: rgba(190, 18, 60, 0.35);
  background: rgba(251, 113, 133, 0.14);
}
.like-btn.is-busy {
  opacity: 0.65;
  pointer-events: none;
}
.like-ico {
  font-size: 0.85rem;
  line-height: 1;
}
.like-btn.is-liked .like-ico {
  transform: scale(1.05);
}
.comment-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 2px;
}
.comment-images a {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(40, 70, 75, 0.12);
  background: rgba(255, 255, 255, 0.6);
}
.comment-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.discuss-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.discuss-upload-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(40, 70, 75, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.discuss-upload-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.discuss-upload-hint {
  font-size: 0.78rem;
}
.discuss-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.discuss-preview[hidden] { display: none !important; }
.discuss-preview-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(40, 70, 75, 0.12);
}
.discuss-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.report-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(190, 18, 60, 0.22);
  background: rgba(251, 113, 133, 0.08);
  color: #be123c;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 4px 10px;
  margin-left: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.report-trigger:hover {
  color: #9f1239;
  background: rgba(251, 113, 133, 0.16);
  border-color: rgba(190, 18, 60, 0.35);
}
.report-trigger.is-own {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(40, 70, 75, 0.14);
  background: rgba(28, 36, 40, 0.04);
  color: rgba(28, 36, 40, 0.45);
}
.comment-actions .report-trigger {
  margin-left: 0;
  padding: 4px 10px;
  text-decoration: none;
  border-radius: 999px;
}
.comment-actions .report-trigger:hover {
  background: rgba(251, 113, 133, 0.16);
}
.review-legal-note-form {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(28, 36, 40, 0.58);
  font-size: 0.8rem;
}
.evidence-flag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.evidence-flag.has {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.22);
}
.evidence-flag.none {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.18);
}
.review-discuss {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.08);
}
.review-discuss h4 {
  margin: 0 0 10px;
  font-size: 0.92rem;
}
#reviews { scroll-margin-top: 88px; }
.review-item { scroll-margin-top: 88px; }

/* 企业页：评价 / 讨论左右分栏 */
.ent-split {
  padding: 0;
  overflow: hidden;
  margin-bottom: 16px;
}
.ent-split-nav {
  display: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ent-split-tab {
  flex: 1;
  padding: 12px 10px;
  border: none;
  background: transparent;
  color: rgba(226,232,240,0.7);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.ent-split-tab small {
  margin-left: 4px;
  opacity: 0.7;
  font-weight: 600;
}
.ent-split-tab.is-active {
  color: #0f766e;
  box-shadow: inset 0 -2px 0 #0d9488;
  background: var(--glass-btn-bg);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.ent-split-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.ent-pane {
  padding: 16px 18px 20px;
  max-height: min(70vh, 760px);
  overflow: auto;
}
.ent-pane-reviews {
  border-right: 1px solid rgba(255,255,255,0.1);
}
.ent-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.ent-pane-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
}
.ent-pane-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.review-item-stance {
  background: rgba(255,255,255,0.65);
  border-radius: 12px;
  padding: 12px 12px 14px !important;
  margin-top: 10px;
  border-top: none !important;
}
.discuss-form {
  margin-bottom: 12px;
}
.discuss-list {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .ent-split-nav { display: flex; }
  .ent-split-panes {
    grid-template-columns: 1fr;
  }
  .ent-pane {
    display: none;
    border-right: none;
    max-height: none;
  }
  .ent-pane.is-active { display: block; }
}

/* 创建企业板块弹窗 */
.create-ent-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.create-ent-modal[hidden] { display: none !important; }
.create-ent-mask {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
}
.create-ent-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 20px 22px;
  max-height: min(90vh, 640px);
  overflow: auto;
}
.create-ent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.create-ent-hint {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.create-ent-warn {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.create-ent-city-field {
  position: relative;
  margin-bottom: 14px;
}
.create-ent-city-field .city-field-row {
  margin-bottom: 0;
}
.create-ent-city-field .suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
}
#create-ent-city-modal {
  z-index: 1300;
}
.create-ent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.create-ent-empty p { margin: 0 0 8px; }
.suggest-empty-text {
  margin: 6px 0 10px;
  font-size: 0.86rem;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.5;
}
.suggest-create-btn {
  font-weight: 700 !important;
  color: #0d9488 !important;
}
.suggest-create-line {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(40, 70, 75, 0.1);
}
.text-link-btn {
  background: none;
  border: none;
  color: #0284c7;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.text-link-btn:hover { color: #0e7490; }
.locked-ent-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.08);
}
.locked-ent-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.locked-ent-meta .muted { font-size: 0.78rem; }
.locked-ent-meta strong { font-size: 0.95rem; font-weight: 650; }

/* 站内评价助手 */
.site-ai {
  position: relative;
  z-index: 80;
}
.section-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.create-ent-pop {
  position: relative;
  z-index: 2;
}
.create-ent-bubble {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: max-content;
  max-width: min(240px, 70vw);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.94);
  color: #f4fffc;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(15, 80, 74, 0.22);
  pointer-events: none;
  animation: create-ent-bubble-life 5s ease forwards;
}
.create-ent-bubble::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  border-width: 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgba(15, 118, 110, 0.94);
}
@keyframes create-ent-bubble-life {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    visibility: visible;
  }
  8% {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  86% {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
    visibility: hidden;
  }
}
.site-ai-fab {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #0f766e;
  cursor: pointer;
  flex: 0 0 auto;
}
.site-ai-fab-core {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-btn-bg);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: var(--glass-btn-blur);
  -webkit-backdrop-filter: var(--glass-btn-blur);
  box-shadow: var(--glass-btn-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.site-ai-fab:hover .site-ai-fab-core,
.site-ai-fab.is-open .site-ai-fab-core {
  border-color: rgba(120, 190, 184, 0.5);
  background: var(--glass-btn-primary-bg);
  box-shadow: var(--glass-btn-shadow-hover);
}
.site-ai-fab-glow {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, rgba(120, 190, 184, 0.22), transparent 68%);
  animation: site-ai-breathe 4.8s ease-in-out infinite;
  pointer-events: none;
}
.site-ai-fab-arc {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(150, 210, 204, 0.7);
  border-right-color: rgba(150, 210, 204, 0.18);
  animation: site-ai-spin 7.5s linear infinite;
  pointer-events: none;
}
.site-ai-fab-svg {
  position: relative;
  z-index: 1;
  display: block;
  opacity: 0.92;
}
.site-ai-fab.is-open .site-ai-fab-arc {
  border-top-color: rgba(170, 230, 220, 0.9);
  animation-duration: 4.5s;
}
@keyframes site-ai-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes site-ai-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .site-ai-fab-glow,
  .site-ai-fab-arc {
    animation: none !important;
  }
}
.site-ai-panel {
  position: fixed;
  left: 12px;
  bottom: 84px;
  z-index: 81;
  width: min(420px, calc(100vw - 24px));
  max-height: min(72vh, 580px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.site-ai-panel[hidden] { display: none !important; }
.site-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(40, 70, 75, 0.1);
}
.site-ai-head strong {
  display: block;
  font-size: 0.98rem;
}
.site-ai-head .muted {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}
.site-ai-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 0;
}
.site-ai-tips button {
  color: rgba(226,232,240,0.92);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.site-ai-tips button:hover {
  border-color: rgba(94,200,192,0.5);
  color: #0f766e;
  background: linear-gradient(145deg, rgba(160, 240, 230, 0.24), rgba(94, 200, 192, 0.14) 50%, rgba(126, 200, 232, 0.18));
}
.site-ai-messages {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.site-ai-msg { display: flex; flex-direction: column; gap: 6px; max-width: 95%; }
.site-ai-msg.is-user { align-self: flex-end; align-items: flex-end; }
.site-ai-msg.is-assistant { align-self: flex-start; }
.site-ai-bubble {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.site-ai-msg.is-user .site-ai-bubble {
  background: rgba(94, 200, 192, 0.22);
  color: #0f3d3a;
  border-radius: 14px 14px 4px 14px;
}
.site-ai-msg.is-assistant .site-ai-bubble {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--stroke-fine);
  border-radius: 14px 14px 14px 4px;
}
.site-ai-msg.is-thinking .site-ai-bubble {
  color: var(--muted);
  font-style: italic;
}
.site-ai-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-ai-links a {
  color: #0284c7;
  font-size: 0.82rem;
  text-decoration: none;
}
.site-ai-links a:hover { text-decoration: underline; }
.site-ai-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(40, 70, 75, 0.1);
  flex: 0 0 auto;
}
.site-ai-form input,
.site-ai-form #site-ai-input {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: none;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.15);
  background: rgba(255,255,255,0.75);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
.site-ai-send {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 10px 14px !important;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}
.site-ai-send:disabled {
  opacity: 0.65;
  cursor: wait;
}
@media (max-width: 640px) {
  .site-ai-panel {
    left: 8px;
    right: 8px;
    width: auto;
  }
}

/* ========== 微交互 / 错落入场 / 页面过渡 ========== */
body.is-page-leave {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

@keyframes motion-reveal-up {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.motion-reveal {
  opacity: 0;
  animation: motion-reveal-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.cta,
.nav-btn,
.city-chip,
.suggest-item,
.home-search button,
.nav-search-form button[type="submit"],
.site-ai-tips button,
.site-ai-send,
.nav-city-btn,
.stance-vote-btn,
.comment-expand,
.city-pick-btn,
.site-links .nav-item,
.ad-dot,
.scroll-hint,
.review-bubble {
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.cta:active,
.nav-btn:active,
.city-chip:active,
.suggest-item:active,
.home-search button:active,
.nav-search-form button[type="submit"]:active,
.site-ai-tips button:active,
.site-ai-send:active,
.nav-city-btn:active,
.stance-vote-btn:active,
.comment-expand:active,
.city-pick-btn:active,
.site-links .nav-item:active,
.ad-dot:active {
  transform: scale(0.96);
}

.cta:hover,
.nav-btn:hover,
.nav-search-form button[type="submit"]:hover,
.home-search button:hover,
.site-ai-send:hover:not(:disabled) {
  transform: translateY(-2px);
}

.site-links .nav-item .nav-item-icon {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.site-links .nav-item:hover .nav-item-icon,
.site-links .nav-item.active .nav-item-icon {
  transform: translateY(-1px) scale(1.08);
  opacity: 1;
}

.glass-panel {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}
a.post-card:hover,
.side-card:hover,
.ent-list a:hover {
  transform: translateY(-3px);
  border-color: rgba(140, 220, 210, 0.42);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(94, 200, 192, 0.12);
}
a.post-card:active {
  transform: translateY(-1px) scale(0.995);
}

.auth-input,
.nav-search-form input,
.home-search input,
.comment-form textarea,
.site-ai-form input,
.stance-vote-form textarea.auth-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.auth-input:focus,
.nav-search-form input:focus,
.home-search input:focus,
.comment-form textarea:focus,
.site-ai-form input:focus,
.stance-vote-form textarea.auth-input:focus {
  outline: none;
  border-color: rgba(94, 200, 192, 0.55);
  box-shadow:
    0 0 0 3px rgba(94, 200, 192, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.front-alert {
  animation: motion-reveal-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-ai-fab-core {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-ai-fab:hover .site-ai-fab-core {
  transform: scale(1.05);
}
.site-ai-fab:active .site-ai-fab-core {
  transform: scale(0.96);
}

.city-modal-panel,
.create-ent-panel,
.notice-panel-card,
.site-ai-panel {
  animation: motion-reveal-up 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  body,
  body.is-page-leave {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
  .motion-reveal,
  .front-alert,
  .city-modal-panel,
  .create-ent-panel,
  .notice-panel-card,
  .site-ai-panel {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cta:hover,
  .nav-btn:hover,
  .nav-search-form button[type="submit"]:hover,
  .home-search button:hover,
  .site-ai-send:hover:not(:disabled),
  a.post-card:hover,
  .side-card:hover,
  .ent-list a:hover,
  .cta:active,
  .nav-btn:active,
  .site-links .nav-item:active {
    transform: none !important;
  }
}

/* —— 门户叙事章节 —— */
.portal-story {
  position: relative;
  z-index: 1;
  max-width: min(920px, calc(100% - 2 * var(--layout-gutter)));
  margin: 0 auto 8px;
  padding: 8px 0 40px;
  scroll-margin-top: 12px;
}
.portal-story-rail {
  position: absolute;
  left: max(12px, calc(50% - 460px));
  top: 24px;
  bottom: 80px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(42, 157, 148, 0.35) 12%,
    rgba(59, 143, 184, 0.28) 55%,
    transparent
  );
  pointer-events: none;
}
.portal-chapter {
  position: relative;
  padding: 56px 0 12px;
}
.portal-chapter::before {
  content: attr(data-chapter);
  position: absolute;
  left: 0;
  top: 52px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(42, 157, 148, 0.12);
  pointer-events: none;
  transform: translateX(-6px);
}
.portal-chapter-inner {
  position: relative;
  padding-left: 28px;
}
.portal-chapter-index {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-a);
}
.portal-chapter-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--text);
}
.portal-chapter-lead,
.portal-chapter-copy p {
  margin: 0 0 14px;
  max-width: 38em;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
}
.portal-chapter-lead { margin-bottom: 28px; }

.portal-chapter-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 8px;
}
.portal-flow-step {
  position: relative;
  padding-top: 8px;
  border-top: 1px solid rgba(42, 157, 148, 0.22);
}
.portal-flow-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}
.portal-flow-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.portal-chapter-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 36px;
  align-items: end;
}
.portal-pullquote {
  margin: 0;
  padding: 22px 0 8px 20px;
  border-left: 2px solid rgba(42, 157, 148, 0.55);
}
.portal-pullquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  letter-spacing: 0.02em;
}
.portal-pullquote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(28, 36, 40, 0.42);
}

.portal-principles {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.portal-principles li {
  display: grid;
  grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
  gap: 16px 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(40, 70, 75, 0.10);
  align-items: baseline;
}
.portal-principles li:last-child {
  border-bottom: 1px solid rgba(40, 70, 75, 0.10);
}
.portal-principles strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.portal-principles span {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.portal-chapter-vision {
  padding-bottom: 28px;
}
.portal-vision-lines {
  margin-top: 8px;
  display: grid;
  gap: 0;
}
.portal-vision-lines p {
  margin: 0;
  padding: 14px 0 14px 18px;
  border-left: 1px solid rgba(59, 143, 184, 0.35);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(90deg, rgba(94, 200, 192, 0.06), transparent 70%);
}
.portal-vision-lines p + p {
  margin-top: 2px;
}

.portal-invite {
  margin: 36px 0 12px;
  padding: 36px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(ellipse 80% 70% at 12% 20%, rgba(94, 200, 192, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 80%, rgba(59, 143, 184, 0.12), transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  box-shadow:
    0 18px 48px rgba(60, 70, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  text-align: center;
}
.portal-invite-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: 0.04em;
}
.portal-invite-text {
  margin: 0 auto;
  max-width: 28em;
  color: var(--muted);
  line-height: 1.7;
}
.portal-invite-cta {
  margin-top: 26px;
}

.portal-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 16px 40px;
  font-size: 0.82rem;
  color: rgba(28, 36, 40, 0.42);
}
.portal-foot a {
  color: inherit;
  text-decoration: none;
}
.portal-foot a:hover {
  color: var(--link);
}

.portal-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.portal-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.portal-chapter-origin.portal-reveal.is-in .portal-pullquote {
  animation: portal-quote-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
@keyframes portal-quote-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 820px) {
  .portal-story-rail { display: none; }
  .portal-chapter::before {
    opacity: 0.55;
    font-size: 2.6rem;
    top: 44px;
  }
  .portal-chapter-inner { padding-left: 8px; }
  .portal-chapter-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .portal-chapter-split {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .portal-principles li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .portal-chapter { padding: 40px 0 8px; }
  .portal-invite {
    padding: 28px 18px;
    border-radius: 18px;
  }
  .portal-invite-cta {
    flex-direction: column;
  }
  .portal-invite-cta .cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .portal-chapter-origin.portal-reveal.is-in .portal-pullquote {
    animation: none;
  }
}

/* 门户中国地图 */
.portal-map-section {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max);
  margin: 0 auto 48px;
  padding: 8px var(--layout-gutter) 32px;
  scroll-margin-top: 16px;
  box-sizing: border-box;
}
.portal-map-shell {
  padding: 20px 18px 18px;
}
.portal-map-head {
  margin-bottom: 14px;
}
.portal-map-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.portal-map-head .muted {
  margin: 0;
  font-size: 0.9rem;
}
.portal-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.7fr);
  gap: 14px;
  align-items: stretch;
}
.portal-map-canvas-wrap {
  border-radius: 18px;
  border: 1px solid var(--stroke-fine);
  background:
    radial-gradient(ellipse 70% 60% at 55% 45%, rgba(94, 200, 192, 0.10), transparent 70%),
    rgba(255, 255, 255, 0.55);
  overflow: hidden;
  min-height: 360px;
}
.portal-map-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 620px);
}
.portal-map-ninedash {
  stroke: rgba(15, 118, 110, 0.45);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  pointer-events: none;
}
.portal-map-prov {
  cursor: default;
  outline: none;
}
.portal-map-prov .portal-map-shape {
  fill: url(#portalLandIdle);
  stroke: rgba(100, 120, 130, 0.35);
  stroke-width: 0.85;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}
.portal-map-prov .portal-map-label {
  fill: rgba(60, 80, 90, 0.72);
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 2.2px;
}
.portal-map-prov.is-lit .portal-map-label {
  fill: rgba(12, 70, 68, 0.95);
  font-weight: 700;
  font-size: 12px;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2.5px;
}
.portal-map-prov.is-lit {
  cursor: pointer;
}
.portal-map-prov.is-lit .portal-map-shape {
  fill: url(#portalLandLit);
  stroke: rgba(15, 118, 110, 0.55);
  stroke-width: 1.05;
  filter: drop-shadow(0 2px 6px rgba(94, 200, 192, 0.28));
}
.portal-map-prov.is-lit:hover .portal-map-shape,
.portal-map-prov.is-lit.is-active .portal-map-shape,
.portal-map-prov.is-lit:focus .portal-map-shape {
  fill: rgba(70, 190, 180, 0.9);
  stroke: #0f766e;
  stroke-width: 1.35;
  filter: drop-shadow(0 4px 12px rgba(45, 160, 150, 0.35));
}
.portal-map-prov:not(.is-lit) {
  pointer-events: none;
}
.portal-map-panel {
  border-radius: 18px;
  border: 1px solid var(--stroke-fine);
  background: rgba(255, 255, 255, 0.7);
  padding: 16px 14px;
  min-height: 220px;
}
.portal-map-panel-empty strong,
.portal-map-panel-title strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.portal-map-panel-empty .muted {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.portal-map-panel-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.portal-map-total {
  color: #0f766e;
  font-size: 0.9rem;
  font-weight: 650;
}
.portal-map-city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(46vh, 380px);
  overflow: auto;
}
.portal-map-city-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.portal-map-city-list li:first-child {
  border-top: 0;
}
.portal-map-city-list .city {
  color: var(--text);
  font-weight: 600;
}
.portal-map-city-list .count {
  color: rgba(186, 230, 253, 0.88);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .portal-map-layout {
    grid-template-columns: 1fr;
  }
  .portal-map-panel {
    min-height: 0;
  }
  .portal-map-city-list {
    max-height: 240px;
  }
}

/* 违规举报弹窗 */
.report-modal[hidden] { display: none !important; }
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}
.report-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 40, 0.35);
  backdrop-filter: blur(4px);
}
.report-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 18px 18px 16px;
}
.report-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.report-modal-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
}
.report-reason-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.report-reason-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.12);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.88rem;
}
.report-reason-option:has(input:checked) {
  border-color: rgba(190, 18, 60, 0.35);
  background: rgba(251, 113, 133, 0.1);
}
.report-reason-option input {
  accent-color: #be123c;
}

/* —— 站内确认弹窗（退出等） —— */
.confirm-modal[hidden] { display: none !important; }
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 16px;
}
.confirm-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 40, 0.35);
  backdrop-filter: blur(4px);
}
.confirm-modal-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 18px 18px 16px;
}
.confirm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.confirm-modal-text {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.confirm-modal-actions {
  justify-content: flex-end;
  margin: 0;
  gap: 8px;
}
.confirm-modal-actions .cta {
  text-decoration: none;
}
.ann-popup[hidden] { display: none !important; }
.ann-popup {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 16px;
}
.ann-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 40, 0.35);
  backdrop-filter: blur(4px);
}
.ann-popup-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 18px 18px 16px;
}
.ann-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ann-popup-body {
  margin-top: 12px;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 15px;
}
.ann-popup-actions {
  margin-top: 16px;
  justify-content: flex-end;
}

/* —— 消息中心 —— */
.msg-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}
.msg-sidebar,
.msg-main {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}
.msg-sidebar-head,
.msg-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(40, 70, 75, 0.1);
  flex: 0 0 auto;
}
.msg-sidebar-hint {
  font-size: 0.78rem;
  white-space: nowrap;
}
.msg-main-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.msg-back {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
  color: #0f766e;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 6px 2px;
  margin-right: 4px;
}
.msg-thread-list {
  flex: 1;
  overflow: auto;
  max-height: none;
  -webkit-overflow-scrolling: touch;
}
.msg-feedback {
  flex: 1;
  overflow: auto;
  padding: 16px 16px 20px;
}
.msg-feedback .auth-form {
  margin-top: 4px;
}
.msg-feedback .auth-submit {
  margin-top: 8px;
}
.msg-include-note {
  margin: 0 0 12px;
  line-height: 1.7;
  font-size: 0.94rem;
}
.msg-thread-item {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(40, 70, 75, 0.06);
  transition: background 0.18s ease;
}
.msg-thread-item:hover,
.msg-thread-item.is-active {
  background: rgba(255, 255, 255, 0.55);
}
.msg-thread-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.msg-thread-item-top strong {
  font-size: 0.92rem;
}
.msg-thread-item-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.msg-thread-enter {
  color: rgba(15, 118, 110, 0.7);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 500;
}
.msg-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #be123c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.msg-thread-preview {
  font-size: 0.82rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.msg-thread-time {
  margin-top: 4px;
  font-size: 0.72rem;
}
.msg-compose-direct {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(40, 70, 75, 0.1);
  margin-top: auto;
  flex: 0 0 auto;
}
.msg-compose-direct textarea,
.msg-reply-form textarea {
  width: 100%;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(40, 70, 75, 0.14);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  color: inherit;
}
.msg-compose-direct textarea:focus,
.msg-reply-form textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.msg-bubbles {
  flex: 1;
  overflow: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
  min-height: 220px;
  -webkit-overflow-scrolling: touch;
}
.msg-bubble {
  max-width: min(92%, 520px);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(40, 70, 75, 0.1);
  align-self: flex-start;
}
.msg-bubble.is-mine {
  align-self: flex-end;
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.22);
}
.msg-bubble-meta {
  font-size: 0.72rem;
  margin-bottom: 4px;
}
.msg-bubble-title {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.msg-bubble-body {
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
}
.msg-terms-link {
  color: #0f766e;
  text-decoration: underline;
}
.msg-image-link {
  display: inline-block;
  margin-top: 8px;
}
.msg-image {
  display: block;
  max-width: min(100%, 220px);
  max-height: 220px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
}
.msg-reply-tools {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.msg-file-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  flex: 0 0 auto;
}
.msg-file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.msg-file-name {
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-bubble-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.msg-quote-btn,
.msg-quote-clear {
  border: 0;
  background: transparent;
  color: #0f766e;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.msg-quote-btn:hover,
.msg-quote-clear:hover {
  color: #115e59;
}
.msg-quote,
.msg-quote-draft {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
  padding: 6px 8px;
  border-left: 3px solid rgba(15, 118, 110, 0.55);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  min-width: 0;
}
.msg-quote-draft {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.msg-quote-draft[hidden] {
  display: none !important;
}
.msg-quote-draft-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg-quote-label {
  font-size: 0.7rem;
  color: #0f766e;
  font-weight: 650;
}
.msg-quote-text,
.msg-quote-draft-text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(15, 40, 45, 0.78);
  word-break: break-word;
}
.msg-reply-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(40, 70, 75, 0.1);
  margin-top: auto;
  flex: 0 0 auto;
}
.msg-reply-form textarea {
  grid-column: 1 / -1;
}
.msg-reply-form .cta {
  justify-self: end;
  grid-column: 2;
}
.msg-notice-hint {
  margin: 12px 16px 16px;
  font-size: 0.82rem;
}

/* —— 全站移动端适配 —— */
@media (max-width: 860px) {
  :root {
    --layout-gutter: 12px;
  }

  /* 消息：主从切换，点开会话全屏聊 */
  .msg-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 10px;
  }
  .msg-layout:not(.is-chat-open) .msg-main {
    display: none;
  }
  .msg-layout.is-chat-open .msg-sidebar {
    display: none;
  }
  body.msg-chat-open .msg-page-intro {
    display: none;
  }
  body.msg-chat-open .site-chrome,
  body.msg-chat-open .site-chrome-spacer,
  body.msg-chat-open .site-search-bar,
  body.msg-chat-open .site-nav,
  body.msg-chat-open .site-links,
  body.msg-chat-open .site-foot,
  body.msg-chat-open .site-ai,
  body.msg-chat-open .scroll-hint {
    display: none !important;
  }
  body.msg-chat-open {
    overflow: hidden;
    height: 100%;
    height: 100dvh;
    padding-bottom: 0;
  }
  body.msg-chat-open .site-main {
    padding: 0;
    max-width: none;
  }
  body.msg-chat-open .msg-layout.is-chat-open {
    position: fixed;
    inset: 0;
    z-index: 50;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding:
      env(safe-area-inset-top, 0px)
      env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px)
      env(safe-area-inset-left, 0px);
    background: var(--bg-mid);
  }
  body.msg-chat-open .msg-layout.is-chat-open .msg-main {
    flex: 1;
    min-height: 0;
    height: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.92);
  }
  .msg-sidebar {
    min-height: min(70vh, 560px);
    min-height: min(70dvh, 560px);
  }
  .msg-thread-list {
    max-height: none;
  }
  .msg-back {
    display: inline-flex;
  }
  .msg-main-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .msg-bubbles {
    max-height: none;
    min-height: 0;
  }
  .msg-reply-form {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
  }
  .msg-reply-form .cta,
  .msg-compose-direct .cta {
    width: auto;
    min-width: 88px;
  }
}

@media (max-width: 720px) {
  :root {
    --site-bottom-nav-h: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  .app-body {
    padding-bottom: var(--site-bottom-nav-h);
  }
  .site-main {
    padding: 12px var(--layout-gutter) 20px;
  }
  /* 避免 iOS 聚焦输入框时强制放大页面 */
  input[type="text"],
  input[type="search"],
  input[type="password"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px;
  }

  /* 顶部窄条：仅 logo + 标题 */
  .site-chrome {
    padding-top: max(6px, env(safe-area-inset-top, 0px));
    padding-bottom: 0;
  }
  .site-nav {
    margin-top: 0;
    padding: 5px 12px;
    min-height: 0;
    border-radius: 14px;
  }
  .site-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .site-brand-name {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
  .site-brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
  .site-search-bar {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  /* hide in-header links until JS relocates them */
  .site-nav > .site-links {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    margin: 0;
  }

  /* bottom tab bar (must be outside chrome for fixed) */
  body.is-mobile-chrome > .site-links,
  .site-chrome + .site-links {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    margin: 0;
    width: 100%;
    max-width: none;
    gap: 0;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    opacity: 1;
    overflow: visible;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(40, 70, 75, 0.12);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(40, 60, 70, 0.06);
    pointer-events: auto;
  }
  body.is-mobile-chrome > .site-links .nav-item,
  .site-chrome + .site-links .nav-item {
    border-radius: 12px;
  }
  body.is-mobile-chrome > .site-links .nav-item.active,
  .site-chrome + .site-links .nav-item.active {
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.18);
    color: #0f766e;
  }
  .site-ai-panel {
    bottom: calc(78px + var(--site-bottom-nav-h));
  }
  .scroll-hint {
    bottom: calc(12px + var(--site-bottom-nav-h));
  }
  .site-foot {
    padding-bottom: 12px;
  }

  .detail,
  .comments,
  .form-panel,
  .side-card,
  .home-toolbar {
    padding: 14px;
    border-radius: 18px;
  }
  .detail h1 {
    font-size: 1.4rem;
  }
  .post-card {
    padding: 14px;
  }
  .post-card h3 {
    font-size: 1.05rem;
  }
  .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .section-head .cta,
  .section-head .cta-sm {
    width: auto;
    flex: 0 0 auto;
  }
  .user-setting-row {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 10px;
  }
  .user-level-stats {
    gap: 8px;
  }
  .review-item-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .review-item-foot .content-actions {
    align-self: flex-end;
  }
  .stance-picker {
    flex-direction: column;
  }
  .rating-option span {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
    border-radius: 10px;
  }
  .rating-picker {
    gap: 6px;
    justify-content: space-between;
  }
  .comment-row {
    gap: 6px;
  }
  .comment-actions {
    padding-top: 2px;
  }
  .home-search {
    flex-direction: column;
  }
  .home-search button {
    width: 100%;
  }
  .city-filter a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .auth-card {
    padding: 22px 16px 18px;
  }
  .auth-card h1 {
    font-size: 1.45rem;
  }
  .city-modal-panel {
    width: 100%;
    max-height: min(92dvh, 720px);
    border-radius: 18px;
  }
  .create-ent-modal,
  .report-modal,
  .confirm-modal {
    padding: 10px;
    align-items: flex-end;
  }
  .create-ent-panel,
  .report-modal-panel,
  .confirm-modal-panel {
    width: 100%;
    max-height: min(92dvh, 680px);
    border-radius: 18px 18px 12px 12px;
  }
  .ent-split-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .discuss-upload-row {
    flex-wrap: wrap;
  }
  .evidence-row img,
  .ev-pdf {
    width: 96px;
    min-width: 96px;
    height: 96px;
    min-height: 96px;
  }
  .site-foot {
    flex-wrap: wrap;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }
  .portal-map-layout {
    gap: 10px;
  }
  .user-manage-bar {
    padding: 14px;
  }
  .msg-compose-direct .cta {
    width: 100%;
  }
}

@media (max-width: 520px) {
  :root {
    --layout-gutter: 10px;
  }
  .cta:not(.cta-sm):not(.msg-reply-form .cta):not(.msg-compose-direct .cta) {
    width: 100%;
  }
  .cta-row {
    flex-direction: column;
  }
  .cta-row .cta {
    width: 100%;
  }
  .site-links .nav-item span {
    font-size: 0.64rem;
  }
  .nav-search-form input {
    padding: 10px 12px;
    font-size: 0.92rem;
  }
  .detail-body,
  .review-item-body {
    font-size: 0.95rem;
  }
  .comment-main {
    padding: 8px;
  }
}

/* —— 关于我们 —— */
.about-page {
  padding-bottom: 22px;
}
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 8px 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(40, 70, 75, 0.1);
}
.about-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow:
    0 12px 28px rgba(40, 60, 70, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}
.about-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.about-tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 28em;
}
.about-body {
  padding: 8px 2px 0;
}
.about-body h2 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
}
.about-body h2:first-child {
  margin-top: 4px;
}
.about-body p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.95rem;
}
.about-list {
  margin: 0 0 12px;
  padding-left: 1.15em;
  display: grid;
  gap: 10px;
  line-height: 1.65;
  font-size: 0.94rem;
  color: var(--text);
}
.about-list strong {
  font-weight: 650;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(40, 70, 75, 0.1);
}
@media (max-width: 720px) {
  .about-logo {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }
  .about-title {
    font-size: 1.4rem;
  }
  .about-actions .cta {
    width: auto;
  }
}

/* —— 打赏支援 —— */
.tip-page {
  padding-bottom: 22px;
}
.tip-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 8px 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(40, 70, 75, 0.1);
}
.tip-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow:
    0 12px 28px rgba(40, 60, 70, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}
.tip-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
}
.tip-site {
  margin: 0;
  font-size: 0.9rem;
}
.tip-meter {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 14px;
  align-items: center;
  margin: 4px 0 8px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background:
    radial-gradient(120px 80px at 12% 0%, rgba(42, 157, 148, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 247, 0.72));
  border: 1px solid rgba(42, 157, 148, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.tip-meter-ring {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0f766e;
  background:
    radial-gradient(circle at 50% 42%, #fff, rgba(255, 255, 255, 0.2) 62%),
    conic-gradient(from 210deg, #2a9d94, #d7f3ef, #2a9d94);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16);
}
.tip-meter-ring span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7fbfa;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.tip-meter-copy { min-width: 0; }
.tip-meter-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.tip-meter-sum {
  margin: 2px 0 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #125a56;
}
.tip-meter-sum strong {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.tip-meter-sum span {
  font-size: 0.95rem;
  font-weight: 650;
}
.tip-meter-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.tip-meter-actions .cta {
  width: 100%;
  text-align: center;
}
.tip-register { padding-bottom: 22px; }
.tip-register .tip-title { margin: 0 0 8px; }
.tip-register-lead { margin: 0 0 16px; line-height: 1.6; }
.reg-form { display: grid; gap: 12px; }
.reg-field,
.reg-shot {
  display: grid;
  gap: 6px;
  margin: 0;
}
.reg-field > span,
.reg-shot > span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.reg-field input,
.reg-amount input {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(40, 70, 75, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
}
.reg-amount {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reg-amount em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: #125a56;
}
.reg-amount input {
  flex: 1;
  font-variant-numeric: tabular-nums;
}
.reg-shot {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(42, 157, 148, 0.4);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.reg-shot input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.reg-shot strong {
  font-weight: 650;
}
.reg-shot small {
  color: var(--muted);
}
.reg-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.reg-actions .cta { width: 100%; text-align: center; }
@media (max-width: 640px) {
  .tip-meter-actions,
  .reg-actions {
    grid-template-columns: 1fr;
  }
}
.tip-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 16px;
}
.tip-pay-modal[hidden] { display: none !important; }
.tip-pay-mask {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 40, 0.38);
  backdrop-filter: blur(4px);
}
.tip-pay-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(86dvh, 720px);
  overflow: auto;
  padding: 16px;
}
.tip-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.tip-pay-panel .tip-qr-grid { margin: 0 auto; }
.thanks-page .tip-title { margin-top: 0; }
.thanks-search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0 0;
}
.thanks-search .auth-input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.thanks-wall {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}
.thanks-wall li {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 157, 148, 0.18);
  font-family: var(--font-display);
  font-weight: 650;
}
.front-toast {
  position: fixed;
  left: 50%;
  top: max(16px, env(safe-area-inset-top, 0px));
  z-index: 4000;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(18, 90, 86, 0.94);
  color: #fff;
  text-align: center;
  line-height: 1.55;
  box-shadow: 0 16px 36px rgba(18, 90, 86, 0.28);
  animation: front-toast-in 0.32s ease;
}
.front-toast.is-out {
  animation: front-toast-out 0.26s ease forwards;
}
@keyframes front-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes front-toast-out {
  to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
.tip-body h2 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
}
.tip-body h2:first-child {
  margin-top: 4px;
}
.tip-thanks,
.tip-purpose {
  margin: 0 0 10px;
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--text);
}
.tip-qr-hint {
  margin: 0 0 14px;
  font-size: 0.86rem;
}
.tip-qr-grid {
  display: grid;
  gap: 14px;
  justify-content: center;
}
.tip-qr-count-1 {
  grid-template-columns: minmax(0, 220px);
}
.tip-qr-count-2 {
  grid-template-columns: repeat(2, minmax(0, 200px));
}
.tip-qr-count-3 {
  grid-template-columns: repeat(3, minmax(0, 180px));
}
.tip-qr-card {
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(40, 70, 75, 0.12);
  text-align: center;
}
.tip-qr-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}
.tip-qr-card figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
}
.tip-empty {
  padding: 18px 12px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(40, 70, 75, 0.18);
  background: rgba(255, 255, 255, 0.45);
}
.tip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(40, 70, 75, 0.1);
}
@media (max-width: 720px) {
  .tip-logo {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }
  .tip-title {
    font-size: 1.4rem;
  }
  .tip-qr-count-2,
  .tip-qr-count-3 {
    grid-template-columns: minmax(0, 220px);
  }
  .tip-actions .cta {
    width: auto;
  }
}


