:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --subtle: #9ca3af;
  --line: #eceef2;
  --line-strong: #dde1e7;
  --accent: #111827;
  --accent-blue: #2563eb;
  --soft: #f3f4f6;
  --soft-blue: #eff6ff;
  --warm: #fff7ed;
  --shadow-card: 0 10px 32px rgba(15, 23, 42, 0.08);
  --shadow-phone: 0 28px 80px rgba(15, 23, 42, 0.16);
  --radius-phone: 34px;
  --radius-card: 16px;
  --phone-width: 900px;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.95), transparent 36rem),
    var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

p {
  line-height: 1.72;
}

.app {
  min-height: 100vh;
}

.topbar,
.dev-progress,
.progress-wrap {
  display: none;
}

.screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.eyebrow,
.drawer-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.muted-line {
  color: var(--muted);
  font-size: 13px;
}

button,
.choice,
.media-thumb,
.scale-options label {
  -webkit-tap-highlight-color: transparent;
}

.primary,
.secondary,
.expand-comments,
.post-actions button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.primary:active,
.secondary:active,
.expand-comments:active,
.post-actions button:active,
.media-thumb:active {
  transform: scale(0.985);
}

.primary {
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
  cursor: pointer;
  font-weight: 800;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.2);
}

.secondary {
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}

.secondary:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro */
.intro-stage {
  width: 100%;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px 12px;
}

.intro-card {
  width: min(100%, 520px);
  display: grid;
  gap: 22px;
  padding: 30px;
  background: var(--card);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  animation: pageIn 280ms ease both;
}

.intro-header {
  display: grid;
  gap: 10px;
}

.intro-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.22;
}

.intro-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.intro-flow {
  display: grid;
  gap: 12px;
}

.intro-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: start;
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.step-num {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
}

.intro-step strong {
  display: block;
  margin: 1px 0 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.intro-step p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
}

.intro-note {
  padding: 14px 16px;
  color: #5b6472;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.65;
}

.intro-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

.intro-card .primary {
  width: 100%;
  height: 52px;
  border-radius: 14px;
}

.intro-phone {
  width: min(100%, 420px);
  min-height: 720px;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 22px;
  padding: 18px;
  background: var(--card);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--radius-phone);
  box-shadow: var(--shadow-phone);
  animation: pageIn 280ms ease both;
}

.intro-phone-top {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.intro-phone-top span:last-child {
  position: relative;
  width: 58px;
  height: 18px;
  overflow: hidden;
  color: transparent;
}

.intro-phone-top span:last-child::before {
  content: "5G";
  position: absolute;
  right: 28px;
  top: 1px;
  color: var(--text);
  font-size: 11px;
}

.intro-phone-top span:last-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  width: 22px;
  height: 10px;
  border: 1.8px solid var(--text);
  border-radius: 4px;
  box-shadow: inset 15px 0 0 var(--text);
}

.intro-feed-preview {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 250px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.mini-post {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
}

.mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #f9fafb 0 9%, transparent 10%),
    linear-gradient(135deg, #111827, #4b5563);
}

.mini-post b,
.mini-post p,
.mini-actions span {
  display: block;
  border-radius: 999px;
  background: #e5e7eb;
}

.mini-post b {
  width: 45%;
  height: 12px;
  margin-bottom: 8px;
}

.mini-post p {
  width: 86%;
  height: 10px;
}

.mini-image {
  min-height: 124px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.18)),
    linear-gradient(45deg, #f3f4f6 25%, #e5e7eb 25%, #e5e7eb 50%, #f3f4f6 50%, #f3f4f6 75%, #e5e7eb 75%);
  background-size: auto, 26px 26px;
}

.mini-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 2px;
}

.mini-actions span {
  height: 11px;
}

.intro-copy {
  text-align: center;
}

.intro-mark {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  margin: 0 0 16px;
  padding: 0 14px;
  color: var(--text);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.intro-copy h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.18;
}

.intro-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.intro-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.intro-steps span {
  min-height: 36px;
  display: grid;
  place-items: center;
  color: #374151;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.intro-phone > .primary {
  width: 100%;
  height: 52px;
  border-radius: 14px;
}

.intro-note {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.notice-list {
  width: min(100%, 520px);
  display: grid;
  gap: 8px;
  padding: 0 16px;
}

.notice-list p {
  margin: 0;
  color: #747b86;
  font-size: 13px;
  text-align: center;
}

/* Profile and finish forms */
.layout {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 620px);
  gap: 24px;
  align-items: start;
  animation: pageIn 240ms ease both;
}

.side {
  position: sticky;
  top: 24px;
  padding: 22px 8px;
}

.side h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.22;
}

.side p {
  margin: 0;
  color: var(--muted);
}

.form-panel {
  padding: 26px;
}

.form-panel h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.form-panel h3 {
  margin: 26px 0 14px;
  font-size: 18px;
}

.form-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span,
.scale-item > span {
  color: #1f2937;
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.scale-list {
  display: grid;
  gap: 12px;
}

.scale-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.scale-options {
  display: grid;
  grid-template-columns: repeat(7, 34px);
  gap: 5px;
}

.scale-options.five {
  grid-template-columns: repeat(5, 34px);
}

.scale-options label {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.scale-options label:hover {
  color: var(--text);
  background: #f9fafb;
  transform: translateY(-1px);
}

.scale-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale-options label:has(input:checked) {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

/* Feed as phone app */
.feed-page,
.question-page,
.finish-stage {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 12px;
}

.social-shell {
  width: min(100%, var(--phone-width));
  height: min(860px, calc(100vh - 24px));
  min-height: 680px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #f7f7f8;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--radius-phone);
  box-shadow: var(--shadow-phone);
  animation: pageIn 240ms ease both;
}

.feed-top {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.feed-top::before {
  display: none;
}

.feed-top::after {
  display: none;
}

.home-shortcut {
  position: static;
  min-width: 44px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 11px;
  color: var(--text);
  background: #f3f4f6;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.app-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 3px;
  background: #f3f4f6;
  border-radius: 999px;
}

.app-tabs span {
  min-width: 48px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.app-tabs .active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.feed-status {
  position: absolute;
  left: 18px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 750;
}

.feed-status span:last-child {
  display: none;
}

.feed-container {
  min-height: 0;
  overflow: auto;
  padding: 12px 12px 18px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.feed-container::-webkit-scrollbar {
  width: 5px;
}

.feed-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

.feed-shell {
  width: 100%;
  display: grid;
  gap: 12px;
  margin: 0 auto;
}

.explore-grid {
  columns: 2;
  column-gap: 10px;
  padding-bottom: 18px;
}

.explore-card {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  margin: 0 0 12px;
  padding: 0;
  break-inside: avoid;
  text-align: left;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.075);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.explore-card:hover {
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.explore-card.completed {
  opacity: 0.38;
  filter: grayscale(1);
}

.explore-card.completed:hover {
  opacity: 0.72;
}

.explore-card img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  display: block;
  object-fit: cover;
}

.explore-card:nth-child(2n) img {
  aspect-ratio: 1 / 1;
}

.explore-card:nth-child(3n) img {
  aspect-ratio: 1 / 1.32;
}

.explore-card.evidence-high > img,
.post-card.evidence-high .media-thumb img,
.media-modal.evidence-high .modal-card img {
  filter: none;
}

.explore-card.evidence-medium > img,
.post-card.evidence-medium .media-thumb img,
.media-modal.evidence-medium .modal-card img {
  filter: none;
}

.explore-card.evidence-low > img,
.post-card.evidence-low .media-thumb img,
.media-modal.evidence-low .modal-card img {
  filter: blur(1.2px) contrast(0.84) saturate(0.76);
}

.post-card.evidence-low .media-thumb::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 42%),
    repeating-linear-gradient(0deg, rgba(17, 24, 39, 0.05) 0 1px, transparent 1px 4px);
}

.explore-card-body {
  padding: 10px 10px 12px;
}

.explore-card h2 {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 0 10px;
  color: #151923;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 900;
}

.explore-author {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
}

.explore-author .avatar {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.explore-author span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore-author b {
  color: #6b7280;
  font-size: 11px;
}

.done-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(17, 24, 39, 0.62);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.feed-bottom {
  padding: 12px 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.feed-bottom .primary {
  width: 100%;
  height: 50px;
  border-radius: 16px;
}

.post-card {
  overflow: hidden;
  padding: 16px;
  background: var(--card);
  border: 1px solid rgba(17, 24, 39, 0.05);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ambient-post {
  opacity: 0.68;
  box-shadow: none;
}

.target-post {
  border-color: rgba(17, 24, 39, 0.08);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.avatar,
.comment-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.6) 0 8%, transparent 9%),
    linear-gradient(135deg, #111827, #4b5563);
  border-radius: 50%;
  font-weight: 900;
  overflow: hidden;
}

.avatar img,
.comment-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar {
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.muted-avatar {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55) 0 8%, transparent 9%),
    linear-gradient(135deg, #9ca3af, #6b7280);
}

.post-head strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.post-head span {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
}

.post-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 900;
}

.post-card p {
  margin: 0 0 12px;
  color: #202938;
  font-size: 15px;
  line-height: 1.78;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.media-grid:has(.media-thumb:only-child) {
  grid-template-columns: 1fr;
}

.media-thumb {
  position: relative;
  min-height: 124px;
  display: block;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: #e5e7eb;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.media-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.media-thumb img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.media-grid:has(.media-thumb:only-child) .media-thumb img {
  height: 360px;
}

.media-thumb:hover img {
  transform: scale(1.025);
}

.media-thumb span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: block;
  overflow: hidden;
  padding: 5px 9px;
  color: #fff;
  background: rgba(17, 24, 39, 0.68);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.chip-row span {
  padding: 5px 9px;
  color: #4b5563;
  background: #f5f6f8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.post-embed {
  margin: 12px 0;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.post-embed strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
}

.post-embed ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.72;
}

.embed-media {
  max-width: 100%;
}

.post-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
}

.post-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-stats span:nth-child(1)::before {
  content: "♡";
}

.post-stats span:nth-child(2)::before {
  content: "◌";
}

.post-stats span:nth-child(3)::before {
  content: "↗";
}

.action-hint {
  margin: 12px 0 0;
  padding: 9px 11px;
  color: #5f6875;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.62;
}

.post-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.post-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  color: #4b5563;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.post-actions button:hover {
  color: var(--text);
  background: #f9fafb;
}

.post-actions button.selected {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.post-actions [data-soft-action="like"]::before {
  content: "♡";
  font-size: 16px;
}

.post-actions [data-soft-action="comment"]::before {
  content: "◌";
  font-size: 15px;
}

.post-actions [data-soft-action="share"]::before {
  content: "↗";
  font-size: 15px;
}

.post-actions [data-soft-action="save"]::before {
  content: "◇";
  font-size: 14px;
}

.comment-section {
  margin-top: 12px;
}

.comment-section h3 {
  margin: 0 0 10px 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.expand-comments {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
}

.expand-comments:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.comment-composer {
  display: none;
  margin-bottom: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.comment-composer.open {
  display: block;
}

.comment-composer textarea {
  min-height: 82px;
  background: #fafafa;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.composer-actions span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}

.composer-actions .secondary,
.composer-actions .primary {
  min-height: 38px;
  border-radius: 12px;
}

.comment-card {
  display: flex;
  gap: 10px;
  margin-bottom: 9px;
  padding: 10px;
  background: #fafafa;
  border: 1px solid transparent;
  border-radius: 15px;
}

.comment-card:nth-of-type(2) {
  background: #f5f6f8;
}

.own-comment {
  background: var(--soft-blue);
  border-color: #dbeafe;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.comment-body strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.comment-body strong::after {
  content: "刚刚";
  color: var(--subtle);
  font-size: 11px;
  font-weight: 650;
}

.comment-body p {
  margin: 0;
  color: #263241;
  font-size: 13px;
  line-height: 1.64;
}

.comment-body p::after {
  content: "";
  color: var(--subtle);
  font-size: 12px;
}

.comment-like {
  min-height: 26px;
  margin: 6px 0 0;
  padding: 0 9px;
  color: var(--subtle);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.comment-like:hover {
  color: var(--text);
  background: #f0f2f5;
}

.comment-like.selected {
  color: #fff;
  background: var(--accent);
}

.comment-body .media-grid {
  grid-template-columns: minmax(0, 180px);
  margin-top: 8px;
}

.comment-body .media-thumb {
  min-height: 96px;
  border-radius: 12px;
}

.comment-body .media-thumb img {
  height: 112px;
}

/* Question screen */
.question-card {
  width: min(100%, var(--phone-width));
  min-height: min(720px, calc(100vh - 24px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px;
  background: var(--card);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 30px;
  box-shadow: var(--shadow-phone);
  animation: pageIn 220ms ease both;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.question-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  background: #f5f6f8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

#questionArea {
  align-self: center;
}

#questionArea::before {
  content: "你怎么看这条信息？";
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 11px;
  color: var(--muted);
  background: #f5f6f8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.question-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.28;
}

.question-help {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice {
  position: relative;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #1f2937;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.choice span::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #cfd5df;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

.choice:hover span {
  transform: translateY(-1px);
  border-color: #cfd5df;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.choice:has(input:checked) span {
  color: var(--text);
  background: #f9fafb;
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.choice:has(input:checked) span::before {
  border-color: var(--accent);
  background: var(--accent);
}

.limit-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.branch-note {
  margin: 14px 0;
  padding: 12px 13px;
  color: #7c4a03;
  background: var(--warm);
  border: 1px solid #fed7aa;
  border-radius: 14px;
  font-size: 13px;
}

.question-card .nav-row {
  align-items: center;
}

.question-card .nav-row .primary,
.question-card .nav-row .secondary {
  flex: 1;
}

/* Modal */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.media-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  animation: pageIn 160ms ease both;
}

.modal-head {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0;
  border-bottom: 0;
}

.modal-head strong {
  display: none;
}

.modal-head button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--text);
  background: #f3f4f6;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
}

.modal-card img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: #f3f4f6;
}

/* Finish */
.finish-stage {
  padding: 18px;
}

.finish-panel {
  width: min(100%, 620px);
  border-radius: 28px;
  animation: pageIn 240ms ease both;
}

.summary-box {
  margin-top: 18px;
  padding: 15px;
  color: var(--muted);
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
}

/* Legacy compatibility */
.simulator-shell,
.phone-frame,
.phone-top,
.scenario-meta {
  width: 100%;
}

@media (max-width: 900px) {
  .screen {
    padding: 12px;
  }

  .layout {
    grid-template-columns: 1fr;
    width: min(100%, 680px);
  }

  .side {
    position: static;
    padding: 8px 4px 0;
  }

  .scale-item {
    grid-template-columns: 1fr;
  }

  .scale-options {
    grid-template-columns: repeat(7, minmax(32px, 1fr));
  }

  .scale-options.five {
    grid-template-columns: repeat(5, minmax(36px, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    background: #fff;
  }

  .screen,
  .feed-page,
  .question-page {
    padding: 0;
  }

  .intro-stage {
    padding: 0;
    background: #f7f7f8;
  }

  .intro-card {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 26px 18px;
  }

  .intro-phone {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .notice-list {
    display: none;
  }

  .social-shell,
  .question-card {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .feed-top {
    min-height: 70px;
  }

  .feed-container {
    padding: 10px;
  }

  .post-card {
    border-radius: 15px;
    padding: 14px;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-thumb img {
    height: 210px;
  }

  .media-grid:has(.media-thumb:only-child) .media-thumb img {
    height: 260px;
  }

  .question-card {
    padding: 18px 16px;
  }

  .question-title {
    font-size: 22px;
  }

  .layout {
    width: 100%;
    gap: 0;
  }

  .side {
    padding: 18px 18px 0;
  }

  .form-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px;
  }

  .nav-row {
    flex-direction: column-reverse;
  }

  .nav-row button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
