:root {
  --ink: #32373a;
  --muted: #70777c;
  --brand: #2f6f73;
  --brand-dark: #1f5558;
  --brand-soft: #e9f3ef;
  --warm: #f0b870;
  --warm-soft: #fff8e8;
  --line: #e5e7eb;
  --warn: #946200;
  --risk: #9b1c1c;
  --white: #fff;
  --shadow: 0 16px 50px rgba(45, 55, 60, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(135, 216, 207, 0.18), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(240, 184, 112, 0.16), transparent 26%),
    #fbfaf7;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  font-size: 15.5px;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 60px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--brand-dark);
}
.brand-logo img {
  display: block;
  width: 142px;
  height: auto;
}
nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
nav a {
  position: relative;
  padding: 7px 11px;
  border-radius: 999px;
  transition: 0.18s ease;
}
nav a:hover {
  color: var(--brand-dark);
  background: rgba(233, 243, 239, 0.72);
}
nav a.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 115, 0.1);
}
nav a.active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--warm);
  vertical-align: 1px;
}
main { min-height: calc(100vh - 150px); }
.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}
.hero {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 32px;
  align-items: center;
  padding: 54px 0 34px;
}
.hero-card, .card {
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-copy { padding: 24px 0; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e9f3ef;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}
h1, h2, h3 { line-height: 1.28; margin: 0 0 14px; }
h1 { font-size: clamp(31px, 4.8vw, 50px); letter-spacing: -0.032em; font-weight: 760; }
h2 { font-size: clamp(23px, 3vw, 32px); margin-top: 28px; font-weight: 740; }
h3 { font-size: 18px; margin-top: 18px; font-weight: 720; }
h4 { margin: 0 0 8px; font-size: 16px; line-height: 1.38; font-weight: 720; }
p { margin: 0 0 12px; }
.lead { color: #4a5559; font-size: 17px; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
button, .button {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(180deg, #358287 0%, var(--brand) 58%, #245d61 100%);
  color: white;
  font-size: 16px;
  font-weight: 680;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow:
    0 12px 22px rgba(31, 85, 88, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
button:hover, .button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #2f777b 0%, var(--brand-dark) 100%);
  box-shadow:
    0 16px 28px rgba(31, 85, 88, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
button:active, .button:active {
  transform: translateY(1px);
  box-shadow:
    0 6px 14px rgba(31, 85, 88, 0.18),
    inset 0 2px 4px rgba(0, 0, 0, 0.12);
}
.button.secondary, button.secondary {
  background: linear-gradient(180deg, #ffffff 0%, #edf6f3 100%);
  color: var(--brand-dark);
  border: 1px solid #c8ddd8;
  box-shadow:
    0 10px 20px rgba(47, 111, 115, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.button.secondary:hover, button.secondary:hover {
  background: linear-gradient(180deg, #f8fffc 0%, #dfeeea 100%);
  color: var(--brand-dark);
}
.button.ghost, button.ghost {
  background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  color: var(--brand-dark);
  border: 1px solid #cddbd6;
  box-shadow:
    0 8px 18px rgba(45, 55, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.link-button {
  background: transparent;
  color: var(--brand-dark);
  padding: 0;
  font-size: inherit;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.link-button:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
}
.hero-card { padding: 28px; }
.hero-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
  margin: 0 auto 22px;
}
.brand-note {
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.hero-visual-card {
  position: relative;
  overflow: hidden;
}
.hero-visual-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -48px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(135, 216, 207, 0.18);
}
.hero-illustration {
  display: block;
  width: min(300px, 100%);
  height: auto;
  margin: 8px auto 20px;
  border-radius: 28px;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 22px;
  align-items: center;
}
.section-head h2 { margin-top: 0; }
.section-illustration {
  width: 100%;
  max-width: 260px;
  justify-self: end;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(25, 50, 74, 0.06);
}
.section-illustration-large {
  max-width: 300px;
}
.faq-hero-panel {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 22px 0 8px;
  padding: 22px;
  border: 1px solid rgba(185, 221, 213, 0.9);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(243, 251, 248, 0.96), rgba(255, 248, 232, 0.82)),
    #fff;
}
.faq-hero-panel img {
  display: block;
  width: 100%;
  max-width: 320px;
  border-radius: 26px;
  box-shadow: 0 14px 36px rgba(45, 55, 60, 0.07);
}
.faq-hero-panel h2 {
  margin-top: 0;
}
.faq-hero-panel p {
  color: #565f63;
}
.faq-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.faq-hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 680;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 115, 0.12);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.choice-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfa 100%);
}
.choice-card img {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  object-fit: cover;
}
.choice-card h3 { margin-top: 0; }
.choice-card p { color: var(--muted); }
.field-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.inline-other {
  display: none;
  margin-top: 10px;
}
.inline-other.visible {
  display: block;
}
.option-other-field {
  grid-column: 1 / -1;
}
.mini-card.visual {
  position: relative;
  overflow: hidden;
  min-height: 150px;
}
.mini-card.visual::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  right: -18px;
  bottom: -18px;
  border-radius: 50%;
  background: rgba(135, 216, 207, 0.16);
}
.beta-gate {
  width: min(720px, 100%);
  margin: 30px auto 0;
  padding: 34px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  box-shadow: var(--shadow);
}
.beta-gate h1 {
  font-size: clamp(30px, 5vw, 48px);
}
.beta-gate-card {
  margin: 24px 0 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.beta-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 10px;
}
.beta-code-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}
.beta-code-row input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 111, 115, 0.12);
}
.beta-error {
  min-height: 26px;
  margin: 10px 0 0;
  color: var(--risk);
}
.hero-card ul, .content-list { padding-left: 20px; }
.section-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.mini-card, .result-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.mini-card p, .result-card p { color: #5a6368; }
.card { padding: clamp(20px, 4vw, 34px); margin: 18px 0; }
.notice {
  padding: 16px 18px;
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  background: #f1f7f5;
  color: #264653;
}
.notice.warn { border-left-color: var(--warn); background: #fff8e8; }
.notice.risk { border-left-color: var(--risk); background: #fff1f1; }
.detail-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin-top: 10px;
}
.detail-grid div {
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}
label { display: block; margin: 16px 0 6px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.question { padding: 20px 0; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: 0; }
.scale, .risk-options { display: grid; gap: 10px; margin-top: 12px; }
.scale { grid-template-columns: repeat(5, 1fr); }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}
.option input { display: none; }
.option.selected {
  border-color: var(--brand);
  background: #e9f3ef;
  color: var(--brand-dark);
  font-weight: 720;
}
.risk-options .option { justify-content: flex-start; text-align: left; }
.dimension-bars { display: grid; gap: 12px; margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 42px; gap: 10px; align-items: center; }
.bar { height: 12px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.result-type {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e9f3ef;
  color: var(--brand-dark);
  font-weight: 800;
}
.result-type.risk { background: #fff1f1; color: var(--risk); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th { background: #f3f6f5; color: #334155; white-space: nowrap; }
.pill {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef4f1;
  color: var(--brand-dark);
  font-weight: 680;
  white-space: nowrap;
}
.pill.risk { background: #fff1f1; color: var(--risk); }
.danger-row { background: #fffafa; }
.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.small-button {
  padding: 7px 11px;
  font-size: 13px;
}
.assistant-intro-card { max-width: 920px; margin-inline: auto; }
.assistant-intro-card .section-head {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
}
.assistant-intro-card .section-illustration {
  max-width: 220px;
}
.assistant-feature-grid { margin-bottom: 24px; }
.assistant-quota-notice {
  position: relative;
  margin: 18px 0 22px;
  padding: 18px 20px 18px 58px;
  border: 1px solid #b8ddd5;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef9f6 0%, #fffaf0 100%);
  box-shadow: 0 12px 28px rgba(35, 111, 101, 0.08);
  color: var(--ink);
}
.assistant-quota-notice::before {
  content: "✓";
  position: absolute;
  left: 20px;
  top: 19px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 800;
}
.assistant-quota-notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 16px;
}
.assistant-quota-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.assistant-quota-table {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}
.quota-row {
  display: grid;
  grid-template-columns: 110px 80px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(35, 111, 101, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}
.quota-row strong { color: var(--brand-dark); }
.quota-row span:nth-child(2) {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--brand-dark);
  font-weight: 760;
}
.quota-row span:last-child { color: var(--muted); }
.assistant-quota-status {
  display: grid;
  gap: 8px;
  padding: 12px 22px;
  border-top: 1px solid rgba(35, 111, 101, 0.12);
  background: #f0f8f6;
  color: var(--brand-dark);
  font-size: 13px;
}
.quota-status-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.quota-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9ebe7;
}
.quota-bar span {
  display: block;
  height: 100%;
  width: var(--quota-percent, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #f0b45a);
}
.assistant-quota-status.warn {
  background: #fff8e8;
  color: #775b14;
}
.role-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.role-card {
  display: grid;
  gap: 7px;
  text-align: left;
  margin: 0;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.role-card span { color: var(--muted); font-weight: 400; }
.role-card.selected { border-color: var(--brand); background: #f1f7f5; }
.role-card:hover { background: #f1f7f5; color: var(--ink); }
.consent-copy { margin-top: 18px; }
.assistant-shell {
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f5f7f6;
  box-shadow: var(--shadow);
}
.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.assistant-identity { display: flex; align-items: center; gap: 14px; }
.assistant-identity img { width: 112px; height: auto; }
.assistant-identity div { display: grid; gap: 2px; }
.assistant-identity span { color: var(--muted); font-size: 13px; }
.assistant-boundary {
  padding: 10px 22px;
  background: #fff8e8;
  color: #775b14;
  font-size: 13px;
}
.chat-log {
  display: grid;
  gap: 18px;
  min-height: 330px;
  max-height: 560px;
  overflow-y: auto;
  padding: 24px;
}
.chat-row { display: flex; align-items: flex-start; gap: 10px; }
.chat-row.user { justify-content: flex-end; }
.chat-avatar {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 800;
}
.chat-response { max-width: min(680px, calc(100% - 44px)); }
.chat-bubble {
  max-width: min(680px, 86%);
  padding: 14px 16px;
  border-radius: 6px 18px 18px 18px;
  background: white;
  box-shadow: 0 4px 16px rgba(28, 54, 47, 0.06);
  white-space: pre-wrap;
}
.chat-row.user .chat-bubble {
  border-radius: 18px 6px 18px 18px;
  background: var(--brand);
  color: white;
}
.chat-bubble.warn { border: 1px solid #edd38b; background: #fff8e8; }
.chat-bubble.risk { border: 1px solid #eaa2a2; background: #fff1f1; }
.chat-bubble.thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.thinking-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d7e7e3;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: xsy-spin 0.9s linear infinite;
}
.thinking-dots {
  display: inline-flex;
  gap: 3px;
}
.thinking-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  animation: xsy-dot 1.1s ease-in-out infinite;
}
.thinking-dots i:nth-child(2) { animation-delay: 0.15s; }
.thinking-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes xsy-spin { to { transform: rotate(360deg); } }
@keyframes xsy-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.quick-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 22px 16px;
}
.prompt-chip, .feedback-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #cddbd6;
  background: white;
  color: var(--brand-dark);
  font-size: 13px;
}
.assistant-composer {
  padding: 18px 22px 20px;
  border-top: 1px solid var(--line);
  background: white;
}
.assistant-composer label { margin-top: 0; }
.assistant-composer textarea { min-height: 88px; }
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}
.composer-footer .muted { font-size: 13px; }
.test-routing { margin: 8px 4px 0; color: var(--muted); font-size: 13px; }
.test-routing summary { cursor: pointer; }
.test-routing div { padding: 10px 0 2px; }
.test-routing p { margin-top: 8px; }
.assistant-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.feedback-chip { padding: 6px 10px; }
.feedback-chip.selected { background: var(--brand); color: white; }
.assistant-footer-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 0 22px 18px;
}
.faq-category-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.faq-category-card {
  padding: 22px;
  border: 1px solid rgba(185, 221, 213, 0.85);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.96)),
    radial-gradient(circle at 92% 6%, rgba(240, 184, 112, 0.18), transparent 32%);
  box-shadow: 0 12px 34px rgba(25, 50, 74, 0.045);
}
.faq-category-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.faq-category-head h3 {
  margin-top: 0;
  margin-bottom: 6px;
}
.faq-category-head p {
  margin-bottom: 0;
  color: var(--muted);
}
.faq-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 115, 0.12);
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.faq-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 18px;
  background: white;
}
.faq-item-illus {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--brand-soft);
}
.faq-item p {
  margin-bottom: 0;
  color: #5a6368;
  font-size: 14.5px;
  line-height: 1.72;
}
.tool-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.tool-filter {
  padding: 9px 14px;
  border: 1px solid #cddbd6;
  background: white;
  color: var(--brand-dark);
  font-size: 14px;
}
.tool-filter.selected {
  background: var(--brand);
  color: white;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 34px rgba(25, 50, 74, 0.06);
}
.tool-card[hidden] { display: none; }
.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tool-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9f3ef;
  color: var(--brand-dark);
  font-weight: 900;
}
.tool-price {
  color: var(--warn);
  font-weight: 800;
}
.tool-price.free {
  padding: 3px 9px;
  border-radius: 999px;
  background: #e9f3ef;
  color: var(--brand-dark);
}
.tool-stage {
  margin-bottom: 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}
.tool-card h3 { margin-top: 0; }
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.tool-actions .button { display: inline-flex; align-items: center; }
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.reader-head h1 { font-size: clamp(28px, 4.5vw, 48px); }
.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.reader-shell {
  position: relative;
  min-height: 720px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pdf-reader {
  width: 100%;
  min-height: 780px;
  border: 0;
  background: white;
}
.reader-watermark {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(31, 85, 88, 0.11);
  font-size: clamp(22px, 4vw, 44px);
  font-weight: 900;
  transform: rotate(-18deg);
  text-align: center;
}
.member-hero h1, .member-login-card h1 { font-size: clamp(30px, 5vw, 52px); }
.membership-hero h1 { font-size: clamp(32px, 5.4vw, 58px); }
.membership-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0;
}
.membership-plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
  box-shadow: 0 12px 26px rgba(25, 74, 76, 0.06);
}
.plan-card-head h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}
.plan-price {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
}
.membership-plan-card ul {
  margin: 0;
  padding-left: 20px;
}
.membership-plan-card li {
  margin: 6px 0;
  color: var(--text);
}
.plan-boundary {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}
.membership-path {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.path-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.path-step > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e9f3ef;
  color: var(--brand-dark);
  font-weight: 900;
}
.path-step h3 { margin-top: 0; margin-bottom: 4px; }
.path-step p { margin-bottom: 0; color: var(--muted); }
.member-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.member-manual-list, .scene-record-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.activity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.activity-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.activity-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.activity-card h3 { margin-top: 0; }
.activity-card ul {
  padding-left: 20px;
  margin: 10px 0 14px;
}
.member-manual-row, .scene-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.member-manual-row p, .scene-record-item p { margin-bottom: 0; }
.member-manual-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
}
.profile-hero-copy { min-width: 0; }
.profile-photo-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}
.profile-photo-card img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 18px;
}
.profile-photo-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.credential-gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
  margin: 22px 0 18px;
}
.credential-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}
.credential-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 14px;
  background: #f7f4ee;
}
.credential-card figcaption {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.credential-card figcaption strong {
  color: var(--ink);
  font-size: 15px;
}
.copyright-preview {
  margin: 8px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.copyright-preview img {
  display: block;
  width: 100%;
  border-radius: 14px;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 18px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.site-footer a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
}
.public-security-record {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.public-security-record img {
  display: block;
  width: 18px;
  height: 20px;
  object-fit: contain;
}
@media (max-width: 800px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { gap: 6px; font-size: 13px; }
  nav a { padding: 6px 9px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .section-head, .choice-grid { grid-template-columns: 1fr; }
  .section-illustration { justify-self: start; max-width: 220px; }
  .assistant-intro-card .section-head {
    grid-template-columns: 1fr;
  }
  .assistant-intro-card h1 {
    font-size: clamp(28px, 8vw, 38px);
    letter-spacing: -0.02em;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .assistant-intro-card .section-illustration {
    justify-self: center;
    width: min(220px, 76vw);
    max-width: 220px;
    margin-top: 4px;
  }
  .assistant-quota-notice {
    padding: 16px 16px 16px 52px;
  }
  .assistant-quota-table {
    gap: 8px;
  }
  .quota-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .quota-row span:nth-child(2) {
    justify-self: start;
  }
  .faq-hero-panel { grid-template-columns: 1fr; padding: 18px; }
  .faq-hero-panel img { max-width: 260px; }
  .choice-card { grid-template-columns: 64px 1fr; }
  .choice-card img { width: 64px; height: 64px; }
  .section-grid, .form-row { grid-template-columns: 1fr; }
  .section-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
  }
  .section-grid > * {
    flex: 0 0 min(86%, 340px);
    scroll-snap-align: start;
  }
  .scale { grid-template-columns: repeat(5, minmax(44px, 1fr)); }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .bar-row { grid-template-columns: 96px 1fr 36px; font-size: 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .role-options { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .membership-plan-grid { grid-template-columns: 1fr; }
  .membership-rights-grid { grid-template-columns: 1fr; }
  .path-step { grid-template-columns: 48px 1fr; }
  .member-status-grid { grid-template-columns: 1fr; }
  .activity-list { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-photo-card { order: -1; }
  .profile-photo-card img { max-height: 520px; }
  .credential-gallery { grid-template-columns: 1fr; }
  .member-manual-row, .scene-record-item { align-items: flex-start; flex-direction: column; }
  .member-manual-actions { justify-content: flex-start; }
  .beta-gate { padding: 24px 18px; }
  .beta-code-row { grid-template-columns: 1fr; }
  .reader-shell, .pdf-reader { min-height: 620px; }
  .assistant-header, .composer-footer { align-items: stretch; flex-direction: column; }
  .assistant-header .small-button { align-self: flex-start; }
  .assistant-identity img { width: 96px; }
  .chat-log { padding: 18px 14px; }
  .chat-bubble { max-width: 92%; }
  .chat-response { max-width: calc(100% - 44px); }
  .faq-list { grid-template-columns: 1fr; }
  .faq-category-card { padding: 18px; }
  .faq-category-head { grid-template-columns: 42px 1fr; }
  .faq-icon { width: 42px; height: 42px; border-radius: 15px; }
  .faq-item { grid-template-columns: 46px 1fr; }
  .faq-item-illus { width: 46px; height: 46px; border-radius: 14px; }
  .quick-prompts, .assistant-composer { padding-left: 14px; padding-right: 14px; }
  .composer-footer button { width: 100%; }
}
