@charset "UTF-8";

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("fonts/harmonyos/SC-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("fonts/harmonyos/SC-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --panel: #fcfaf4;
  --ink: #223b31;
  --body: #28392f;
  --muted: #555f51;
  --line: #dcd8c8;
  --seal: #a74737;
  --sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --heading-font: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 15px/1.75 var(--sans);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--seal); outline-offset: 5px; }
[id] { scroll-margin-top: 24px; }

.shell { width: min(1184px, calc(100% - 72px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 8px 16px;
  background: var(--panel);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 4px;
  background: var(--seal);
  color: #fff9ed;
  font: 700 21px/1 var(--heading-font);
  box-shadow: inset 0 0 0 1px #fff5e951;
}
.brand-name { font: 700 21px/1.3 var(--heading-font); letter-spacing: .09em; color: var(--ink); }
.brand-caption { display: grid; gap: 2px; }
.brand-caption small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.site-nav, .back-link { color: var(--muted); font-size: 14px; white-space: nowrap; }
.site-nav a, .back-link { padding-block: 5px; }
.site-nav a:hover, .back-link:hover { color: var(--seal); }
.site-nav a[aria-current="page"] { color: var(--seal); font-weight: 700; text-decoration: underline; text-underline-offset: 8px; }
.nav-utility, .section-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-utility { padding: 6px 13px; border: 1px solid var(--line); border-radius: 4px; }
.nav-utility:hover, .section-link:hover { color: var(--seal); }
.search-symbol { display: inline-block; position: relative; width: 12px; height: 12px; margin-right: 2px; border: 1.5px solid currentColor; border-radius: 50%; }
.search-symbol::after { content: ""; position: absolute; width: 5px; right: -4px; bottom: -2px; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 440px;
  overflow: hidden;
  background: #19362e;
  color: #fbf7ea;
}
.hero-copy { position: relative; z-index: 1; width: min(48%, 530px); padding-block: 46px; }
.eyebrow { margin-bottom: 15px; color: #e7cc98; font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.eyebrow span { margin-inline: 3px; }
.hero h1 {
  font: 700 clamp(52px, 5vw, 73px)/1.15 var(--heading-font);
  letter-spacing: .025em;
  color: #fff9e9;
}
.hero-summary { max-width: 405px; margin-top: 17px; color: #e2e7da; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 22px; }
.hero .primary-link { margin: 0; background: #efe4c5; color: #20382e; border-color: #efe4c5; }
.hero .primary-link:hover { background: white; border-color: white; }
.secondary-link { display: inline-flex; gap: 12px; align-items: center; color: #fff9e9; font-size: 14px; }
.secondary-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fffdf4;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.primary-link:hover { border-color: var(--seal); background: var(--seal); }
.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 29%;
  background: #eae6d3 url("hero-ink.webp") center 56% / cover no-repeat;
}
.hero-art::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #19362e 0%, #19362ef5 8%, #19362e9c 25%, #19362e14 52%, transparent 82%);
  content: "";
}

.topics-section { padding-block: 46px 55px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-heading h2, .about-section h2 {
  color: var(--ink);
  font: 700 clamp(28px, 3vw, 36px)/1.3 var(--heading-font);
  letter-spacing: .02em;
}
.section-heading p { color: var(--muted); font-size: 14px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.topic-yi { --topic: #365a48; --topic-bg: #e7eee5; }
.topic-bazi { --topic: #9a4638; --topic-bg: #f1e5dd; }
.topic-ziwei { --topic: #4e6177; --topic-bg: #e7eaf0; }
.topic-liuyao { --topic: #816338; --topic-bg: #f1ead7; }
.topic-card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 16px;
  min-height: 156px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.topic-card:hover { transform: translateY(-3px); border-color: var(--topic); box-shadow: 0 10px 18px #28392f0d; }
.topic-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--topic-bg);
  color: var(--topic);
  font: 700 23px/1 var(--heading-font);
}
.topic-card h3 { color: var(--ink); font: 700 22px/1.35 var(--heading-font); }
.topic-card p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.topic-arrow { position: absolute; top: 18px; right: 17px; color: var(--topic); font-size: 18px; }

.reading-section { padding-block: 42px 48px; border-block: 1px solid var(--line); background: #eeeee3; }
.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.editorial-group { padding: 19px 22px 6px; border: 1px solid #dcddcf; border-radius: 10px; background: var(--panel); }
.editorial-group:target { border-color: var(--topic); box-shadow: 0 0 0 2px var(--topic-bg); }
.editorial-group h3 { margin-bottom: 6px; color: var(--topic); font-size: 14px; font-weight: 700; }
.article-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.article-link + .article-link { border-top: 1px solid var(--line); }
.article-link strong { display: block; color: var(--ink); font: 700 20px/1.4 var(--heading-font); }
.article-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.article-link > span:last-child { color: var(--topic); font-size: 18px; }
.article-link:hover strong { color: var(--topic); text-decoration: underline; text-underline-offset: 4px; }

.about-section { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 26px; padding-block: 44px; }
.about-section h2 { margin-bottom: 9px; }
.about-section h2 { font-size: 27px; }
.about-section p { max-width: 690px; }
.about-note { margin-top: 4px; color: var(--muted); font-size: 13px; }
.site-footer { padding-block: 22px; border-top: 1px solid #274438; background: #1c372e; color: #edeede; font-size: 13px; }
.site-footer a:hover { color: #f4d5a7; text-decoration: underline; }

.reading { width: min(760px, calc(100% - 72px)); padding-block: 56px 64px; }
.reading-kicker { margin-bottom: 12px; color: var(--seal); font-size: 14px; font-weight: 700; }
.reading h1 { color: var(--ink); font: 700 clamp(34px, 5vw, 56px)/1.25 var(--heading-font); }
.reading-lead { margin-top: 16px; padding-bottom: 23px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 18px; }
.reading-body { margin-top: 29px; font-size: 17px; line-height: 1.9; }
.reading-body h2 { margin: 27px 0 8px; color: var(--ink); font: 700 25px/1.4 var(--heading-font); }
.reading-body p + p { margin-top: 12px; }
.reading-body figure { margin: 24px 0; }
.reading-body figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }
.reading-body blockquote { margin: 18px 0; padding: 16px 20px; border-left: 3px solid var(--seal); background: #f0ebdd; color: var(--ink); font: 700 22px/1.65 var(--heading-font); }
.reading-table { overflow-x: auto; }
.reading-body table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 15px; }
.reading-body caption { margin-bottom: 8px; text-align: left; color: var(--muted); font-size: 14px; }
.reading-body th, .reading-body td { padding: 8px 10px; border: 1px solid var(--line); text-align: center; }
.reading-body th { background: #ebede0; color: var(--ink); }
.reading-source { margin-top: 29px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.reading-source a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.reading-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 25px; color: var(--ink); }
.reading-nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); font-size: 14px; }
.reading-nav a:hover { border-color: var(--ink); }

@media (max-width: 900px) {
  .hero { min-height: 418px; }
  .hero-art { left: 23%; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .header-inner:has(.site-nav) { flex-wrap: wrap; gap: 4px 12px; padding-top: 12px; }
  .header-inner:has(.site-nav) .site-nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 11px; overflow-x: auto; padding-block: 3px 7px; }
  .site-nav a { flex: none; }
}

@media (max-width: 640px) {
  .shell, .reading { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; gap: 11px; }
  .brand { gap: 7px; }
  .brand-mark { width: 28px; height: 28px; font-size: 17px; }
  .brand-name { font-size: 17px; letter-spacing: .03em; }
  .site-nav { gap: 11px; }
  .site-nav, .back-link { font-size: 12px; }
  .hero { display: block; min-height: 0; }
  .hero-copy { width: 100%; padding: 32px 4px 30px; }
  .eyebrow { margin-bottom: 10px; font-size: 12px; }
  .hero h1 { font-size: clamp(41px, 10vw, 59px); }
  .hero-summary { max-width: min(78%, 360px); margin-top: 12px; font-size: 14px; }
  .hero-actions { margin-top: 17px; gap: 16px; }
  .nav-utility { padding: 3px 9px; font-size: 12px; }
  .primary-link { margin-top: 15px; padding: 8px 13px; }
  .hero-art { inset: 0 0 0 8%; background-position: 74% center; }
  .hero-art::before { background: linear-gradient(90deg, #19362e 0%, #19362ee8 42%, #19362eaa 63%, #19362e1a 100%); }
  .topics-section { padding-block: 30px 33px; }
  .section-heading { align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 13px; }
  .section-heading p { font-size: 12px; }
  .topic-grid { gap: 9px; }
  .topic-card { min-height: 134px; gap: 9px; padding: 11px; }
  .topic-card h3 { font-size: 19px; }
  .topic-card p { font-size: 12px; line-height: 1.65; }
  .topic-mark { width: 36px; height: 36px; font-size: 19px; }
  .topic-arrow { top: 10px; right: 10px; }
  .reading-section { padding-block: 27px 31px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 10px; }
  .editorial-group { padding: 13px 15px 4px; }
  .article-link strong { font-size: 18px; }
  .about-section { grid-template-columns: 1fr; gap: 8px; padding-block: 27px; }
  .footer-inner { flex-wrap: wrap; gap: 3px 12px; font-size: 12px; }
  .reading { padding-block: 34px 42px; }
  .reading-lead { font-size: 16px; }
  .reading-body { margin-top: 18px; font-size: 16px; }
  .reading-body h2 { font-size: 22px; }
  .reading-body th, .reading-body td { padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topic-card, .primary-link { transition: none; }
  .topic-card:hover { transform: none; }
}
