:root {
  --ink: #13251f;
  --ink-deep: #0b1713;
  --ink-soft: #29423a;
  --paper: #f4efe4;
  --paper-light: #fbf8f1;
  --paper-dark: #e6dcc8;
  --gold: #c79a4b;
  --gold-light: #e1bf79;
  --red: #a83a2e;
  --text: #1d2925;
  --muted: #68746f;
  --line: rgba(19, 37, 31, .15);
  --shell: min(1280px, calc(100vw - 96px));
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper-light);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { position: relative; padding-block: 128px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10000;
  padding: 10px 16px;
  color: white;
  background: var(--red);
  border-radius: 6px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  min-height: 92px;
  padding: 14px 40px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background .3s ease, min-height .3s ease, box-shadow .3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,13,10,.7), transparent);
  pointer-events: none;
}
.site-header.is-scrolled {
  min-height: 76px;
  background: rgba(10, 24, 19, .94);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.brand-toggle {
  position: relative;
  width: 62px;
  height: 62px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  cursor: pointer;
  overflow: hidden;
}
.brand-toggle img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.brand-toggle::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(225,191,121,.55);
  border-radius: 22px;
  opacity: 0;
  transition: opacity .2s ease;
}
.brand-toggle:hover::after, .brand-toggle:focus-visible::after { opacity: 1; }
.brand-toggle:focus-visible, .nav-close:focus-visible, .hero-arrow:focus-visible, .hero-dots button:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  margin-left: 18px;
  line-height: 1;
  white-space: nowrap;
}
.brand-name span { font: 700 23px/1 var(--serif); letter-spacing: .12em; }
.brand-name small { margin-top: 8px; color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .28em; }
.quick-nav { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 44px); }
.quick-nav a { position: relative; padding: 12px 0; font-size: 14px; letter-spacing: .08em; }
.quick-nav a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 4px;
  height: 1px;
  background: var(--gold-light);
  transition: left .2s ease, right .2s ease;
}
.quick-nav a:hover::after, .quick-nav a:focus-visible::after { left: 0; right: 0; }
.header-cta {
  padding: 12px 20px;
  color: #241a0c;
  background: var(--gold-light);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease;
}
.header-cta:hover { transform: translateY(-2px); background: #f1cf86; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(5, 12, 10, .68);
  backdrop-filter: blur(8px);
}
.site-nav-panel {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 1200;
  width: min(740px, calc(100vw - 44px));
  max-height: calc(100dvh - 44px);
  padding: 32px;
  color: #f8f2e7;
  background: #13211d;
  border: 1px solid rgba(225,191,121,.3);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(0,0,0,.46);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) scale(.98);
  transform-origin: top left;
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
}
.site-nav-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.nav-heading p { margin: 0 0 7px; color: var(--gold-light); font-size: 10px; letter-spacing: .24em; }
.nav-heading h2 { margin: 0; font: 700 32px/1.2 var(--serif); letter-spacing: .15em; }
.nav-close {
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.08);
  font-size: 28px;
  cursor: pointer;
}
.nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 22px 0; }
.nav-grid a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  min-height: 60px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-grid a:hover { transform: translateX(3px); background: rgba(199,154,75,.12); border-color: rgba(225,191,121,.48); }
.nav-grid a[aria-current="page"] { color: #1b241e; background: var(--gold-light); }
.nav-grid b { font-family: var(--serif); font-size: 17px; letter-spacing: .08em; }
.nav-grid span { color: rgba(255,255,255,.45); font-size: 11px; }
.nav-grid a[aria-current="page"] span { color: rgba(19,37,31,.62); }
.nav-actions { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.nav-actions a { padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; text-align: center; font-weight: 700; }
.nav-actions .nav-shop { color: #241a0c; background: var(--gold-light); border-color: var(--gold-light); }

.hero { position: relative; min-height: 760px; height: min(900px, 100svh); color: white; background: var(--ink-deep); overflow: hidden; }
.hero-slides, .hero-slide, .hero-slide picture { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .85s ease, visibility .85s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); transition: transform 8s ease; }
.hero-slide.is-active img { transform: scale(1); }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,14,10,.88) 0%, rgba(4,14,10,.5) 42%, rgba(4,14,10,.08) 76%),
    linear-gradient(0deg, rgba(4,14,10,.72), transparent 44%);
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; height: 100%; padding-top: 80px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; color: var(--gold-light); font: 600 13px/1 var(--serif); letter-spacing: .24em; }
.hero-kicker i { width: 24px; height: 1px; background: currentColor; opacity: .65; }
.hero-copy h1 { margin: 0; font: 500 clamp(58px, 6.6vw, 102px)/1.08 var(--serif); letter-spacing: .05em; text-shadow: 0 8px 42px rgba(0,0,0,.2); }
.hero-copy h1 em { color: #efd295; font-style: normal; }
.hero-copy > p:not(.hero-kicker) { max-width: 650px; margin: 30px 0 0; color: rgba(255,255,255,.78); font: 400 17px/1.9 var(--serif); letter-spacing: .06em; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .04em; cursor: pointer; transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #20170a; background: var(--gold-light); border-color: var(--gold-light); }
.button-primary:hover { background: #f1cf86; }
.button-ghost { color: white; border-color: rgba(255,255,255,.46); background: rgba(7,18,14,.18); backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: white; background: rgba(255,255,255,.1); }
.button-dark { color: white; background: var(--ink); border-color: var(--ink); }
.button-dark:hover { background: var(--ink-soft); }
.hero-controls { position: absolute; z-index: 4; left: 50%; bottom: 44px; display: flex; align-items: center; transform: translateX(-50%); }
.hero-arrow { width: 42px; height: 42px; padding: 0; color: white; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(7,18,14,.2); cursor: pointer; }
.hero-dots { display: flex; gap: 5px; margin: 0 18px; }
.hero-dots button { display: flex; align-items: center; width: 38px; height: 42px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-dots span { display: block; width: 100%; height: 2px; background: rgba(255,255,255,.38); }
.hero-dots button.is-active span { background: var(--gold-light); }
.hero-controls > p { margin: 0 0 0 26px; font-size: 12px; letter-spacing: .15em; }
.hero-controls > p b { color: var(--gold-light); font: 500 25px/1 var(--serif); }
.hero-controls > p span { margin: 0 7px; opacity: .45; }
.hero-scroll { position: absolute; z-index: 4; right: 38px; bottom: 36px; display: flex; flex-direction: column; align-items: center; color: rgba(255,255,255,.64); font-size: 10px; letter-spacing: .2em; }
.hero-scroll i { position: relative; display: block; width: 1px; height: 62px; margin-top: 12px; background: rgba(255,255,255,.22); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: -100% 0 100%; background: var(--gold-light); animation: scrollLine 2s ease infinite; }
@keyframes scrollLine { 50%,100% { transform: translateY(200%); } }

.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .24em; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 11px; vertical-align: middle; background: currentColor; }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 120px; align-items: end; }
.section-mark { position: absolute; right: 8%; top: 38px; color: rgba(19,37,31,.035); font: 700 260px/1 var(--serif); pointer-events: none; }
.intro h2, .section-header h2, .hongmou h2, .values h2, .visit h2 { margin: 0; font: 500 clamp(42px, 4.4vw, 66px)/1.25 var(--serif); letter-spacing: .04em; }
.intro-copy { padding-bottom: 7px; }
.intro-copy > p { margin: 0; color: #4f5d58; font: 400 17px/2 var(--serif); }
.text-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 30px; padding-bottom: 7px; color: var(--ink); border-bottom: 1px solid var(--ink); font-weight: 700; }
.text-link span { color: var(--red); transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.pathways { background: var(--paper); }
.section-header { display: grid; grid-template-columns: 1.1fr .9fr; gap: 120px; align-items: end; margin-bottom: 62px; }
.section-header > p { max-width: 520px; margin: 0 0 7px; color: #68736f; font: 400 16px/1.9 var(--serif); }
.pathway-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: repeat(2, 350px); gap: 16px; }
.pathway-card { position: relative; min-height: 320px; color: white; background: var(--ink); border-radius: 8px; overflow: hidden; }
.pathway-card picture, .pathway-card img { width: 100%; height: 100%; }
.pathway-card img { object-fit: cover; transition: transform .65s ease; }
.pathway-card:hover img { transform: scale(1.045); }
.pathway-wide { grid-row: span 2; }
.pathway-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,15,11,.9), rgba(5,15,11,.08) 72%); }
.pathway-content { position: absolute; inset: auto 0 0; z-index: 2; padding: 30px; }
.pathway-content > span { color: var(--gold-light); font-size: 10px; letter-spacing: .18em; }
.pathway-content h3 { margin: 10px 0; font: 500 32px/1.2 var(--serif); letter-spacing: .08em; }
.pathway-wide .pathway-content h3 { font-size: 46px; }
.pathway-content p { max-width: 410px; margin: 0; color: rgba(255,255,255,.68); font: 400 14px/1.7 var(--serif); }
.pathway-content a { display: inline-block; margin-top: 18px; color: var(--gold-light); font-size: 12px; font-weight: 700; }
.pathway-paper { color: var(--ink); background: #e9dfca; }
.pathway-paper .pathway-content { inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.pathway-paper .pathway-content > span, .pathway-paper .pathway-content a { color: var(--red); }
.pathway-paper .pathway-content p { color: rgba(19,37,31,.68); }
.paper-lines { position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(90deg, transparent 0 42px, #8d563f 43px 44px); transform: rotate(-4deg) scale(1.2); }

.hongmou { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 820px; padding: 0; background: #efe6d7; }
.hongmou-art { min-height: 820px; overflow: hidden; }
.hongmou-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hongmou-copy { display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(48px, 7vw, 130px); }
.hongmou-lead { margin: 28px 0 34px; color: #56635e; font: 400 16px/2 var(--serif); }
.hongmou ul { margin: 0 0 38px; padding: 0; list-style: none; }
.hongmou li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.hongmou li:last-child { border-bottom: 1px solid var(--line); }
.hongmou li > span { color: var(--red); font: 500 13px/1.7 var(--serif); }
.hongmou li b { font: 600 19px/1.5 var(--serif); }
.hongmou li p { margin: 4px 0 0; color: #69746f; font-size: 13px; line-height: 1.7; }
.hongmou .button { align-self: flex-start; }

.values { color: white; background: var(--ink-deep); overflow: hidden; }
.values-background { position: absolute; inset: 0; opacity: .12; background: url("/assets/chenshuyuan/images/desktop-15.jpg") center/cover; mix-blend-mode: luminosity; }
.values-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #091610, rgba(9,22,16,.68), #091610); }
.values-inner { position: relative; z-index: 1; text-align: center; }
.values .eyebrow { color: var(--gold-light); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.value-grid article { position: relative; padding: 46px 24px; border-right: 1px solid rgba(255,255,255,.16); }
.value-grid article:last-child { border-right: 0; }
.value-grid span { color: var(--gold-light); font: 500 13px/1 var(--serif); }
.value-grid h3 { margin: 17px 0 10px; font: 500 30px/1.2 var(--serif); letter-spacing: .12em; }
.value-grid p { margin: 0; color: rgba(255,255,255,.55); font: 400 13px/1.7 var(--serif); }

.archive { overflow: hidden; }
.archive-scroller { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.archive-card { position: relative; min-width: 0; height: 440px; margin: 0; background: var(--paper-dark); border-radius: 6px; overflow: hidden; }
.archive-card:nth-child(even) { margin-top: 36px; }
.archive-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.archive-card:hover img { transform: scale(1.04); }
.archive-card figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; padding: 54px 18px 18px; color: white; background: linear-gradient(transparent, rgba(8,17,13,.86)); }
.archive-card figcaption span { color: var(--gold-light); font-size: 10px; letter-spacing: .2em; }
.archive-card figcaption b { font: 500 17px/1.2 var(--serif); }

.visit { color: white; background: var(--ink); }
.visit::before { content: "陈氏书院"; position: absolute; left: -20px; bottom: -38px; color: rgba(255,255,255,.025); font: 700 180px/1 var(--serif); white-space: nowrap; pointer-events: none; }
.visit-grid { position: relative; display: grid; grid-template-columns: 1fr .82fr; gap: 120px; align-items: center; }
.visit .eyebrow { color: var(--gold-light); }
.visit-copy > p:not(.eyebrow) { max-width: 570px; margin: 28px 0; color: rgba(255,255,255,.62); font: 400 16px/1.9 var(--serif); }
.visit-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.visit-tags span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.72); font-size: 12px; }
.lead-form { padding: 38px; color: var(--text); background: var(--paper-light); border-radius: 12px; box-shadow: 0 28px 64px rgba(0,0,0,.18); }
.form-heading { margin-bottom: 24px; }
.form-heading span { font: 600 26px/1.3 var(--serif); }
.form-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.lead-form label { display: block; margin-top: 16px; }
.lead-form label > span { display: block; margin-bottom: 8px; color: #53605b; font-size: 12px; font-weight: 700; }
.lead-form input, .lead-form textarea { display: block; width: 100%; padding: 14px 15px; color: var(--text); border: 1px solid rgba(19,37,31,.18); border-radius: 7px; background: white; outline: 0; transition: border-color .2s ease, box-shadow .2s ease; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,75,.15); }
.lead-form .button { width: 100%; margin-top: 22px; border-radius: 7px; }
.lead-form > small { display: block; margin-top: 12px; color: #8a928f; text-align: center; font-size: 10px; }

/* 服务器原有“首页线索”表单嵌入样式。 */
.inquiry-embed .home-inquiry,
.inquiry-embed .home-inquiry * { box-sizing: border-box; }
.inquiry-embed .home-inquiry { width: 100%; padding: 0; color: var(--text); background: transparent; font-family: var(--sans); }
.inquiry-embed .home-inquiry-inner { width: 100%; max-width: none; }
.inquiry-embed .home-inquiry-heading { margin: 0 0 22px; text-align: left; }
.inquiry-embed .home-inquiry-heading h2 { margin: 0; color: var(--text); font: 600 28px/1.3 var(--serif); }
.inquiry-embed .home-inquiry-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.inquiry-embed .home-inquiry-card { margin: 0; padding: 38px; color: var(--text); background: var(--paper-light); border-radius: 12px; box-shadow: 0 28px 64px rgba(0,0,0,.18); }
.inquiry-embed .home-inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-embed .home-inquiry-field { display: block; }
.inquiry-embed .home-inquiry-field--wide { grid-column: 1 / -1; }
.inquiry-embed .home-inquiry-field > span { display: block; margin-bottom: 8px; color: #53605b; font-size: 12px; font-weight: 700; }
.inquiry-embed .home-inquiry-field input,
.inquiry-embed .home-inquiry-field textarea { display: block; width: 100%; margin: 0; padding: 14px 15px; color: var(--text); border: 1px solid rgba(19,37,31,.18); border-radius: 7px; background: white; outline: 0; resize: vertical; }
.inquiry-embed .home-inquiry-field input:focus,
.inquiry-embed .home-inquiry-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,75,.15); }
.inquiry-embed .home-inquiry-privacy { margin: 14px 0 12px; color: #8a928f; font-size: 10px; line-height: 1.6; text-align: center; }
.inquiry-embed .home-inquiry-submit { display: block; width: 100%; min-height: 50px; padding: 0 20px; color: #20170a; border: 0; border-radius: 7px; background: var(--gold-light); font-weight: 800; cursor: pointer; }
.inquiry-embed .home-inquiry-submit:hover,
.inquiry-embed .home-inquiry-submit:focus-visible { background: #f1cf86; outline: 3px solid rgba(225,191,121,.35); outline-offset: 2px; }
.inquiry-embed .home-inquiry-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.inquiry-embed .home-inquiry-alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.inquiry-embed .home-inquiry-alert--success { color: #14713a; background: #eaf8ef; }
.inquiry-embed .home-inquiry-alert--error { color: #a62b26; background: #fff0ef; }
.inquiry-unavailable { margin: 0; padding: 28px; color: #6f3d37; background: #fff4ef; border: 1px solid rgba(168,58,46,.2); border-radius: 12px; line-height: 1.8; }

.site-footer { color: rgba(255,255,255,.7); background: #08110e; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 46px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 54px; height: 54px; object-fit: cover; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand b { color: white; font: 600 21px/1.3 var(--serif); letter-spacing: .1em; }
.footer-brand span { margin-top: 5px; color: rgba(255,255,255,.38); font-size: 10px; letter-spacing: .12em; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 28px; font-size: 12px; }
.site-footer nav a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.35); font-size: 10px; }

.toast { position: fixed; z-index: 2000; left: 50%; bottom: 28px; max-width: calc(100vw - 32px); padding: 13px 18px; color: white; background: #1e342c; border: 1px solid rgba(225,191,121,.5); border-radius: 999px; box-shadow: 0 12px 38px rgba(0,0,0,.24); transform: translateX(-50%); font-size: 13px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 56px, 1040px); }
  .quick-nav { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .brand-name { justify-self: start; }
  .intro, .section-header { gap: 64px; }
  .pathway-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 440px 330px; }
  .pathway-wide { grid-row: auto; grid-column: span 2; }
  .hongmou { grid-template-columns: 1fr 1fr; }
  .hongmou-copy { padding: 78px 54px; }
  .visit-grid { gap: 64px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 36px); }
  .section { padding-block: 84px; }
  .site-header { min-height: 76px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; grid-template-columns: 58px 1fr 82px; border-bottom: 0; }
  .site-header::before { background: linear-gradient(180deg, rgba(5,13,10,.76), transparent); }
  .site-header.is-scrolled { min-height: 72px; }
  .brand-toggle { width: 56px; height: 56px; border-radius: 16px; }
  .brand-toggle img { border-radius: 12px; }
  .brand-name { justify-self: center; align-items: center; margin: 0; }
  .brand-name span { font-size: 19px; }
  .brand-name small { display: none; }
  .header-cta { justify-self: end; padding: 10px 13px; font-size: 12px; }

  .site-nav-panel {
    top: 50%; left: 50%;
    width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 22px 18px;
    border-radius: 20px;
    transform: translate(-50%, calc(-50% - 12px)) scale(.98);
    transform-origin: center;
  }
  .site-nav-panel.is-open { transform: translate(-50%, -50%); }
  .nav-heading { text-align: center; }
  .nav-heading > div { flex: 1; padding-left: 48px; }
  .nav-heading h2 { font-size: 26px; }
  .nav-heading p { font-size: 8px; }
  .nav-close { flex: 0 0 44px; width: 44px; height: 44px; }
  .nav-grid { gap: 8px; }
  .nav-grid a { display: block; min-height: 54px; padding: 14px 10px; text-align: center; }
  .nav-grid b { font-size: 15px; }
  .nav-grid span { display: none; }
  .nav-actions { grid-template-columns: 1fr 1fr 1fr; }
  .nav-actions .nav-shop { grid-column: 1 / -1; }
  .nav-actions a { padding: 12px 8px; font-size: 13px; }

  .hero { min-height: 650px; height: 82svh; max-height: 730px; }
  .hero::after {
    content: "状元文脉 · 家国担当";
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 78px;
    color: rgba(225,191,121,.34);
    font: 500 10px/1 var(--serif);
    letter-spacing: .24em;
    writing-mode: vertical-rl;
  }
  .hero-slide picture { bottom: auto; height: 34%; background: #0a1712; }
  .hero-slide img { object-position: center; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--ink-deep) 0 56%, rgba(4,14,10,.92) 64%, rgba(4,14,10,.04) 84%),
      linear-gradient(90deg, rgba(4,14,10,.18), transparent);
  }
  .hero-copy { justify-content: flex-start; padding: calc(34% + 44px) 0 110px; }
  .hero-kicker { margin-bottom: 18px; font-size: 10px; }
  .hero-kicker i { width: 14px; }
  .hero-copy h1 { font-size: clamp(43px, 13vw, 58px); line-height: 1.12; }
  .hero-copy > p:not(.hero-kicker) { max-width: 340px; margin-top: 20px; font-size: 14px; line-height: 1.75; }
  .hero-actions { margin-top: 25px; }
  .button { min-height: 46px; padding: 0 18px; font-size: 13px; }
  .hero-controls { bottom: 30px; }
  .hero-controls > p, .hero-arrow { display: none; }
  .hero-dots { margin: 0; }
  .hero-dots button { width: 54px; }
  .hero-scroll { display: none; }

  .intro { display: block; }
  .intro-heading h2, .section-header h2, .hongmou h2, .values h2, .visit h2 { font-size: 38px; line-height: 1.3; }
  .intro-copy { margin-top: 28px; }
  .intro-copy > p { font-size: 15px; }
  .section-mark { right: -20px; top: 32px; font-size: 170px; }
  .section-header { display: block; margin-bottom: 36px; }
  .section-header > p { margin-top: 20px; font-size: 14px; }

  .pathway-grid { display: flex; gap: 12px; margin-inline: -18px; padding-inline: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pathway-grid::-webkit-scrollbar, .archive-scroller::-webkit-scrollbar { display: none; }
  .pathway-card, .pathway-wide, .pathway-paper { flex: 0 0 84vw; height: 480px; min-height: 0; scroll-snap-align: center; }
  .pathway-card picture { display: block; }
  .pathway-content { padding: 25px; }
  .pathway-wide .pathway-content h3, .pathway-content h3 { font-size: 35px; }

  .hongmou { display: flex; flex-direction: column; min-height: 0; }
  .hongmou-art { min-height: 0; aspect-ratio: 16 / 9; }
  .hongmou-art img { object-fit: cover; }
  .hongmou-copy { padding: 74px 18px 82px; }
  .hongmou-lead { font-size: 15px; }
  .hongmou li { grid-template-columns: 34px 1fr; gap: 12px; }

  .values { padding-block: 90px; }
  .value-grid { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .value-grid article { padding: 32px 14px; }
  .value-grid article:nth-child(2) { border-right: 0; }
  .value-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .value-grid h3 { font-size: 25px; }
  .value-grid p { font-size: 11px; }

  .archive-scroller { display: flex; gap: 12px; margin-inline: -18px; padding: 0 18px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .archive-card, .archive-card:nth-child(even) { flex: 0 0 72vw; height: 470px; margin: 0; scroll-snap-align: center; }
  .archive-wide { flex-basis: 86vw; }

  .visit::before { font-size: 92px; }
  .visit-grid { display: block; }
  .visit-copy { margin-bottom: 46px; }
  .lead-form { padding: 28px 20px; }
  .inquiry-embed .home-inquiry-card { padding: 28px 20px; }
  .inquiry-embed .home-inquiry-grid { grid-template-columns: 1fr; }
  .inquiry-embed .home-inquiry-field--wide { grid-column: auto; }
  .footer-main { display: block; padding-block: 38px; }
  .site-footer nav { justify-content: flex-start; margin-top: 28px; gap: 14px 24px; }
  .footer-bottom { flex-wrap: wrap; justify-content: flex-start; }
  .footer-bottom span:last-child { flex-basis: 100%; }
}

@media (max-width: 380px) {
  .site-header { grid-template-columns: 54px 1fr 72px; padding-inline: 10px; }
  .brand-toggle { width: 52px; height: 52px; }
  .brand-name span { font-size: 17px; }
  .header-cta { padding-inline: 10px; font-size: 11px; }
  .hero-copy h1 { font-size: 41px; }
  .hero-actions { gap: 8px; }
  .button { padding-inline: 14px; font-size: 12px; }
  .nav-grid b { font-size: 14px; }
}

@media (max-width: 340px) {
  .section-mark { display: none; }
  .visit::before { display: none; }
  .hero::after { right: 10px; }
  .hero-copy h1 { font-size: 38px; }
  .pathway-grid, .archive-scroller { margin-inline: 0; padding-inline: 0; }
  .pathway-card, .pathway-wide, .pathway-paper { flex-basis: 82vw; }
  .archive-card, .archive-card:nth-child(even) { flex-basis: 70vw; }
}

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