/* ==========================================================================
   爱股票网 — design system
   ========================================================================== */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #15171a;
  --ink-2: #4d5259;
  --ink-3: #8b9098;
  --line: #e3ded5;
  --line-soft: #efece6;
  --brand: #bc3a2c;
  --brand-dark: #8f2b21;
  --brand-soft: #fbeeea;
  --up: #cf3a2c;
  --down: #0c8a62;
  --flat: #7a7f88;
  --gold: #a8823f;
  --gold-soft: #fbf5e9;
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1200px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

button { font-family: inherit; }

::selection { background: #f3d9d3; }

/* ---------- layout ------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 44px 0; }
.section--tight { padding: 28px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 6px;
}

.section-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-more {
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-more:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- top bar ------------------------------------------------------ */

.topbar {
  background: #16181b;
  color: #b9bdc4;
  font-size: 12px;
  line-height: 1.5;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 34px;
  min-width: 0;
}

.topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9a34a;
  flex: none;
}

.topbar__right {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}
.topbar__right a:hover { color: #fff; }

/* ---------- header -------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.logo__mark {
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo__text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo__suffix {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[data-active="true"] { color: var(--ink); font-weight: 600; border-color: var(--brand); }

.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- search -------------------------------------------------------- */

.search {
  position: relative;
  width: 260px;
  flex: none;
}

.search__input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.search__input::placeholder { color: var(--ink-3); }
.search__input:focus { border-color: #c9c2b6; background: #fff; }

.search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
  display: flex;
}

.search__panel {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(21, 23, 26, 0.12);
  overflow: hidden;
  z-index: 60;
}

.search__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
}
.search__item:hover, .search__item[data-active="true"] { background: var(--surface-2); }
.search__item strong { font-weight: 600; }
.search__item span { color: var(--ink-3); font-size: 12px; }

.search__empty { padding: 14px 12px; font-size: 13px; color: var(--ink-3); }

/* ---------- buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: #c9c2b6; color: var(--ink); }

.btn--dark { background: #1b1e22; color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }

.btn--lg { height: 42px; padding: 0 22px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- hero ---------------------------------------------------------- */

.hero {
  padding: 52px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 300px at 15% -40%, #fdf3ef 0%, rgba(253, 243, 239, 0) 70%),
    transparent;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero__title {
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero__title em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.hero__desc {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.hero__panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.hero__panel-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero__list { display: grid; gap: 12px; }

.hero__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.hero__check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eef7f2;
  color: var(--down);
  display: grid;
  place-items: center;
  font-size: 10px;
  flex: none;
  margin-top: 2px;
  font-weight: 700;
}

.hero__cross {
  background: var(--brand-soft);
  color: var(--brand);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex: none;
  margin-top: 2px;
  font-weight: 700;
}

/* ---------- index strip --------------------------------------------------- */

.index-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.index-card {
  padding: 16px 18px;
  border-right: 1px solid var(--line-soft);
  display: block;
  transition: background 0.15s;
}
.index-card:last-child { border-right: 0; }
.index-card:hover { background: var(--surface-2); }

.index-card__name { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.index-card__value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.index-card__delta {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  display: flex;
  gap: 8px;
}

/* ---------- cards --------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.card--pad { padding: 20px; }

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

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

.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

/* 关键：grid/flex 子项默认 min-width:auto，会被宽表格撑破布局 */
.grid-3 > *,
.grid-2 > *,
.grid-main > *,
.stack > * {
  min-width: 0;
}

.card,
.table-wrap,
.table-scroll {
  min-width: 0;
}

/* ---------- stat blocks --------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: 14px 16px;
}
.stat__label { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.stat__value {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- tables -------------------------------------------------------- */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table thead th {
  text-align: right;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
}

.table thead th:first-child,
.table tbody td:first-child { text-align: left; }
.table thead th.t-left,
.table tbody td.t-left { text-align: left; }

.table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }

.table .num { font-variant-numeric: tabular-nums; }

.code-cell { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.name-cell { font-weight: 500; }

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

/* ---------- change colors -------------------------------------------------- */

.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--flat); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pill--up { background: var(--brand-soft); color: var(--up); }
.pill--down { background: #eaf6f1; color: var(--down); }
.pill--flat { background: #f1f2f4; color: var(--flat); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11.5px;
  background: #f1f2f4;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--brand { background: var(--brand-soft); color: var(--brand); }
.tag--gold { background: var(--gold-soft); color: var(--gold); }
.tag--line { background: transparent; border: 1px solid var(--line); }

/* ---------- rank list ------------------------------------------------------ */

.rank-list { list-style: none; }

.rank-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 72px 74px;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: var(--surface-2); }

.rank-row__idx {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.rank-row__idx[data-top="true"] { color: var(--brand); font-weight: 600; }

.rank-row__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row__name small { color: var(--ink-3); font-weight: 400; margin-left: 5px; font-size: 11px; }
.rank-row__price { text-align: right; font-variant-numeric: tabular-nums; }
.rank-row__pct { text-align: right; font-variant-numeric: tabular-nums; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.card-head h3 { font-size: 14px; font-weight: 600; }
.card-head .hint { font-size: 11.5px; color: var(--ink-3); }

/* ---------- announcements --------------------------------------------------- */

.ann-list { list-style: none; }

.ann-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.ann-item:last-child { border-bottom: 0; }
.ann-item:hover { background: var(--surface-2); }

.ann-item__code { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ann-item__title { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-item__date { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- notices --------------------------------------------------------- */

.notice {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

.notice--soft { border-left-color: var(--gold); background: var(--gold-soft); border-color: #f0e6cf; }
.notice strong { color: var(--ink); font-weight: 600; }

/* ---------- stock page ------------------------------------------------------ */

.crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 20px 0 0;
}

.stock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.stock-head__name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stock-head__name h1 { font-size: 28px; letter-spacing: -0.03em; }
.stock-head__code { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.stock-head__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.stock-head__quote {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.stock-head__price {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stock-head__delta {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  display: flex;
  gap: 10px;
}

/* ---------- chart ----------------------------------------------------------- */

.chart {
  padding: 18px 16px 8px;
}

.chart__legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__swatch { width: 9px; height: 9px; border-radius: 2px; }

.chart__axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* ---------- pricing ---------------------------------------------------------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: #d9cfc0;
  box-shadow: 0 18px 40px -28px rgba(21, 23, 26, 0.55);
  position: relative;
}

.price-card__badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 3px;
}

.price-card__name { font-size: 15px; font-weight: 600; }
.price-card__desc { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; min-height: 36px; }

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 14px 0 2px;
}
.price-card__amount b {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-card__amount span { font-size: 13px; color: var(--ink-3); }

.price-card__list {
  list-style: none;
  margin: 18px 0 22px;
  display: grid;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  flex: 1;
}
.price-card__list li { display: flex; gap: 9px; align-items: flex-start; }
.price-card__list li::before {
  content: "·";
  color: var(--ink-3);
  font-weight: 700;
  flex: none;
}
.price-card__list li.off { color: var(--ink-3); text-decoration: none; }
.price-card__list li.off::before { content: "×"; color: #c9c2b6; font-weight: 400; }

/* ---------- prose (legal / about) ---------------------------------------------- */

.prose {
  max-width: 780px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}
.prose h2 {
  font-size: 18px;
  color: var(--ink);
  margin: 34px 0 10px;
  padding-top: 8px;
  letter-spacing: -0.01em;
}
.prose h3 { font-size: 15px; color: var(--ink); margin: 22px 0 8px; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { margin: 10px 0 10px 20px; }
.prose li { margin: 5px 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand); border-bottom: 1px solid #edcfc9; }
.prose code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: #f1f0ec;
  padding: 1px 5px;
  border-radius: 3px;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

.page-head {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--line);
}
.page-head__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 10px;
}
.page-head h1 { font-size: 32px; letter-spacing: -0.03em; }
.page-head p { margin-top: 10px; color: var(--ink-2); font-size: 14px; max-width: 720px; }

/* ---------- footer -------------------------------------------------------------- */

.footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 0 30px;
  font-size: 13px;
  color: var(--ink-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

.footer__brand p { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.75; max-width: 340px; }

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer__links { display: grid; gap: 8px; font-size: 13px; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--brand); }

.footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
}

.disclaimer-strip {
  background: #faf7f2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.8;
  padding: 14px 0;
}

/* ---------- pagination --------------------------------------------------------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 22px 0 0;
  font-size: 13px;
}
.pager a, .pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: #c9c2b6; color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- chips / filters ------------------------------------------------------ */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: #c9c2b6; color: var(--ink); }
.chip[data-active="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- misc ------------------------------------------------------------------ */

.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.tabular { font-variant-numeric: tabular-nums; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
}

.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }

.link-underline { border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.link-underline:hover { border-color: var(--brand); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- responsive -------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-main { grid-template-columns: 1fr; }
  .index-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index-card:nth-child(3) { border-right: 0; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .container { padding: 0 18px; }
  .nav { display: none; }
  .search { width: 160px; }
  .hero__title { font-size: 30px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .index-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-card:nth-child(2n) { border-right: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ann-item { grid-template-columns: 1fr; gap: 2px; }
  .ann-item__title { white-space: normal; }
  .ann-item__date { display: none; }
  .stock-head__price { font-size: 30px; }
  .topbar__right { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .search { display: none; }
  .hero { padding: 34px 0 24px; }
  .hero__title { font-size: 26px; }
  .section { padding: 30px 0; }
  .page-head h1 { font-size: 25px; }
}

/* ---------- 全站公告条（后台可配） ---------- */
.site-notice {
  background: #1b1e22;
  color: #f2d9a8;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.6;
}
.site-notice--warn { background: #7a2a22; color: #ffe8e3; }
