:root {
  --page: #f7f9fc;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #2563eb;
  --green-dark: #172033;
  --green-pale: #eff6ff;
  --red: #e05252;
  --red-pale: #f9e9e9;
  --gold: #b88224;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

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

button,
select {
  font: inherit;
}

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

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: 48px;
  line-height: 1.22;
}

h2 {
  font-size: 28px;
  line-height: 1.35;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 243, 0.94);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.intro-section,
.content-grid,
.about-section,
.work-section,
.history-main,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.brand img,
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 24px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--green);
  transition: transform 0.15s ease;
}

.site-nav a:hover,
.site-nav .is-active {
  color: var(--green-dark);
}

.site-nav .is-active::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--green-dark);
  cursor: pointer;
}

.menu-button svg {
  width: 20px;
  height: 20px;
}

.intro-section {
  padding: 70px 0 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}

.intro-copy p:last-child,
.history-intro > p:last-child {
  max-width: 560px;
  margin-top: 10px;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.intro-history-link,
.text-link,
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.intro-history-link {
  flex: 0 0 auto;
  padding-bottom: 5px;
}

.intro-history-link svg,
.text-link svg,
.site-footer svg {
  width: 16px;
  height: 16px;
}

.preview-note {
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto -8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #785d1f;
  font-size: 14px;
}

.preview-note svg {
  width: 16px;
  height: 16px;
}

.content-grid {
  padding: 42px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
}

.section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading.compact {
  align-items: start;
}

.section-heading.compact > svg {
  width: 20px;
  color: var(--green);
}

.quiet-label {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-card {
  min-height: 184px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: #b7d9ed;
  box-shadow: 0 10px 24px rgba(24, 34, 29, 0.08);
}

.article-image {
  min-height: 184px;
  position: relative;
  overflow: hidden;
}

.article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 20, 0.18);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 22px 24px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.article-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-date svg,
.article-arrow svg {
  width: 15px;
  height: 15px;
}

.article-status,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.article-status {
  background: var(--green-pale);
  color: var(--green-dark);
}

.article-card h3 {
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.35;
}

.article-card p {
  color: var(--muted);
  font-size: 14px;
}

.article-card-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.article-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 34px;
}

.stats-panel,
.qr-panel {
  padding-top: 2px;
  border-top: 3px solid var(--green);
}

.win-rate {
  margin-top: 28px;
  font-family: var(--serif);
  color: var(--green-dark);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.stats-caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.stats-grid {
  margin: 25px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stats-grid div {
  min-height: 68px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.stats-grid dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.qr-panel {
  padding-top: 18px;
}

.qr-panel h2 {
  font-size: 23px;
}

.qr-code {
  width: 174px;
  height: 174px;
  margin: 18px 0 12px;
  padding: 5px;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-panel p:last-child {
  color: var(--muted);
  font-size: 13px;
}

.about-section {
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  border-top: 1px solid var(--line);
}

.about-section h2 {
  max-width: 450px;
  font-size: 36px;
}

.about-copy {
  display: grid;
  gap: 18px;
  align-content: center;
  color: var(--muted);
}

.work-section {
  padding: 0 0 72px;
}

.work-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.work-list li {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.work-list span {
  color: var(--green);
  font-family: var(--serif);
  font-weight: 700;
}

.work-list p {
  font-size: 18px;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-size: 17px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.site-footer p {
  color: var(--muted);
  font-size: 13px;
}

.history-main {
  padding: 74px 0 90px;
}

.history-intro {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.history-intro h1 {
  font-size: 46px;
}

.history-tools {
  padding: 26px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.history-tools > label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.history-tools .text-link {
  margin-left: auto;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  min-width: 136px;
  height: 38px;
  padding: 0 34px 0 10px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.select-wrap select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 77, 0.12);
}

.select-wrap svg {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.history-summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.history-summary strong {
  margin-right: 5px;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 26px;
}

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

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

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}

th {
  background: #f8faf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

td:first-child,
td:nth-child(4) {
  white-space: nowrap;
}

.status.win {
  background: var(--green-pale);
  color: #0c619a;
}

.status.loss {
  background: var(--red-pale);
  color: #9c2e2e;
}

.status.push {
  background: #f4efe4;
  color: #735b2e;
}

.status.pending,
.status.verify {
  background: #edf0ed;
  color: #58635b;
}

.article-origin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.article-origin svg {
  width: 14px;
  height: 14px;
}

.empty-state {
  padding: 36px 8px;
  color: var(--muted);
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.not-found-main {
  width: min(540px, calc(100% - 48px));
  padding: 48px 0;
}

.not-found-main > img {
  width: 76px;
  height: 76px;
  margin-bottom: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.not-found-main h1 {
  margin-bottom: 12px;
  font-size: 40px;
}

.not-found-main > p:last-of-type {
  color: var(--muted);
}

.not-found-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--green);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.primary-link {
  background: var(--green);
  color: #fff;
}

.secondary-link {
  background: var(--surface);
  color: var(--green-dark);
}

.primary-link svg,
.secondary-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 820px) {
  .header-inner,
  .intro-section,
  .content-grid,
  .about-section,
  .work-section,
  .history-main,
  .footer-inner,
  .preview-note {
    width: min(100% - 32px, 640px);
  }

  h1,
  .history-intro h1 {
    font-size: 40px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 8px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: 0 16px 30px rgba(24, 34, 29, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .site-nav a::after {
    display: none;
  }

  .intro-section {
    padding: 52px 0 30px;
    display: grid;
    align-items: start;
    gap: 20px;
  }

  .intro-history-link {
    padding: 0;
  }

  .content-grid {
    padding: 32px 0 62px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .about-section {
    padding: 58px 0;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-section h2 {
    font-size: 32px;
  }

  .footer-inner {
    min-height: auto;
    padding: 24px 0;
    flex-wrap: wrap;
  }

  .history-main {
    padding: 52px 0 62px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  h1,
  .history-intro h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .brand {
    font-size: 18px;
  }

  .header-inner {
    min-height: 64px;
  }

  .site-nav {
    top: 64px;
  }

  .intro-section {
    padding-top: 40px;
  }

  .article-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .article-image {
    min-height: 168px;
    aspect-ratio: 16 / 8;
  }

  .article-content {
    padding: 18px;
  }

  .article-card h3 {
    font-size: 21px;
  }

  .sidebar {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .qr-code {
    width: 184px;
    height: 184px;
  }

  .about-section h2 {
    font-size: 29px;
  }

  .work-list li {
    grid-template-columns: 48px 1fr;
  }

  .work-list p {
    font-size: 16px;
  }

  .history-tools {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .history-tools .text-link {
    margin: 6px 0 0;
    grid-column: 1 / -1;
  }

  .history-summary {
    min-height: auto;
    padding: 22px 0;
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .not-found-main h1 {
    font-size: 32px;
  }
}

/* Refined visual hierarchy for the public-facing site. */
h1,
h2 {
  font-family: var(--sans);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.brand,
.footer-brand {
  font-family: var(--sans);
}

.brand img,
.footer-brand img {
  border: 1px solid #d8e1ec;
}

.site-nav {
  color: var(--muted);
}

.site-nav a::after {
  background: var(--green);
}

.site-nav a:hover,
.site-nav .is-active {
  color: var(--green);
}

.menu-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--green);
}

.intro-section {
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--line);
}

.intro-copy p:last-child,
.history-intro > p:last-child {
  margin-top: 8px;
}

.intro-copy h1 {
  font-size: 32px;
  line-height: 1.3;
}

.intro-copy p:last-child {
  margin-top: 4px;
}

.eyebrow {
  font-size: 12px;
}

.intro-history-link {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #c7d6e2;
  border-radius: 4px;
}

.preview-note {
  display: none !important;
}

.content-grid {
  padding: 26px 0 48px;
  gap: 36px;
}

.section-heading {
  margin-bottom: 14px;
}

.article-list {
  gap: 12px;
}

.article-card {
  min-height: 164px;
  grid-template-columns: 218px minmax(0, 1fr);
  border-left: 4px solid transparent;
}

.article-card:hover {
  border-color: #b7d9ed;
  border-left-color: var(--green);
  box-shadow: 0 12px 26px rgba(27, 35, 45, 0.1);
}

.article-image {
  min-height: 164px;
}

.article-content {
  padding: 18px 22px;
}

.article-card h3 {
  margin: 8px 0 5px;
  font-family: var(--sans);
  font-size: 21px;
}

.article-card-footer {
  padding-top: 12px;
}

.sidebar {
  gap: 22px;
}

.stats-panel {
  padding: 22px;
  border: 1px solid #d6e5ff;
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: #f1f6ff;
  color: var(--ink);
}

.stats-panel .eyebrow,
.stats-panel .section-heading.compact > svg {
  color: var(--green);
}

.stats-panel h2 {
  color: var(--ink);
}

.stats-panel .text-link {
  color: var(--green);
}

.win-rate {
  margin-top: 25px;
  font-family: var(--sans);
  color: var(--green);
  font-size: 31px;
}

.stats-caption,
.stats-grid dt {
  color: var(--muted);
}

.stats-grid {
  border-top-color: #d6e5ff;
  border-left-color: #d6e5ff;
}

.stats-grid div {
  border-right-color: #d6e5ff;
  border-bottom-color: #d6e5ff;
}

.stats-grid dd {
  color: var(--ink);
}

.qr-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.qr-code {
  margin: 16px 0 10px;
}

.about-section {
  gap: 72px;
  border-top: 1px solid var(--line);
}

.about-section h2 {
  font-size: 33px;
}

.work-list li {
  padding: 18px 0;
}

.work-list p {
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.site-footer p {
  color: var(--muted);
}

.site-footer a {
  color: var(--green);
}

.history-intro h1 {
  font-size: 43px;
}

.history-table-section {
  border-radius: 4px;
}

@media (max-width: 820px) {
  .site-nav {
    border-color: #c5d3df;
    color: var(--green-dark);
  }

  .site-nav a:hover,
  .site-nav .is-active {
    color: var(--green);
  }

  .intro-section {
    padding: 24px 0 18px;
  }

  .content-grid {
    gap: 42px;
  }

  .about-section h2 {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .intro-copy h1 {
    font-size: 29px;
  }

  .article-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .article-image {
    min-height: 156px;
    aspect-ratio: 16 / 8;
  }

  .article-content {
    padding: 18px;
  }

  .about-section h2 {
    font-size: 28px;
  }
}

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