/* O0AI site visual system — report-specific overrides */
:root {
  --wine: #0a0a0a;
  --red: #2e2e2e;
  --gold: #767676;
  --ink: #0a0a0a;
  --muted: #767676;
  --cream: #f4f4f4;
  --paper: #ffffff;
  --line: #d0d0d0;
  --green: #444444;
  --soft-red: #eeeeee;
  --soft-gold: #e8e8e8;
  --soft-green: #f4f4f4;
  --shadow: none;
}

* {
  border-radius: 0;
}

body {
  background: #f4f4f4;
  color: #0a0a0a;
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3,
.kpi strong,
.trend-note strong,
.brand-mark {
  font-family: "Alimama ShuHeiTi", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "Alimama ShuHeiTi";
  src: url("AlimamaShuHeiTi-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

.shell {
  width: min(1180px, calc(100% - 12vw));
}

.topbar {
  height: 72px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8e8e8;
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 12px;
  color: #0a0a0a;
  letter-spacing: 0;
}

.brand-mark {
  display: inline;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: #0a0a0a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-sub {
  padding-left: 12px;
  border-left: 1px solid #d0d0d0;
  color: #767676;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.topbar nav {
  gap: 28px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1;
  transform: translate(2px, 2px);
}

.language-toggle span {
  color: #9a9a9a;
  font-weight: 500;
  transition: color 0.2s ease;
}

.language-toggle span.active {
  color: #0a0a0a;
  font-weight: 700;
}

.language-toggle:hover span:not(.active),
.language-toggle:focus-visible span:not(.active) {
  color: #555555;
}

.language-toggle:focus-visible {
  outline: 1px solid #0a0a0a;
  outline-offset: 5px;
}

.report-toolbar {
  position: sticky;
  top: 72px;
  z-index: 19;
  min-height: 84px;
  padding: 16px 5vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #d7d5cf;
  backdrop-filter: blur(12px);
}

.report-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.report-label {
  color: #686868;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.report-title {
  min-width: 0;
  overflow: hidden;
  color: #0a0a0a;
  font-family: "Alimama ShuHeiTi", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 1.7vw, 23px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.report-close:hover,
.report-close:focus-visible {
  background: #ffffff;
  color: #0a0a0a;
  outline: none;
}

.topbar nav a {
  position: relative;
  color: #444444;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: #0a0a0a;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.topbar nav a:hover {
  color: #0a0a0a;
}

.topbar nav a:hover::after {
  transform: scaleX(1);
}

main {
  padding-bottom: 96px;
}

.hero {
  position: relative;
  margin-top: 0;
  padding: 76px 58px;
  border: 0;
  background: #0a0a0a;
  box-shadow: none;
  border-radius: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-copy,
.hero-verdict {
  position: relative;
  z-index: 1;
}

.kicker,
.hero-verdict .label,
.trend-note > span {
  color: #ababab;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.kicker .kicker-line {
  flex: 0 0 28px;
  width: 28px;
  height: 2px;
  background: #ffffff;
}

.kicker .kicker-text {
  width: auto;
  height: auto;
  min-width: 0;
  background: transparent;
  color: inherit;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html[lang="en"] .hero h1 {
  max-width: 820px;
  font-size: clamp(43px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

html[lang="en"] .hero-verdict > strong,
html[lang="en"] .insight-card h2,
html[lang="en"] .section-head h2,
html[lang="en"] .dish-card h3,
html[lang="en"] .action-card h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.source-label {
  display: block;
  margin: 14px 0 6px;
  color: #767676;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 24px;
  color: #ffffff;
  font-size: clamp(46px, 6.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h1 em {
  color: #ababab;
}

.hero-copy > p {
  color: #d0d0d0;
  font-size: 17px;
}

.hero-tags {
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid #444444;
  border-bottom: 1px solid #444444;
}

.hero-tags span {
  padding: 10px 16px;
  border: 0;
  border-right: 1px solid #444444;
  background: transparent;
  color: #ababab;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-verdict {
  padding: 30px;
  border: 1px solid #444444;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: none;
  border-radius: 0;
}

.hero-verdict > strong {
  font-size: 23px;
  letter-spacing: -0.02em;
}

.pulse-row {
  gap: 0;
  border: 1px solid #444444;
}

.pulse-row div {
  padding: 16px 8px;
  border-right: 1px solid #444444;
  background: transparent;
  border-radius: 0;
}

.pulse-row div:last-child {
  border-right: 0;
}

.pulse-row b {
  color: #ffffff;
}

.pulse-row span {
  color: #ababab;
}

.kpi-grid {
  gap: 0;
  margin-top: 0;
  border-right: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
}

.kpi {
  min-height: 122px;
  padding: 24px 20px;
  border: 0;
  border-top: 1px solid #d0d0d0;
  border-left: 1px solid #d0d0d0;
  background: #ffffff;
  box-shadow: none;
  border-radius: 0;
}

.kpi span {
  color: #767676;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.kpi strong {
  margin-top: 12px;
  color: #0a0a0a;
  font-size: 30px;
}

.insight-grid {
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid #d0d0d0;
  border-right: 1px solid #d0d0d0;
}

.insight-card {
  min-height: 280px;
  padding: 30px;
  border: 0;
  border-bottom: 1px solid #d0d0d0;
  border-left: 1px solid #d0d0d0;
  background: #ffffff;
  border-radius: 0;
}

.insight-card::before,
.insight-card.accent-gold::before,
.insight-card.accent-green::before {
  inset: 0 0 auto 0;
  width: auto;
  height: 4px;
  background: #0a0a0a;
}

.insight-card > span,
.section-kicker {
  color: #767676;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.insight-card h2 {
  margin: 20px 0 14px;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.section {
  margin-top: 100px;
  scroll-margin-top: 180px;
}

.section-head {
  padding-bottom: 22px;
  border-bottom: 1px solid #d0d0d0;
}

.section-head h2,
.methodology h2 {
  margin-top: 10px;
  color: #0a0a0a;
  font-size: 38px;
}

.segmented {
  gap: 0;
  padding: 0;
  border: 1px solid #d0d0d0;
  background: #ffffff;
  border-radius: 0;
}

.segmented button {
  padding: 10px 14px;
  border-right: 1px solid #d0d0d0;
  color: #767676;
  border-radius: 0;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: #0a0a0a;
  color: #ffffff;
  box-shadow: none;
}

.chart-card,
.ranking-card,
.heat-card,
.strength-panel {
  border: 1px solid #d0d0d0;
  background: #ffffff;
  box-shadow: none;
  border-radius: 0;
}

.column-chart {
  border-bottom-color: #d0d0d0;
  background: repeating-linear-gradient(to top, transparent 0, transparent 64px, #e8e8e8 65px);
}

.column-bar {
  background: #0a0a0a;
}

.column-value,
.rank-value {
  color: #0a0a0a;
}

.trend-note {
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
}

.trend-note strong {
  color: #ffffff;
}

.trend-note p {
  color: #ababab;
}

.rank-row:hover .rank-name {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rank-track,
.strength-track {
  background: #e8e8e8;
}

.rank-fill,
.strength-fill {
  background: #0a0a0a;
}

.heat-cell {
  border-color: #e8e8e8;
  color: #0a0a0a;
}

.dish-grid {
  gap: 0;
  border-top: 1px solid #d0d0d0;
  border-right: 1px solid #d0d0d0;
}

.dish-card {
  border: 0;
  border-bottom: 1px solid #d0d0d0;
  border-left: 1px solid #d0d0d0;
  background: #ffffff;
  border-radius: 0;
}

.ring {
  background: conic-gradient(#0a0a0a var(--progress), #e8e8e8 0);
}

.ring b {
  color: #0a0a0a;
}

.action-list {
  gap: 0;
  border-top: 1px solid #d0d0d0;
}

.action-card {
  border: 0;
  border-right: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  border-left: 1px solid #d0d0d0;
  background: #ffffff;
  border-radius: 0;
}

.priority {
  border: 1px solid #d0d0d0;
  background: #f4f4f4 !important;
  color: #0a0a0a !important;
}

.filters {
  border: 1px solid #d0d0d0;
  background: #ffffff;
  border-radius: 0;
}

.filters select,
.filters input {
  border-color: #d0d0d0;
  border-radius: 0;
}

.filters select:focus,
.filters input:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 2px #e8e8e8;
}

.result-count {
  border: 1px solid #d0d0d0;
  background: #ffffff;
  color: #0a0a0a;
}

.review-list {
  gap: 0;
  border-top: 1px solid #d0d0d0;
}

.review-card {
  border: 0;
  border-right: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  border-left: 1px solid #d0d0d0;
  background: #ffffff;
  border-radius: 0;
}

.stars,
.review-tags span,
.review-tags .reply {
  background: #f4f4f4;
  color: #444444;
}

details summary {
  color: #0a0a0a;
}

.pagination button {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 0;
}

.pagination button:disabled {
  border-color: #d0d0d0;
  background: #e8e8e8;
  color: #767676;
}

.methodology {
  border: 1px solid #d0d0d0;
  background: #ffffff;
  border-radius: 0;
}

footer {
  padding: 36px 0;
  background: #0a0a0a;
  color: #ffffff;
}

footer span {
  color: #ababab;
  font-size: 11px;
  letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
  .topbar-actions {
    gap: 18px;
  }

  .topbar nav {
    gap: 18px;
  }

  .topbar nav a {
    font-size: 12px;
  }
}

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

  .hero {
    padding: 58px 42px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 24px);
  }

  .topbar {
    height: 60px;
    padding: 0 16px;
  }

  .brand-mark {
    font-size: 24px;
  }

  .language-toggle {
    font-size: 12px;
    transform: translate(2px, 2px);
  }

  .report-toolbar {
    top: 60px;
    min-height: 68px;
    padding: 10px 12px 10px 16px;
    gap: 10px;
  }

  .report-heading {
    gap: 1px;
  }

  .report-label {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .report-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .report-close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 19px;
  }

  .hero {
    margin-top: 0;
    padding: 44px 22px;
  }

  .hero h1,
  html[lang="en"] .hero h1 {
    font-size: clamp(38px, 12vw, 44px);
    line-height: 1.04;
  }

  .kicker {
    align-items: flex-start;
  }

  .kicker .kicker-line {
    margin-top: 7px;
  }

  .hero-tags span {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #444444;
  }

  .hero-tags span:last-child {
    border-bottom: 0;
  }

  .pulse-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .insight-card {
    min-height: auto;
  }

  .section {
    margin-top: 72px;
  }

  .section-head h2,
  .methodology h2 {
    font-size: 31px;
  }
}

@media (max-width: 460px) {
  .brand-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Unified top-right language control · 2026-07-31 */
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
  margin-left: auto;
}

.topbar-actions .language-toggle {
  order: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 58px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  transform: translate(2px, 2px);
  white-space: nowrap;
}

.topbar-actions .language-toggle span {
  color: #9a9a9a;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  transition: color .2s ease;
}

.topbar-actions .language-toggle span.active,
html[data-language="en"] .topbar-actions .language-en,
html[data-language="zh"] .topbar-actions .language-zh {
  color: #0a0a0a;
  font-weight: 700;
}

html[data-language="en"] .topbar-actions .language-zh,
html[data-language="zh"] .topbar-actions .language-en {
  color: #9a9a9a;
  font-weight: 500;
}

.topbar-actions .language-toggle:hover span:not(.active),
.topbar-actions .language-toggle:focus-visible span:not(.active) {
  color: #555555;
}

.topbar-actions .language-toggle:focus-visible {
  outline: 1px solid #0a0a0a;
  outline-offset: 3px;
  box-shadow: none;
}

@media (max-width: 980px) {
  .topbar-actions nav {
    display: none;
  }

  .topbar-actions {
    gap: 0;
  }

  .topbar-actions .language-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .topbar-actions .language-toggle {
    min-width: 50px;
    min-height: 42px;
    padding: 0 2px;
    font-size: 12px;
    transform: translate(2px, 2px);
  }
}


/* Exact reference order: language toggle before report navigation */
.topbar-actions nav { order: 1; }
