:root {
  --bg: #FAF6EC;
  --bg-section: #F4ECDB;
  --bg-card: #FFFCF6;
  --ink: #2A241B;
  --ink-soft: #4A453E;
  --ink-muted: #897F6C;
  --line: #D9CDB2;
  --line-soft: #E8E0CA;
  --gold: #B8924A;
  --gold-deep: #8C6A2D;
  --max-width: 1100px;
  --content-pad: clamp(1.25rem, 4vw, 2.5rem);

  --font-zh-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-zh-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en-serif: 'Cormorant Garamond', 'EB Garamond', 'Times New Roman', serif;
  --font-en-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-zh-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 1200px 800px at 20% 0%, rgba(184, 146, 74, 0.05), transparent 70%),
    radial-gradient(ellipse 1000px 700px at 80% 30%, rgba(184, 146, 74, 0.035), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ────────── NAV ────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.95rem var(--content-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-en-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
}
.nav-mark {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-zh-serif);
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-deep); }

/* ────────── HERO ────────── */
.hero {
  padding: clamp(4rem, 10vw, 7rem) var(--content-pad) clamp(3.5rem, 9vw, 6rem);
  display: flex;
  justify-content: center;
}
.hero-frame {
  position: relative;
  max-width: 760px;
  width: 100%;
  padding: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
  opacity: 0.5;
}
.hero-frame::before { top: 6px; }
.hero-frame::after { bottom: 6px; }

.hero-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
}
.hero-corner.tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.hero-corner.tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.hero-corner.bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.hero-corner.br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-medallion {
  width: clamp(72px, 9vw, 96px);
  height: auto;
  color: var(--gold);
  margin-bottom: 1.75rem;
  opacity: 0.85;
}
.hero-title-zh {
  font-family: 'Ma Shan Zheng', var(--font-zh-serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.2vw, 5.5rem);
  letter-spacing: 0.18em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-divider-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.hero-name {
  font-family: var(--font-en-serif);
  font-size: 0.95rem;
  letter-spacing: 0.55em;
  color: var(--gold-deep);
  font-weight: 500;
}
.hero-subtitle-zh {
  font-family: var(--font-zh-serif);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.hero-subtitle-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}
.hero-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin-bottom: 2rem;
}
.hero-tagline-zh {
  font-family: var(--font-zh-serif);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.hero-tagline-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

/* ────────── FLEURON ────────── */
.fleuron {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}
.fleuron span {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.5em;
  position: relative;
  padding: 0 1.5rem;
  opacity: 0.7;
}
.fleuron span::before,
.fleuron span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: var(--line);
}
.fleuron span::before { right: 100%; }
.fleuron span::after { left: 100%; }

/* ────────── SECTION ────────── */
.tools {
  padding: clamp(2rem, 5vw, 4rem) var(--content-pad) clamp(4rem, 8vw, 6rem);
}
.about {
  padding: clamp(2rem, 5vw, 4rem) var(--content-pad) clamp(5rem, 9vw, 7rem);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.section-eyebrow {
  font-family: var(--font-zh-serif);
  font-size: 0.85rem;
  letter-spacing: 0.55em;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.section-title-zh {
  font-family: var(--font-zh-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.section-title-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: 3rem;
}

/* ────────── CARDS ────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  text-align: left;
}
.card {
  background: var(--bg-card);
  position: relative;
  display: flex;
  padding: 6px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  min-height: 280px;
}
.card-frame {
  border: 1px solid var(--line-soft);
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(60, 40, 14, 0.08);
  border-color: var(--gold);
}
.card-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.card-title-zh {
  font-family: var(--font-zh-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.4;
}
.card-title-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.card-body {
  font-family: var(--font-zh-serif);
  font-size: 0.98rem;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  flex: 1;
}
.card-link {
  font-family: var(--font-zh-serif);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-top: 0.85rem;
  font-weight: 500;
}
.card-disabled { opacity: 0.5; cursor: not-allowed; }
.card-disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

/* ────────── ABOUT ────────── */
.about-inner {
  max-width: 720px;
}
.about-zh {
  font-family: var(--font-zh-serif);
  font-size: 1.08rem;
  line-height: 2.05;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  text-align: justify;
}
.about-zh + .about-zh { margin-top: 0.5rem; }

.dropcap {
  float: left;
  font-family: var(--font-zh-serif);
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 600;
  color: var(--gold-deep);
  margin-right: 0.4rem;
  margin-top: 0.18rem;
  letter-spacing: 0;
}
.about-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin: 1.75rem auto 1.5rem;
}
.about-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

.about-community {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 2rem auto 0;
  max-width: 380px;
  padding: 1.6rem 2.5rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.about-community::before,
.about-tip::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.about-community:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(60, 40, 14, 0.07);
}
.about-community-label,
.about-tip-label {
  font-family: var(--font-zh-serif);
  font-size: 0.82rem;
  letter-spacing: 0.55em;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.about-community-text-zh,
.about-tip-text-zh {
  font-family: var(--font-zh-serif);
  font-size: 1.18rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  font-weight: 500;
}
.about-community-text-en,
.about-tip-text-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.about-community-arrow {
  color: var(--gold);
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

.about-tip {
  margin: 1.5rem auto 0;
  max-width: 380px;
  padding: 1.8rem 2.5rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.about-tip-text-en { margin-bottom: 0.6rem; }
.about-tip-qr {
  width: 200px;
  height: auto;
  display: block;
  margin-top: 0.3rem;
  filter: grayscale(0.05);
}
.about-tip-caption {
  font-family: var(--font-zh-serif);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

/* ────────── FOOTER ────────── */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--line-soft);
  padding: 2.25rem var(--content-pad);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-mark {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.5em;
}
.footer-text {
  text-align: center;
  font-family: var(--font-zh-serif);
}
.footer-zh {
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.footer-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.footer-top {
  font-family: var(--font-zh-serif);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--ink-muted);
  transition: color 0.25s;
}
.footer-top:hover { color: var(--gold-deep); }

/* ────────── RESPONSIVE ────────── */
@media (max-width: 600px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.85rem; letter-spacing: 0.25em; }
  .nav-mark { width: 16px; height: 16px; }
  .nav-logo span { font-size: 0.85rem; letter-spacing: 0.2em; }
  .hero-frame { padding: 2.25rem 1.25rem; }
  .hero-divider-rule { width: 32px; }
  .footer-inner { flex-direction: column; gap: 0.6rem; }
}
