:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --card: #171b21;
  --card-2: #202630;
  --line: #303844;
  --text: #f7f4ee;
  --muted: #a9b0bb;
  --red: #e33b32;
  --red-dark: #9e1f1f;
  --yellow: #f4bd44;
  --green: #36c27a;
  --blue: #5aa8ff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #252b35 0, var(--bg) 34rem);
  color: var(--text);
}
button, input, textarea { font: inherit; }
a { color: inherit; }

.mobile-app { width: min(100%, 1040px); margin: 0 auto; min-height: 100vh; padding: 14px 14px 96px; }
.app-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0 12px; background: linear-gradient(180deg, rgba(11, 13, 16, .96), rgba(11, 13, 16, .72)); backdrop-filter: blur(16px);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { position: relative; width: 50px; height: 42px; display: grid; place-items: end center; border: 2px solid rgba(244, 189, 68, .78); border-radius: 9px 9px 14px 14px; background: linear-gradient(180deg, #ff5148 0 42%, var(--red-dark) 42% 100%); box-shadow: 0 14px 30px rgba(227, 59, 50, .28); }
.brand-mark::before { content: ""; position: absolute; top: -11px; width: 24px; height: 13px; border: 3px solid var(--yellow); border-bottom: 0; border-radius: 10px 10px 0 0; }
.brand-mark::after { content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 2px; background: rgba(244, 189, 68, .8); }
.toolbox-h { position: relative; z-index: 1; width: 23px; height: 20px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 6px; background: linear-gradient(180deg, #ffd86a, #d99117); color: #55180f; font-weight: 900; line-height: 1; }

h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 22px; letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 6vw, 52px); line-height: 1; letter-spacing: -.06em; }
h3 { font-size: 22px; letter-spacing: -.035em; }
h4 { font-size: 16px; }
p { color: var(--muted); line-height: 1.62; }
main { display: grid; gap: 14px; }
.eyebrow { margin-bottom: 7px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.status-card, .section-card, .action-card, .question-card, .case-flow article, .parts-grid article, .wallet-grid article { border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(32, 38, 48, .96), rgba(23, 27, 33, .96)); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); }
.status-card { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 20px; min-height: 260px; padding: clamp(22px, 4vw, 34px); align-items: end; overflow: hidden; position: relative; }
.status-card::after { content: ""; position: absolute; right: -90px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 59, 50, .34), transparent 68%); }
.status-card p:not(.eyebrow) { margin-top: 12px; max-width: 680px; }
.status-ring { position: relative; z-index: 1; width: 118px; height: 118px; display: grid; place-items: center; align-content: center; border-radius: 50%; border: 8px solid rgba(244, 189, 68, .9); background: rgba(244, 189, 68, .08); }
.status-ring strong { font-size: 34px; }
.status-ring span { color: var(--muted); font-size: 12px; }

.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.action-card { min-height: 130px; padding: 16px; display: grid; align-content: space-between; text-decoration: none; }
.action-card span { font-size: 28px; }
.action-card strong, .feed-list b, .question-card strong, .case-flow strong, .parts-grid strong { display: block; }
.action-card small, .feed-list span, .question-card span, .case-flow span, .parts-grid span, .wallet-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.primary-action { background: linear-gradient(180deg, #ef4a3f, #a82424); }
.primary-action small { color: rgba(255, 255, 255, .76); }

.section-card { padding: clamp(17px, 3vw, 26px); scroll-margin-top: 78px; }
.section-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.section-head.compact { align-items: center; }
.pill { white-space: nowrap; border-radius: 999px; padding: 7px 10px; background: rgba(54, 194, 122, .14); color: #8cf0b8; font-size: 12px; font-weight: 800; }
.pill.gold { background: rgba(244, 189, 68, .15); color: var(--yellow); }
.feed-list, .list { display: grid; gap: 10px; }
.feed-list article, .item { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); }
.item strong { display: block; margin-bottom: 5px; }
.item small { color: var(--muted); line-height: 1.45; }
.list.empty, .result.empty { color: var(--muted); }

.diagnosis-entry-grid, .case-flow, .parts-grid, .wallet-grid, .two-panel { display: grid; gap: 12px; }
.diagnosis-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-tile { border: 1px dashed rgba(244, 189, 68, .44); border-radius: 18px; background: rgba(244, 189, 68, .07); color: var(--text); padding: 16px; text-align: left; }
.entry-tile span { font-size: 28px; display: block; margin-bottom: 8px; }
.entry-tile strong { display: block; }
.entry-tile small { color: var(--muted); }
.field-label { display: block; margin: 12px 0 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
textarea, input { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: #11151b; color: var(--text); padding: 13px 14px; outline: none; }
textarea:focus, input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(244, 189, 68, .1); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.primary-button, .text-button, .icon-button { border: 0; cursor: pointer; font-weight: 900; }
.primary-button { min-height: 48px; border-radius: 999px; padding: 12px 18px; background: var(--red); color: white; }
.text-button, .icon-button { min-height: 40px; border-radius: 999px; padding: 9px 13px; background: rgba(255, 255, 255, .07); color: var(--text); border: 1px solid rgba(255, 255, 255, .08); }
.icon-button { width: 42px; padding: 0; }
.result { min-height: 154px; margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #11151b; white-space: pre-wrap; line-height: 1.6; }
.case-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.hidden, .case-form.hidden { display: none; }

.case-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-flow article, .parts-grid article, .wallet-grid article { padding: 15px; }
.two-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.question-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px; margin-top: 10px; }
.question-card em { font-style: normal; border-radius: 999px; padding: 7px 10px; background: rgba(90, 168, 255, .15); color: #9fcbff; font-weight: 900; }
.question-card.hot em { background: rgba(227, 59, 50, .18); color: #ffaaa4; }
.parts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wallet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wallet-grid span { display: block; margin: 6px 0; font-size: 30px; font-weight: 900; }
.wallet-grid article:nth-child(2) span { color: var(--yellow); }
.wallet-grid article:nth-child(3) span { color: var(--green); }

.bottom-nav { position: fixed; left: 50%; bottom: 13px; transform: translateX(-50%); width: min(calc(100% - 24px), 540px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; background: rgba(17, 21, 27, .92); backdrop-filter: blur(18px); box-shadow: 0 18px 44px rgba(0, 0, 0, .36); }
.bottom-nav a { min-height: 48px; display: grid; place-items: center; gap: 2px; border-radius: 18px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 900; }
.bottom-nav a span { font-size: 16px; }
.bottom-nav a.active, .bottom-nav a:hover { color: white; background: var(--red); }

@media (max-width: 820px) {
  .mobile-app { padding: 12px 12px 92px; }
  .status-card, .action-grid, .diagnosis-entry-grid, .case-flow, .parts-grid, .wallet-grid, .two-panel, .form-row { grid-template-columns: 1fr; }
  .status-ring { width: 98px; height: 98px; }
  .section-head { display: grid; }
  .primary-button { width: 100%; }
}


.invite-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(244, 189, 68, .28);
  border-radius: 16px;
  background: rgba(244, 189, 68, .08);
  color: var(--muted);
  font-size: 13px;
}
.invite-strip button {
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #321600;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}
.banner-card {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 18%, rgba(244,189,68,.28), transparent 28%),
    linear-gradient(135deg, #2b1111, #1b2028 58%, #101318);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.banner-card h2 { max-width: 720px; }
.banner-card p:not(.eyebrow) { margin-top: 10px; max-width: 680px; }
.banner-badge {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--red);
  color: white;
  font-weight: 900;
}
.quick-diagnosis-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: var(--card);
}
.quick-input label { display: block; margin: 0 0 7px; color: var(--muted); font-size: 13px; font-weight: 900; }
.scan-button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 16px;
  background: var(--red);
  color: white;
  text-decoration: none;
  font-weight: 900;
}
.scan-button span { font-size: 24px; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.icon-grid a {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: var(--card);
  text-align: center;
  text-decoration: none;
}
.icon-grid span { font-size: 25px; }
.icon-grid strong { font-size: 14px; }
.icon-grid small { color: var(--muted); font-size: 12px; }
.mixed-feed-card, .knowledge-card {
  padding: clamp(17px, 3vw, 24px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(32, 38, 48, .96), rgba(23, 27, 33, .96));
}
.knowledge-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.knowledge-row article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-2);
}
.knowledge-row strong { display: block; }
.knowledge-row span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 820px) {
  .banner-card, .quick-diagnosis-card, .knowledge-row { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .icon-grid a { min-height: 90px; padding: 9px 6px; }
  .icon-grid strong { font-size: 12px; }
  .icon-grid small { font-size: 10px; }
}
.activity-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 189, 68, .22);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(244, 189, 68, .1), rgba(227, 59, 50, .08));
  overflow: hidden;
}
.ticker-label {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 900;
}
.ticker-window {
  overflow: hidden;
  min-width: 0;
}
.ticker-track {
  display: inline-flex;
  gap: 34px;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.ticker-track a::before {
  content: "•";
  color: var(--yellow);
  margin-right: 8px;
}
.activity-ticker:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
@media (max-width: 820px) {
  .activity-ticker { grid-template-columns: auto minmax(0, 1fr); }
  .ticker-track a { font-size: 13px; }
}
.obd-icon {
  width: 34px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #3b4654, #12161c);
  border: 2px solid var(--yellow);
  color: transparent;
  position: relative;
}
.obd-icon::before {
  content: "";
  position: absolute;
  top: -7px;
  width: 22px;
  height: 7px;
  border-radius: 5px 5px 0 0;
  background: #3b4654;
  border: 1px solid rgba(244,189,68,.7);
  border-bottom: 0;
}
.obd-icon::after {
  content: "••••";
  position: absolute;
  bottom: 2px;
  left: 5px;
  color: var(--yellow);
  font-size: 8px;
  letter-spacing: 1px;
}
.locked-feature,
.locked-entry,
.locked-service {
  position: relative;
  overflow: hidden;
}
.locked-feature > span,
.locked-feature strong,
.locked-feature small,
.locked-entry > span,
.locked-entry strong,
.locked-entry small,
.locked-service strong,
.locked-service span {
  filter: blur(1.2px);
  opacity: .72;
}
.locked-feature::after,
.locked-entry::after,
.locked-service::after {
  content: "获取邀请码方可进入";
  position: absolute;
  inset: auto 10px 10px 10px;
  display: grid;
  place-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(244, 189, 68, .94);
  color: #351900;
  font-size: 11px;
  font-weight: 900;
  filter: none;
}
.locked-feature em {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(244,189,68,.16);
  color: var(--yellow);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.mini-toolbox {
  position: relative;
  width: 42px;
  height: 34px;
  display: inline-grid;
  place-items: end center;
  border: 2px solid rgba(244, 189, 68, .78);
  border-radius: 8px 8px 11px 11px;
  background: linear-gradient(180deg, #ff5148 0 42%, var(--red-dark) 42% 100%);
}
.mini-toolbox::before {
  content: "";
  position: absolute;
  top: -9px;
  width: 20px;
  height: 10px;
  border: 3px solid var(--yellow);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}
.mini-toolbox i {
  width: 19px;
  height: 17px;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffd86a, #d99117);
  color: #55180f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.hbox-online-card small {
  max-width: 100%;
  font-weight: 800;
}
.chip-icon {
  width: 34px;
  height: 34px;
  display: inline-block;
  margin: 0 auto;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7ca55, #b56f18);
  border: 2px solid rgba(255, 230, 148, .9);
  position: relative;
  box-shadow: inset 0 0 0 4px rgba(64, 30, 8, .28);
}
.chip-icon::before,
.chip-icon::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  height: 3px;
  background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(247, 202, 85, .9) 4px 7px, transparent 7px 11px);
}
.chip-icon::before { top: 7px; }
.chip-icon::after { bottom: 7px; }
.chip-feature > span,
.chip-feature strong,
.chip-feature small {
  filter: none;
  opacity: 1;
}
.chip-feature {
  padding-bottom: 42px;
}
.chip-feature small {
  font-size: 11px;
  line-height: 1.35;
}
.chip-feature::after {
  content: "获取邀请码方可进入";
  min-height: 24px;
  inset: auto 10px 10px 10px;
}
.step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.step-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  position: relative;
}
.alert-icon::before {
  content: "!";
  width: 0;
  height: 0;
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
  border-bottom: 34px solid var(--yellow);
  filter: drop-shadow(0 3px 8px rgba(244,189,68,.24));
}
.alert-icon::after {
  content: "!";
  position: absolute;
  top: 10px;
  color: #351900;
  font-size: 20px;
  font-weight: 900;
}
.paper-icon {
  border-radius: 7px;
  background: linear-gradient(180deg, #f5f0df, #cfc7b2);
  border: 2px solid rgba(255,255,255,.55);
}
.paper-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 3px;
  background: #5b6270;
  box-shadow: 0 7px 0 #5b6270, 0 14px 0 #5b6270;
}
.read-icon::before {
  content: "📖";
  font-size: 32px;
  line-height: 1;
}
.dollar-icon {
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd86a, #d99117);
  border: 2px solid rgba(255, 238, 169, .76);
  color: #4b2400;
  font-size: 24px;
  font-weight: 900;
}
.dollar-icon::before { content: "$"; }
.hbox-online-card > .chip-icon,
.hbox-online-card strong,
.hbox-online-card small {
  filter: none;
  opacity: 1;
}
.hbox-online-card {
  padding-bottom: 46px;
}
.hbox-online-card small {
  display: block;
  max-width: 100%;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  line-height: 1.45;
}
.diag-chip {
  margin: 0 0 10px;
}
/* 修正：车主工具箱不锁定；AI诊断右侧卡片才是邀请码锁定高级功能 */
#tools .locked-service::after { content: none; }
#tools .locked-service strong,
#tools .locked-service span { filter: none; opacity: 1; }
.hbox-online-card::after { content: "获取邀请码方可进入"; }
.scan-button {
  border: 0;
  cursor: pointer;
}
.scan-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(10px);
}
.scan-modal.hidden { display: none; }
.scan-dialog {
  width: min(100%, 760px);
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #202630, #141920);
  padding: clamp(18px, 4vw, 28px);
  box-shadow: 0 26px 70px rgba(0,0,0,.44);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}
.scan-dialog > p:not(.eyebrow) { margin-top: 8px; }
.scan-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.scan-steps article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 230px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #11151b;
}
.scan-steps b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #321600;
}
.scan-steps strong { display: block; }
.scan-steps span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.scan-steps button {
  align-self: end;
  border: 1px solid rgba(244,189,68,.36);
  border-radius: 999px;
  background: rgba(244,189,68,.1);
  color: var(--text);
  font-weight: 900;
  padding: 9px 10px;
}
@media (max-width: 820px) {
  .scan-steps { grid-template-columns: 1fr; }
  .scan-steps article { min-height: auto; }
}
.local-match-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.quick-input label + .local-match-note + input {
  margin-top: 7px;
}
.camera-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.camera-action {
  border-style: solid;
  border-color: rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(32,38,48,.98), rgba(17,21,27,.98));
}
.camera-action span {
  font-size: 30px;
}
.camera-action small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}
@media (max-width: 820px) {
  .camera-action-grid { grid-template-columns: 1fr; }
}
.quick-input input::placeholder {
  letter-spacing: .01em;
}
.code-prefix-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.code-prefix-panel button {
  min-height: 36px;
  border: 1px solid rgba(244,189,68,.34);
  border-radius: 999px;
  background: rgba(244,189,68,.08);
  color: var(--text);
  padding: 7px 12px;
  font-weight: 900;
  cursor: pointer;
}
.code-prefix-panel button:hover {
  background: rgba(244,189,68,.18);
}
.quick-input-with-note {
  position: relative;
}
.input-inline-note {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 46%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.quick-input-with-note input {
  padding-right: min(52%, 620px);
}
@media (max-width: 820px) {
  .input-inline-note {
    position: static;
    display: block;
    max-width: none;
    margin-top: 7px;
    transform: none;
    white-space: normal;
  }
  .quick-input-with-note input {
    padding-right: 14px;
  }
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.more-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(244,189,68,.1);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(244,189,68,.24);
}
.question-card {
  display: grid;
  align-items: initial;
}
.question-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.question-status-row em {
  flex: 0 0 auto;
  font-style: normal;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(90, 168, 255, .15);
  color: #9fcbff;
  font-weight: 900;
}
.question-card.hot .question-status-row em {
  background: rgba(227, 59, 50, .18);
  color: #ffaaa4;
}
.question-card.solved .question-status-row em {
  background: rgba(54, 194, 122, .16);
  color: #8cf0b8;
}
.question-card > span {
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 820px) {
  .section-actions { justify-content: flex-start; }
  .question-status-row { align-items: flex-start; }
}
.secondary-page { scroll-margin-top: 78px; }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.filter-row button {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 8px 12px;
  font-weight: 900;
}
.filter-row button:first-child {
  background: var(--red);
  color: white;
}
.full-question-list {
  display: grid;
  gap: 10px;
}
.banner-thumb {
  position: relative;
  z-index: 1;
  width: min(34vw, 360px);
  min-width: 260px;
  margin: 0;
  align-self: stretch;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  overflow: hidden;
  background: #11151b;
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
}
.banner-thumb img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}
.banner-thumb figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(0,0,0,.62);
  color: white;
  font-size: 12px;
  font-weight: 900;
}
@media (min-width: 821px) {
  .banner-card { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) auto; }
}
@media (max-width: 820px) {
  .banner-thumb { width: 100%; min-width: 0; }
  .banner-thumb img { min-height: 160px; }
}
.ai-assistant-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(244,189,68,.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(244,189,68,.22), transparent 26%),
    linear-gradient(135deg, rgba(227,59,50,.18), rgba(32,38,48,.98) 48%, rgba(17,21,27,.98));
  box-shadow: 0 18px 44px rgba(0,0,0,.25);
}
.ai-orb {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffd86a, #e33b32 68%, #791b1b);
  color: white;
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -.04em;
  box-shadow: 0 18px 34px rgba(227,59,50,.3);
}
.ai-assistant-hero h3 {
  font-size: 32px;
}
.ai-assistant-hero p:not(.eyebrow) {
  max-width: 860px;
  margin-top: 6px;
}
.ai-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ai-benefits span {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}
.assistant-sample-button {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: var(--text);
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}
@media (max-width: 820px) {
  .ai-assistant-hero { grid-template-columns: 1fr; }
  .ai-orb { width: 62px; height: 62px; border-radius: 18px; }
}
.ai-assistant-hero {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.ai-orb {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 20px;
}
.ai-assistant-hero h3 {
  font-size: 26px;
}
.hidden-sample {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  border: 0;
}
.voice-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
}
.voice-label-row .field-label {
  margin: 0;
}
.voice-button {
  border: 1px solid rgba(244,189,68,.34);
  border-radius: 999px;
  background: rgba(244,189,68,.09);
  color: var(--text);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.voice-button.recording {
  background: rgba(227,59,50,.18);
  border-color: rgba(227,59,50,.55);
  color: #ffb0aa;
}
.voice-status {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.inline-voice-label {
  justify-content: flex-start;
  gap: 8px;
}
.inline-voice-label .voice-button {
  min-height: 28px;
  padding: 4px 9px;
}
.inline-voice-label .voice-button {
  white-space: normal;
  text-align: left;
}
.voice-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(227,59,50,.12);
  border: 1px solid rgba(227,59,50,.28);
}
.voice-wave.hidden { display: none; }
.voice-wave i {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: #ffb0aa;
  animation: voice-wave 780ms ease-in-out infinite;
}
.voice-wave i:nth-child(2) { animation-delay: 90ms; height: 14px; }
.voice-wave i:nth-child(3) { animation-delay: 180ms; height: 20px; }
.voice-wave i:nth-child(4) { animation-delay: 270ms; height: 13px; }
.voice-wave i:nth-child(5) { animation-delay: 360ms; height: 9px; }
@keyframes voice-wave {
  0%, 100% { transform: scaleY(.45); opacity: .58; }
  50% { transform: scaleY(1.1); opacity: 1; }
}
.stop-voice-button {
  min-height: 28px;
  border: 1px solid rgba(227,59,50,.55);
  border-radius: 999px;
  background: rgba(227,59,50,.2);
  color: #ffb0aa;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.stop-voice-button.hidden { display: none; }
.code-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.code-suggestions.hidden { display: none; }
.code-suggestions button {
  border: 1px solid rgba(90,168,255,.28);
  border-radius: 999px;
  background: rgba(90,168,255,.1);
  color: var(--text);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.knowledge-train-form {
  margin-top: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(244, 189, 68, .2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(244, 189, 68, .08), rgba(17, 21, 27, .86));
}
.train-form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.reward-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(244, 189, 68, .95);
  color: #351900;
  font-weight: 900;
  font-size: 12px;
}
.train-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.compact-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr);
}
.knowledge-train-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.knowledge-train-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #11151b;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}
.knowledge-train-form select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(244, 189, 68, .1);
}
.train-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.train-actions small {
  color: var(--muted);
  line-height: 1.45;
}
.ai-result-card {
  display: grid;
  gap: 12px;
}
.ai-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.result-summary {
  padding: 14px;
  border: 1px solid rgba(244, 189, 68, .22);
  border-radius: 16px;
  background: rgba(244, 189, 68, .08);
  color: var(--text);
  font-weight: 800;
}
.result-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.result-code-row span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(90, 168, 255, .12);
  color: #b7d8ff;
  border: 1px solid rgba(90, 168, 255, .18);
  font-weight: 900;
  font-size: 12px;
}
.result-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.result-columns article,
.knowledge-used,
.coin-locked-row,
.unlock-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(32, 38, 48, .72);
  padding: 13px;
}
.result-columns strong,
.knowledge-used > strong,
.coin-locked-row strong,
.unlock-preview strong {
  display: block;
  margin-bottom: 8px;
}
.result-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}
.unlock-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: rgba(244, 189, 68, .2);
}
.unlock-preview span,
.coin-locked-row span,
.knowledge-used p,
.knowledge-used article span {
  color: var(--muted);
  line-height: 1.45;
}
.unlock-preview button {
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #351900;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.knowledge-used {
  display: grid;
  gap: 8px;
}
.knowledge-used article {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: #11151b;
}
.knowledge-used article b,
.knowledge-used article span {
  display: block;
}
.coin-locked-row {
  border-style: dashed;
  border-color: rgba(244, 189, 68, .32);
}
.result-loading,
.inline-success,
.inline-error {
  font-weight: 900;
}
.inline-success { color: #8cf0b8; }
.inline-error { color: #ffaaa4; }
@media (max-width: 820px) {
  .train-form-head,
  .train-actions,
  .ai-result-head,
  .unlock-preview { display: grid; }
  .train-grid,
  .compact-grid,
  .result-columns { grid-template-columns: 1fr; }
  .unlock-preview button { width: 100%; }
}

.camera-file-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.camera-status {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 189, 68, .38);
  border-radius: 14px;
  background: rgba(244, 189, 68, .08);
  color: var(--text);
  display: grid;
  gap: 4px;
}

.camera-status span {
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.camera-action,
.scan-steps button,
.scan-button {
  cursor: pointer;
}

.camera-action:focus-visible,
.scan-steps button:focus-visible,
.scan-button:focus-visible {
  outline: 2px solid rgba(244, 189, 68, .85);
  outline-offset: 3px;
}

.home-ai-entry-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(244, 189, 68, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 189, 68, .22), transparent 34%),
    linear-gradient(135deg, rgba(31, 37, 47, .98), rgba(17, 21, 27, .98));
}

.home-ai-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.home-ai-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, #f4bd44, #e33b32);
  color: #141414;
  font-weight: 1000;
  letter-spacing: .06em;
  box-shadow: 0 12px 30px rgba(227, 59, 50, .24);
}

.home-ai-main h3 {
  margin: 3px 0 4px;
  font-size: clamp(22px, 4vw, 32px);
}

.home-ai-main p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.home-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.home-ai-button {
  min-width: 106px;
  border-radius: 16px;
  background: var(--red);
  color: white;
  font-weight: 1000;
  padding: 0 16px;
}

@media (max-width: 520px) {
  .home-code-row { grid-template-columns: 1fr; }
  .home-ai-button { min-height: 48px; }
}

.invite-banner-card {
  position: relative;
  min-height: 96px;
  padding: 14px 122px 14px 14px;
  border: 1px solid rgba(244, 189, 68, .2);
  border-radius: 24px;
  background: radial-gradient(circle at 92% 24%, rgba(244, 189, 68, .2), transparent 35%), linear-gradient(135deg, #311111, #171c24);
  overflow: hidden;
}
.invite-banner-card h2 { margin: 6px 0 5px; font-size: 22px; line-height: 1.05; }
.invite-banner-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.38; }
.invite-banner-badge { position: absolute; right: 12px; top: 12px; border-radius: 999px; background: var(--red); padding: 7px 10px; font-weight: 1000; font-size: 12px; }
.invite-banner-visual { position: absolute; right: 13px; bottom: 11px; width: 92px; height: 58px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(135deg,#160707 0 33%,#4a1717 33% 44%,#222832 44%); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.invite-banner-visual::after { content: "共享\A 维修站"; white-space: pre; position: absolute; right: 9px; top: 10px; font-size: 13px; font-weight: 1000; line-height: 1.45; }
.home-ai-console { display: grid; gap: 12px; padding: 16px; border-radius: 28px; background: linear-gradient(180deg,#202632,#141922); border: 1px solid rgba(244,189,68,.28); box-shadow: 0 16px 44px rgba(0,0,0,.23); }
.home-ai-row { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; }
.home-ai-orb { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 19px; background: radial-gradient(circle at 30% 20%,#fff4b8,#f4bd44 38%,#ef3b31); color: #141414; font-weight: 1000; letter-spacing: .06em; }
.home-prefix-panel { display: flex; gap: 7px; flex-wrap: wrap; }
.home-prefix-panel button { border: 1px solid rgba(244,189,68,.35); border-radius: 999px; background: rgba(244,189,68,.08); color: var(--text); font-weight: 1000; padding: 8px 10px; font-size: 13px; cursor: pointer; }
.home-input-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-input-steps button { position: relative; min-height: 76px; padding: 10px 8px 9px; border-radius: 18px; background: #11161d; border: 1px solid #26303b; text-align: center; color: var(--text); cursor: pointer; }
.home-input-steps em { position: absolute; left: 7px; top: 7px; width: 20px; height: 20px; border-radius: 999px; background: rgba(244,189,68,.16); border: 1px solid rgba(244,189,68,.35); color: var(--yellow); font-style: normal; font-size: 11px; font-weight: 1000; line-height: 18px; }
.home-input-steps span { display: block; font-size: 22px; margin-top: 9px; }
.home-input-steps strong { display: block; margin-top: 4px; font-size: 12px; }
.home-input-steps small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.home-tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.home-tools-grid a { position: relative; min-height: 92px; display: grid; place-items: center; text-align: center; padding: 9px; border: 1px solid #252d39; border-radius: 22px; background: #151a22; text-decoration: none; }
.home-tools-grid span { font-size: 26px; }
.home-tools-grid strong { display: block; margin-top: 4px; font-size: 13px; }
.home-tools-grid small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.home-invite-tool em { position: absolute; right: 7px; top: 7px; padding: 3px 6px; border-radius: 999px; background: rgba(244,189,68,.14); border: 1px solid rgba(244,189,68,.32); color: var(--yellow); font-style: normal; font-size: 10px; font-weight: 1000; }
.online-help-card { padding: 12px 13px; border-radius: 22px; background: linear-gradient(135deg,rgba(83,211,138,.09),rgba(85,215,255,.07)); border: 1px solid rgba(83,211,138,.22); }
.online-help-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.online-help-head h3 { margin: 0; font-size: 18px; }
.online-help-head span { display: flex; align-items: center; gap: 6px; color: #8af0b6; font-size: 12px; font-weight: 1000; }
.online-help-head i { width: 8px; height: 8px; border-radius: 50%; background: #53d38a; box-shadow: 0 0 0 5px rgba(83,211,138,.13); }
.online-help-row { display: flex; gap: 9px; align-items: center; color: #dce2ea; font-size: 13px; line-height: 1.35; }
.online-help-row b { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 12px; background: #202836; display: grid; place-items: center; }
.online-help-row p { margin: 0; }
@media (max-width: 820px) { .home-input-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .home-tools-grid a { min-height: 88px; padding: 8px 5px; } .home-tools-grid strong { font-size: 12px; } }

.final-home-screen { gap: 10px; }
.compact-banner { min-height: 84px; padding-top: 12px; padding-bottom: 12px; }
.compact-banner h2 { font-size: 20px; }
.compact-ai-console { padding: 13px; border-radius: 24px; gap: 10px; }
.compact-ai-console .home-ai-orb { width: 50px; height: 50px; border-radius: 17px; }
.compact-ai-console .home-prefix-panel { gap: 6px; }
.compact-ai-console .home-prefix-panel button { padding: 7px 9px; font-size: 12px; }
.compact-ai-console .home-code-row input { min-height: 46px; }
.compact-ai-console .home-ai-button { min-height: 46px; }
.compact-ai-console .home-input-steps button { min-height: 68px; }
.compact-ticker { min-height: 40px; }
.compact-tools-grid a { min-height: 82px; border-radius: 19px; }
.home-posts-card { padding: 13px; border-radius: 22px; background: #151a22; border: 1px solid #252d39; }
.home-posts-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.home-posts-head h3 { margin: 0; font-size: 18px; }
.home-posts-head span { color: #8af0b6; font-size: 12px; font-weight: 1000; }
.home-posts-card article { padding: 10px 0; border-top: 1px solid #26303b; }
.home-posts-card article:first-of-type { border-top: 0; }
.home-posts-card b { display: block; font-size: 14px; }
.home-posts-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

.contribution-form {
  max-width: 760px;
  margin-inline: auto;
}
.contribution-fields {
  display: grid;
  gap: 12px;
}
.contribution-fields textarea {
  min-height: 150px;
  resize: vertical;
}
.contribution-form .train-actions {
  align-items: flex-end;
}
.contribution-form .train-actions small {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 820px) {
  .contribution-form {
    max-width: none;
  }
  .contribution-form .train-actions {
    align-items: stretch;
  }
}

.contribution-fields input[type="file"] {
  padding: 12px;
  border-style: dashed;
  background: rgba(244, 189, 68, .05);
  cursor: pointer;
}
.contribution-image-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
