:root {
  --ink: #17211c;
  --muted: #66716b;
  --paper: #f2f0e8;
  --white: #fff;
  --schwab: #005f83;
  --schwab-dark: #003f58;
  --green: #176345;
  --green-soft: #e7f3ec;
  --blue-soft: #e9f4f8;
  --yellow-soft: #fff5d6;
  --red: #a63e36;
  --red-soft: #fbe8e5;
  --line: #d9dedb;
  --shadow: 0 22px 60px rgba(24, 37, 30, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 95, 131, 0.09), transparent 30rem),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px max(20px, calc((100% - 1180px) / 2));
  color: #e8f1ed;
  background: #153d31;
  font-size: 0.82rem;
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 50px;
  align-items: end;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--schwab);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.intro h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.intro p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.reading-key {
  display: grid;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.sample-en,
.bi-label__en {
  color: #17211c;
  font-weight: 800;
}

.sample-zh,
.bi-label__zh {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}

.reading-key small {
  margin-top: 12px;
  color: var(--muted);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 70px;
}

.real-ticket-link {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 20px;
  padding: 17px 20px;
  color: #eef8f3;
  background: #173f33;
  border-radius: 12px;
}

.real-ticket-link div {
  display: grid;
}

.real-ticket-link b {
  color: #f4d9a7;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.real-ticket-link span {
  font-size: 0.9rem;
}

.real-ticket-link a {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.page-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scrollbar-width: thin;
}

.page-tabs button {
  flex: 0 0 auto;
  padding: 11px 16px;
  color: #425149;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.page-tabs button span {
  display: block;
  font-size: 0.7rem;
}

.page-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--schwab-dark);
  border-color: var(--schwab-dark);
}

.browser-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd5d1;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.browser-chrome {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 15px;
  background: #e8e9e6;
  border-bottom: 1px solid #d1d4d0;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 11px;
  height: 11px;
  background: #c4c9c5;
  border-radius: 50%;
}

.window-dots i:first-child {
  background: #ee6b5f;
}

.window-dots i:nth-child(2) {
  background: #f1bc4e;
}

.window-dots i:last-child {
  background: #62c454;
}

.address {
  overflow: hidden;
  padding: 6px 12px;
  color: #66716b;
  background: #f8f9f7;
  border: 1px solid #daddd9;
  border-radius: 7px;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safe-badge {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
}

.schwab-header {
  display: flex;
  align-items: stretch;
  min-height: 72px;
  color: #fff;
  background: var(--schwab);
}

.schwab-mark {
  display: flex;
  align-items: center;
  padding: 0 26px;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  background: var(--schwab-dark);
}

.schwab-header nav {
  display: flex;
  align-items: stretch;
}

.schwab-header nav span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 118px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  font-weight: 700;
}

.schwab-header nav small {
  color: #cce2ea;
  font-size: 0.7rem;
}

.screen {
  min-height: 600px;
  padding: 26px;
  background: #f6f8f8;
}

.screen-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.screen-title h2 {
  margin: 0;
  color: #19323a;
  font-size: 1.55rem;
}

.screen-title h2 span {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
}

.fake-updated {
  color: var(--muted);
  font-size: 0.75rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric,
.panel {
  padding: 18px;
  background: #fff;
  border: 1px solid #dbe1de;
  border-radius: 9px;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 1.35rem;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.bi-label {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  vertical-align: middle;
}

.bi-label__en {
  font-size: 0.8rem;
}

.bi-label__zh {
  line-height: 1.3;
}

.panel {
  margin-top: 12px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title h3 {
  margin: 0;
  font-size: 1rem;
}

.panel-title h3 span {
  display: block;
  color: var(--green);
  font-size: 0.76rem;
}

.fake-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 14px;
  color: #fff;
  background: var(--schwab);
  border: 0;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

.fake-button small {
  color: #d9eff6;
  font-size: 0.65rem;
}

.fake-button--quiet {
  color: var(--schwab-dark);
  background: #e1f0f5;
}

.fake-button--quiet small {
  color: var(--green);
}

.fake-button--danger {
  min-width: 168px;
  background: var(--red);
}

.fake-button--danger:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.58;
}

.fake-button--danger small {
  color: #ffe8e5;
}

.table-wrap {
  overflow-x: auto;
}

.mock-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mock-table th,
.mock-table td {
  padding: 11px 12px;
  text-align: right;
  border-bottom: 1px solid #e2e6e4;
}

.mock-table th {
  color: #394a42;
  background: #eff3f2;
  vertical-align: bottom;
}

.mock-table th:first-child,
.mock-table td:first-child {
  text-align: left;
}

.mock-table th span {
  display: block;
  color: var(--green);
  font-size: 0.68rem;
}

.mock-table td:first-child b {
  display: block;
  color: var(--schwab);
}

.mock-table td:first-child small {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.fake-field {
  display: grid;
  gap: 7px;
}

.fake-input {
  min-height: 44px;
  padding: 10px 12px;
  color: #48564f;
  background: #fff;
  border: 1px solid #aeb9b4;
  border-radius: 4px;
}

.wide {
  grid-column: 1 / -1;
}

.inline-note {
  margin-top: 15px;
  padding: 12px 14px;
  color: #614c17;
  background: var(--yellow-soft);
  border-left: 4px solid #e1b843;
  font-size: 0.82rem;
}

.review-summary {
  border-top: 1px solid #e2e6e4;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid #e2e6e4;
}

.review-row strong {
  text-align: right;
}

.review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.do-not-submit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 15px 18px;
  color: #783c35;
  background: var(--red-soft);
  border: 1px solid #efc9c4;
  border-radius: 9px;
  font-size: 0.86rem;
}

.do-not-submit b {
  color: var(--red);
}

.qqqm-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.65fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(115deg, var(--schwab-dark), var(--schwab));
  border-radius: 10px;
}

.qqqm-identity h3 {
  margin: 5px 0 0;
  font-family: Georgia, serif;
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 1;
}

.qqqm-identity p {
  margin: 5px 0 0;
  color: #d5ebf2;
}

.fund-type {
  color: #b9dce8;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.qqqm-check {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.qqqm-check span {
  color: #d5ebf2;
  font-size: 0.8rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fact {
  padding: 14px;
  background: #f2f6f4;
  border-radius: 8px;
}

.fact p {
  margin: 8px 0 0;
  color: #53625a;
  font-size: 0.84rem;
  line-height: 1.55;
}

.source-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.source-note a {
  color: var(--schwab);
}

.scenario {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.scenario-value {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--blue-soft);
  border-radius: 8px;
}

.scenario-value strong {
  font-size: 1.05rem;
}

.step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 12px 14px;
  background: #f5f7f6;
  border: 1px solid #e0e5e2;
  border-radius: 8px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--schwab);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 850;
}

.step-item > div {
  display: grid;
  grid-template-columns: minmax(125px, 0.5fr) minmax(160px, 0.7fr) minmax(220px, 1fr);
  gap: 16px;
  align-items: center;
}

.step-item > div > strong {
  font-size: 0.86rem;
}

.step-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.step-item--stop {
  background: var(--red-soft);
  border-color: #efc9c4;
}

.step-item--stop .step-number {
  background: var(--red);
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.status--filled {
  color: var(--green);
  background: var(--green-soft);
}

.status--open {
  color: #765616;
  background: var(--yellow-soft);
}

.status--rejected {
  color: var(--red);
  background: var(--red-soft);
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.line-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.line-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #e5e8e6;
}

.line-list li:last-child {
  border-bottom: 0;
}

.line-list strong {
  text-align: right;
}

.lesson {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 28px;
  margin-top: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.lesson h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.lesson p {
  margin: 0;
  color: var(--muted);
}

.lesson strong {
  color: var(--green);
}

.lesson__warning {
  padding: 12px 14px;
  color: #783c35;
  background: var(--red-soft);
  border-radius: 9px;
  font-size: 0.84rem;
}

.how-to-read {
  margin-top: 54px;
  padding: 28px 32px;
  color: #eef7f2;
  background: #163f32;
  border-radius: 16px;
}

.how-to-read h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 500;
}

.how-to-read ol {
  margin: 0;
  padding-left: 23px;
}

.how-to-read li + li {
  margin-top: 8px;
}

footer {
  padding: 28px 20px 40px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

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

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .schwab-header {
    display: block;
  }

  .schwab-mark {
    min-height: 50px;
  }

  .schwab-header nav {
    overflow-x: auto;
  }

  .schwab-header nav span {
    min-width: 110px;
    min-height: 58px;
  }
}

@media (max-width: 580px) {
  .topbar span {
    display: none;
  }

  .intro,
  main {
    width: min(100% - 20px, 1180px);
  }

  .intro {
    padding-top: 42px;
  }

  .real-ticket-link {
    display: grid;
    width: min(100% - 20px, 1180px);
  }

  .reading-key {
    display: none;
  }

  .browser-chrome {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .safe-badge {
    display: none;
  }

  .schwab-header nav span {
    min-width: 92px;
    padding: 0 12px;
  }

  .screen {
    min-height: 650px;
    padding: 16px 12px;
  }

  .screen-title {
    display: block;
  }

  .fake-updated {
    display: block;
    margin-top: 8px;
  }

  .form-grid,
  .split-panels {
    grid-template-columns: 1fr;
  }

  .qqqm-identity,
  .fact-grid,
  .scenario {
    grid-template-columns: 1fr;
  }

  .step-item > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .review-row,
  .do-not-submit {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .review-row strong {
    text-align: left;
  }

  .review-actions {
    display: grid;
  }

  .wide {
    grid-column: auto;
  }
}
