:root {
  --cream: #fff6e3;
  --cream-2: #fff9ee;
  --yellow: #ffd93d;
  --yellow-deep: #f5c542;
  --ink: #5b4636;
  --ink-soft: #7a6554;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(91, 70, 54, 0.08);
  --shadow-soft: 0 8px 24px rgba(91, 70, 54, 0.06);
  --radius: 20px;
  --header-radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 420px at 100% -10%, #fff9ee 0%, rgba(255, 249, 238, 0) 70%),
    var(--cream);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}

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

button, input { font-family: inherit; color: inherit; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 50;
}

.skip:focus { top: 12px; }

.decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.d-lemon,
.d-flower,
.d-slice {
  position: absolute;
}

.d-lemon {
  width: 22px;
  height: 28px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 30%, #fff1a8, #ffd93d 46%, #f0b429);
  box-shadow: inset -4px -5px 0 rgba(196, 140, 20, 0.18);
}

.d-lemon::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 7px;
  background: #6eaf3d;
  border-radius: 0 80% 0 80%;
  top: -4px;
  left: 7px;
  transform: rotate(-28deg);
}

.d-flower {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5c542;
  box-shadow:
    0 -11px 0 3px #fff,
    10px -3px 0 3px #fff,
    6px 9px 0 3px #fff,
    -6px 9px 0 3px #fff,
    -10px -3px 0 3px #fff;
}

.d-slice {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 8deg, #fff6c8 0 16deg, #ffe07a 16deg 32deg);
  border: 2px solid #f5c542;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35);
}

.lemon-a { top: 86px; left: 14px; transform: rotate(-18deg); }
.lemon-b { top: 220px; right: 16px; width: 18px; height: 24px; transform: rotate(20deg); }
.lemon-c { bottom: 48px; left: 18px; transform: rotate(12deg); }
.lemon-d { bottom: 36px; right: 22px; width: 16px; height: 20px; }
.flower-a { top: 128px; right: 22px; }
.flower-b { top: 46%; left: 10px; }
.flower-c { bottom: 120px; right: 14px; }
.flower-d { top: 68%; left: 12px; }
.slice-a { top: 168px; left: 8px; transform: rotate(-20deg); }
.slice-b { bottom: 18px; right: 64px; transform: rotate(16deg); }

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 16px 8px;
}

.site-header { position: sticky; top: 10px; z-index: 30; }

.header-bar {
  background: var(--white);
  border-radius: var(--header-radius);
  box-shadow: 0 8px 28px rgba(91, 70, 54, 0.08);
  display: flex;
  align-items: center;
  gap: 10px 14px;
  padding: 8px 12px 8px 10px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.logo img { width: 42px; height: 42px; }

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  align-items: center;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 2px;
}

.primary-nav a.is-active { font-weight: 800; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: auto;
  justify-content: flex-end;
}

.lang-switch button,
.pill,
.icon-btn,
.btn {
  border: 0;
  cursor: pointer;
  background: transparent;
}

.lang-switch button {
  font-size: 12.5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.lang-switch button.is-active {
  background: var(--yellow);
  font-weight: 800;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
}

.icon-btn svg { width: 18px; height: 18px; }

.menu-btn { display: none; }

.mobile-panel { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px 24px;
  align-items: center;
  padding: 34px 8px 10px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.slogan {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 46ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--yellow);
  box-shadow: 0 5px 0 #e3b423;
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: var(--white);
  border-color: rgba(91, 70, 54, 0.16);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 197, 66, 0.7);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.chip-icon { width: 16px; height: 16px; flex: none; }

.hero-art {
  position: relative;
  min-height: 280px;
}

.hero-art img {
  width: min(100%, 460px);
  margin-left: auto;
  filter: drop-shadow(0 18px 24px rgba(91, 70, 54, 0.08));
}

.sheet {
  background: var(--white);
  border-radius: 28px;
  padding: 28px 26px 22px;
  box-shadow: 0 16px 40px rgba(91, 70, 54, 0.05);
  margin-top: 8px;
}

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

.section-head h2,
.page-intro h1,
.prose h1,
.exam-group h2,
.morning-copy h3,
.card h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head h2 { margin: 0; font-size: 26px; }

.section-head p,
.section-link {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.section-link { text-decoration: none; }

.section-link:hover { color: var(--ink); }

.block-gap { margin-top: 28px; }

.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.lang-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffdf8;
  border: 1px solid rgba(245, 197, 66, 0.55);
  border-radius: 18px;
  padding: 14px 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  box-shadow: var(--shadow-soft);
}

.lang-card:hover { transform: translateY(-2px); }

.flag { font-size: 26px; line-height: 1; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(91, 70, 54, 0.04);
}

a.card:hover,
.lang-card:hover,
.mini:hover,
.exam-pill:hover { transform: translateY(-2px); }

.card:target,
.exam-card:target {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 3px;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff7d6, #ffd56a 55%, #f3c56b);
}

.thumb::before,
.thumb::after {
  content: "";
  position: absolute;
}

.thumb::before {
  width: 54px;
  height: 68px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 30%, #fff6c2, #ffd93d 50%, #e8ae28);
  left: 16%;
  bottom: 14%;
  transform: rotate(-8deg);
  box-shadow: inset -6px -8px 0 rgba(196, 140, 20, 0.15);
}

.thumb::after {
  width: 28px;
  height: 14px;
  background: #6eaf3d;
  border-radius: 0 80% 0 80%;
  left: 22%;
  bottom: 58%;
  transform: rotate(-30deg);
}

.thumb[data-thumb="ep02"] {
  background: linear-gradient(160deg, #fffaf0, #ffe7a4 42%, #d7ecff);
}

.thumb[data-thumb="cao-zhi"] {
  background: linear-gradient(165deg, #f7f3e4, #e7d3a1 48%, #f6e7b2);
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 8px 16px rgba(91, 70, 54, 0.16);
  z-index: 1;
}

.play::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 16px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--ink);
}

.card h3 { margin: 12px 4px 6px; font-size: 16px; line-height: 1.35; }

.meta, .desc, .pending {
  margin: 0 4px;
  color: var(--ink-soft);
  font-size: 13px;
}

.desc { margin-top: 8px; color: var(--ink); font-size: 14px; line-height: 1.55; }

.pending { margin-top: 10px; font-weight: 700; color: var(--ink); }

.out-link { font-weight: 800; }

.morning-feature {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  background: linear-gradient(180deg, #fffdf6, #fff);
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.date-plate {
  background: var(--yellow);
  border-radius: 18px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  font-weight: 800;
}

.date-plate .today-badge {
  background: var(--white);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

.date-plate strong { font-size: 28px; line-height: 1; letter-spacing: -0.03em; }

.date-plate span { font-size: 13px; margin-top: 6px; }

.morning-copy h3 { margin: 4px 0 8px; font-size: 22px; }

.kicker { margin: 0; font-size: 13px; font-weight: 800; color: var(--ink-soft); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fffdf8;
  border: 1px solid rgba(245, 197, 66, 0.4);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  min-height: 112px;
}

.mini-date, .mini-day { font-size: 12px; color: var(--ink-soft); font-weight: 700; }

.mini strong { font-size: 14px; line-height: 1.35; }

.recent-label {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.exam-bar {
  margin-top: 26px;
  background: linear-gradient(90deg, #ffe56a, #ffd93d 55%, #f5c542);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.exam-label { font-weight: 800; margin-right: 4px; }

.exam-pill {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(91, 70, 54, 0.05);
}

.site-footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 26px 12px 36px;
}

.site-footer p { margin: 0; }

.site-footer a { color: inherit; }

.page-intro { padding: 28px 8px 0; }

.page-intro h1 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 44px); }

.filters { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 20px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.filter-label { font-weight: 800; margin-right: 4px; }

.pill {
  border-radius: 999px;
  border: 1px solid rgba(91, 70, 54, 0.12);
  background: var(--white);
  padding: 6px 12px;
  font-weight: 700;
  font-size: 14px;
}

.pill.is-active { background: var(--yellow); border-color: transparent; }

.empty {
  background: var(--white);
  border-radius: 22px;
  padding: 48px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty h2 { margin: 0 0 8px; font-size: 28px; }

.empty p { margin: 0; color: var(--ink-soft); }

.catalog { padding-bottom: 12px; }

.exam-groups { display: flex; flex-direction: column; gap: 26px; }

.exam-group h2 { margin: 0 0 12px; font-size: 22px; }

.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.exam-card {
  background: var(--white);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(245, 197, 66, 0.35);
}

.exam-card h3 { margin: 0 0 8px; font-size: 26px; }

.exam-card .desc { margin: 0 0 14px; }

.prep {
  margin-top: 12px;
  background: var(--cream);
  border-radius: 14px;
  padding: 12px 14px;
}

.prep h4 { margin: 0 0 8px; }

.prep ul { margin: 0; padding-left: 18px; }

.prose-wrap { padding: 28px 0 12px; }

.prose {
  background: var(--white);
  border-radius: 24px;
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-soft);
  max-width: 760px;
}

.prose h1 { margin: 0 0 12px; font-size: 36px; }

.prose p { line-height: 1.7; color: var(--ink-soft); }

dialog {
  border: 0;
  border-radius: 22px;
  padding: 22px;
  width: min(520px, calc(100% - 32px));
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(91, 70, 54, 0.22);
}

dialog::backdrop { background: rgba(91, 70, 54, 0.35); }

dialog h2 { margin: 0 0 8px; }

dialog p { margin: 0 0 16px; color: var(--ink-soft); }

.search-input {
  width: 100%;
  border: 1px solid rgba(91, 70, 54, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  background: var(--cream-2);
}

.search-results { list-style: none; margin: 12px 0 0; padding: 0; max-height: 320px; overflow: auto; }

.search-results a {
  display: block;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 12px;
}

.search-results a:hover { background: var(--cream); }

.search-results small { display: block; color: var(--ink-soft); }

.dialog-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

.noscript {
  max-width: 720px;
  margin: 24px auto;
  background: var(--white);
  padding: 16px 18px;
  border-radius: 16px;
}

@media (max-width: 1020px) {
  .primary-nav, .lang-switch { display: none; }
  .menu-btn { display: inline-flex; }
  .search-btn { margin-left: auto; }
  .header-bar { flex-wrap: wrap; }
  .mobile-panel.is-open {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 6px 6px 10px;
  }
  .mobile-panel .primary-nav,
  .mobile-panel .lang-switch {
    display: flex;
    margin-left: 0;
    justify-content: flex-start;
  }
  .mobile-panel .primary-nav { flex-direction: column; align-items: flex-start; gap: 4px; }
  .mobile-panel .primary-nav a { font-size: 16px; padding: 6px 2px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 22px; }
  .hero-art { order: 2; min-height: 0; }
  .hero-art img { margin: 0 auto; max-width: 340px; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .exam-grid { grid-template-columns: 1fr; }
  .morning-feature { grid-template-columns: 1fr; }
  .sheet { padding: 20px 14px 16px; }
}

@media (max-width: 1240px) {
  .decor { display: none; }
}

@media (max-width: 640px) {
  .card-grid, .lang-grid, .mini-grid { grid-template-columns: 1fr; }
  .logo span { font-size: 16px; }
  .hero h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn-primary:hover,
  a.card:hover,
  .lang-card:hover,
  .mini:hover,
  .exam-pill:hover { transform: none; }
}
