/* ======================================
   博雅（香港）文体艺术学会 - 全站样式
   风格：人文温润型
   主色：酒红 #6b1d2a  辅色：铜色 #b87333
   ====================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6b1d2a;
  --primary-light: #8a2e3d;
  --primary-dark: #4e1420;
  --accent: #b87333;
  --accent-light: #d4944f;
  --accent-dark: #8f5a28;
  --text: #2c2c2c;
  --text-light: #666;
  --text-white: #fff;
  --bg: #faf8f5;
  --bg-warm: #f5f0ea;
  --bg-card: #fff;
  --border: #e8e0d8;
  --shadow: 0 4px 20px rgba(107,29,42,0.08);
  --shadow-hover: 0 8px 30px rgba(107,29,42,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---- Language Toggle ---- */
.lang-en { display: none; }
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 section.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 label.lang-en,
html.en button.lang-en { display: inline !important; }
html.en .navbar .container { max-width: 1440px; }
html.en .navbar-brand > span { max-width: 90px; }
html.en .nav-link { padding-left: 10px; padding-right: 10px; font-size: 13px; }
.bcaas-en-page { background: var(--bg); }
.bcaas-en-page .page-hero { margin-top: 0; }
.bcaas-en-page .styled-table td,
.bcaas-en-page .styled-table th { vertical-align: top; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { color: var(--primary-dark); line-height: 1.4; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title h2 { display: inline-block; position: relative; }
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 1 250px;
  min-width: 0;
}
.navbar-brand img {
  height: 48px;
  width: auto;
}
.navbar-brand span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  transition: var(--transition);
  white-space: nowrap;
}
.navbar-brand > span {
  display: block;
  max-width: 210px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar.scrolled .navbar-brand span { color: var(--primary-dark); }

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 8px 12px;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.navbar.scrolled .nav-link { color: var(--text); }
.nav-link:hover {
  color: var(--accent);
  background: rgba(184,115,51,0.08);
}
.nav-item.active > .nav-link {
  color: var(--accent);
  position: relative;
}
.nav-item.active > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.navbar.scrolled .nav-item.active > .nav-link {
  color: var(--accent);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(6px);
  min-width: 180px;
  max-width: 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1001;
}
.nav-item:nth-last-child(-n+3) .nav-dropdown {
  left: auto;
  right: 0;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--bg-warm);
  color: var(--primary);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  margin: 6px 0;
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--text); }

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 24px;
}
.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 4px;
}
.hero-content .hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
  letter-spacing: 6px;
}
.hero-content .hero-en {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  font-weight: 300;
}
.hero-content .hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Page Hero (subpages) ---- */
.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-bg { filter: brightness(0.4); }
.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.page-hero-content h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.page-hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(184,115,51,0.3);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- Section ---- */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-warm);
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--primary);
  padding: 50px 0;
}
.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(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.card > .mt-2:last-child,
.card > .text-accent:last-child {
  margin-top: auto;
}
.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #fff;
}
.card[style*="text-align: center"] > .card-icon,
.card[style*="text-align:center"] > .card-icon {
  margin-left: auto;
  margin-right: auto;
}
.nav-menu-close { display: none; }
.card h3 { color: var(--primary-dark); }
.card p { color: var(--text-light); font-size: 0.95rem; }
.home-service-cta {
  display: inline-block;
  max-width: 100%;
  line-height: 1.45;
}
html.en .home-service-cta {
  font-size: 0.92rem;
}
html.en .home-service-cta .lang-en {
  white-space: nowrap;
}
html.en .youth-overview-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
}
html.en .youth-overview-title p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-size: 1rem;
}
html.en .youth-overview-copy {
  max-width: 820px !important;
}
html.en .youth-overview-copy p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.15rem;
}
html.en .youth-goals {
  max-width: 1120px !important;
}
html.en .youth-goals h3 {
  text-transform: none;
}
html.en .youth-goals-grid {
  gap: 24px;
}
html.en .youth-goal-card {
  text-align: left !important;
  padding: 28px 24px;
  min-height: 250px;
}
html.en .youth-goal-card > .card-icon {
  margin-left: 0;
  margin-right: 0;
}
html.en .youth-goal-card h4 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
html.en .youth-goal-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  text-align: left;
}
@media (max-width: 1024px) {
  html.en .youth-goals {
    max-width: 720px !important;
  }
}

/* ---- Feature/Highlight Section ---- */
.highlight-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 48px;
  color: #fff;
  text-align: center;
}
.highlight-box h2 { color: #fff; }
.highlight-box p { color: rgba(255,255,255,0.85); }

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 28px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent);
}
.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }
.timeline-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---- News & Announcements ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.news-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.news-card-body {
  padding: 24px;
}
.news-card-date {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}
.news-card-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement-list { }
.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.announcement-item:last-child { border-bottom: none; }
.announcement-date-box {
  min-width: 92px;
  text-align: center;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}
.announcement-date-box .day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.announcement-date-box .month {
  font-size: 0.8rem;
  color: var(--text-light);
}
.announcement-title {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.announcement-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---- Tables ---- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.styled-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}
.styled-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.styled-table tbody tr:last-child td { border-bottom: none; }
.styled-table tbody tr:hover { background: var(--bg-warm); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ---- Accordion ---- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  transition: var(--transition);
}
.accordion-header:hover { background: var(--bg-warm); }
.accordion-header .arrow {
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--accent);
}
.accordion-item.active .accordion-header .arrow { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.9;
}
.accordion-item.active .accordion-body { display: block; }

/* ---- Search Bar ---- */
.search-bar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}
.search-bar input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: 50px 0 0 50px;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar button {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---- Query System ---- */
.query-section {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.query-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 20px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.query-form input, .query-form select {
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  min-width: 200px;
}
.query-form input:focus, .query-form select:focus { border-color: var(--accent); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 3rem;
  flex-wrap: wrap;
}
/* YznCMS 分页器 */
.pagination #pages,
.pagination #pager,
#pages,
#pager {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}
#pages li,
#pager li {
  list-style: none;
}
#pages li a,
#pages li span,
#pager li a,
#pager li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
#pages li a:hover,
#pager li a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184,115,51,0.06);
}
#pages li.active span,
#pager li.active span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
#pages li.disabled span,
#pager li.disabled span {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.pagination-btn:hover:not([disabled]):not(.active) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184,115,51,0.05);
}
.pagination-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pagination-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Footer ---- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand-lockup img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 54px;
}
.footer-brand .footer-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-brand .footer-en { margin-bottom: 12px; }
.footer-brand .footer-desc { margin: 0; }
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-links a {
  display: inline-block;
  width: fit-content;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(184,115,51,0.3);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }
.back-to-top.visible { display: flex; }

/* ---- News Detail ---- */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.news-detail h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.news-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.news-detail .content { line-height: 2; }
.news-detail .content p { margin-bottom: 1.2rem; }
.news-detail .content h2 { font-size: 1.4rem; margin: 2rem 0 1rem; }
.news-detail .content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }

/* ---- Article Navigation (Prev/Next) ---- */
.article-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-nav-row {
  padding: 10px 0;
}
.article-nav-row a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.article-nav-row a:hover { color: var(--accent); }
.article-nav-row a:hover .nav-title { color: var(--accent); }
.article-nav-row .article-nav-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
}
.article-nav-row .nav-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 3px 10px;
  background: var(--bg-warm);
  border-radius: 20px;
  letter-spacing: 1px;
}
.article-nav-row .nav-title {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}
.article-nav-row .article-nav-empty .nav-title {
  color: var(--text-light);
  font-weight: 400;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.pt-2 { padding-top: 1rem; }

/* ---- Nav Search Button ---- */
.lang-toggle-btn {
  height: 34px;
  min-width: 92px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: var(--text-white);
  cursor: pointer;
  margin-left: 8px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}
.navbar.scrolled .lang-toggle-btn {
  border-color: rgba(107,29,42,0.35);
  color: var(--primary);
  background: #fff;
}
.lang-toggle-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: var(--accent);
}
.navbar.scrolled .lang-toggle-btn:hover {
  background: #fff;
}
.lang-toggle-btn .lang-option {
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.72);
  transition: var(--transition);
}
.lang-toggle-btn .lang-divider {
  display: none;
}
.navbar.scrolled .lang-toggle-btn .lang-option {
  color: var(--primary);
}
html:not(.en) .lang-toggle-btn .lang-option-zh,
html.en .lang-toggle-btn .lang-option-en {
  background: rgba(255,255,255,0.96);
  color: var(--primary);
}
html:not(.en) .navbar.scrolled .lang-toggle-btn .lang-option-zh,
html.en .navbar.scrolled .lang-toggle-btn .lang-option-en {
  background: var(--primary);
  color: #fff;
}
html:not(.en) .navbar.scrolled .lang-toggle-btn .lang-option-en,
html.en .navbar.scrolled .lang-toggle-btn .lang-option-zh {
  background: rgba(107,29,42,0.08);
  color: var(--primary);
}
html.en:not(.scrolled) .lang-toggle-btn .lang-option-zh {
  color: rgba(255,255,255,0.74);
}
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  color: var(--text-white);
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.navbar.scrolled .nav-search-btn { color: var(--text); }
.nav-search-btn:hover { color: var(--accent); }

@media (max-width: 1180px) and (min-width: 769px) {
  .navbar .container {
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .navbar-brand {
    flex-basis: 214px;
    gap: 8px;
  }
  .navbar-brand img {
    height: 42px;
  }
  .navbar-brand > span {
    max-width: 160px;
    font-size: 13px;
  }
  .nav-link {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
  .lang-toggle-btn {
    min-width: 86px;
    margin-left: 4px;
  }
  .nav-search-btn {
    margin-left: 2px;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* ---- Search Overlay ---- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.search-overlay.active { transform: translateY(0); }
.search-overlay-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}
.search-overlay .search-bar {
  flex: 1;
  display: flex;
}
.search-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px 8px;
  line-height: 1;
}
.search-close:hover { color: var(--primary); }

/* ---- Fade In Animation ---- */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; text-align: left !important; }
  .timeline-item::before { left: 12px !important; right: auto !important; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { min-height: 500px; }
  .hero-content h1 { font-size: 2.2rem; letter-spacing: 2px; }
  .hero-content .hero-subtitle { font-size: 1.1rem; letter-spacing: 3px; }
  .page-hero { height: 300px; }
  .section { padding: 50px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand-lockup img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .highlight-box { padding: 32px 24px; }

  /* Mobile nav */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
    flex-direction: column;
    align-items: stretch;
    padding: 70px 0 24px;
    gap: 0;
    transition: var(--transition);
    box-shadow: -8px 0 32px rgba(92,30,16,0.15);
    overflow-y: auto;
  }
  .nav-menu::before {
    content: '菜单导航';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 1;
  }
  .nav-menu-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 2;
    transition: background 0.2s;
  }
  .nav-menu-close:hover {
    background: rgba(255,255,255,0.1);
  }
  .nav-menu.active { right: 0; }
  .nav-toggle { display: block; }
  .lang-toggle-btn {
    height: 32px;
    min-width: 84px;
    margin-left: auto;
  }
  .lang-toggle-btn .lang-option {
    min-width: 34px;
    height: 24px;
    padding: 0 6px;
    font-size: 11px;
  }
  html.en .navbar-brand > span {
    max-width: 180px;
    font-size: 11px;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(92,30,16,0.06);
  }
  .nav-menu .nav-link {
    color: var(--primary-dark);
    padding: 14px 24px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
  }
  .nav-menu .nav-link:hover {
    background: rgba(184,115,51,0.08);
    color: var(--accent);
  }

  /* Override active state for mobile: left border + bg instead of centered underline */
  .nav-item.active > .nav-link {
    background: rgba(184,115,51,0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 21px;
  }
  .nav-item.active > .nav-link::after {
    display: none;
  }

  /* Always show dropdowns inline */
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(92,30,16,0.03);
    padding: 4px 0;
    opacity: 1;
    visibility: visible;
    display: block;
    border-radius: 0;
  }
  .nav-dropdown a {
    display: block;
    padding: 10px 24px 10px 44px;
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none;
    position: relative;
  }
  .nav-dropdown a::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
  }
  .nav-dropdown a:hover {
    color: var(--accent);
    background: rgba(184,115,51,0.05);
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item .stat-number { font-size: 2rem; }
  .query-form { flex-direction: column; align-items: stretch; }
  .query-form input, .query-form select { min-width: auto; }
}
