:root {
  color-scheme: light;
  --ink: #151711;
  --muted: #6d6a5f;
  --paper: #f6f0e5;
  --paper-2: #ebe0cf;
  --white: #fffaf1;
  --gold: #c9a35d;
  --gold-2: #e2c98d;
  --green: #26392e;
  --line: rgba(31, 33, 26, .12);
  --shadow: 0 20px 60px rgba(22, 20, 14, .16);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.site-shell { min-height: 100vh; background: var(--paper); }
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: max(12px, env(safe-area-inset-top)) 18px 12px;
  color: #fffaf1;
  background: linear-gradient(to bottom, rgba(10, 12, 9, .78), rgba(10, 12, 9, 0));
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(226, 201, 141, .72);
  background: radial-gradient(circle at 50% 18%, rgba(226, 201, 141, .32), transparent 42%), rgba(17, 19, 15, .66);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::before {
  content: "H";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 0;
}
.brand strong { display: block; font-size: 15px; line-height: 1.1; letter-spacing: 0; white-space: nowrap; }
.brand small { display: block; margin-top: 3px; font-size: 10px; color: rgba(255, 250, 241, .72); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 250, 241, .86); white-space: nowrap; }
.nav-links a { padding: 8px 0; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 108px 22px 86px;
  color: #fffaf1;
  overflow: hidden;
}
.hero-media, .hero-media video, .hero-media img, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media video, .hero-media img { object-fit: cover; }
.hero-media video:not([src]) { display: none; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 12, 9, .92) 0%, rgba(9, 12, 9, .56) 48%, rgba(9, 12, 9, .20) 100%),
    linear-gradient(to top, rgba(9, 12, 9, .92), rgba(9, 12, 9, .08) 45%, rgba(9, 12, 9, .50));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1, .section h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 600;
  letter-spacing: 0;
}
.hero h1 {
  font-size: clamp(36px, 12vw, 78px);
  line-height: 1.04;
  max-width: 11em;
}
.hero-subtitle {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 250, 241, .82);
  font-size: 17px;
  line-height: 1.82;
}
.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(201, 163, 93, .62);
  border-radius: var(--radius);
  background: rgba(201, 163, 93, .16);
  color: #fffaf1;
  -webkit-tap-highlight-color: transparent;
}
.btn.primary { background: var(--gold); color: #17140d; font-weight: 700; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: 1px;
  height: 44px;
  background: rgba(255, 250, 241, .36);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 16px;
  background: var(--gold-2);
  animation: scrollLine 1.9s infinite;
}

.section { padding: 82px 20px; position: relative; }
.section-head, .intro-grid, .stats-grid, .cards-grid, .model-section, .join-section, .contact-section {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.section-head { margin-bottom: 34px; }
.section h2 {
  font-size: clamp(28px, 8vw, 52px);
  line-height: 1.15;
  color: var(--ink);
}
.section-head > p:not(.eyebrow), .model-copy > p:not(.eyebrow), .join-copy > p:not(.eyebrow), .contact-card > p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}
.section-warm { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: #fffaf1; }
.section-ink h2, .section-ink .stat-value { color: #fffaf1; }
.section-ink .section-head > p:not(.eyebrow), .section-ink .stat-label, .join-copy > p:not(.eyebrow) { color: rgba(255, 250, 241, .72); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}
.statement {
  padding: 30px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 250, 241, .62);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.statement h3 {
  margin: 0 0 16px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
  line-height: 1.25;
}
.statement p { margin: 0; color: var(--muted); line-height: 1.9; }
.image-panel, .model-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #11130f;
}
.image-panel img, .model-visual img { width: 100%; height: 100%; object-fit: cover; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 250, 241, .16);
  border-left: 1px solid rgba(255, 250, 241, .16);
}
.stat {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid rgba(255, 250, 241, .16);
  border-bottom: 1px solid rgba(255, 250, 241, .16);
}
.stat-value {
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(34px, 9vw, 62px);
  line-height: 1;
}
.stat-label { margin-top: 12px; font-size: 15px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.business-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(22, 20, 14, .08);
  transform: translateY(0);
  transition: transform .35s ease, box-shadow .35s ease;
}
.business-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.business-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.business-card div { padding: 20px; }
.business-card small { color: var(--gold); font-weight: 700; }
.business-card h3 { margin: 8px 0 10px; font-size: 22px; }
.business-card p { margin: 0; color: var(--muted); line-height: 1.78; }

.model-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}
.model-section h2 { color: var(--ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill-list span, .join-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 163, 93, .36);
  color: var(--green);
  background: rgba(255, 250, 241, .58);
  border-radius: 999px;
}

.honor-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.honor-item {
  flex: 0 0 min(320px, 82vw);
  min-height: 116px;
  scroll-snap-align: start;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 250, 241, .72);
  border: 1px solid rgba(201, 163, 93, .24);
  display: flex;
  align-items: flex-end;
  font-weight: 700;
  line-height: 1.55;
}
.certificate-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.certificate {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #11130f;
  min-height: 210px;
}
.certificate img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.certificate p {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  color: #fffaf1;
  font-weight: 700;
}

.join-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: center;
}
.join-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px;
  background: rgba(255, 250, 241, .06);
  border: 1px solid rgba(255, 250, 241, .12);
  border-radius: var(--radius);
}
.join-panel .btn { width: 100%; margin-top: 10px; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: stretch;
}
.contact-card, .qr-card {
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 44px rgba(22, 20, 14, .08);
}
.contact-lines { display: grid; gap: 10px; margin-top: 18px; color: var(--muted); }
.contact-lines strong { color: var(--ink); margin-right: 8px; }
.contact-actions .btn { color: var(--ink); background: rgba(201, 163, 93, .18); }
.contact-actions .primary { background: var(--gold); }
.qr-card { display: grid; place-items: center; text-align: center; }
.qr-card img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.qr-card p { color: var(--muted); }

.footer {
  padding: 34px 20px calc(34px + env(safe-area-inset-bottom));
  text-align: center;
  background: #10120e;
  color: rgba(255, 250, 241, .72);
}
.footer p { margin: 0 0 8px; color: var(--gold-2); }
.float-call, .hidden-admin-zone {
  position: fixed;
  z-index: 18;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(226, 201, 141, .55);
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(201, 163, 93, .36);
  animation: breathe 2.4s ease-in-out infinite;
}
.float-call::before { content: "☎"; font-size: 23px; color: #151711; }
.hidden-admin-zone {
  bottom: calc(84px + env(safe-area-inset-bottom));
  opacity: .02;
  animation: none;
}

.animate-in { opacity: 0; transform: translateY(18px); animation: enter .85s ease forwards; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 16px;
  background: rgba(10, 12, 9, .72);
}
.admin-modal.open { display: grid; place-items: center; }
.admin-dialog {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fffaf1;
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}
.admin-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  margin: 12px 12px 0 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #151711;
  color: #fffaf1;
  font-size: 24px;
}
.admin-login, .admin-editor { padding: 24px; }
.admin-login h2, .admin-editor h2 { margin: 0 0 8px; }
.admin-login p, .admin-editor-head p, .admin-help {
  color: var(--muted);
  line-height: 1.75;
}
.admin-login input, .admin-form input, .admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}
.admin-login button, .admin-tools button, .admin-savebar button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fffaf1;
  padding: 10px 14px;
  margin-top: 10px;
}
.admin-note { color: #9d2c20; }
.admin-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.admin-status {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 16px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: rgba(21, 23, 17, .06);
  color: var(--muted);
  font-weight: 700;
}
.admin-status.warning {
  background: rgba(201, 163, 93, .18);
  color: #76531d;
}
.admin-status.success {
  background: rgba(31, 123, 72, .14);
  color: #1f7b48;
}
.admin-status.working {
  background: rgba(38, 57, 46, .12);
  color: var(--green);
}
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.admin-tools button { margin-top: 0; background: #fff; color: var(--ink); }
.admin-form {
  display: grid;
  gap: 16px;
  padding-bottom: 14px;
}
.admin-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-section-head {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 2px;
}
.admin-section-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.admin-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.admin-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.admin-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.admin-field textarea { min-height: 92px; resize: vertical; }
.admin-field.wide { grid-column: 1 / -1; }
.admin-advanced {
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .48);
  padding: 12px 14px;
}
.admin-advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green);
}
.admin-help {
  margin: 0 0 74px;
  padding: 12px;
  background: rgba(201, 163, 93, .13);
  border-radius: var(--radius);
}
.admin-savebar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 0 -24px -24px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 241, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.admin-savebar button {
  margin: 0;
  min-width: 120px;
}
.admin-savebar #cancelEdit {
  background: #fff;
  color: var(--ink);
}
.admin-savebar #savePublish {
  background: var(--gold);
  color: #151711;
  font-weight: 800;
}

@keyframes enter {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0% { transform: translateY(-18px); }
  100% { transform: translateY(46px); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(201, 163, 93, .28); }
  50% { transform: scale(1.06); box-shadow: 0 14px 42px rgba(201, 163, 93, .48); }
}

@media (max-width: 760px) {
  .topbar { padding-left: 14px; padding-right: 14px; }
  .nav-links { gap: 9px; font-size: 12px; }
  .brand strong { font-size: 14px; }
  .hero { padding: 100px 18px 78px; }
  .hero h1 { font-size: clamp(34px, 13vw, 54px); }
  .hero-subtitle { font-size: 16px; line-height: 1.75; }
  .section { padding: 68px 18px; }
  .intro-grid, .model-section, .join-section, .contact-section { grid-template-columns: 1fr; }
  .statement { min-height: 250px; padding: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .certificate-strip { grid-template-columns: 1fr; }
  .contact-card, .qr-card { padding: 22px; }
  .admin-modal { padding: 0; }
  .admin-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .admin-login, .admin-editor { padding: 18px; }
  .admin-editor-head, .admin-form { display: block; }
  .admin-section {
    grid-template-columns: 1fr;
    padding: 15px;
    margin-bottom: 14px;
  }
  .admin-field { margin-bottom: 12px; }
  .admin-savebar {
    margin: 0 -18px -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .admin-savebar button {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal, .animate-in { opacity: 1; transform: none; }
}
