/* ============================================================
   ADSPR — 数字科学促进与研究协会
   仿站参考: intellif.com
   风格: 全屏深色Hero + 渐进滚动动画 + 大图区块交替 + 数字统计
   主色: 深紫 #2d1854 / 辅色: 青蓝 #00b4d8
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333; background: #fff; line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Color Variables ---------- */
:root {
  --purple: #2d1854;
  --purple-dark: #1a0e33;
  --purple-light: #4a2d7a;
  --cyan: #00b4d8;
  --cyan-light: #48cae4;
  --gold: #e0c068;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e2e4e8;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  color: var(--purple);
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--cyan);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: #0096c7;
  border-color: #0096c7;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}
.btn-purple {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn-purple:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
}
/* 幽灵胶囊按钮：透明底 + 紫细边框 + 紫字 + 圆角胶囊，hover 时填充 */
.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
  border-radius: 999px;
  padding: 10px 28px;
  font-size: .95rem;
  letter-spacing: .02em;
}
.btn-ghost:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 24, 84, .18);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 0;
  transition: background .3s, box-shadow .3s;
}
.navbar.transparent {
  background: rgba(26, 14, 51, .25);
  backdrop-filter: blur(6px);
}
.navbar.scrolled {
  background: var(--purple-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.navbar-brand img {
  height: 42px;
  width: auto;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 24px 14px;
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li.active > a {
  color: var(--cyan-light);
}
.nav-links > li > a .arrow {
  font-size: .65rem;
  transition: transform .2s;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--purple-dark);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all .25s;
}
.nav-links > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  transition: background .2s, color .2s;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,.08);
  color: var(--cyan-light);
}

/* Search icon */
.nav-search {
  margin-left: 8px;
  cursor: pointer;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  transition: color .2s;
  background: none;
  border: none;
}
.nav-search:hover { color: var(--cyan-light); }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,14,51,.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay .search-box {
  width: 640px;
  max-width: 92%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 10px;
  padding: 6px 6px 6px 20px;
  backdrop-filter: blur(6px);
  transition: border-color .25s;
}
.search-overlay .search-box:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,180,216,.15);
}
.search-overlay input {
  flex: 1;
  min-width: 0;
  padding: 14px 4px;
  font-size: 1.15rem;
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
}
.search-overlay input::placeholder { color: rgba(255,255,255,.5); }
.search-overlay .search-submit,
.search-overlay .close-search {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all .2s;
}
.search-overlay .search-submit {
  background: var(--cyan);
  color: #fff;
}
.search-overlay .search-submit:hover {
  background: var(--cyan-light);
  transform: translateY(-1px);
}
.search-overlay .close-search {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 1.4rem;
}
.search-overlay .close-search:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,14,51,.88) 0%, rgba(45,24,84,.72) 50%, rgba(0,180,216,.18) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  min-width: 0;
  flex: 0 1 100%;
  max-width: 800px;
  padding: 0 24px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  overflow-wrap: break-word;
}
.hero-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: .92;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sub-page hero (shorter) */
.hero-sub {
  min-height: 420px;
  padding-top: 72px;
}
.hero-sub .hero-content h1 {
  font-size: 2.4rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--purple-dark);
  padding: 48px 0;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 8px;
  white-space: nowrap;
}
.stat-number .stat-value,
.stat-number .stat-unit {
  display: inline-block;
  line-height: 1;
}
html.en .stat-item .stat-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}
html.en .stat-number .stat-unit {
  font-size: .46em;
  font-weight: 800;
  line-height: 1.15;
}
.stat-item .stat-label {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--gray-50);
}
.section-dark {
  background: var(--purple);
  color: #fff;
}
.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title p { color: rgba(255,255,255,.7); }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  border-top: 3px solid transparent;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  border-top-color: var(--cyan);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.4rem;
}
.card h3 {
  margin-bottom: 12px;
  color: var(--purple);
}
.card p {
  color: var(--gray-600);
  font-size: .95rem;
  margin-bottom: 16px;
}
.card-link {
  color: var(--cyan);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.card-link:hover { gap: 8px; }

/* Dark card variant */
.section-dark .card {
  background: rgba(255,255,255,.06);
  border-top-color: transparent;
}
.section-dark .card:hover {
  background: rgba(255,255,255,.1);
  border-top-color: var(--cyan);
}
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: rgba(255,255,255,.7); }

/* ============================================================
   ALTERNATING IMAGE-TEXT BLOCKS
   ============================================================ */
.alt-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.alt-block:last-child { margin-bottom: 0; }
.alt-block.reverse .alt-block-img { order: 2; }
.alt-block.reverse .alt-block-text { order: 1; }
.alt-block-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.alt-block-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.alt-block-text h3 {
  color: var(--purple);
  margin-bottom: 16px;
}
.alt-block-text p {
  color: var(--gray-600);
}

/* ============================================================
   NEWS LIST
   ============================================================ */
.news-list {
  display: grid;
  gap: 24px;
}
.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}
.news-item-img {
  width: 200px;
  height: 160px;
  object-fit: cover;
}
.news-item-body {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-item-body .meta {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.news-item-body h4 {
  color: var(--purple);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.news-item-body h4 a:hover { color: var(--cyan); }
.news-item-body p {
  font-size: .92rem;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   NEWS / ANNOUNCEMENT DETAIL - enhanced
   ============================================================ */
.section-detail { background: var(--gray-50); }

.news-detail {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 56px 60px 48px;
  box-shadow: 0 10px 40px rgba(45, 24, 84, .08);
  overflow: hidden;
}
/* 顶部紫→青渐变条 */
.news-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.news-detail h2 {
  color: var(--purple);
  font-size: 1.8rem;
  line-height: 1.45;
  margin-bottom: 18px;
}
.news-detail .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: .92rem;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}
.news-detail .meta::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

.news-detail .article-content { color: var(--gray-800); font-size: 1rem; line-height: 1.9; }
.news-detail .article-content p {
  text-indent: 2em;
  text-align: justify;
  margin-bottom: 1.2em;
}
.news-detail .article-content p:last-child { margin-bottom: 0; }
.news-detail .article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}
.news-detail .article-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--gray-50);
  border-left: 4px solid var(--cyan);
  color: var(--gray-800);
}

/* 返回列表按钮上方虚线分割 */
.detail-back {
  margin-top: 48px;
  padding-top: 32px;
  text-align: center;
  border-top: 1px dashed var(--gray-200);
}

/* ============================================================
   EMPTY STATE - 搜索无结果 / 空列表
   ============================================================ */
.empty-state {
  max-width: 520px;
  margin: 32px auto 0;
  padding: 64px 40px 56px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(45, 24, 84, .06);
  border: 1px solid var(--gray-200);
}
.empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 24, 84, .08), rgba(0, 180, 216, .08));
  color: var(--purple);
  margin-bottom: 24px;
}
.empty-state h3 {
  font-size: 1.25rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 28px;
}
.empty-state .kw {
  color: var(--purple);
  font-weight: 700;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .news-detail { padding: 36px 24px 32px; border-radius: 10px; }
  .news-detail h2 { font-size: 1.4rem; }
}

/* Announcements */
.announcement-list { display: grid; gap: 20px; }
.announcement-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-left: 4px solid var(--purple);
  transition: border-color .2s;
}
.announcement-card:hover { border-left-color: var(--cyan); }
.announcement-card .date {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.announcement-card h4 {
  color: var(--purple);
  margin-bottom: 8px;
}
.announcement-card p {
  font-size: .92rem;
  color: var(--gray-600);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid var(--purple);
}
.timeline-item .year {
  font-weight: 800;
  color: var(--purple);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.timeline-item p {
  color: var(--gray-600);
  font-size: .95rem;
}

/* ============================================================
   TEAM / EXPERT GRID
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.team-grid.experts-showcase-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.experts-showcase-grid .team-card {
  padding: 26px 20px;
}
.team-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .3s;
}
.team-card:hover { transform: translateY(-4px); }
.team-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.team-card h4 { color: var(--purple); margin-bottom: 4px; }
.team-card .role {
  font-size: .85rem;
  color: var(--cyan);
  margin-bottom: 8px;
  font-weight: 600;
}
.team-card .field {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.team-card p {
  font-size: .88rem;
  color: var(--gray-600);
  text-align: left;
}

@media (max-width: 1180px) {
  .team-grid.experts-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .team-grid.experts-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   VERIFY / QUERY SECTION
   ============================================================ */
.verify-box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.verify-box .form-group {
  margin-bottom: 20px;
}
.verify-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--purple);
}
.verify-box select,
.verify-box input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color .2s;
}
.verify-box select:focus,
.verify-box input[type="text"]:focus {
  outline: none;
  border-color: var(--cyan);
}
.verify-result {
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
  background: var(--gray-50);
  display: none;
}
.verify-result.show { display: block; }
.verify-result.success { border-left: 4px solid #22c55e; }
.verify-result.error { border-left: 4px solid #ef4444; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
/* yzncms 生成结构：.pagination > ul#pages > li > (a|span) */
.pagination ul,
.pagination ul#pages {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination ul li { display: inline-flex; }
.pagination a,
.pagination span,
.pagination ul li > a,
.pagination ul li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  background: #fff;
  transition: all .2s;
  text-decoration: none;
}
.pagination a:hover,
.pagination ul li > a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.pagination .active,
.pagination ul li.active > span {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.pagination ul li.disabled > span {
  opacity: .4;
  cursor: not-allowed;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 12px 0;
  font-size: .88rem;
  color: var(--gray-600);
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand img { height: 36px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 1rem; }
.footer-about p { font-size: .9rem; line-height: 1.7; }
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
}
.footer ul li { margin-bottom: 8px; }
.footer ul li a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer ul li a:hover { color: var(--cyan-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(45,24,84,.4);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 900;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover { background: var(--purple-light); }

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  padding: 16px 20px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--purple);
  transition: background .2s;
}
.accordion-header:hover { background: var(--gray-50); }
.accordion-header .icon { transition: transform .3s; font-size: .8rem; }
.accordion-item.open .accordion-header .icon { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-body-inner {
  padding: 0 20px 16px;
  color: var(--gray-600);
  font-size: .95rem;
}

/* ============================================================
   CHAPTER / BYLAW TABLE
   ============================================================ */
.chapter-section {
  margin-bottom: 32px;
}
.chapter-section h3 {
  color: var(--purple);
  margin-bottom: 12px;
  border-left: 4px solid var(--cyan);
  padding-left: 12px;
}
.chapter-section h4 {
  color: var(--gray-800);
  margin: 16px 0 8px;
}
.chapter-section p,
.chapter-section li {
  color: var(--gray-600);
  font-size: .95rem;
  margin-bottom: 6px;
}
.chapter-section ol {
  padding-left: 1.5rem;
  list-style: decimal;
}

/* ============================================================
   ORG CHART (simple text-based)
   ============================================================ */
.org-chart {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 32px;
  font-family: monospace;
  font-size: .92rem;
  line-height: 1.9;
  color: var(--gray-800);
  overflow-x: auto;
}

/* ============================================================
   TABLE
   ============================================================ */
table.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
table.styled-table th {
  background: var(--purple);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: .92rem;
}
table.styled-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: .92rem;
  color: var(--gray-600);
}
table.styled-table tr:hover td {
  background: var(--gray-50);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }

  /* ===== 移动端：纵向菜单 ===== */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--purple-dark);
    padding: 8px 0 16px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .nav-links.open > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .nav-links.open > li:last-child { border-bottom: none; }
  .nav-links.open > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    font-size: .98rem;
    color: rgba(255,255,255,.88);
    text-align: left;
  }
  .nav-links.open > li.active > a,
  .nav-links.open > li.open > a {
    color: var(--cyan);
    background: rgba(0,180,216,.06);
  }
  .nav-links.open > li > a .arrow {
    font-size: .8rem;
    transition: transform .25s;
  }
  .nav-links.open > li.open > a .arrow {
    transform: rotate(180deg);
  }

  /* 移动端 dropdown：全宽嵌套块，重置桌面样式 */
  .nav-links.open .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    background: rgba(0,0,0,.25);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 4px 0;
  }
  /* 移动端 hover 不再触发展开（避免点击中转），只有 .open class 时显示 */
  .nav-links.open > li:hover .dropdown-menu { display: none; }
  .nav-links.open > li.open .dropdown-menu { display: block; }

  .nav-links.open .dropdown-menu a {
    display: block;
    padding: 12px 24px 12px 48px;
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .nav-links.open .dropdown-menu a:last-child { border-bottom: none; }
  .nav-links.open .dropdown-menu a:hover {
    background: rgba(0,180,216,.08);
    color: var(--cyan-light);
  }

  .hero-content h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .alt-block { grid-template-columns: 1fr; gap: 24px; }
  .alt-block.reverse .alt-block-img { order: 0; }
  .news-item { grid-template-columns: 1fr; }
  .news-item-img { width: 100%; height: 200px; }
  .news-item-body { padding: 20px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero-content { padding: 0 18px; }
  .navbar .container { padding: 0 14px; }
  .nav-search { display: none; }
  .menu-toggle {
    flex-shrink: 0;
    margin-left: 10px;
  }
  .hero {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }
  .hero-content {
    flex-basis: 100%;
    max-width: 100vw;
  }
  html.en .hero-content h1 {
    max-width: calc(100vw - 36px);
    margin-left: auto;
    margin-right: auto;
    font-size: 1.35rem;
    line-height: 1.22;
  }
  html.en .hero-content p {
    max-width: calc(100vw - 36px);
    margin-left: auto;
    margin-right: auto;
    font-size: .98rem;
    line-height: 1.65;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn {
    width: min(100%, 260px);
  }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item .stat-number { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-grid.experts-showcase-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-sub { min-height: 300px; }
  .section { padding: 48px 0; }
}

/* Language switch */
.lang-en { display: none !important; }

html.en .lang-zh { display: none !important; }

html.en .lang-en.lang-block,
html.en div.lang-en,
html.en p.lang-en,
html.en li.lang-en,
html.en h1.lang-en,
html.en h2.lang-en,
html.en h3.lang-en,
html.en h4.lang-en,
html.en h5.lang-en,
html.en section.lang-en,
html.en article.lang-en { display: block !important; }

html.en .lang-en.lang-flex { display: flex !important; }

html.en span.lang-en,
html.en a.lang-en,
html.en strong.lang-en,
html.en em.lang-en,
html.en i.lang-en,
html.en label.lang-en,
html.en button.lang-en { display: inline !important; }

html.en p span.lang-en + strong::before,
html.en p strong + span.lang-en::before,
html.en li span.lang-en + strong::before,
html.en li strong + span.lang-en::before {
  content: ' ';
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}

.navbar.scrolled .lang-toggle-btn,
.navbar:not(.transparent) .lang-toggle-btn {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.14);
  color: #fff;
}

.lang-toggle-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

.lang-floating-toggle {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 1000;
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

html.en .navbar .container {
  justify-content: flex-start;
  gap: 16px;
  max-width: 1320px;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

html.en .navbar-brand span {
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: none;
}

html.en .nav-links { display: flex; }
html.en .menu-toggle { display: none; }
html.en .lang-toggle-btn { margin-left: auto; }
html.en .nav-search { margin-left: 0; }
html.en .nav-links { margin-left: clamp(42px, 5vw, 96px); }

html.en .nav-links > li > a {
  padding-left: 9px;
  padding-right: 9px;
  font-size: .86rem;
  letter-spacing: 0;
}

html.en .dropdown-menu {
  min-width: 200px;
}

@media (max-width: 1200px) {
  html.en .nav-links > li > a {
    padding-left: 7px;
    padding-right: 7px;
    font-size: .82rem;
  }
}

@media (max-width: 992px) {
  .navbar .lang-toggle-btn {
    margin-left: auto;
  }

  html.en .nav-links { display: none; }
  html.en .nav-links.open { display: flex; }
  html.en .menu-toggle { display: block; }

  html.en .nav-links > li > a {
    font-size: .95rem;
    padding-left: 24px;
    padding-right: 24px;
  }
}
