/* ==========================================================================
   学会官网 · 前台样式
   设计令牌 → 基础 → 布局 → 组件 → 页面 → 动效 → 响应式
   无外部依赖，全部使用系统字体栈（服务器不依赖外网 CDN）
   ========================================================================== */

:root {
  /* 品牌色 */
  --navy: #0e2f62;
  --navy-deep: #08203f;
  --blue: #1b5bb8;
  --blue-light: #2e7ad1;
  --blue-soft: #e8eef8;
  --gold: #c8a063;
  --gold-light: #e8ce9b;

  /* 中性色 */
  --bg: #f5f7fb;
  --white: #ffffff;
  --ink: #1a2233;
  --ink-soft: #5a6577;
  --ink-faint: #8a93a3;
  --line: #e3e8f0;
  --line-soft: #eef1f7;

  /* 功能色 */
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(14, 47, 98, 0.06);
  --shadow: 0 8px 24px rgba(14, 47, 98, 0.08);
  --shadow-lg: 0 18px 48px rgba(14, 47, 98, 0.14);
  --shadow-gold: 0 12px 32px rgba(200, 160, 99, 0.28);

  /* 圆角与节奏 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --header-h: 76px;

  /* 字体 */
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 940px; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.gold { color: var(--gold); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy) 45%, var(--blue));
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  height: 38px;
  display: flex;
  align-items: center;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, 0.86); }
.topbar a:hover { color: var(--gold-light); }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links .divider { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.24); }
.topbar-slogan { display: inline-flex; align-items: center; gap: 8px; }
.topbar-slogan::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 160, 99, 0.22);
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { color: inherit; }
.brand-logo {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 22px; letter-spacing: 1px; color: var(--navy);
  white-space: nowrap;
}
.brand-text p { margin: 0; font-size: 11.5px; letter-spacing: 2.2px; color: var(--ink-faint); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
  white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue-light));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--blue); background: var(--blue-soft); }
.main-nav a:hover::after, .main-nav a.active::after { width: 26px; }
.main-nav a.active { color: var(--navy); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(27, 91, 184, 0.32); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #3a2b10; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { color: #3a2b10; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(200, 160, 99, 0.4); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.btn-light { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.btn-light:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.btn-danger { background: #fdecec; color: var(--red); border-color: #f8d4d4; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- 首页轮播 ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); }
.hero-track { position: relative; height: min(72vh, 640px); min-height: 460px; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide-media { position: absolute; inset: 0; }
.hero-slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero-slide.is-active .hero-slide-media img { transform: scale(1); }
.hero-slide-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 32, 63, 0.92) 8%, rgba(14, 47, 98, 0.72) 42%, rgba(14, 47, 98, 0.18) 78%);
}
.hero-slide-body {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 720px; color: #fff;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero-slide-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.24; color: #fff; margin-bottom: 16px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.28);
}
.hero-slide-body p {
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(255, 255, 255, 0.82); margin-bottom: 30px; max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-slide.is-active .hero-eyebrow,
.hero-slide.is-active h2,
.hero-slide.is-active p,
.hero-slide.is-active .hero-actions { animation: heroUp 0.9s var(--ease) both; }
.hero-slide.is-active h2 { animation-delay: 0.08s; }
.hero-slide.is-active p { animation-delay: 0.16s; }
.hero-slide.is-active .hero-actions { animation-delay: 0.24s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 32px; height: 4px; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255, 255, 255, 0.34); transition: all 0.3s var(--ease); padding: 0;
}
.hero-dots button.is-active { background: var(--gold); width: 52px; }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1); color: #fff;
  display: grid; place-items: center;
  transition: all 0.25s var(--ease);
}
.hero-arrows button:hover { background: var(--gold); border-color: var(--gold); color: #3a2b10; transform: translateY(-2px); }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--white); }
.section-navy { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, #123c7c); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .section-sub { color: rgba(255, 255, 255, 0.7); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-head h2 { font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 34px); letter-spacing: 0.5px; }
.section-sub { margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 680px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
.section-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.section-link:hover::after { transform: translateX(4px); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(27, 91, 184, 0.24); }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 22px; }
.card-title { font-size: 17px; margin-bottom: 10px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--blue); }
.card-text { color: var(--ink-soft); font-size: 14px; margin: 0; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.4px;
  background: var(--blue-soft); color: var(--blue);
}
.tag-gold { background: rgba(200, 160, 99, 0.16); color: #9a7434; }
.tag-green { background: rgba(22, 163, 74, 0.12); color: var(--green); }
.tag-amber { background: rgba(217, 119, 6, 0.12); color: var(--amber); }
.tag-red { background: rgba(220, 38, 38, 0.12); color: var(--red); }
.tag-navy { background: rgba(14, 47, 98, 0.1); color: var(--navy); }
.tag-float { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255, 255, 255, 0.94); }

/* ---------- 首页 · 概况与统计 ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); font-size: 15.5px; }
.about-highlights { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.about-highlights li { position: relative; padding-left: 30px; color: var(--ink); }
.about-highlights li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px rgba(27, 91, 184, 0.24);
}
.about-highlights li::after {
  content: ""; position: absolute; left: 5px; top: 14px;
  width: 6px; height: 3px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat-card {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy), var(--blue));
  color: #fff; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card::after {
  content: ""; position: absolute; right: -30px; bottom: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 160, 99, 0.42), transparent 70%);
}
.stat-card:nth-child(2n) { background: linear-gradient(150deg, var(--blue), var(--blue-light)); }
.stat-card:nth-child(3n) { background: linear-gradient(150deg, #123c7c, var(--navy)); }
.stat-value { font-family: var(--font-serif); font-size: 40px; font-weight: 700; line-height: 1; color: var(--gold-light); }
.stat-value .unit { font-size: 16px; margin-left: 4px; color: rgba(255, 255, 255, 0.72); }
.stat-label { margin-top: 10px; font-size: 13.5px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.8); }

/* ---------- 首页 · 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; }
.news-featured { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; display: flex; }
.news-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-featured::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 63, 0.1) 20%, rgba(8, 32, 63, 0.9));
}
.news-featured-body { position: relative; z-index: 2; margin-top: auto; padding: 34px; color: #fff; }
.news-featured-body h3 { color: #fff; font-size: 23px; margin: 14px 0 10px; }
.news-featured-body h3 a { color: #fff; }
.news-featured-body h3 a:hover { color: var(--gold-light); }
.news-featured-body p { color: rgba(255, 255, 255, 0.78); font-size: 14px; margin: 0; }
.news-featured-meta { display: flex; gap: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.72); }

.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.news-item {
  display: flex; gap: 18px; align-items: center;
  padding: 16px 18px; background: var(--white);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: all 0.28s var(--ease);
}
.news-item:hover { border-color: rgba(27, 91, 184, 0.3); box-shadow: var(--shadow); transform: translateX(4px); }
.news-date {
  flex: 0 0 66px; text-align: center; padding: 10px 0;
  border-radius: 12px; background: var(--blue-soft); color: var(--navy);
}
.news-date .day { display: block; font-family: var(--font-serif); font-size: 24px; font-weight: 700; line-height: 1.1; }
.news-date .month { font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.5px; }
.news-item-body { flex: 1; min-width: 0; }
.news-item-body h4 { font-size: 15.5px; margin-bottom: 6px; }
.news-item-body h4 a { color: var(--ink); }
.news-item-body h4 a:hover { color: var(--blue); }
.news-item-meta { font-size: 12.5px; color: var(--ink-faint); display: flex; gap: 14px; }

/* ---------- 首页 · 活动 ---------- */
.meeting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.meeting-card { display: flex; flex-direction: column; }
.meeting-card .card-body { flex: 1; display: flex; flex-direction: column; }
.meeting-meta { display: grid; gap: 8px; margin: 14px 0 16px; font-size: 13.5px; color: var(--ink-soft); }
.meeting-meta span { display: flex; align-items: center; gap: 8px; }
.meeting-meta svg { flex: 0 0 16px; color: var(--blue); }
.meeting-progress { margin-top: auto; }
.progress-bar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 1s var(--ease);
}
.progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }
.meeting-price { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--amber); }
.meeting-price.free { color: var(--green); }

/* ---------- 首页 · 分支机构 ---------- */
.branch-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.branch-chip {
  display: flex; gap: 16px; padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.branch-chip:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-4px); }
.branch-chip-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #3a2b10;
}
.branch-chip-body h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.branch-chip-body p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.68); }

/* ---------- 页头横幅 ---------- */
.page-banner {
  position: relative; padding: 62px 0 58px; color: #fff;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 48%, var(--blue));
  overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 160, 99, 0.26), transparent 68%);
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 40px); }
.page-banner p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.75); max-width: 700px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 14px; color: rgba(255, 255, 255, 0.66); }
.breadcrumb a { color: rgba(255, 255, 255, 0.82); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- 列表页布局 ---------- */
.layout-sidebar { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
.side-card {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.side-card + .side-card { margin-top: 20px; }
.side-card h3 {
  font-size: 16px; padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft); position: relative;
}
.side-card h3::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue-light));
}
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: 10px; font-size: 14.5px; color: var(--ink);
  transition: all 0.24s var(--ease);
}
.side-nav a:hover { background: var(--blue-soft); color: var(--blue); transform: translateX(3px); }
.side-nav a.active { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-weight: 600; }
.side-nav a.active .count { color: rgba(255, 255, 255, 0.8); }
.side-nav .count { font-size: 12.5px; color: var(--ink-faint); }
.side-contact { font-size: 14px; color: var(--ink-soft); }
.side-contact strong { display: block; font-size: 19px; color: var(--navy); font-family: var(--font-serif); margin: 4px 0 10px; }

/* 文章卡片列表 */
.article-list { display: grid; gap: 20px; }
.article-item {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s var(--ease);
}
.article-item:hover { box-shadow: var(--shadow); border-color: rgba(27, 91, 184, 0.24); transform: translateY(-3px); }
.article-item-media { position: relative; min-height: 168px; background: var(--blue-soft); overflow: hidden; }
.article-item-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.article-item:hover .article-item-media img { transform: scale(1.06); }
.article-item-body { padding: 22px 24px 22px 0; display: flex; flex-direction: column; }
.article-item-body h3 { font-size: 18px; margin-bottom: 10px; }
.article-item-body h3 a { color: var(--ink); }
.article-item-body h3 a:hover { color: var(--blue); }
.article-item-body .card-text { flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500;
  transition: all 0.24s var(--ease);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pagination .is-active { background: linear-gradient(135deg, var(--navy), var(--blue)); border-color: transparent; color: #fff; }
.pagination .is-disabled { opacity: 0.45; cursor: not-allowed; }
.pagination .is-ellipsis { border: 0; background: transparent; color: var(--ink-faint); }

/* ---------- 详情页 ---------- */
.detail-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 40px 46px; box-shadow: var(--shadow-sm); }
.detail-title { font-family: var(--font-serif); font-size: clamp(23px, 2.5vw, 32px); line-height: 1.35; }
.detail-subtitle { margin: 12px 0 0; color: var(--ink-soft); font-size: 16px; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--ink-faint);
  padding: 18px 0; margin: 22px 0 30px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.detail-meta span { display: inline-flex; align-items: center; gap: 7px; }
.detail-body { font-size: 15.5px; color: #2b3446; }
.detail-body h3 { font-size: 19px; margin: 32px 0 14px; padding-left: 14px; position: relative; }
.detail-body h3::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--blue));
}
.detail-body p { margin: 0 0 1.1em; }
.detail-body ul, .detail-body ol { padding-left: 1.5em; }
.detail-body img { border-radius: var(--radius); margin: 18px 0; }
.detail-body blockquote {
  margin: 22px 0; padding: 18px 22px; border-left: 4px solid var(--gold);
  background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-soft);
}
.detail-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.detail-body th, .detail-body td { border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; }
.detail-body th { background: var(--bg); }

.detail-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.detail-nav a {
  display: block; padding: 16px 20px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line-soft);
  font-size: 14px; color: var(--ink); transition: all 0.26s var(--ease);
}
.detail-nav a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); background: var(--white); }
.detail-nav .label { display: block; font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; }
.detail-nav .next { text-align: right; }

/* ---------- 活动详情 ---------- */
.meeting-hero { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 320px; display: flex; align-items: flex-end; }
.meeting-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.meeting-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 32, 63, 0.15), rgba(8, 32, 63, 0.88)); }
.meeting-hero-body { position: relative; z-index: 2; padding: 40px; color: #fff; }
.meeting-hero-body h1 { color: #fff; font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 34px); }
.meeting-hero-body p { color: rgba(255, 255, 255, 0.78); margin: 12px 0 0; }
.meeting-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.fact {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.fact .label { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.5px; }
.fact strong { display: block; margin-top: 6px; font-size: 17px; color: var(--navy); font-family: var(--font-serif); }
.form-panel { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--red); margin-left: 4px; }
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: #c9d5e6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(27, 91, 184, 0.14);
  background: #fdfefe;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.textarea-lg { min-height: 260px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6577' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.checkbox { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.checkbox input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--blue); }

.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #ecfdf3; color: #10753a; border: 1px solid #c7efd8; }
.alert-error { background: #fef2f2; color: #a52121; border: 1px solid #f8d4d4; }
.alert-info { background: var(--blue-soft); color: var(--navy); border: 1px solid #cfe0f7; }
.alert ul { margin: 0; padding-left: 1.2em; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--ink-faint); }
.empty-state svg { margin: 0 auto 16px; opacity: 0.6; }

/* ---------- 认证页 ---------- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - var(--header-h) - 38px); }
.auth-side {
  position: relative; padding: 64px 60px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy) 50%, var(--blue));
  display: flex; flex-direction: column; justify-content: center;
}
.auth-side::after {
  content: ""; position: absolute; left: -90px; bottom: -110px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 160, 99, 0.3), transparent 70%);
}
.auth-side h2 { color: #fff; font-family: var(--font-serif); font-size: 34px; line-height: 1.35; margin-bottom: 18px; }
.auth-side p { color: rgba(255, 255, 255, 0.76); max-width: 420px; }
.auth-side ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.88); }
.auth-side li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 5px; border-radius: 50%;
  background: rgba(200, 160, 99, 0.2); box-shadow: inset 0 0 0 1px rgba(200, 160, 99, 0.6);
}
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 24px; background: var(--white); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-family: var(--font-serif); font-size: 27px; margin-bottom: 8px; }
.auth-card .lead { color: var(--ink-soft); margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--ink-faint); font-size: 12.5px; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 会员中心 ---------- */
.member-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 32px 36px; color: #fff;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 45%, var(--blue));
  box-shadow: var(--shadow-lg);
}
.member-card::after {
  content: ""; position: absolute; right: -60px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 160, 99, 0.36), transparent 70%);
}
.member-card-grid { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-end; }
.member-card h2 { color: #fff; font-family: var(--font-serif); font-size: 26px; margin-bottom: 6px; }
.member-card .no { font-size: 13px; letter-spacing: 2px; color: var(--gold-light); }
.member-card-facts { display: flex; gap: 36px; flex-wrap: wrap; }
.member-card-facts div .label { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.member-card-facts div strong { display: block; margin-top: 4px; font-size: 16px; color: #fff; }

.tabs { display: flex; gap: 6px; margin: 34px 0 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a {
  padding: 12px 20px; font-size: 15px; font-weight: 500; color: var(--ink-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--blue); }
.tabs a.active { color: var(--navy); border-color: var(--gold); font-weight: 600; }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.data-table thead th { background: var(--bg); font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.data-table tbody tr { transition: background 0.2s var(--ease); }
.data-table tbody tr:hover { background: #fafbfe; }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 入会申请步骤条 ---------- */
.steps { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 14px; }
.step .dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px;
}
.step.is-active { color: var(--navy); font-weight: 600; }
.step.is-active .dot { background: linear-gradient(135deg, var(--navy), var(--blue)); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }
.step-line { flex: 1; min-width: 24px; height: 1px; background: var(--line); }

.success-panel { text-align: center; padding: 56px 34px; }
.success-icon {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--green), #34d399);
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.3);
}
.success-panel h2 { font-family: var(--font-serif); font-size: 26px; margin-bottom: 12px; }
.apply-no {
  display: inline-block; margin: 18px 0 8px; padding: 12px 26px;
  border-radius: var(--radius); background: var(--bg); border: 1px dashed var(--gold);
  font-family: var(--font-serif); font-size: 22px; letter-spacing: 2px; color: var(--navy);
}

/* ---------- 领导机构 / 分支机构 ---------- */
.leader-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.leader-card { text-align: center; padding: 30px 22px; }
.leader-avatar {
  width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px rgba(200, 160, 99, 0.36);
  transition: transform 0.3s var(--ease);
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-card:hover .leader-avatar { transform: scale(1.05) rotate(-2deg); }
.leader-card h4 { font-size: 17px; }
.leader-role { color: var(--gold); font-size: 13.5px; font-weight: 600; margin: 6px 0 10px; }
.leader-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.branch-item { padding: 24px; }
.branch-item h4 { font-size: 16.5px; margin: 14px 0 10px; }
.branch-item .meta { font-size: 13px; color: var(--ink-soft); display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ---------- 锚点侧栏（组织架构） ---------- */
.anchor-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.anchor-nav a { display: block; padding: 11px 16px; border-radius: 10px; font-size: 14.5px; color: var(--ink-soft); border-left: 2px solid transparent; }
.anchor-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.anchor-nav a.active { color: var(--navy); font-weight: 600; border-left-color: var(--gold); background: var(--white); }

/* ---------- 页脚 ---------- */
.site-footer { background: linear-gradient(180deg, var(--navy-deep), #06172c); color: rgba(255, 255, 255, 0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 14px; }
.footer-brand h3 { color: #fff; font-family: var(--font-serif); font-size: 20px; }
.footer-brand span { font-size: 11.5px; letter-spacing: 1.6px; color: var(--gold); text-transform: uppercase; }
.site-footer p { font-size: 13.5px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.68); font-size: 13.5px; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; font-size: 13.5px; }
.footer-contact svg { flex: 0 0 18px; margin-top: 4px; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- 滚动动效 ----------
   仅在浏览器支持并执行 JS（html.js）时才隐藏待入场元素，
   避免 JS 被禁用或加载失败时内容不可见。 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* 尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide-media img { transform: none !important; }
  .card:hover, .news-item:hover, .btn:hover, .stat-card:hover { transform: none; }
}

/* 回到顶部 */
.to-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff;
  box-shadow: var(--shadow); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #3a2b10; }

/* 导航抽屉按钮 */
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .about-grid, .news-grid { grid-template-columns: 1fr; gap: 36px; }
  .layout-sidebar, .layout-content-form { grid-template-columns: 1fr; }
  .meeting-grid, .branch-grid, .branch-strip { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: repeat(3, 1fr); }
  .meeting-facts { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 48px 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed; top: calc(38px + var(--header-h)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 22px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all 0.28s var(--ease); max-height: 70vh; overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px 14px; border-radius: 10px; }
  .main-nav a::after { display: none; }
  .header-actions .btn { padding: 9px 14px; font-size: 13.5px; }
  .topbar-slogan { display: none; }
  .hero-track { height: auto; min-height: 0; padding: 74px 0 96px; }
  .hero-slide { position: absolute; }
  .hero-slide-body { max-width: 100%; }
  .article-item { grid-template-columns: 1fr; }
  .article-item-media { min-height: 210px; }
  .article-item-body { padding: 20px 22px 24px; }
  .detail-card { padding: 28px 22px; }
  .member-card-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .container { padding: 0 18px; }
  .section { padding: 54px 0; }
  .meeting-grid, .branch-grid, .branch-strip, .leader-grid, .form-grid, .stat-grid { grid-template-columns: 1fr; }
  .meeting-facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .brand-text h1 { font-size: 18px; }
  .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-primary { display: none; }
  .detail-nav { grid-template-columns: 1fr; }
  .to-top { right: 16px; bottom: 18px; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media print {
  .site-header, .topbar, .site-footer, .to-top, .hero-controls { display: none; }
}
