/* ============================================================
   CCCM · 国际中医养生大会理事会
   Design tokens & base — 朱砂印章 / 青黛 / 宣纸
   ============================================================ */

:root {
  --paper:      #F6F4EC;   /* 宣纸底 */
  --paper-deep: #EFECE1;   /* 略深的纸面 */
  --ink:        #22302A;   /* 玄墨青 */
  --ink-soft:   #55605B;   /* 次级文字 */
  --green:      #2E5D4F;   /* 青黛 — 主品牌 */
  --green-mid:  #5C8576;   /* 竹青 */
  --cinnabar:   #A8432F;   /* 朱砂 — 印章/关键点，克制使用 */
  --surface:    #EBE8DD;   /* 浅面卡 */
  --rule:       rgba(34, 48, 42, 0.14);
  --maxw:       1080px;

  /* 宋体系标题 / 系统黑体正文 / 等宽体数据 */
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
           "SimSun", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cinnabar); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
main { min-height: 60vh; }

/* ---------- 朱砂印章 brand mark ---------- */
.seal {
  width: 44px; height: 44px; flex: 0 0 auto;
  color: var(--paper);
}
.seal svg { width: 100%; height: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.04em; }
.brand-sub { display: block; font-size: 10.5px; letter-spacing: 0.22em; color: var(--ink-soft); margin-top: 1px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  display: inline-block; padding: 7px 13px;
  text-decoration: none; color: var(--ink);
  font-size: 15.5px; letter-spacing: 0.03em;
  border-radius: 3px;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--cinnabar); font-weight: 600;
}
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 4px; height: 4px; margin-left: -2px;
  background: var(--cinnabar); border-radius: 50%;
}
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rule); border-radius: 4px;
  padding: 7px 11px; font-size: 18px; color: var(--ink); cursor: pointer;
}

/* ---------- Page hero ---------- */
.page-hero { border-bottom: 1px solid var(--rule); }
.page-hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 28px 54px;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.32em; color: var(--cinnabar);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cinnabar); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: 0.03em; }
.page-hero .lead { max-width: 60ch; margin: 16px 0 0; color: var(--ink-soft); font-size: 17.5px; }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 34px; }
.section-no {
  font-family: var(--mono); font-size: 13px; color: var(--cinnabar);
  letter-spacing: 0.06em; flex: 0 0 auto;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: 0.04em; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 84px 28px 70px;
  display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center;
}
.hero-seal { width: clamp(120px, 15vw, 172px); color: var(--cinnabar); }
.hero-seal svg { width: 100%; height: 100%; }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.7); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
.hero-seal { animation: stamp-in 0.55s var(--ease) both; }
.hero-title { font-size: clamp(30px, 5vw, 50px); letter-spacing: 0.06em; margin-top: 22px; }
.hero-title .en { display: block; font-family: var(--serif); font-size: 0.42em; font-weight: 400; letter-spacing: 0.14em; color: var(--ink-soft); margin-top: 10px; }
.hero-lead { max-width: 56ch; margin: 22px 0 30px; color: var(--ink-soft); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* vertical 竖排 edge motif */
.hero-vtext {
  position: absolute; right: 26px; top: 0; bottom: 0;
  display: flex; align-items: center;
  writing-mode: vertical-rl;
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.5em;
  color: rgba(34, 48, 42, 0.30);
  user-select: none; pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px;
  border: 1px solid var(--green); border-radius: 3px;
  text-decoration: none; font-size: 15.5px; letter-spacing: 0.04em;
  background: transparent; color: var(--green); cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { background: var(--green); color: var(--paper); }
.btn--solid { background: var(--green); color: var(--paper); }
.btn--solid:hover { background: var(--green-mid); color: var(--paper); }
.btn--cinnabar { border-color: var(--cinnabar); color: var(--cinnabar); }
.btn--cinnabar:hover { background: var(--cinnabar); color: var(--paper); }

/* ---------- Identity card (注册卡) ---------- */
.identity {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--green);
  padding: 26px 30px;
}
.identity-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.identity-head h3 { font-size: 20px; letter-spacing: 0.04em; }
.identity-tag {
  font-size: 12px; letter-spacing: 0.2em; color: var(--green);
  border: 1px solid var(--green-mid); border-radius: 2px; padding: 2px 8px;
}
.identity-grid {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 28px;
}
.identity-item .k { font-size: 12.5px; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 3px; }
.identity-item .v { font-family: var(--mono); font-size: 15px; }
.identity-verify {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule);
  font-size: 13.5px; color: var(--ink-soft);
}
/* 验证章 —— 印章盖在注册卡上的隐喻 */
.stamp {
  position: absolute; right: 22px; top: 22px;
  width: 74px; height: 74px; color: var(--cinnabar);
  opacity: 0.92; transform: rotate(-6deg); pointer-events: none;
}
.stamp svg { width: 100%; height: 100%; }

/* ---------- News / events list ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; padding: 0 0 36px 30px; }
.timeline > li::before {
  content: ""; position: absolute; left: 5px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cinnabar); box-shadow: 0 0 0 4px var(--paper);
}
.timeline > li::after {
  content: ""; position: absolute; left: 9px; top: 22px; bottom: 0;
  width: 1px; background: var(--rule);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::after { display: none; }
.tl-year { font-family: var(--mono); font-size: 13px; color: var(--cinnabar); letter-spacing: 0.1em; }
.tl-title { font-family: var(--serif); font-size: 20px; margin: 6px 0 8px; }
.tl-title a { text-decoration: none; color: inherit; }
.tl-title a:hover { color: var(--cinnabar); }
.tl-meta { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.02em; }
.tl-desc { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-soft); }
.tl-desc ul { margin: 8px 0 0; padding-left: 1.2em; }
.tl-desc li { margin: 4px 0; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 24px 24px 22px; border-radius: 2px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(34, 48, 42, 0.08); }
.card h3 { font-size: 19px; letter-spacing: 0.03em; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--cinnabar); }
.card .desc { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--cinnabar); text-decoration: none; letter-spacing: 0.04em; }

/* expert card */
.expert-card h3 { font-size: 18px; }
.expert-card .honor {
  display: inline-block; margin-bottom: 10px;
  font-size: 12px; letter-spacing: 0.14em; color: var(--cinnabar);
  border: 1px solid rgba(168, 67, 47, 0.5); border-radius: 2px; padding: 1px 7px;
}
.expert-card .role { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 0; }
.expert-card .from { font-family: var(--mono); font-size: 12px; color: var(--green-mid); margin-top: 10px; letter-spacing: 0.04em; }

/* ---------- 栏目导览 ---------- */
.nav-cards .card { display: flex; flex-direction: column; }
.nav-cards .card .more { margin-top: auto; }

/* ---------- Empty state (活动预告) ---------- */
.empty {
  border: 1px dashed var(--green-mid); padding: 34px 30px; text-align: center;
  color: var(--ink-soft); font-size: 15.5px; background: var(--paper);
}
.empty strong { color: var(--ink); font-family: var(--serif); font-weight: 600; }
.empty .btn { margin-top: 16px; }

/* ---------- Quote ---------- */
blockquote {
  margin: 26px 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--cinnabar);
  color: var(--ink-soft); font-family: var(--serif); font-size: 17px;
}

/* ---------- Pillar list (宗旨) ---------- */
.pillars { list-style: none; margin: 0; padding: 0; }
.pillars > li { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.pillars > li:last-child { border-bottom: none; }
.pillar-no { font-family: var(--mono); font-size: 13px; color: var(--cinnabar); letter-spacing: 0.1em; }
.pillars h3 { font-size: 20px; margin: 6px 0 10px; letter-spacing: 0.03em; }
.pillars p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Contact hub ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.contact-grid .card { text-align: left; }
.contact-grid .card .icon { font-size: 22px; margin-bottom: 8px; color: var(--green); }
.contact-meta { margin-top: 44px; }
.contact-meta dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.contact-meta dt { font-size: 13px; letter-spacing: 0.14em; color: var(--ink-soft); font-family: var(--mono); }
.contact-meta dd { margin: 0; font-size: 15px; }
.note {
  margin-top: 22px; padding: 14px 18px; font-size: 13.5px; color: var(--ink-soft);
  background: var(--paper-deep); border-left: 2px solid var(--green-mid);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px; background: var(--ink); color: rgba(246, 244, 236, 0.82);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 54px 28px 40px;
}
.footer-top { display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-sub { color: rgba(246, 244, 236, 0.55); }
.footer-meta { margin-left: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: rgba(246, 244, 236, 0.55); }
.footer-nav { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: rgba(246, 244, 236, 0.82); text-decoration: none; font-size: 14px; letter-spacing: 0.05em; }
.footer-nav a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(246, 244, 236, 0.18);
  font-size: 12.5px; color: rgba(246, 244, 236, 0.5);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: auto 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-top: 1px solid var(--rule);
    padding: 10px 24px calc(14px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform 0.28s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding-top: 56px; }
  .hero-seal { width: 96px; }
  .hero-vtext { display: none; }
  .section { padding: 52px 0; }
  .stamp { width: 60px; height: 60px; top: 16px; right: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .header-inner, .page-hero-inner, .hero-inner, .footer-inner { padding-left: 18px; padding-right: 18px; }
  .identity { padding: 22px 18px; }
  .footer-meta { margin-left: 0; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero-vtext { display: none; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- 旗下机构标签 ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
}
