:root {
  --green-900: #063f2b;
  --green-800: #075138;
  --green-700: #0a6444;
  --green-100: #e7f0eb;
  --gold-700: #9b7d2e;
  --gold-500: #b89a47;
  --gold-300: #d7c481;
  --ink: #333735;
  --muted: #6f746f;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #dfe4df;
  --shadow: 0 24px 70px rgba(11, 64, 44, .12);
  --radius: 22px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 1000;
  padding: .7rem 1rem; border-radius: 8px;
  color: white; background: var(--green-900);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(6, 63, 43, .08);
  background: rgba(251, 250, 246, .88);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max-width));
  height: 82px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 42px; height: 52px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { color: var(--green-900); font: 700 1.15rem/1 Georgia, serif; letter-spacing: .12em; }
.brand-text small { margin-top: 7px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; font-size: .95rem; color: #465049; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -9px;
  width: 100%; height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: right; transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--green-900); }

.hero {
  position: relative; min-height: 720px; overflow: hidden;
  color: white; background:
    radial-gradient(circle at 75% 28%, rgba(215, 196, 129, .20), transparent 24%),
    linear-gradient(120deg, #043725 0%, #075138 58%, #0b6848 100%);
}
.hero::before {
  content: ""; position: absolute; inset: auto -10% -46% 35%; height: 78%;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.14); transform: rotate(-11deg);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .12;
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.34) 23px 25px, transparent 26px 45px);
  mask-image: linear-gradient(90deg, transparent 0%, black 72%);
}
.hero-stars span { position: absolute; color: var(--gold-300); }
.hero-stars span:nth-child(1) { top: 90px; right: 12%; font-size: 28px; animation: drift 5s ease-in-out infinite; }
.hero-stars span:nth-child(2) { top: 180px; right: 5%; font-size: 18px; animation: drift 6s ease-in-out infinite 1s; }
.hero-stars span:nth-child(3) { bottom: 120px; left: 52%; font-size: 22px; animation: drift 5.5s ease-in-out infinite .5s; }
@keyframes drift { 50% { transform: translateY(-12px) rotate(15deg); } }
.hero-inner {
  position: relative; z-index: 2; width: min(calc(100% - 40px), var(--max-width));
  min-height: 720px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px;
}
.eyebrow, .section-kicker { color: var(--gold-300); font-size: .76rem; font-weight: 700; letter-spacing: .24em; }
.hero h1 { margin: 18px 0 12px; font: 500 clamp(2.7rem, 5.6vw, 5rem)/1.14 "Songti SC", "STSong", Georgia, serif; letter-spacing: .03em; }
.hero h1 em { color: var(--gold-300); font-style: normal; }
.hero-en { margin: 0; color: rgba(255,255,255,.93); font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.4 Georgia, serif; letter-spacing: .12em; }
.hero-desc { margin: 12px 0 0; color: var(--gold-300); font-size: 1.08rem; letter-spacing: .16em; }
.hero-actions { display: flex; gap: 14px; margin: 42px 0 35px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--green-900); background: var(--gold-300); font-weight: 700; }
.button-primary:hover { background: #e3d28f; }
.button-ghost { color: white; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px 30px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.74); font-size: .86rem; }
.hero-meta b { display: block; margin-bottom: 2px; color: white; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 500px; }
.hero-art img { position: relative; z-index: 2; width: min(100%, 410px); filter: none; }
.ink-line { position: absolute; z-index: 1; width: 540px; height: 130px; border-top: 2px solid rgba(215,196,129,.28); border-radius: 50%; transform: rotate(-18deg); }

.section { padding: 112px 0; }
.section > * { width: min(calc(100% - 40px), var(--max-width)); margin-left: auto; margin-right: auto; }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.section-kicker { margin-bottom: 18px; color: var(--gold-700); }
.intro h2, .section-head h2, .guide h2 { margin: 0; color: var(--green-900); font: 500 clamp(2.2rem, 4vw, 4.1rem)/1.25 "Songti SC", "STSong", Georgia, serif; }
.intro-copy { padding-top: 12px; font-size: 1.04rem; color: #535a55; }
.intro-copy p { margin: 0 0 20px; }
.principles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.principles span { padding: 9px 15px; border: 1px solid #d8dfda; border-radius: 999px; color: var(--green-800); background: white; font-size: .86rem; }

.section-tinted { background: #eef3ef; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-head p { margin: 10px 0 0; color: var(--muted); }
.year-tabs { display: flex; gap: 7px; padding: 5px; border: 1px solid #d8dfda; border-radius: 999px; background: rgba(255,255,255,.7); }
.year-tab { min-width: 64px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.year-tab.active { color: white; background: var(--green-800); }
.prompt-list { display: grid; gap: 16px; }
.prompt-card {
  position: relative; display: grid; grid-template-columns: 120px 1fr 70px; align-items: center; gap: 20px;
  min-height: 220px; padding: 34px 40px; overflow: hidden; border: 1px solid rgba(6,63,43,.11); border-radius: var(--radius);
  background: rgba(255,255,255,.78); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.prompt-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold-500); transform: scaleY(0); transition: transform .25s ease; }
.prompt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(6,63,43,.18); }
.prompt-card:hover::before { transform: scaleY(1); }
.prompt-card[hidden] { display: none; }
.prompt-year { align-self: start; color: var(--green-800); font: 700 1.55rem/1 Georgia, serif; letter-spacing: .06em; }
.prompt-body h3 { margin: 8px 0 8px; color: var(--ink); font: 500 1.55rem/1.4 "Songti SC", "STSong", Georgia, serif; }
.prompt-body p { max-width: 760px; margin: 0 0 18px; color: var(--muted); }
.status { display: inline-block; color: var(--gold-700); font-size: .76rem; font-weight: 700; letter-spacing: .12em; }
.text-button { padding: 0; border: 0; color: var(--green-800); background: transparent; cursor: pointer; font-weight: 700; }
.text-button span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.text-button:hover span { transform: translate(3px, -3px); }
.prompt-index { color: rgba(6,63,43,.12); font: 700 4rem/1 Georgia, serif; text-align: right; }

.essays-head { align-items: end; }
.search-box { width: min(100%, 350px); height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid #d9dfda; border-radius: 999px; background: white; }
.search-box svg { width: 18px; fill: none; stroke: var(--green-700); stroke-width: 1.8; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; }
.essay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.essay-card { overflow: hidden; border: 1px solid #dfe3df; border-radius: var(--radius); background: white; transition: transform .25s ease, box-shadow .25s ease; }
.essay-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.essay-card[hidden] { display: none; }
.essay-cover { position: relative; height: 240px; overflow: hidden; color: white; background: linear-gradient(145deg, var(--green-900), var(--green-700)); }
.essay-cover::after { content: ""; position: absolute; width: 180px; height: 180px; right: -35px; bottom: -65px; border: 1px solid rgba(215,196,129,.45); border-radius: 50%; }
.essay-cover img { position: absolute; right: 25px; bottom: 20px; width: 64px; filter: brightness(0) invert(1); opacity: .9; }
.award-badge { position: absolute; left: 20px; top: 20px; z-index: 2; padding: 6px 12px; border: 1px solid rgba(215,196,129,.6); border-radius: 999px; color: var(--gold-300); font-size: .76rem; }
.cover-number { position: absolute; left: 20px; bottom: 10px; color: rgba(255,255,255,.08); font: 700 7rem/1 Georgia, serif; }
.cover-lines { position: absolute; inset: 0; opacity: .08; background-image: repeating-linear-gradient(135deg, transparent 0 18px, white 19px 20px, transparent 21px 38px); }
.essay-content { padding: 25px 24px 27px; }
.essay-meta { display: flex; gap: 10px; color: var(--gold-700); font-size: .76rem; letter-spacing: .08em; }
.essay-meta span + span::before { content: "·"; margin-right: 10px; }
.essay-content h3 { margin: 0 0 12px; font: 500 1.4rem/1.4 "Songti SC", "STSong", Georgia, serif; }
.essay-content p { margin: 0 0 18px; color: var(--muted); }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }

.section-dark { color: white; background: var(--green-900); }
.guide-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.guide .section-kicker { color: var(--gold-300); }
.guide h2 { color: white; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.16); }
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.steps > li > span { color: var(--gold-300); font: 700 1rem/1.7 Georgia, serif; }
.steps b { font-size: 1.08rem; }
.steps p { margin: 3px 0 0; color: rgba(255,255,255,.64); }

.site-footer { color: #dee7e1; background: #032c1f; }
.footer-main, .footer-bottom { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }
.footer-main { min-height: 240px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 52px; filter: brightness(0) invert(1); }
.footer-brand div { display: grid; }
.footer-brand strong { color: white; font: 700 1.35rem/1 Georgia, serif; letter-spacing: .13em; }
.footer-brand span { margin-top: 8px; font-size: .76rem; color: rgba(255,255,255,.55); }
.footer-main > p { color: var(--gold-300); font-family: Georgia, "Songti SC", serif; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45); font-size: .78rem; }

.modal { width: min(calc(100% - 32px), 610px); padding: 38px; border: 0; border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 40px 100px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(1, 28, 19, .72); backdrop-filter: blur(4px); }
.modal-close { position: absolute; right: 18px; top: 12px; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
.modal-kicker { color: var(--gold-700); font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.modal h2 { margin: 14px 0 12px; color: var(--green-900); font: 500 2rem/1.3 "Songti SC", "STSong", Georgia, serif; }
.modal p { color: var(--muted); }
.modal-confirm { margin-top: 16px; }

@media (max-width: 900px) {
  .header-inner { height: 72px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 20px; right: 20px;
    display: none; padding: 18px; border: 1px solid #dfe4df; border-radius: 18px;
    background: var(--paper); box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; gap: 10px; }
  .site-nav a { padding: 8px; }
  .hero, .hero-inner { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 100px 0 70px; }
  .hero-art { min-height: 300px; order: -1; }
  .hero-art img { width: 260px; }
  .intro-grid, .guide-inner { grid-template-columns: 1fr; gap: 44px; }
  .section-head { align-items: start; flex-direction: column; }
  .essay-grid { grid-template-columns: 1fr 1fr; }
  .prompt-card { grid-template-columns: 90px 1fr; }
  .prompt-index { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; padding: 50px 0; }
  .footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 620px) {
  .brand-text small { display: none; }
  .hero-inner { padding-top: 70px; gap: 20px; }
  .hero-art { min-height: 240px; }
  .hero-art img { width: 210px; }
  .hero h1 { font-size: clamp(2.25rem, 11.5vw, 3.5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-meta { display: grid; }
  .section { padding: 82px 0; }
  .year-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .prompt-card { grid-template-columns: 1fr; gap: 8px; padding: 28px 24px; }
  .prompt-year { margin-bottom: 8px; }
  .essay-grid { grid-template-columns: 1fr; }
  .search-box { width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .modal { padding: 32px 24px; }
}

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


/* Content-specific refinements for the revised guide and essay presentation */
.guide-rules li { padding: 19px 0; }
.guide-rules p { max-width: 650px; }
@media (max-width: 620px) {
  .guide-rules li { grid-template-columns: 54px 1fr; }
}
