/* ============================================================
   AIPPMCM — Faithful rebuild of the design prototype
   Design language extracted from real rendered screenshots.
   ============================================================ */

:root {
  --red:        #a62b1f;   /* red accent — text / titles / links (orig rgb 166,43,31) */
  --red-dark:   #7e2118;   /* btn hover shade */
  --red-deep:   #8a2318;   /* large red fills: top bar / footer / stats band (orig rgb 138,35,24) */
  --gold:       #b98a3c;   /* seal gold accent */
  --gold-soft:  #d9c29a;   /* orig rgb 217,194,154 */
  --cream:      #faf7f0;   /* page / hero base (orig rgb 250,247,240) */
  --cream-deep: #f3ede1;   /* content bands: activity / news (orig rgb 243,237,225) */
  --beige:      #ece1c9;   /* (legacy, unused) */
  --beige-2:    #e6dabd;
  --paper:      #faf7f0;   /* page / hero / plain sections (orig rgb 250,247,240) */
  --ink:        #2e2620;
  --ink-soft:   #7a6d60;
  --muted:      #8a7d6e;
  --line:       #e3d9c8;
  --card:       #ffffff;
  --shadow:     0 2px 14px rgba(60,40,20,.08);
  --font-display: "Noto Serif TC","Noto Serif SC",Songti SC,STSong,serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Noto Serif TC","Noto Serif SC",Songti SC,STSong,serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   Top bar (deep red, address + phone + lang switcher)
   ============================================================ */
.topbar {
  background: var(--red-deep);
  color: #f6e6c8;
  font-size: 13px;
  letter-spacing: .03em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; gap: 16px;
}
.topbar-info { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar-info .sep { opacity: .5; }

/* language switcher (dropdown) */
.lang { position: relative; }
.lang-btn {
  background: transparent; color: #f6e6c8;
  border: 1px solid rgba(246,230,200,.55);
  padding: 4px 12px; border-radius: 999px; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.lang-btn .caret { font-size: 10px; opacity: .85; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 130px; padding: 6px 0;
  display: none; z-index: 50;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 8px 14px; font-size: 13.5px; color: var(--ink);
}
.lang-menu button:hover { background: #f3ede1; }
.lang-menu button.active { color: var(--red); font-weight: 600; }

/* ============================================================
   Main header (white, logo-wide + nav)
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; gap: 24px;
}
.header-addr { display: none; }  /* mobile-only: sits between brand and nav */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 32px; width: 32px; object-fit: contain; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.brand-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; color: var(--red);
  letter-spacing: .18em;
}
.brand-sub {
  font-size: 9px; color: var(--ink-soft); margin-top: 4px;
  letter-spacing: .06em;
}
@media (min-width: 768px) {
  .brand-logo { height: 36px; width: 36px; }
  .brand-name { font-size: 18px; }
  .brand-sub  { font-size: 10px; }
}

.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 14px; color: var(--ink); padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }
.nav .nav-lang { display: none; }   /* hidden on desktop (topbar owns lang); shown in nav on narrow screens */

/* ============================================================
   Hero (beige, centered seal + title + subtitle + tags + CTAs)
   ============================================================ */
.hero {
  background: var(--paper);
  text-align: center;
  padding: 130px 24px 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .05;
  background: radial-gradient(circle at 50% 40%, rgb(166,43,31) 0%, transparent 60%);
}
.hero > * { position: relative; z-index: 1; }
/* Full-bleed banner hero (index): banner image fills the top, shrunk
   content sits below the banner, hero keeps original height. */
.hero.hero-banner {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 58px);   /* fill viewport minus sticky header so title + banner fit the first screen */
  padding: 24px 0 0;                /* breathing room under the nav */
}
.hero-banner-area {
  position: relative;
  width: 100%;
  flex: 1 1 auto;            /* grow within fixed-height hero */
  min-height: 240px;         /* keep a usable banner even on short screens */
  overflow: visible;         /* stacked cards extend beyond the box */
  background: var(--paper);  /* placeholder while image loads */
}
.hero.hero-banner .hero-banner-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  perspective: 1000px;
}
.hero-banner-slide {
  position: absolute; top: 0; left: 11.5%;
  width: 70%;                /* 70% width — shifted slightly left so the whole stack (incl. exposed right edges) feels centered */
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.04);
  transform: translate(0px, 0px) scale(1);
  opacity: 1;
  z-index: 5;
  transition: transform .6s ease, opacity .6s ease;
  background: #f3ecdb;
}
.hero-banner-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-banner-slide .card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .6s ease;
}
.hero-banner-dots {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; gap: 8px;
}
.hero-banner-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(255,255,255,.6);
  cursor: pointer;
  transition: background .2s;
}
.hero-banner-dots button.active { background: var(--gold); }
.hero.hero-banner .container { padding: 18px 28px 32px; text-align: left; }
.hero-slide-title-wrap {
  overflow: hidden;
  margin: 0 0 8px;
}
.hero-slide-title,
.hero-slide-desc {
  transform: translateX(0);
  opacity: 1;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .35s cubic-bezier(.16, 1, .3, 1);
}
.hero.hero-banner h1.large {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--red);
}
.hero-slide-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}
.hero.hero-banner .sub-en { font-size: 11px; margin: 0 auto 16px; max-width: 560px; }
.hero.hero-banner .tags { gap: 10px; margin: 0 auto 16px; }
.hero.hero-banner .tag { padding: 5px 14px; font-size: 12px; }
.hero.hero-banner .cta-row { gap: 12px; }
.hero.hero-banner .btn { padding: 9px 24px; font-size: 13px; }
.hero-seal {
  width: 96px; height: 96px;
  margin: 0 auto 18px;
}
.hero-seal img { width: 100%; height: 100%; object-fit: contain; }
.hero-seal-frame {
  width: 176px; height: 176px;
  margin: 0 auto 18px;
  background: #fff;
  border: 4px solid var(--gold);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(166,43,31,.18);
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) {
  .hero-seal-frame { width: 224px; height: 224px; padding: 14px; }
}
.hero-seal-frame img { width: 100%; height: 100%; object-fit: contain; }
.hero-seal-caption {
  font-size: 12px; color: var(--gold);
  letter-spacing: .5em;
  margin: 0 0 32px;
}
.hero h1 {
  font-size: 48px; color: var(--red); margin: 0 0 14px;
  font-weight: 700; letter-spacing: .08em;
}
.hero h1.large { font-size: 72px; letter-spacing: .2em; }
.hero .sub-en {
  font-size: 11px; color: var(--ink-soft);
  font-style: italic; margin: 0 0 28px; letter-spacing: .04em;
  max-width: 640px; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
@media (min-width: 768px) { .hero .sub-en { font-size: 12px; } }
.hero .tags {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin: 0 auto 28px;
}
.hero .tag {
  padding: 6px 20px; border: 1px solid var(--gold);
  border-radius: 0;
  font-size: 13px; color: var(--red); background: transparent;
  letter-spacing: .3em;
}
.hero .cta-row { display: flex; gap: 16px; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 36px; border-radius: 0;
  font-size: 14px; letter-spacing: .3em; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: #b9a98a; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-outline-red { color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* hero subtitle (zh) used on sub-pages */
.hero .sub-zh {
  font-size: 14px; color: var(--ink-soft); margin: 0; letter-spacing: .25em;
}

/* ============================================================
   Stats band (deep red, 4 stats)
   ============================================================ */
.stats-band {
  background: var(--red-deep); color: #fff; padding: 38px 0;
}
.stats-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: 48px; font-weight: 700; line-height: 1;
  font-family: "Noto Serif TC", serif; letter-spacing: .02em;
}
.stat-label { font-size: 14px; margin-top: 10px; opacity: .9; letter-spacing: .15em; }

/* ============================================================
   Sections — common
   ============================================================ */
.section { padding: 64px 0; background: var(--paper); }
.section.beige { background: var(--cream-deep); }
.section-head { text-align: start; margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head .bar {
  display: inline-block; width: 32px; height: 2px; background: var(--red);
  margin-bottom: 16px;
}
.section-title {
  font-size: 30px; color: var(--red); font-weight: 700;
  margin: 0 0 10px; letter-spacing: .15em;
}
.section-title.xl { font-size: 36px; }
.section-sub { color: var(--ink-soft); font-size: 14px; margin: 0; letter-spacing: .12em; }
.section-head .more {
  display: inline-block; margin-top: 10px; color: var(--red);
  font-size: 13px; letter-spacing: .1em;
}
.section-head .more:hover { text-decoration: underline; }

/* ============================================================
   Intro (left tag column + right body) — used on index
   ============================================================ */
.intro {
  display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start;
}
.intro-side .title {
  font-size: 36px; color: var(--red); font-weight: 700;
  margin: 0 0 8px; letter-spacing: .15em; text-align: start;
}
.intro-side .bar { display: inline-block; width: 32px; height: 2px; background: var(--red); margin: 0 0 14px; }
.intro-side .tagline { color: var(--ink-soft); font-size: 13px; margin: 0 0 20px; letter-spacing: .12em; }
.intro-side .name {
  font-size: 18px; color: var(--ink); font-weight: 600;
  border-top: 1px solid var(--line); padding-top: 16px; letter-spacing: .12em;
}
.intro-side .map-wrap {
  display: block;
  margin-top: 14px;
  width: 100%;
  height: 220px;
  border: 1px solid var(--red);
  background: var(--paper);
  overflow: hidden;
  position: relative;
  transition: opacity .15s, transform .15s;
}
.intro-side .map-wrap:hover { opacity: .92; }
.intro-side .map-wrap:active { transform: scale(.99); }
.intro-side .map-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
.intro-body p { margin: 0 0 16px; font-size: 15px; line-height: 1.95; color: var(--ink); text-align: justify; }
.intro-body .en {
  background: #f3ecdb; border-left: 3px solid var(--gold);
  padding: 16px 20px; font-size: 13.5px; color: var(--ink-soft);
  font-style: italic; line-height: 1.85; margin-top: 20px; text-align: left;
}

/* ============================================================
   Activity featured slide (big image + caption + dots)
   ============================================================ */
.activity {
  background: var(--cream-deep);
  padding: 64px 0 72px;
}
.activity .slide-frame {
  position: relative; border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/7; background: #d9c89a;
}
.activity .slide-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.activity .caption {
  position: absolute; left: 28px; bottom: 24px; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.activity .caption .date { font-size: 13px; opacity: .95; margin-bottom: 4px; letter-spacing: .1em; }
.activity .caption .title { font-size: 18px; font-weight: 600; max-width: 80%; }
.activity .dots {
  display: flex; justify-content: center; gap: 10px; margin-top: 18px;
}
.activity .dots span {
  width: 8px; height: 8px; border-radius: 50%; background: #c8b48a;
}
.activity .dots span.active { background: var(--red); }

/* ============================================================
   Card grid (3-col, 2-row) — 會務工作
   ============================================================ */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 22px 22px 20px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .icon {
  width: 28px; height: 28px; color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.card .icon svg { width: 100%; height: 100%; }
.card .card-title {
  font-size: 18px; color: var(--ink); font-weight: 700;
  margin: 0 0 10px; letter-spacing: .08em;
  transition: color .2s ease;
}
/* index cards: ink by default, red on hover (matches original group-hover:text-red) */
.card:hover .card-title { color: var(--red); }
/* journal work cards: always red (matches original text-red) */
.cards-grid.red-titles .card-title { color: var(--red); }
.cards-grid.red-titles .card:hover .card-title { color: var(--red); }
.card .card-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; margin: 0; }

/* ============================================================
   News row (4 cards on home) + News grid (3-col, 8 on news)
   ============================================================ */
.news-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.news-card {
  background: #fff; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
}
.news-card .img {
  aspect-ratio: 4/3; background: #ddd; overflow: hidden;
}
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .meta { padding: 12px 14px 16px; }
.news-card .date { font-size: 12px; color: var(--gold); margin-bottom: 6px; letter-spacing: .06em; }
.news-card .title {
  font-size: 16px; color: var(--ink); line-height: 1.55; font-weight: 700;
  margin: 0; text-align: start;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* home news-row titles are 15px (news grid stays 16px per original) */
.news-row .news-card .title { font-size: 15px; }
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px;
}
.news-grid .news-card .img { aspect-ratio: 16/10; }
.news-grid .news-card .readmore {
  display: inline-block; margin-top: 10px; color: var(--red);
  font-size: 12.5px; letter-spacing: .1em;
}

/* ============================================================
   About — value cards (4 white cards)
   ============================================================ */
.value-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  background: var(--paper);
}
.value-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 36px 16px; text-align: center;
}
.value-card .v-title {
  font-size: 24px; color: var(--red); font-weight: 700;
  margin: 0; letter-spacing: .35em;
}
.value-card .v-bar {
  display: inline-block; width: 24px; height: 2px; background: var(--gold);
  margin: 12px 0 10px;
}
.value-card .v-sub { font-size: 12.5px; color: var(--muted); letter-spacing: .1em; }

/* ============================================================
   Leadership — honorary gold box + grouped boards (div-based)
   Mirrors the original: 名譽會長 gold box + 會員大會/理事會/監事會
   red-header groups, each row = 職稱 (red) + 姓名.
   ============================================================ */
.lead-wrap { max-width: 896px; margin: 0 auto; }
.lead-honor {
  border: 1px solid var(--line); background: #fff;
  padding: 26px 24px; text-align: center; margin-top: 40px;
  box-shadow: var(--shadow);
}
.lead-honor .honor-label {
  color: var(--gold); font-size: 14px; letter-spacing: .25em; margin: 0 0 10px;
}
.lead-honor .honor-names {
  font-size: 18px; letter-spacing: .08em; margin: 0; color: var(--ink);
}
.lead-groups { margin-top: 40px; display: flex; flex-direction: column; gap: 32px; }
.lead-group { border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.lead-group .group-head { background: var(--red); padding: 12px 24px; }
.lead-group .group-head h3 {
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .3em; margin: 0;
}
.lead-rows { border-top: 1px solid var(--line); }
.lead-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 4px 20px;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.lead-row:last-child { border-bottom: 0; }
.lead-row .role {
  color: var(--red); font-weight: 600; font-size: 15px; letter-spacing: .2em;
}
.lead-row .names { font-size: 15px; line-height: 1.85; color: var(--ink); }

/* ============================================================
   Link columns (本會活動連結 — 2 col bullet list)
   ============================================================ */
.link-cols {
  columns: 2; column-gap: 48px;
}
.link-cols li {
  break-inside: avoid; list-style: none; margin-bottom: 14px;
  padding-left: 18px; position: relative; font-size: 14px;
}
.link-cols li::before {
  content: "·"; position: absolute; left: 0; top: -2px;
  color: var(--red); font-size: 22px; line-height: 1;
}
.link-cols a { color: var(--ink-soft); }
.link-cols a:hover { color: var(--red); }

.friendly-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.friendly-card {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 22px 16px; text-align: center; font-size: 14px;
  color: var(--ink-soft); transition: all .15s;
}
.friendly-card:hover { color: var(--red); border-color: var(--red); }

/* ============================================================
   Contact — 3 info cards
   ============================================================ */
.info-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  background: var(--paper);
}
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 28px 20px; text-align: center;
}
.info-card .label {
  color: var(--gold); font-size: 12px; font-weight: 400;
  letter-spacing: .15em; margin-bottom: 12px;
}
.info-card .label::after {
  content: ""; display: block; width: 28px; height: 2px; background: var(--gold);
  margin: 10px auto 0;
}
.info-card .value { font-size: 16px; color: var(--ink); }

.join-box {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 36px 30px; text-align: center; margin-top: 26px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.join-box .join-title { color: var(--red); font-size: 20px; font-weight: 700; margin: 0 0 12px; letter-spacing: .15em; }
.join-box p { color: var(--ink-soft); font-size: 14px; margin: 0 0 22px; }
.join-box .btn { letter-spacing: .12em; }

.follow-block { text-align: center; margin: 44px 0 8px; }
.follow-block .lbl { color: var(--gold); font-size: 14px; letter-spacing: .2em; margin-bottom: 14px; }
.follow-block .btn-outline { color: var(--red); border-color: var(--red); padding: 10px 28px; }

/* ============================================================
   Journal feature (image left, text right)
   ============================================================ */
.journal-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.journal-feature .img { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.journal-feature h3 { color: var(--red); font-size: 30px; margin: 0 0 16px; letter-spacing: .12em; }
.journal-feature p { color: var(--ink); font-size: 14.5px; line-height: 1.95; margin: 0 0 14px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--red-deep); color: rgba(255,255,255,0.85); padding: 50px 0 22px; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(246,230,200,.18);
}
.footer-col { font-size: 13.5px; line-height: 1.85; }
.footer-col .f-h { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .15em; }
.footer-col .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-col .f-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; }
.footer-col .f-name { font-size: 16px; font-weight: 700; color: #fff; }
.footer-col .f-sub { font-size: 11.5px; color: rgba(255,255,255,.7); margin-top: 2px; letter-spacing: .04em; }
.footer-col .f-reg { margin-top: 8px; color: rgba(255,255,255,.85); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .f-link { display: block; padding: 4px 0; }
.footer-col .f-fb {
  display: inline-block; margin-top: 10px; padding: 7px 16px;
  border: 1px solid rgba(246,230,200,.55); border-radius: 4px;
  font-size: 12px; color: rgba(255,255,255,0.85);
}
.copyright {
  text-align: center; padding-top: 18px; font-size: 12.5px;
  color: rgba(255,255,255,.7); letter-spacing: .1em;
}

/* 官网页脚：登录态行（由 session.js 注入；未登录时不渲染） */
.footer-session {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px; padding-top: 18px;
  font-size: 12.5px; color: rgba(255,255,255,.7); letter-spacing: .08em;
}
.footer-session .fs-name { color: rgba(255,255,255,.92); }
.footer-session .fs-sep { opacity: .35; }
.footer-session .fs-link {
  color: #f6e6c8; text-decoration: none;
  border-bottom: 1px solid rgba(246,230,200,.45); padding-bottom: 1px;
}
.footer-session .fs-link:hover { color: #fff; border-bottom-color: #fff; }

/* ============================================================
   Responsive (basic)
   ============================================================ */
@media (max-width: 980px) {
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-row, .friendly-row, .value-row, .info-row { grid-template-columns: repeat(2, 1fr); }
  .intro, .journal-feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 640px) {
  .topbar { display: none; }       /* hide the deep-red strip on narrow screens */
  .topbar .container { flex-direction: row; align-items: center; justify-content: flex-start; gap: 4px; padding: 2px 12px; min-height: 0; }
  .topbar-info { display: flex; flex-direction: column; gap: 0; line-height: 1.5; }
  .topbar-info .sep { display: none; }
  .topbar .lang { display: none; }          /* lang moves into the nav on narrow screens */
  .site-header .container { flex-direction: column; gap: 0; padding: 14px 16px; min-height: 0; }
  .header-addr {
    display: block; margin-top: 10px;
    font-size: 11.5px;
    color: var(--ink-soft);
    letter-spacing: .02em;
    white-space: nowrap;          /* keep address + phone on one line */
    text-align: center;
    order: 2;                     /* between brand (1) and nav (3) */
  }
  .header-addr .sep { margin: 0 6px; opacity: .5; }
  .site-header .container .brand { order: 1; }
  .site-header .container .nav { order: 3; }
  .nav { margin-top: 10px; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
  .nav .nav-lang { display: inline-flex; align-items: center; }
  .nav .nav-lang .lang-btn {
    font-size: 14px; padding: 6px 10px;
    border: 0; border-radius: 0; background: transparent;
    color: var(--ink);
  }
  .nav .nav-lang .lang-btn:hover,
  .nav .nav-lang .lang-btn:focus-visible { color: var(--red); }
  /* Mobile hero: the header stacks (brand + address + nav ≈ 190px), so the
     hero must reserve that height to keep title + banner on the first screen. */
  .hero.hero-banner {
    min-height: calc(100vh - 190px);
    padding: 14px 0 0;
  }
  .hero-banner-area { min-height: 150px; }
  .hero.hero-banner .container { padding: 10px 16px 18px; }
  .hero-slide-title-wrap { margin-bottom: 6px; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .cards-grid, .news-grid, .news-row, .friendly-row, .value-row, .info-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }


  /* === jxy 2026-09-05: header 滚动收合 (header-scroll.js 加 .is-scrolled) === */
  .site-header .brand,
  .header-addr {
    transition: opacity .3s ease, visibility .3s ease,
                max-height .35s ease, margin-top .35s ease;
  }
  .site-header .container .nav { transition: margin-top .35s ease; }
  .site-header .brand { max-height: 48px; overflow: hidden; }
  .header-addr { max-height: 48px; overflow: hidden; }
  .site-header.no-transition .brand,
  .site-header.no-transition .header-addr,
  .site-header.no-transition .container .nav { transition: none !important; }

  .site-header.is-scrolled .brand {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
  }
  .site-header.is-scrolled .header-addr {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
  }
  .site-header.is-scrolled .container .nav { margin-top: 0; }

  /* hero 首屏预留 (跟 header 高度匹配) */
  .hero.hero-banner { min-height: calc(100vh - 120px); }

  .site-header.scrolled .header-addr, .site-header.is-scrolled .header-addr { display: none; }   /* jxy 2026-09-05: scroll hide mobile address/phone */
  .hero.hero-banner h1.large { font-size: 24px; }  /* min title size on narrow screens */
  .link-cols { columns: 1; }
}

/* ============================================================
   Reveal-on-scroll — exact replica of the original prototype.
   Original rules:
     .reveal { opacity:0; transform:translateY(24px); transition:opacity .9s ease, transform .9s ease }
     .reveal.is-visible { opacity:1; transform:translateY(0) }
   The hidden state is gated behind `.js` (set in <head> by an inline
   script) so users without JS keep fully-visible content.
   ============================================================ */
.js .section-head,
.js .card,
.js .news-card,
.js .stat,
.js .lead-group,
.js .value-card,
.js .hero-seal,
.js .hero-seal-frame,
.js .hero h1,
.js .hero .sub-en,
.js .hero .tags,
.js .hero .cta-row,
.js .hero-seal-caption,
.js .intro-body,
.js .intro-side,
.js .stats-band,
.js .footer-col,
.js .contact-card,
.js .map-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.js .is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 360px) {
  .intro-title { font-size: 24px; letter-spacing: .02em; }
  .intro-caption { letter-spacing: .35em; font-size: 8px; }
  .intro-tags { gap: 8px; }
  .intro-tag { padding: 3px 8px; font-size: 9px; letter-spacing: .2em; }
}

/* ============================================================
   Floating video player (bottom-right)
   ============================================================ */
.float-video {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 300px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  z-index: 200;
  cursor: grab;
}
.float-video.dragging { cursor: grabbing; }
.float-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;   /* let drag handle it */
}
.float-video-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25);
  transition: opacity .25s ease;
}
.float-video.playing .float-video-overlay { opacity: 0; pointer-events: none; }
.float-video-play {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.float-video-play:hover { transform: scale(1.06); background: #fff; }
.float-video-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.float-video-close:hover { background: rgba(0,0,0,.8); }
.float-video.hidden { display: none; }
@media (max-width: 640px) {
  .float-video { right: 12px; bottom: 12px; width: 200px; }
}

/* ============================================================
   Intro overlay — full-screen beige curtain, plays once per
   session. Logo flies to the header logo, title flies down-left
   to the slide title slot, then the curtain fades out.
   ============================================================ */
.intro-overlay {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  opacity: 1;                 /* opaque until JS drives the fade-in — prevents content flash */
  transition: opacity .3s ease;
}
.intro-overlay.done { opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.intro-content {
  text-align: center;
  opacity: 0;                 /* content fades in; the curtain stays opaque */
  transition: opacity .3s ease;
}
.intro-seal-frame {
  width: clamp(180px, 26vw, 312px);
  height: clamp(180px, 26vw, 312px);
  margin: 0 auto clamp(8px, 1.4vw, 14px);
  background: #faf6ee;           /* warm cream instead of pure white */
  border: clamp(3px, .4vw, 4px) solid var(--gold);
  border-radius: 50%;
  padding: clamp(10px, 1.4vw, 14px);
  box-shadow: 0 10px 30px rgba(60,40,20,.18);
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}
.intro-logo,
.intro-seal-frame canvas {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
.intro-caption {
  font-size: clamp(9px, 1.1vw, 12px);
  color: var(--gold);
  letter-spacing: .5em;
  margin: 0 0 clamp(12px, 2vw, 20px);
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}
.intro-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 8.5vw, 72px);
  font-weight: 900;
  color: var(--red);
  letter-spacing: clamp(.04em, .4vw, .2em);
  margin: 0 0 clamp(6px, 1vw, 10px);
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  white-space: nowrap;
}
.intro-en {
  font-size: clamp(9px, 1.2vw, 12px);
  color: var(--ink-soft);
  letter-spacing: .06em;
  margin: 0 0 clamp(12px, 2vw, 22px);
  opacity: .9;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}
.intro-tags {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
.intro-tag {
  padding: clamp(4px, .6vw, 6px) clamp(12px, 2vw, 20px);
  border: 1px solid var(--gold);
  border-radius: 0;
  font-size: clamp(10px, 1.2vw, 13px);
  color: var(--red);
  letter-spacing: .3em;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}
/* Flight state: applied by JS — seal frame + logo rise, lower block sinks */
.intro-fly .intro-seal-frame { transform: translateY(-240px) scale(.85); opacity: 0; transition: transform .65s cubic-bezier(.4, .1, .25, 1), opacity .4s ease; }
.intro-fly .intro-title { transform: translateY(240px) scale(.92); opacity: 0; transition: transform .65s cubic-bezier(.4, .1, .25, 1), opacity .4s ease; }
.intro-fly .intro-caption { transform: translateY(260px); opacity: 0; transition: transform .6s cubic-bezier(.4, .1, .25, 1), opacity .35s ease; }
.intro-fly .intro-en { transform: translateY(280px) scale(.9); opacity: 0; transition: transform .55s cubic-bezier(.4, .1, .25, 1), opacity .35s ease; }
.intro-fly .intro-tags { transform: translateY(310px); opacity: 0; transition: transform .5s cubic-bezier(.4, .1, .25, 1), opacity .3s ease; }

/* ============================================================
   Entrance animations for header + banner while intro plays.
   While .intro-playing: header brand (left) / nav (right) slide
   out and the banner drops down; on .intro-revealed they animate
   back in. Skipped entirely when intro is suppressed.
   ============================================================ */
.js body.intro-playing .site-header .brand { opacity: 0; transform: translateX(-80px); }
.js body.intro-playing .site-header .nav  { opacity: 0; transform: translateX(80px); }
.js body.intro-playing .hero-banner-area { opacity: 0; transform: translateY(34px); }
.js body.intro-revealed .site-header .brand { opacity: 1; transform: translateX(0); transition: transform .6s cubic-bezier(.2, .8, .3, 1), opacity .45s ease; }
.js body.intro-revealed .site-header .nav  { opacity: 1; transform: translateX(0); transition: transform .6s cubic-bezier(.2, .8, .3, 1) .1s, opacity .45s ease .1s; }
.js body.intro-revealed .hero-banner-area { opacity: 1; transform: translateY(0); transition: opacity .7s ease .2s, transform .7s cubic-bezier(.2, .8, .3, 1) .2s; }


/* ===== 领导架构 D 版（2026-09-09） ===== */
/* ============ 设计 D：架构名片墙（结合 B+C） ============ */
  .dd-wrap{padding:34px 28px 46px;}
  .dd-honor{background:transparent; border:0; padding:4px 0 0; text-align:center; margin-bottom:30px;}
.dd-honor .lbl{font-size:14px; letter-spacing:.25em; color:var(--gold); margin:0 0 10px;}
.dd-honor .nms{font-size:18px; letter-spacing:.08em; color:var(--ink); margin:0; font-weight:700;}
  .dd-center{display:flex; flex-direction:column; align-items:center;}
  .dd-vline{width:2px; height:26px; background:var(--red); opacity:.45; margin:6px 0;}
  .dd-chief{display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; background:transparent; color:var(--red); padding:0;}
  .dd-chief .role{font-size:12px; letter-spacing:.2em; color:var(--ink-soft);}
  .dd-chief .name{font-size:25px; font-weight:700; color:var(--red); margin-top:0;}
  .dd-sub{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:20px;}
.dd-card{background:transparent; color:var(--ink); padding:8px 10px; text-align:center; min-width:108px;}
  .dd-card .role{font-size:10.5px; letter-spacing:.12em; color:var(--ink-soft);}
  .dd-card .name{font-size:15px; font-weight:700; color:var(--ink); margin-top:2px;}
  .dd-sec{font-size:12px; letter-spacing:.18em; color:var(--red); margin:40px 0 18px; text-align:center; font-weight:700;}
  .dd-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(82px,1fr)); gap:8px;}
  .dd-grid .dd-card{background:transparent; border:0; box-shadow:none; min-width:0;}
  .dd-grid .dd-card .role{color:var(--ink-soft);}
  .dd-cols{display:grid; grid-template-columns:1fr 1fr; gap:26px; margin-top:26px;}
  @media (max-width:640px){.dd-cols{grid-template-columns:1fr;}}
  .dd-col{border:0; background:transparent; padding:0;}
  .dd-col .ghead{font-size:15px; font-weight:700; color:var(--red); letter-spacing:.12em; padding-bottom:10px; margin-bottom:14px; border-bottom:1px solid var(--line); text-align:center;}
  .dd-rows .row{display:flex; gap:10px; padding:10px 0; font-size:13px; border-bottom:1px dashed rgba(166,43,31,.12); line-height:1.65;}
  .dd-rows .row:last-child{border-bottom:0;}
  .dd-role{flex:0 0 58px; color:var(--ink-soft); font-size:12px;}

.avatar{display:flex;align-items:center;justify-content:center;border-radius:2px;overflow:hidden;flex-shrink:0;}
.dd-chief .avatar{width:96px;height:96px;background:#f6efe0;color:var(--red-deep);}
.dd-chief .avatar svg{width:54px;height:54px;}
.dd-card .avatar{width:66px;height:66px;margin:0 auto 10px;background:#f6efe0;color:#8a6d1a;}
.dd-card .avatar svg{width:38px;height:38px;}
.dd-grid .dd-card .avatar{background:#f1e8d2;color:#b3a06a;}

/* ============================================================
   2026-09-16 第六轮：
   - 页头「语言」改为「登录」（topbar 桌面 / nav 窄屏，各占原语言位置）
   - 语言切换移到页面最底下（页脚 copyright 之后）
   ============================================================ */
.topbar-login {
  color: #f6e6c8;
  border: 1px solid rgba(246,230,200,.55);
  padding: 4px 14px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .03em;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.topbar-login:hover,
.topbar-login:focus-visible { background: #f6e6c8; color: var(--red-deep); border-color: #f6e6c8; }

/* 页脚语言切换：与「首頁」栏标题同一行（2026-09-16 第七轮） */
.footer-col .f-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 14px;
}
.footer-col .f-head-row .f-h { margin: 0; }
.footer-col .f-head-row .lang-btn { font-size: 11.5px; padding: 3px 10px; gap: 5px; }
.footer-col .f-head-row .lang-menu { min-width: 120px; }

/* 桌面隐藏 nav 里的登录（桌面用 topbar 那个；与原 .nav-lang 行为一致） */
.nav .nav-login { display: none; }

/* 窄屏：登录项占位与原「繁體 ▾」一致（宽 62 / 高 32），
   确保换行位置与 header 高度跟改动前完全相同 */
@media (max-width: 640px) {
  .nav .nav-login {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; line-height: 20px;
    padding: 6px 10px; min-width: 62px;
    border-bottom: 0; color: var(--ink); text-decoration: none;
  }
  .nav .nav-login:hover,
  .nav .nav-login:focus-visible { color: var(--red); }
}
