:root {
  --ink: #2c2c34;
  --ink-soft: #4a4a56;
  --muted: #7a7570;
  --faint: #a8a29e;
  --accent: #b8956a;
  --accent-deep: #8a6a3a;
  --taupe: #9c8b7e;
  --bg: #f8f3ed;
  --bg-warm: #f3ece4;
  --surface: #ffffff;
  --line: rgba(44, 44, 52, 0.1);
  --shadow: 0 12px 40px rgba(44, 44, 52, 0.08);
  --font-serif: "Cormorant Garamond", "Songti SC", "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(248, 243, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.topbar__nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.topbar__nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 88px;
  overflow: hidden;
}

.hero__brand,
.hero__tag,
.hero__sub,
.hero__cta {
  position: relative;
}

.hero__brand {
  margin: 0;
  line-height: 0;
}

.hero__logo {
  width: min(72vw, 320px);
  height: auto;
  margin: 0 auto;
}

.hero__tag {
  margin: 28px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.hero__sub {
  margin: 12px 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero__cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1px solid rgba(184, 149, 106, 0.65);
  color: var(--accent-deep);
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero__cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Sections */
.section {
  padding: clamp(64px, 10vw, 112px) clamp(20px, 4vw, 48px);
}

.section--warm {
  background: var(--bg);
}

.section--about {
  /* 从 logo-blue.jpg 背景真实取色（众数） */
  background: #faf2ec;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 40px;
  text-align: center;
}

.section-head--logo {
  margin-bottom: 28px;
}

.section-head__brand {
  margin: 0;
  line-height: 0;
}

.section-head__logo {
  width: min(56vw, 220px);
  height: auto;
  margin: 0 auto;
}

.section-head__logo--wide {
  width: min(78vw, 420px);
}

.section-head__en {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  color: var(--accent-deep);
}

.section-head__zh {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-wrap: balance;
}

.section-head__desc {
  margin: 16px auto 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.ornament__line {
  width: 40px;
  height: 1px;
  background: rgba(156, 139, 126, 0.5);
}

.ornament__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--taupe);
  opacity: 0.85;
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
}

.prose p {
  margin: 0 0 1.15em;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.02rem;
  text-wrap: pretty;
}


/* Badges：与小程序一致，白底卡片 + 协会 logo */
.badges {
  list-style: none;
  margin: 0 auto 48px;
  padding: 0;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.badge__card {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(44, 44, 52, 0.08);
}

.badge__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge__desc {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 300;
  line-height: 1.4;
}

/* Certificates */
.certs {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.cert {
  margin: 0;
}

.cert a {
  display: block;
  line-height: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert a:hover {
  transform: translateY(-4px);
}

.cert img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  padding: 0;
}

.cert figcaption {
  margin-top: 14px;
  text-align: center;
}

.cert__no {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.cert__name {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.cert__org {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* QR */
.qr-row {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 48px);
}

.qr-card {
  text-align: center;
}

.qr-card__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.qr-card__frame img {
  width: min(100%, 260px);
  height: auto;
}

.qr-card__frame--sun img {
  border-radius: 50%;
}

.qr-card__title {
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.qr-card__hint {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
}

/* Archive */
.archive {
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.archive__row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.archive__row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.archive__row dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Footer */
.footer {
  padding: 48px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(235, 231, 227, 0.45);
}

.footer__brand {
  margin: 0;
  font-family: var(--font-serif);
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  color: var(--accent-deep);
}

.footer__copy {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}

@media (max-width: 720px) {
  .qr-row {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .archive__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .topbar__nav {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cert a,
  .hero__cta {
    transition: none;
  }
}
