:root {
  --bg: #f3f6f1;
  --surface: #ffffff;
  --surface-soft: #f7f9f5;
  --ink: #172b2a;
  --muted: #667774;
  --line: #dce5de;
  --line-strong: #c8d6cd;
  --brand: #0d6e64;
  --brand-dark: #09564e;
  --brand-soft: #dceee8;
  --up: #cf3f3f;
  --up-soft: #fae9e7;
  --down: #16805b;
  --down-soft: #e1f2e9;
  --gold: #9a6a17;
  --shadow: 0 18px 50px rgba(25, 55, 50, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(202, 230, 219, 0.68), transparent 26rem),
    radial-gradient(circle at 92% 16%, rgba(236, 226, 196, 0.55), transparent 24rem),
    var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image: linear-gradient(rgba(13, 110, 100, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 110, 100, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(13, 110, 100, 0.26); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { max-width: 10ch; margin-bottom: 18px; font-family: "Songti SC", "STSong", serif; font-size: clamp(2.45rem, 6vw, 5.7rem); line-height: 1.04; letter-spacing: -0.05em; }
h2 { margin-bottom: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -0.035em; }
h3 { margin-bottom: 6px; font-size: 1.18rem; line-height: 1.35; }
h4 { margin-bottom: 10px; font-size: 0.92rem; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 8px 12px; color: white; background: var(--brand); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(200, 214, 205, 0.72); background: rgba(243, 246, 241, 0.86); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; color: white; background: var(--brand); border-radius: 12px 12px 12px 4px; place-items: center; font-family: "Songti SC", serif; font-size: 1.15rem; box-shadow: 0 8px 18px rgba(13, 110, 100, 0.2); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: 0.06em; }
.brand small { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 9px 12px; color: var(--muted); border-radius: 999px; text-decoration: none; font-size: 0.9rem; transition: 180ms ease; }
.site-nav a:hover { color: var(--brand-dark); background: rgba(255, 255, 255, 0.7); }
.site-nav .nav-primary { color: white; background: var(--ink); }
.site-nav .nav-primary:hover { color: white; background: var(--brand); }
.hero { padding: clamp(52px, 9vw, 110px) 0 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); align-items: end; gap: clamp(36px, 7vw, 90px); }
.hero-copy > p:not(.eyebrow) { max-width: 58ch; margin-bottom: 24px; color: #4e625f; font-size: clamp(1rem, 1.7vw, 1.18rem); }
.eyebrow, .card-kicker { margin-bottom: 9px; color: var(--brand); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; color: var(--muted); font-size: 0.88rem; }
.status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 11px; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid #bfded3; border-radius: 999px; font-weight: 700; }
.hero-actions { display: grid; gap: 12px; align-content: end; }
.edition-card { display: grid; gap: 5px; padding: 24px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(200, 214, 205, 0.9); border-radius: var(--radius-lg) var(--radius-lg) 8px var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.edition-card strong { font-size: 1.25rem; }
.edition-card span:last-child { color: var(--muted); font-size: 0.8rem; }
.edition-label { color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; }
.button { min-height: 44px; padding: 10px 17px; color: white; background: var(--brand); border: 1px solid var(--brand); border-radius: 11px; box-shadow: 0 8px 18px rgba(13, 110, 100, 0.14); cursor: pointer; font-weight: 750; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 10px 22px rgba(13, 110, 100, 0.2); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: 0.5; box-shadow: none; transform: none; }
.button-secondary { color: var(--brand-dark); background: white; border-color: var(--line-strong); box-shadow: none; }
.button-secondary:hover { color: white; }
.button-full { width: 100%; }
.section { padding: 52px 0 8px; scroll-margin-top: 86px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.section-heading > p { max-width: 46ch; margin-bottom: 2px; color: var(--muted); font-size: 0.9rem; text-align: right; }
.notice { margin-top: 18px; padding: 13px 16px; color: #735215; background: #fff8e6; border: 1px solid #ead9a8; border-radius: var(--radius-sm); font-size: 0.9rem; }
.notice-stale { color: #7d4235; background: #fff1ed; border-color: #e8c4b9; }
.brief-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 18px; padding: clamp(20px, 4vw, 32px); background: linear-gradient(120deg, #173b36, #0d6e64); color: white; border-radius: var(--radius-lg) var(--radius-lg) 8px var(--radius-lg); box-shadow: 0 20px 50px rgba(13, 86, 78, 0.2); }
.brief-mark { display: grid; width: 52px; height: 52px; color: var(--ink); background: #f5e7bd; border-radius: 16px 16px 16px 5px; place-items: center; font-family: "Songti SC", serif; font-size: 1.35rem; }
.brief-card .card-kicker { color: #bce1d5; }
.brief-card p { max-width: 88ch; margin: 0; font-size: clamp(0.98rem, 1.6vw, 1.09rem); line-height: 1.8; }
.index-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.index-card { position: relative; min-height: 190px; overflow: hidden; padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 8px 28px rgba(25, 55, 50, 0.045); transition: transform 180ms ease, box-shadow 180ms ease; }
.index-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.index-card:first-child { grid-column: span 2; }
.index-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.index-card h3 { margin-bottom: 1px; }
.market-tag { padding: 3px 8px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 0.7rem; white-space: nowrap; }
.index-value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.index-price { font-size: clamp(1.45rem, 2.7vw, 2rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.04em; }
.change { font-size: 0.88rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-up .change, .positive { color: var(--up); }
.is-down .change, .negative { color: var(--down); }
.is-flat .change, .neutral { color: var(--muted); }
.index-trends { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 12px; margin-top: 14px; }
.trend-label { color: var(--muted); font-size: 0.72rem; }
.sparkline { width: min(180px, 100%); height: 42px; overflow: visible; }
.trend-stats { display: flex; gap: 10px; padding-bottom: 2px; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.index-time { margin-top: 10px; color: #879693; font-size: 0.68rem; }
.skeleton-card { min-height: 190px; background: linear-gradient(100deg, #eef3ee 20%, #f9fbf8 38%, #eef3ee 58%); background-size: 200% 100%; border: 1px solid var(--line); border-radius: var(--radius-md); animation: shimmer 1.5s infinite linear; }
@keyframes shimmer { to { background-position-x: -200%; } }
.content-grid { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); gap: 18px; align-items: start; }
.panel { padding: clamp(20px, 3vw, 28px); background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 10px 34px rgba(25, 55, 50, 0.05); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel-heading h3 { margin: 0; }
.subtle-label { color: var(--muted); font-size: 0.7rem; text-align: right; }
.sector-block + .sector-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.sector-list { display: grid; gap: 9px; }
.sector-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 13px; background: var(--surface-soft); border-radius: 11px; }
.sector-name { overflow: hidden; font-size: 0.88rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.sector-change { font-variant-numeric: tabular-nums; font-weight: 800; }
.signal-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; }
.signal-up { background: var(--up); }
.signal-down { background: var(--down); }
.news-list { display: grid; }
.news-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; border-top: 0; }
.news-index { color: var(--line-strong); font-family: "Songti SC", serif; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.news-item h4 { margin-bottom: 5px; font-size: 0.98rem; line-height: 1.5; }
.news-item h4 a { text-decoration: none; }
.news-item h4 a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.news-summary { display: -webkit-box; overflow: hidden; margin-bottom: 8px; color: var(--muted); font-size: 0.82rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: #81908d; font-size: 0.7rem; }
.category-tag { padding: 1px 7px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; }
.muted { color: var(--muted); font-size: 0.88rem; }
.watchlist-panel { position: relative; }
.search-form { position: relative; max-width: 760px; margin-bottom: 30px; }
.search-form > label { display: block; margin-bottom: 8px; font-size: 0.82rem; font-weight: 750; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.search-row input { width: 100%; min-height: 46px; padding: 10px 14px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 11px; }
.search-row input::placeholder { color: #9aa7a4; }
.field-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 0.72rem; }
.search-results { position: absolute; top: calc(100% - 10px); right: 0; left: 0; z-index: 15; overflow: hidden; background: white; border: 1px solid var(--line-strong); border-radius: 13px; box-shadow: 0 18px 45px rgba(25, 55, 50, 0.14); }
.search-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 12px; padding: 12px 14px; background: white; border: 0; border-top: 1px solid var(--line); cursor: pointer; text-align: left; }
.search-result:first-child { border-top: 0; }
.search-result:hover { background: var(--surface-soft); }
.search-result strong, .search-result small { display: block; }
.search-result small { color: var(--muted); font-size: 0.7rem; }
.search-result-action { align-self: center; color: var(--brand); font-size: 0.78rem; font-weight: 750; }
.watchlist-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.watchlist-heading h3 { margin: 0; }
.watchlist-heading span { color: var(--muted); font-size: 0.75rem; }
.watch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.watch-card { position: relative; padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; }
.watch-card h4 { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-symbol { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }
.watch-price { margin: 13px 0 4px; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.watch-remove { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.watch-remove:hover { color: var(--up); background: var(--up-soft); }
.empty-state { grid-column: 1 / -1; padding: 28px; color: var(--muted); background: var(--surface-soft); border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; }
.lesson-shell { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.lesson-progress { display: flex; align-items: center; gap: 24px; padding: 18px 26px; background: #eaf3ee; border-bottom: 1px solid var(--line); }
.progress-copy { display: flex; min-width: 220px; justify-content: space-between; gap: 16px; font-size: 0.78rem; }
.progress-copy span { color: var(--muted); }
.progress-track { flex: 1; height: 7px; overflow: hidden; background: #d4e3da; border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--brand), #4ba797); border-radius: inherit; transition: width 300ms ease; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); }
.lesson-main { padding: clamp(26px, 4vw, 44px); }
.lesson-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 0.76rem; }
.tag { padding: 3px 9px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; font-weight: 750; }
.lesson-main h3 { margin-bottom: 12px; font-family: "Songti SC", "STSong", serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.2; letter-spacing: -0.035em; }
.lesson-lead { color: #465e5a; font-size: 1.02rem; font-weight: 650; }
.lesson-body p { margin-bottom: 15px; color: #3b4c4a; }
.example-box { margin-top: 26px; padding: 18px 20px; background: #fff8e8; border-left: 4px solid #d7aa45; border-radius: 4px 14px 14px 4px; }
.example-box span { display: block; margin-bottom: 6px; color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.example-box p { margin: 0; color: #5f4d27; font-size: 0.9rem; }
.quiz-card { padding: clamp(24px, 4vw, 36px); background: #173b36; color: white; }
.quiz-card .card-kicker { color: #9ed0c4; }
.quiz-card h3 { margin-bottom: 22px; font-size: 1.2rem; }
.quiz-options { display: grid; gap: 9px; margin-bottom: 16px; }
.quiz-option { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; color: #edf7f4; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 11px; cursor: pointer; text-align: left; font-size: 0.86rem; }
.quiz-option:hover { background: rgba(255, 255, 255, 0.11); }
.quiz-option.is-selected { background: rgba(169, 223, 207, 0.18); border-color: #8bc8b8; }
.quiz-option.is-correct { background: rgba(69, 181, 136, 0.22); border-color: #63c49e; }
.quiz-option.is-wrong { background: rgba(220, 93, 93, 0.2); border-color: #e08989; }
.option-letter { display: grid; width: 22px; height: 22px; background: rgba(255, 255, 255, 0.12); border-radius: 50%; place-items: center; font-size: 0.7rem; font-weight: 800; }
.quiz-feedback { margin: 16px 0; padding: 13px; color: #e9f6f2; background: rgba(255, 255, 255, 0.08); border-radius: 11px; font-size: 0.82rem; }
.button-complete { color: #15332e; background: #bde4d8; border-color: #bde4d8; }
.button-complete:hover { color: white; background: var(--brand); border-color: var(--brand); }
.site-footer { margin-top: 80px; padding: 34px 0; color: #52625f; background: #e9eee9; border-top: 1px solid var(--line-strong); }
.footer-grid { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.footer-grid p { max-width: 68ch; margin: 8px 0 0; font-size: 0.78rem; }
.footer-actions { display: grid; justify-items: end; gap: 9px; font-size: 0.72rem; }
.text-button { padding: 0; color: var(--brand); background: transparent; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: min(380px, calc(100% - 40px)); padding: 13px 16px; color: white; background: #173b36; border-radius: 12px; box-shadow: 0 16px 45px rgba(15, 47, 42, 0.24); font-size: 0.84rem; }
[hidden] { display: none !important; }
@media (max-width: 1040px) {
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-card:first-child { grid-column: span 1; }
  .watch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lesson-grid { grid-template-columns: 1fr; }
  .quiz-card { border-top: 1px solid rgba(255, 255, 255, 0.15); }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-nav a:not(.nav-primary) { display: none; }
  .hero { padding-top: 46px; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 30px; }
  .hero-actions { grid-template-columns: minmax(0, 1fr) auto; }
  .section { padding-top: 42px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 9px; text-align: left; }
  .content-grid { grid-template-columns: 1fr; }
  .panel-heading { flex-direction: column; }
  .subtle-label { text-align: left; }
  .lesson-progress { align-items: stretch; flex-direction: column; gap: 12px; }
  .progress-copy { min-width: 0; }
  .footer-grid { flex-direction: column; }
  .footer-actions { justify-items: start; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(2.5rem, 15vw, 4rem); }
  .header-inner { min-height: 64px; }
  .brand small { display: none; }
  .site-nav a { padding: 8px 9px; font-size: 0.82rem; }
  .hero-actions { grid-template-columns: 1fr; }
  .brief-card { grid-template-columns: 1fr; }
  .brief-mark { width: 44px; height: 44px; }
  .index-grid { grid-template-columns: 1fr; }
  .index-card { min-height: 178px; }
  .index-trends { grid-template-columns: 1fr auto; }
  .sparkline { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 52px; }
  .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-row { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .news-index { font-size: 0.72rem; }
  .lesson-main { padding: 24px 20px; }
  .quiz-card { padding: 24px 20px; }
  .lesson-progress { padding: 16px 20px; }
}

@media (max-width: 390px) {
  .watch-grid { grid-template-columns: 1fr; }
  .site-nav .nav-primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}