/* ==========================================================================
   CITIC Futures International — Mobile H5 Design System
   Brand: #C6171F · Ink #15130F · Paper #F7F5F1
   ========================================================================== */

:root {
  /* contract tokens */
  --color-primary: #c6171f;
  --color-primary-hover: #9c1017;
  --color-background: #f7f5f1;
  --color-surface: #ffffff;
  --color-text: #15130f;
  --color-muted-text: #726c66;
  --color-border: #e7e3dd;
  --color-focus: #c6171f;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Source Han Sans CN",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Helvetica Neue", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-sm: 2px;
  --radius-md: 4px;
  --space-unit: 4px;
  --content-width: 480px;

  /* brand aliases */
  --red: #c6171f;
  --red-dk: #9c1017;
  --red-soft: rgba(198, 23, 31, 0.07);
  --ink: #15130f;
  --ink-2: #2b2723;
  --ink-3: #4a443e;
  --grey: #726c66;
  --grey-2: #9a948d;
  --line: #e7e3dd;
  --line-2: #f0ede8;
  --bg: #f7f5f1;
  --surface: #ffffff;
  --up: #1a7f4b;
  --down: #c6171f;
  --radius: 4px;
  --radius-lg: 8px;
  --nav-h: 56px;
  --tab-h: 62px;
  --content: 480px;
  --shadow-1: 0 1px 2px rgba(21, 19, 15, 0.04), 0 10px 26px -14px rgba(21, 19, 15, 0.14);
  --shadow-2: 0 2px 6px rgba(21, 19, 15, 0.06), 0 20px 44px -22px rgba(21, 19, 15, 0.24);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Source Han Sans CN",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0 auto;
  max-width: var(--content);
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.has-tabbar {
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

main {
  display: block;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--nav-h);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.app-header .brand img {
  width: 118px;
  height: auto;
}

.app-header .brand .brand-div {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.app-header .brand .brand-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-2);
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.icon-btn:active {
  background: var(--line-2);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Market ticker
   -------------------------------------------------------------------------- */

.ticker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  height: 40px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.ticker .ticker-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  height: 100%;
  padding: 0 10px 0 14px;
  background: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.ticker .ticker-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(198, 23, 31, 0.25);
}

.ticker .ticker-rail {
  position: relative;
  flex: 1;
  overflow: hidden;
  height: 100%;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 20px), transparent 100%);
}

.ticker .ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:active .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker .tick {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 14px;
  font-size: 12px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker .tick b {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ticker .tick .tick-p {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.86);
}

.ticker .tick .tick-c {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ticker .tick .tick-c.up {
  color: #ff8a8f;
}

.ticker .tick .tick-c.down {
  color: #63d6a0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 372px;
  padding: 0 20px 26px;
  color: #fff;
  background-color: #171210;
  background-image: radial-gradient(120% 90% at 88% -8%, rgba(198, 23, 31, 0.5) 0%, rgba(198, 23, 31, 0) 58%),
    linear-gradient(158deg, #1d1714 0%, #251c17 52%, #0f0b09 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  right: -104px;
  top: -108px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.022), 0 0 0 88px rgba(255, 255, 255, 0.012);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 34%, rgba(198, 23, 31, 0) 100%);
}

.hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.hero .hero-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-size: 22px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero h1 em {
  font-style: normal;
  color: #ff6b70;
}

.hero .hero-sub {
  margin-top: 12px;
  max-width: 30em;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
}

.hero .hero-facts {
  display: flex;
  gap: 22px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .hero-facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero .hero-facts b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.hero .hero-facts span {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */

.section {
  padding: 26px 16px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head h2::before {
  content: "";
  width: 3px;
  height: 15px;
  background: var(--red);
  border-radius: 1px;
}

.section-head .more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  color: var(--grey);
  white-space: nowrap;
}

.section-head .more svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.section-note {
  margin: -6px 0 14px;
  font-size: 12.5px;
  color: var(--grey-2);
}

/* --------------------------------------------------------------------------
   Entry grid
   -------------------------------------------------------------------------- */

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 16px 0;
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  padding: 14px 14px 13px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  transition: transform 0.16s var(--ease);
}

.entry:active {
  transform: scale(0.978);
}

.entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
}

.entry::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.entry .entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.entry .entry-ico {
  width: 26px;
  height: 26px;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry .entry-idx {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.34);
  font-variant-numeric: tabular-nums;
}

.entry .entry-name {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.entry .entry-meta {
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease);
}

a.card:active {
  transform: scale(0.99);
  box-shadow: var(--shadow-1);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 7, 0) 42%, rgba(10, 8, 7, 0.68) 100%);
}

.card-media .media-tag {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border-radius: 2px;
}

.card-media .media-dur {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  padding: 2px 7px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(12, 10, 9, 0.72);
  border-radius: 2px;
}

.card-media .play-fab {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
}

.card-media .play-fab::after {
  content: "";
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}

.card-body {
  padding: 13px 14px 15px;
}

.card-body h3 {
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-body .card-sub {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--grey);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  font-size: 11.5px;
  color: var(--grey-2);
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* Feature card (home hero report) */
.feature {
  position: relative;
  display: block;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(152deg, #221c18 0%, #17120f 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.feature::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -84px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 23, 31, 0.5) 0%, rgba(198, 23, 31, 0) 70%);
}

.feature .feat-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8a8f;
}

.feature .feat-kicker .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff8a8f;
}

.feature h3 {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.feature .feat-zh {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.feature .feat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

.feature .feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #fff;
}

.feature .feat-cta svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --------------------------------------------------------------------------
   Horizontal scroller
   -------------------------------------------------------------------------- */

.hscroll {
  display: flex;
  gap: 12px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.hscroll > * {
  flex: 0 0 auto;
  width: 232px;
  scroll-snap-align: start;
}

/* compact quote cards */
.hscroll > .mini-card {
  width: 124px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 13px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}

.mini-card .mc-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--red);
}

.mini-card .mc-name {
  font-size: 12.5px;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-card .mc-price {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.mini-card .mc-chg {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mini-card .mc-chg.up {
  color: var(--up);
}

.mini-card .mc-chg.down {
  color: var(--down);
}

/* --------------------------------------------------------------------------
   List rows
   -------------------------------------------------------------------------- */

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
}

.row {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.16s var(--ease), border-color 0.18s var(--ease);
}

.row:active {
  transform: scale(0.99);
  border-color: #d8d2ca;
}

.row .thumb {
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ink);
}

.row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row .thumb.wide {
  width: 104px;
  aspect-ratio: 16 / 10;
}

.row .item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.row .item-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.row .item-body h3 {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row .item-body h3 .zh {
  display: block;
  margin-top: 3px;
  font-weight: 400;
  font-size: 12px;
  color: var(--grey-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.row .item-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  color: var(--grey-2);
}

.row .item-foot .sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

/* tag / badge */
.tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 2px;
  white-space: nowrap;
}

.tag.grey {
  color: var(--grey);
  background: #f1efeb;
}

.tag.dark {
  color: #fff;
  background: var(--ink-2);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  color: var(--ink-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Page head (list pages)
   -------------------------------------------------------------------------- */

.page-head {
  padding: 22px 16px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-head .ph-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.page-head .ph-kicker::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--red);
}

.page-head h1 {
  margin-top: 9px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-head .ph-desc {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey);
}

.page-head .ph-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

.page-head .ph-stats div {
  display: flex;
  flex-direction: column;
}

.page-head .ph-stats b {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.page-head .ph-stats span {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-2);
  text-align: center;
}

/* back bar */
.page-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 10px 0 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.page-bar .bar-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-bar .bar-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 8px;
  font-size: 12.5px;
  color: var(--red);
  background: none;
  border: 0;
  cursor: pointer;
}

.page-bar .bar-action svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Segmented control / chips
   -------------------------------------------------------------------------- */

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #efece7;
  border-radius: 999px;
}

.seg button {
  flex: 1;
  height: 32px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--grey);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.seg button[aria-selected="true"] {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(21, 19, 15, 0.1);
}

.toolbar {
  position: sticky;
  top: 52px;
  z-index: 25;
  padding: 10px 16px;
  background: rgba(247, 245, 241, 0.96);
  backdrop-filter: blur(10px);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-field svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke: var(--grey-2);
  stroke-width: 1.8;
  fill: none;
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: 0;
  outline: none;
}

.search-field input::placeholder {
  color: var(--grey-2);
}

.search-field .clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  color: var(--grey);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.search-field.has-value .clear {
  display: flex;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.14s var(--ease), background 0.18s var(--ease), opacity 0.18s;
}

.btn:active {
  transform: scale(0.985);
}

.btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  color: #fff;
  background: var(--red);
}

.btn-primary:active {
  background: var(--red-dk);
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn-dark {
  color: #fff;
  background: var(--ink);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn[disabled] {
  color: var(--grey-2);
  background: #efece7;
  border-color: transparent;
  cursor: not-allowed;
}

.action-row {
  display: flex;
  gap: 10px;
  padding: 16px;
}

.action-row .btn {
  flex: 1;
  height: 46px;
  padding: 0 10px;
  font-size: 14px;
  white-space: nowrap;
}

.action-row .btn-ghost {
  flex: 0 0 42%;
}

/* --------------------------------------------------------------------------
   Article / detail
   -------------------------------------------------------------------------- */

.article-head {
  padding: 22px 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.article-head .a-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.article-head h1 {
  font-size: 24px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-head .a-zh {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-3);
}

.article-head .a-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--grey-2);
}

.article-head .a-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.product-hero .a-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--grey-2);
}

.product-hero .a-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.byline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line-2);
}

.byline .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.byline .by-name {
  font-size: 13.5px;
  font-weight: 650;
}

.byline .by-role {
  font-size: 11.5px;
  color: var(--grey-2);
}

.article-body {
  padding: 22px 16px 8px;
  background: var(--surface);
}

.article-body p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

.article-body h2 {
  margin: 26px 0 12px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.article-body ul.bullets {
  margin: 0 0 18px;
  padding: 0;
}

.article-body ul.bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.article-body ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.article-body .lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 500;
}

.article-body blockquote {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--bg);
  border-left: 3px solid var(--red);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

.summary-box {
  margin: 0 16px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-box .sb-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.summary-box p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* share bar */
.share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 16px 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.share-bar .sb-label {
  font-size: 12px;
  color: var(--grey);
}

.share-bar .sb-actions {
  display: flex;
  gap: 6px;
}

.share-bar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.share-bar button:active {
  background: var(--line-2);
}

.share-bar button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* spec list */
.spec-list {
  margin: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-list .spec-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-2);
}

.spec-list .spec-row:last-child {
  border-bottom: 0;
}

.spec-list .spec-row dt {
  flex: 0 0 40%;
  color: var(--grey);
  font-size: 12.5px;
}

.spec-list .spec-row dd {
  flex: 1;
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Player
   -------------------------------------------------------------------------- */

.player {
  position: relative;
  background: #0b0908;
  overflow: hidden;
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0908;
  object-fit: contain;
}

.player .player-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(198, 23, 31, 0.92);
  border-radius: 2px;
  pointer-events: none;
}

.video-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--grey);
}

.video-meta-bar .vmb-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Event
   -------------------------------------------------------------------------- */

.event-hero {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.event-hero .poster {
  flex: 0 0 auto;
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ink);
}

.event-hero .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero .eh-body {
  flex: 1;
  min-width: 0;
}

.event-hero h1 {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.event-hero .eh-when {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--grey);
}

.event-hero .eh-when svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  flex: 0 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.open {
  color: #fff;
  background: var(--red);
}

.status-pill.open::before {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.status-pill.ended {
  color: var(--grey);
  background: #f1efeb;
}

/* --------------------------------------------------------------------------
   Product
   -------------------------------------------------------------------------- */

.product-hero {
  position: relative;
  padding: 22px 16px 20px;
  background: linear-gradient(158deg, #1d1714 0%, #120e0c 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.product-hero::before {
  content: attr(data-mark);
  position: absolute;
  right: 8px;
  top: -18px;
  font-size: 108px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.045);
  line-height: 1;
  pointer-events: none;
}

.product-hero .ph-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8a8f;
}

.product-hero h1 {
  margin-top: 10px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-hero .prod-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
}

.product-hero .prod-price b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.product-hero .prod-price .chg {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.product-hero .chg.up {
  color: #ff8a8f;
}

.product-hero .chg.down {
  color: #63d6a0;
}

.product-hero .prod-sub {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.product-hero .badges {
  margin-top: 14px;
}

.product-hero .badge {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.chg.up {
  color: var(--up);
}

.chg.down {
  color: var(--down);
}

.chg.flat {
  color: var(--grey);
}

/* product row */
.prow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.15s var(--ease), border-color 0.18s;
}

.prow:active {
  transform: scale(0.99);
  border-color: #d8d2ca;
}

.prow .pr-code {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prow .pr-body {
  flex: 1;
  min-width: 0;
}

.prow .pr-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prow .pr-sub {
  margin-top: 3px;
  font-size: 11px;
  color: var(--grey-2);
  font-variant-numeric: tabular-nums;
}

.prow .pr-quote {
  flex: 0 0 auto;
  text-align: right;
}

.prow .pr-price {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.prow .pr-chg {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 16px 10px;
}

.group-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.group-head h2 .cnt {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-2);
  font-variant-numeric: tabular-nums;
}

.group-head .gh-note {
  font-size: 11px;
  color: var(--grey-2);
}

/* chart */
.chart-box {
  margin: 0 16px;
  padding: 16px 14px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chart-box .cb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.chart-box .cb-title {
  font-size: 12.5px;
  font-weight: 650;
}

.chart-box .cb-range {
  display: flex;
  gap: 4px;
}

.chart-box .cb-range button {
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
  background: none;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}

.chart-box .cb-range button[aria-selected="true"] {
  color: #fff;
  background: var(--ink);
}

.chart-box svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-box .cb-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--grey-2);
  font-variant-numeric: tabular-nums;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0 16px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.quote-grid div {
  padding: 12px 14px;
  background: var(--surface);
}

.quote-grid .qk {
  font-size: 11px;
  color: var(--grey-2);
  letter-spacing: 0.02em;
}

.quote-grid .qv {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  margin: 0 16px;
  padding: 18px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field {
  margin-bottom: 15px;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.field label .req {
  color: var(--red);
  margin-left: 2px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 108px;
  line-height: 1.65;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--grey-2);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  background: #fff;
  border-color: var(--ink-3);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--red);
  background: rgba(198, 23, 31, 0.03);
}

.field .err {
  display: none;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--red);
}

.field.invalid .err {
  display: block;
}

.field-row {
  display: flex;
  gap: 10px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

.choice-row {
  display: flex;
  gap: 8px;
}

.choice-row label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row input:checked + span {
  color: var(--red);
}

.choice-row label:has(input:checked) {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(198, 23, 31, 0.4);
}

.form-note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--grey-2);
}

/* success panel */
.success-panel {
  display: none;
  padding: 12px 20px 42px;
  text-align: center;
}

.success-panel.show {
  display: block;
  animation: rise 0.4s var(--ease);
}

.success-panel .sp-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}

.success-panel .sp-ico svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-panel h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.success-panel p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--grey);
}

.success-panel .sp-ref {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Sheet (bottom modal)
   -------------------------------------------------------------------------- */

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(14, 11, 9, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

.sheet-mask.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: 100%;
  max-width: var(--content);
  max-height: 88vh;
  overflow-y: auto;
  padding: 8px 0 calc(20px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}

.sheet-mask.open .sheet {
  transform: translateY(0);
}

.sheet .sheet-grip {
  width: 38px;
  height: 4px;
  margin: 6px auto 4px;
  border-radius: 2px;
  background: var(--line);
}

.sheet .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 18px 4px;
}

.sheet .sheet-head h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sheet .sheet-body {
  padding: 12px 0 0;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: 80vw;
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  background: rgba(21, 19, 15, 0.94);
  border-radius: 6px;
  box-shadow: var(--shadow-2);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.26s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Bottom nav
   -------------------------------------------------------------------------- */

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  display: flex;
  width: 100%;
  max-width: var(--content);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateX(-50%);
}

.bottom-nav a {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--grey-2);
  transition: color 0.18s var(--ease);
}

.bottom-nav a svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav a[aria-current="page"] {
  color: var(--red);
}

.bottom-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 2px;
  background: var(--red);
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Stats / timeline / misc
   -------------------------------------------------------------------------- */

.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 16px;
}

.stat-strip > div {
  padding: 14px;
  background: var(--surface);
}

.stat-strip .s-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-strip .s-num .unit {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0;
}

.stat-strip .s-label {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--grey);
}

.timeline {
  margin: 0 16px;
  padding-left: 4px;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 20px;
  border-left: 1px solid var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--red);
}

.timeline .tl-year {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.timeline .tl-text {
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.exchange-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.exchange-strip::-webkit-scrollbar {
  display: none;
}

.exchange-strip .ex-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}

.exchange-strip .ex-chip img {
  width: 52px;
  height: auto;
  max-height: 18px;
  object-fit: contain;
}

/* skeleton */
.skeleton-item {
  display: flex;
  gap: 12px;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sk {
  background: linear-gradient(90deg, #f0ede8 25%, #f7f5f1 37%, #f0ede8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 3px;
}

.sk.thumb-sk {
  width: 92px;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
}

.sk.line {
  height: 11px;
  margin-bottom: 8px;
}

.sk.line.short {
  width: 55%;
}

.sk.line.mid {
  width: 78%;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.list-status {
  padding: 22px 16px 30px;
  text-align: center;
  font-size: 12.5px;
  color: var(--grey-2);
  cursor: pointer;
}

.list-status .ls-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.list-status .spinner {
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  padding: 44px 20px 40px;
  text-align: center;
}

.empty-state .es-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #efece7;
}

.empty-state .es-ico svg {
  width: 24px;
  height: 24px;
  stroke: var(--grey-2);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state h3 {
  font-size: 15px;
  font-weight: 650;
}

.empty-state p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey-2);
}

/* footer */
.site-footer {
  margin-top: 32px;
  padding: 26px 16px calc(30px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
}

.site-footer .sf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .sf-brand img {
  width: 132px;
  opacity: 0.92;
}

.site-footer .sf-desc {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer .sf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.site-footer .sf-links a {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer .sf-legal {
  margin-top: 14px;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.3);
}

/* about */
.about-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 20px 18px;
  color: #fff;
  background: #1a1512;
  overflow: hidden;
}

.about-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 9, 0.2) 0%, rgba(15, 11, 9, 0.9) 100%);
}

.about-hero .ah-inner {
  position: relative;
  z-index: 2;
}

.about-hero h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-hero p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.prose {
  padding: 22px 20px 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 14px;
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   v2 refinements
   ========================================================================== */

[hidden] {
  display: none !important;
}

/* stat numbers must never wrap the unit */
.stat-strip .s-num {
  white-space: nowrap;
}

.stat-strip .s-num .unit {
  display: inline;
  white-space: nowrap;
}

/* list meta line: keep date intact, truncate authors */
.row .item-foot {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.row .item-foot > span:first-child {
  flex: 0 0 auto;
}

.row .item-foot > span.au {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* generated cover — replaces cropped banner images in list rows */
.row .thumb.cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 9px 9px;
  background: linear-gradient(152deg, #262019 0%, #15110e 100%);
}

.row .thumb.cover::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.row .thumb.cover .cv-k {
  position: relative;
  z-index: 1;
  max-height: 20px;
  overflow: hidden;
  font-size: 7.5px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.row .thumb.cover .cv-m {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.row .thumb.cover .cv-b {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
}

.row .thumb.cover[data-tone="2"] {
  background: linear-gradient(152deg, #2b1a17 0%, #170f0d 100%);
}

.row .thumb.cover[data-tone="3"] {
  background: linear-gradient(152deg, #1e2229 0%, #101317 100%);
}

.row .thumb.cover[data-tone="4"] {
  background: linear-gradient(152deg, #23231c 0%, #12120e 100%);
}

/* event date tile */
.row .thumb.date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(158deg, #262019 0%, #15110e 100%);
  color: #fff;
}

.row .thumb.date-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
}

.row .thumb.date-tile .dt-m {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.row .thumb.date-tile .dt-d {
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.row .thumb.date-tile .dt-y {
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
}

/* video card media must keep its 16:9 box inside a flex column */
.card {
  display: flex;
  flex-direction: column;
}

.card-media {
  flex: 0 0 auto;
  width: 100%;
}

/* visually hidden radio inputs must not stretch the page */
.choice-row input {
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* tighter quote grid */
.quote-grid div {
  padding: 12px 14px;
}

.quote-grid .qv {
  margin-top: 4px;
  font-size: 16px;
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- v3 refinements ---------- */

/* list cover thumbs: mark only, no duplicate kicker */
.row .thumb.cover {
  justify-content: center;
  align-items: center;
  padding: 0;
}

.row .thumb.cover .cv-k {
  display: none;
}

.row .thumb.cover .cv-m {
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* product hero watermark: quieter */
.product-hero::before {
  right: -10px;
  top: -14px;
  font-size: 96px;
  color: rgba(255, 255, 255, 0.032);
}

/* page-bar text action gets a chip */
.page-bar .bar-action {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(198, 23, 31, 0.26);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-bar .bar-action:active {
  background: rgba(198, 23, 31, 0.07);
}

/* exchange membership: show all six logos at once */
.exchange-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.exchange-strip .ex-chip {
  width: 100%;
  justify-content: center;
  padding: 0 8px;
}

/* play badge on video covers */
.row .thumb.cover .cv-play {
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.82);
}

.row .thumb.cover .cv-play::after {
  content: "";
  position: absolute;
  left: -13px;
  top: -10px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

/* contact: equal-width topic chips, fixed textarea */
.choice-row {
  display: flex;
  gap: 8px;
}

.choice-row > * {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  justify-content: center;
}

.field textarea {
  resize: none;
}

/* quote grid: tighter rows */
.quote-grid {
  gap: 1px;
}

.quote-grid > * {
  padding: 12px 12px 13px;
}

/* play badge: triangle centered in its ring */
.row .thumb.cover .cv-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  border-top-color: rgba(255, 255, 255, 0.34);
  border-width: 1px;
}

.row .thumb.cover .cv-play::after {
  content: "";
  position: static;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.86);
  border-radius: 0;
}

/* product rows: price and change stack, never collide with the card edge */
.prow .pr-quote {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}

.prow .pr-price,
.prow .pr-chg {
  display: block;
  white-space: nowrap;
  margin-top: 0;
}

/* slightly smaller play ring */
.row .thumb.cover .cv-play {
  width: 23px;
  height: 23px;
  right: 6px;
  bottom: 7px;
}

.row .thumb.cover .cv-play::after {
  border-width: 4px 0 4px 6.5px;
}

/* ticker: international convention (green up / red down) on dark rail */
.ticker .tick .tick-c.up {
  color: #5fd39b;
}

.ticker .tick .tick-c.down {
  color: #ff7a80;
}

/* product hero on dark: same convention */
.product-hero .chg.up {
  color: #5fd39b;
}

.product-hero .chg.down {
  color: #ff7a80;
}

.product-hero .chg.flat {
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   v4 — PC design alignment
   依据 citicfutures.com PC 端实测：单一宋体字族 / 直角 / 米白纸 / 深红 /
   红底表头 / 小字号密排 / 细线分隔。移动端在此之上保留可读字号。
   ========================================================================== */

:root {
  --font: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-display: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-body: var(--font);
  --radius-sm: 0px;
  --radius-md: 1px;
  --radius: 1px;
  --radius-lg: 2px;
  --bg: #fbf8f4;
  --color-background: #fbf8f4;
  --surface: #ffffff;
  --ink: #1c1c1b;
  --color-text: #1c1c1b;
  --ink-2: #2e2b28;
  --ink-3: #4b4641;
  --grey: #7a746e;
  --color-muted-text: #7a746e;
  --grey-2: #9c968f;
  --line: #e6e1da;
  --color-border: #e6e1da;
  --line-2: #f0ebe4;
  --up: #1a7f4b;
  --down: #c6171f;
  --shadow-1: 0 1px 0 rgba(28, 28, 27, 0.03);
  --shadow-2: 0 1px 0 rgba(28, 28, 27, 0.05), 0 12px 24px -20px rgba(28, 28, 27, 0.3);
  --serif-num: "Noto Serif CJK SC", Georgia, serif;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
  letter-spacing: 0.002em;
}

/* 标题统一：宋体 700、行高收紧到 PC 站的 1.05–1.2 */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.004em;
}

.section-head h2 {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.004em;
}

.section-head h2::before {
  width: 3px;
  height: 17px;
  border-radius: 0;
}

.section-head .more {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

/* 全站小标签：大写 + 字距，对齐 PC 站 eyebrow 语言 */
.eyebrow,
.ph-kicker,
.group-head h2 .cnt {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-2);
  font-weight: 500;
}

/* 卡片降噪：PC 站几乎没有投影，靠 1px 细线与底色分区 */
.prow,
.row,
.mini-card,
.chart-box,
.summary-box,
.entry,
.field input,
.field textarea,
.field select,
.tag,
.badge,
.chip,
.choice,
.quote-grid,
.spec-list {
  box-shadow: none;
}

.prow,
.row,
.mini-card {
  border-color: var(--line);
  background: var(--surface);
}

.prow .pr-code {
  border-radius: 0;
  font-family: var(--font);
}

/* 按钮：PC 站为直角描边或直角实心 */
.btn,
.bar-action,
.icon-btn,
.sheet-btn,
button.btn-primary,
a.btn-primary {
  border-radius: 1px;
}

/* ---------------------------------------------------------------- 交易所条 */

.ex-bar {
  display: flex;
  gap: 0;
  margin: 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ex-bar::-webkit-scrollbar {
  display: none;
}

.ex-bar a,
.ex-bar button {
  flex: 0 0 auto;
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 13px 9px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  white-space: nowrap;
}

.ex-bar a[aria-current="true"],
.ex-bar button[aria-current="true"] {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
}

/* ------------------------------------------------------------- 延迟行情条 */

.delayed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px;
  padding: 9px 0 8px;
  border-bottom: 1px solid var(--line-2);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--grey-2);
}

.delayed b {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.delayed .dl-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  background: var(--red);
  vertical-align: middle;
  border-radius: 50%;
  animation: dl-pulse 2.4s ease-in-out infinite;
}

@keyframes dl-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

@media (prefers-reduced-motion: reduce) {
  .delayed .dl-dot { animation: none; }
}

/* ------------------------------------------------------------ 行情表 */

.qtable-wrap {
  margin: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.qtable {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.qtable thead th {
  background: var(--red);
  color: #fff;
  font-weight: 500;
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  padding: 9px 10px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.qtable thead th:first-child {
  text-align: left;
}

.qtable thead th:last-child {
  border-right: 0;
}

.qtable tbody td {
  padding: 10px;
  text-align: right;
  white-space: nowrap;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}

.qtable tbody tr:nth-child(even) {
  background: #f8f5f1;
}

.qtable tbody tr:last-child td {
  border-bottom: 0;
}

/* 首列冻结，横向滑动时始终可见 */
.qtable tbody td:first-child,
.qtable thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
}

.qtable thead th:first-child {
  z-index: 3;
  background: var(--red);
}

.qtable tbody td:first-child {
  background: var(--surface);
  border-right: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}

.qtable tbody tr:nth-child(even) td:first-child {
  background: #f8f5f1;
}


.qtable .num-up {
  color: var(--up);
  font-weight: 600;
}

.qtable .num-down {
  color: var(--down);
  font-weight: 600;
}

.qtable .num-flat {
  color: var(--grey);
}

.qtable-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px;
  padding: 9px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--grey-2);
}

.qtable-foot .scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------- 合约参数表 */

.pgrid {
  margin: 0 16px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--surface);
}

.pgrid .pg-row {
  display: grid;
  grid-template-columns: 42% 1fr;
  border-bottom: 1px solid var(--line-2);
}

.pgrid .pg-row dt {
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  background: #f8f5f1;
  border-right: 1px solid var(--line-2);
}

.pgrid .pg-row dd {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- 段落与正文 */

.prod-sub,
.ph-desc,
.section-note {
  color: var(--grey);
  line-height: 1.72;
}

.product-hero h1 {
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -0.008em;
}

.product-hero .prod-price b {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-hero .ph-line,
.product-hero .prod-sub {
  letter-spacing: 0.02em;
}


/* ------------------------------------------------- 列表空态与杂项补丁 */

.list-empty {
  margin: 0 16px;
  padding: 34px 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey);
  background: var(--surface);
  border: 1px solid var(--line);
}

.list-empty::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin: 0 auto 14px;
  background: var(--red);
}

/* 交易所条与延迟条之间不要叠加留白 */
.ex-bar + .delayed {
  margin-top: 10px;
}

/* 行情表脚注与上方表格贴合 */
.qtable-foot {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}

/* 参数表最后一行补齐底边 */
.pgrid .pg-row:last-child {
  border-bottom: 0;
}

/* 迷你卡片价格不换行 */
.mini-card .mc-price,
.mini-card .mc-chg {
  white-space: nowrap;
}

/* 产品页 hero 下的延迟条上间距 */
.product-hero + .delayed {
  margin-top: 14px;
}

/* 行情表脚注：长文本可收缩，按钮固定 */
.qtable-foot > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qtable-foot .scroll-hint {
  flex: 0 0 auto;
}

/* 延迟条：时间不挤占左文案 */
.delayed > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delayed > span:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

/* 分节标题右侧计数不撑破行 */
.section-head .more {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

/* 入口卡去掉同心圆装饰，浅底上会显脏 */
.entry::after {
  display: none;
}

/* 无障碍：尊重系统的减少动态效果设置 */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================ v5 校正层 */

/* 顶栏图标按钮：直角描边，不用胶囊 */
.page-bar .bar-action {
  border: 0;
  border-radius: 1px;
  padding: 0 6px;
}

.icon-btn,
.page-bar .bar-action {
  border-radius: 1px;
}

/* 首页入口卡：米白纸底 + 细线，替掉整块深色 */
.entry {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.entry::before {
  height: 2px;
}

.entry::after {
  border-color: var(--line-2);
}

.entry .entry-ico {
  stroke: var(--red);
  stroke-width: 1.4;
}

.entry .entry-idx {
  color: var(--grey-2);
}

.entry .entry-name {
  color: var(--ink);
}

.entry .entry-meta {
  color: var(--grey);
}

.entry:active {
  background: #f8f5f1;
}

/* 产品列表代码块：浅底细线红字 */
.prow .pr-code {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--red);
  font-weight: 700;
}

/* 交易所条：7 项在一屏内排完 */
.ex-bar a,
.ex-bar button {
  padding: 10px 8px 9px;
  font-size: 10.5px;
  letter-spacing: 0.07em;
}

/* 行情表：固定列宽，首屏正好 5 列 */
.qtable {
  table-layout: fixed;
  min-width: 850px;
}

.qtable thead th,
.qtable tbody td {
  padding-left: 9px;
  padding-right: 9px;
}

/* 脚注按钮复位为纯文本 */
.qtable-foot .scroll-hint {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  cursor: pointer;
}


/* ==========================================================================
   v6 — 视觉重构：白纸底、深红点缀、实拍影像
   ========================================================================== */

/* -------------------------------------------------- 字体：官网子集 */

@font-face {
  font-family: "CITIC Serif";
  src: url("assets/fonts/serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CITIC Serif";
  src: url("assets/fonts/serif-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CITIC Serif";
  src: url("assets/fonts/serif-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "CITIC Serif", "Noto Serif CJK SC", "Source Han Serif SC",
    "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-display: var(--font);

  --bg: #ffffff;
  --color-background: #ffffff;
  --surface: #ffffff;
  --paper: #f7f5f1;

  --line: #e8e4dd;
  --line-2: #f2efe9;

  --ink: #1a1917;
  --ink-2: #3b3733;
  --ink-3: #57514a;
  --grey: #837c74;
  --grey-2: #a49d95;

  --red: #c6171f;
  --color-primary: #c6171f;
}

body {
  background: #ffffff;
  color: var(--ink);
}

/* -------------------------------------------------- 首页主视觉：实拍图 + 白纸文字 */

.hero {
  display: block;
  min-height: 0;
  padding: 0 20px 26px;
  color: var(--ink);
  background: #ffffff;
  background-image: none;
  overflow: visible;
  isolation: auto;
}

.hero::before,
.hero::after {
  display: none;
}

.hero .hero-media {
  display: block;
  margin: 0 -20px 10px;
  height: 128px;
  background: #dfe4e8 url("assets/hero-city.webp") center 58% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

.hero .hero-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--red);
}

.hero h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero .hero-sub {
  margin: 11px 0 0;
  font-size: 13px;
  line-height: 1.74;
  color: var(--grey);
}

.hero .hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.hero .hero-facts > div {
  padding-right: 14px;
  border-right: 1px solid var(--line-2);
  text-align: center;
}

.hero .hero-facts > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero .hero-facts b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero .hero-facts span {
  display: block;
  margin-top: 5px;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--grey-2);
}

/* -------------------------------------------------- 入口卡：白卡细线 */

.entry-grid {
  gap: 10px;
  padding: 0 20px 4px;
}

.entry {
  padding: 13px 14px 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  box-shadow: none;
}

.entry::before,
.entry::after {
  display: none;
}

.entry .entry-top {
  align-items: center;
}

.entry .entry-ico {
  width: 19px;
  height: 19px;
  stroke: var(--red);
  stroke-width: 1.3;
  fill: none;
}

.entry .entry-idx {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--grey-2);
}

.entry .entry-name {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.entry .entry-meta {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.entry:active {
  background: var(--paper);
}

/* -------------------------------------------------- 研报首卡 / CTA：白卡 + 红顶线 */

.feature {
  padding: 17px 18px 15px;
  background: #ffffff;
  background-image: none;
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: 0;
  color: var(--ink);
  box-shadow: none;
}

.feature::before,
.feature::after {
  display: none;
}

.feature .feat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
}

.feature .feat-kicker .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.feature h3 {
  margin: 9px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.feature .feat-zh {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--grey);
}

.feature .feat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line-2);
  font-size: 10.5px;
  color: var(--grey-2);
}

.feature .feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.feature .feat-cta svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

/* -------------------------------------------------- 列表缩略图：米白封面 */

.row .thumb.cover,
.row .thumb.cover[data-tone="2"],
.row .thumb.cover[data-tone="3"],
.row .thumb.cover[data-tone="4"] {
  background: var(--paper);
  background-image: none;
  border: 1px solid var(--line);
}

.row .thumb.cover::after {
  background: var(--red);
  opacity: 0.9;
}

.row .thumb.cover .cv-k {
  color: var(--red);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.row .thumb.cover .cv-m {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.row .thumb.cover .cv-b {
  color: var(--grey-2);
}

/* -------------------------------------------------- 页脚：白纸 */

.site-footer {
  margin-top: 30px;
  padding: 24px 20px calc(26px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--grey);
}

.site-footer .sf-brand img {
  width: 128px;
}

.site-footer .sf-desc {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--grey);
}

.site-footer .sf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-2);
}

.site-footer .sf-links a {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.site-footer .sf-legal {
  margin: 14px 0 0;
  font-size: 10px;
  line-height: 1.66;
  color: var(--grey-2);
}

/* -------------------------------------------------- 品种详情首屏：白底 */

.product-hero {
  padding: 20px 20px 18px;
  background: #ffffff;
  background-image: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: auto;
}

.product-hero::before {
  color: rgba(198, 23, 31, 0.055);
  font-weight: 700;
  font-size: 116px;
  right: 6px;
  top: -22px;
}

.product-hero .ph-line {
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
}

.product-hero h1 {
  margin: 9px 0 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.product-hero .ph-price {
  margin-top: 12px;
  color: var(--ink);
}

.product-hero .ph-price b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.product-hero .ph-price em {
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

.product-hero .ph-sub {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--grey);
}

.product-hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.product-hero .badge {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* -------------------------------------------------- 页头返回栏：白底细线 */

.page-bar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

/* -------------------------------------------------- 底部 Tab：白底细线 */

.bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: none;
}

.bottom-nav a {
  color: var(--grey-2);
}

.bottom-nav a[aria-current="page"] {
  color: var(--red);
}


/* -------------------------------------------------- 行情条：浅底细线 */

.ticker {
  height: 38px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.ticker .ticker-label {
  background: var(--paper);
  color: var(--red);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.ticker .ticker-label::before {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 0 3px rgba(198, 23, 31, 0.14);
}

.ticker .ticker-rail {
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%);
}

.ticker .tick {
  padding: 0 13px;
  font-size: 11.5px;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
}

.ticker .tick b {
  font-weight: 700;
  color: var(--ink);
}

.ticker .tick .tick-p {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.ticker .tick .tick-c.up {
  color: var(--up);
}

.ticker .tick .tick-c.down {
  color: var(--down);
}


/* -------------------------------------------------- 修正：封面装饰与行对齐 */

.row .thumb.cover::after { display: none; }

.row {
  align-items: center;
}

.row .thumb {
  align-self: center;
}

/* 板块入口的数字方框：居中、细线 */
.row .thumb[style*="justify-content:center"] {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--red);
  background: var(--paper);
  border: 1px solid var(--line);
}

/* 研报封面：米白底，去渐变 */
.row .thumb.cover {
  background-image: none;
  background-color: var(--paper);
}

/* 视频缩略图统一比例 */
.row .thumb.wide {
  width: 104px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

/* 状态标签：浅底细线 */
.status-pill {
  border-radius: 0;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 区块标题：更紧 */
.section-head h2 {
  font-size: 17px;
  letter-spacing: -0.005em;
}

.section-head {
  margin-bottom: 12px;
}

/* 分节之间的节奏 */
.section {
  padding-top: 26px;
  padding-bottom: 6px;
}

/* v6c：ticker 右缘渐隐 */
.ticker { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%); }
.card-media::after { background: linear-gradient(180deg, rgba(10,8,7,0) 55%, rgba(10,8,7,0.52) 100%); }

/* ============================================================ v6d 修正 */

/* 白底 product-hero 的文字可读性（原设计为深底白字） */
.product-hero .prod-sub { margin-top: 7px; font-size: 12px; color: var(--grey); }
.product-hero .prod-price b { font-size: 32px; }
.product-hero .chg.up { color: var(--up); }
.product-hero .chg.down { color: var(--down); }
.product-hero .prod-price .chg { font-size: 13px; }

/* about 页首屏改白纸（原为深色遮罩大图） */
.about-hero {
  display: block; min-height: 0; padding: 0 0 22px;
  background: #ffffff; color: var(--ink); overflow: visible;
}
.about-hero img {
  position: static; display: block; width: 100%;
  height: 168px; margin: 0 0 20px; object-fit: cover;
  opacity: 1; border-bottom: 1px solid var(--line);
}
.about-hero::after { display: none; }
.about-hero .ah-inner { position: static; padding: 0 20px; }
.about-hero h1 { font-size: 30px; font-weight: 700; line-height: 1.16; letter-spacing: -0.012em; color: var(--ink); }
.about-hero p { margin-top: 10px; font-size: 13px; line-height: 1.72; color: var(--grey); }

/* 必填星号更醒目 */
.field label .req { font-size: 12px; font-weight: 700; line-height: 1; vertical-align: 1px; }

/* 规格表长值不溢出、右列字重降一档更耐读 */
.spec-list .spec-row dt { flex: 0 0 33%; }
.spec-list .spec-row dd { font-weight: 500; overflow-wrap: anywhere; }

/* 分隔线统一为极细暖灰 */
.hr, .divider { background: var(--line); }

/* v6e */
.about-hero img { margin-bottom: 24px; }
.qtable-wrap { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 93%, rgba(0,0,0,0.15) 100%); mask-image: linear-gradient(90deg, #000 0, #000 93%, rgba(0,0,0,0.15) 100%); }
.field label .req { color: var(--red) !important; margin-left: 3px; font-size: 12px; font-weight: 700; }
.form-card { padding: 18px 16px 18px; }

/* v6f：活动日期块改白纸（原为深黑渐变） */
.row .thumb.date-tile {
  background: var(--paper);
  background-image: none;
  border: 1px solid var(--line);
  color: var(--ink);
}
.row .thumb.date-tile::before { height: 2px; background: var(--red); }
.row .thumb.date-tile .dt-m { color: var(--red); font-weight: 700; letter-spacing: 0.14em; }
.row .thumb.date-tile .dt-d { color: var(--ink); font-size: 24px; }
.row .thumb.date-tile .dt-y { color: var(--grey-2); }

/* v6g：浅底缩略图上的播放按钮、作者头像改白纸体系 */
.row .thumb.cover .cv-play {
  border-color: rgba(198, 23, 31, 0.42);
  background: rgba(255, 255, 255, 0.72);
}
.row .thumb.cover .cv-play::after {
  border-color: transparent transparent transparent var(--red);
}
.byline .avatar {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--red);
  font-size: 12.5px;
}
