/* 站点全局样式 — 基于 Bootstrap 5.3 */
@import url("interactive-bg.css");

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}

/* ── 导航/页脚兜底（Bootstrap 未加载时仍可用） ── */
.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary-dark);
}

.site-navbar .navbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
}

.site-navbar .nav-link {
  display: block;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 0;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff;
}

.site-navbar .navbar-toggler {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.35rem 0.65rem;
  border-radius: var(--bs-border-radius, 0.5rem);
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-toggler {
    display: inline-block;
  }

  .site-navbar .navbar-collapse:not(.show) {
    display: none;
    width: 100%;
  }

  .site-navbar .navbar-collapse.show {
    display: block;
    width: 100%;
  }

  .site-navbar .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
  }
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Top bar ── */
.site-topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.site-topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Page banner ── */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--primary-deeper) 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.page-banner--compact {
  padding: 1.75rem 0 1.5rem;
}

.page-banner--org::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}

.page-banner p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.95rem;
}

/* ── Page main ── */
.page-main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.page-main > .container,
.page-main.container {
  max-width: 900px;
}

.page-section-head {
  margin: 2rem 0 1.25rem;
}

.page-section-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.25rem;
}

.page-section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Panels / cards (static pages) ── */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.panel-accent {
  border-left: 4px solid var(--accent);
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.75rem;
}

.panel-text {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.panel-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.quote-panel {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--bs-border-radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--primary-dark);
  line-height: 1.7;
}

.scope-list {
  margin: 0;
  padding-left: 1.25rem;
}

.scope-list li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

/* ── Section headers (shared) ── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-bar {
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-bar--content {
  background: var(--primary);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.section-more {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.section-more:hover {
  color: var(--accent);
}

/* ── Hero（首页横幅） ── */
.assoc-hero {
  background: linear-gradient(90deg, var(--primary-deeper) 0%, var(--primary) 50%, var(--primary-mid) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
}

.assoc-hero-pattern {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.assoc-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.assoc-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.assoc-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: 0.08em;
}

.assoc-hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.9;
  margin: 0 0 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.assoc-hero-desc {
  max-width: 640px;
  margin: 0 auto 0.75rem;
  opacity: 0.88;
  line-height: 1.75;
  font-size: 0.95rem;
}

.assoc-hero-hotline {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.assoc-hero-hotline a {
  color: #fff;
  font-weight: 600;
}

/* ── Quick nav（首页快捷入口） ── */
.assoc-quicknav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.875rem 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  height: 100%;
}

.assoc-quicknav-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.assoc-quicknav-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary-dark);
}

.assoc-quicknav-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Stats ── */
.assoc-stat {
  text-align: center;
  padding: 1rem 0.5rem;
}

.assoc-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.assoc-stat-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.45;
}

/* ── Contact QR ── */
.contact-qr-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.qr-card {
  text-align: center;
  margin: 0;
}

.qr-card img {
  border-radius: var(--bs-border-radius);
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto 0.5rem;
}

.qr-card figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Contact grid ── */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-item {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.contact-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.75rem;
}

.contact-item p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Platform layout ── */
.platform-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .platform-layout {
    grid-template-columns: 1fr 200px;
    align-items: start;
  }
}

.platform-qr-box {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.platform-qr-box img {
  border-radius: var(--bs-border-radius);
  margin-bottom: 0.75rem;
}

.feature-list {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  line-height: 1.6;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Guide page ── */
.guide-tabs {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-tab {
  background: none;
  border: none;
  cursor: pointer;
}

.guide-tab.is-active,
.guide-tab.active {
  background: var(--primary) !important;
  color: #fff !important;
}

.guide-panel {
  display: none;
}

.guide-panel.is-active {
  display: block;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.cols-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.guide-panel .step-card.official-panel {
  padding: 1.25rem 1.5rem;
}

.step-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.step-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.5rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.notice {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--bs-border-radius);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--primary-dark);
  margin-top: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--bs-border-radius-lg);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-intro {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.65;
  margin: 0.75rem 0 0;
  max-width: 36rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: 1fr;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-name {
  font-size: 1rem;
  line-height: 1.35;
}

.footer-brand-tagline {
  display: block;
  opacity: 0.75;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 0.35rem;
}

.footer-links--grid a {
  display: block;
  font-size: 0.875rem;
  padding: 0.15rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0;
}

.footer-contact p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.6;
  word-break: break-word;
}

.footer-bottom {
  font-size: 0.8125rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
}

.beian-icon {
  vertical-align: -2px;
  margin-right: 2px;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .footer-brand { grid-column: 1; }
  .footer-contact-col { grid-column: 2; grid-row: 1; }
  .footer-nav { grid-column: 1 / -1; }

  .footer-links--grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    align-items: start;
  }

  .footer-brand,
  .footer-nav,
  .footer-contact-col {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 359.98px) {
  .footer-links--grid {
    column-gap: 0.75rem;
  }

  .footer-links--grid a {
    font-size: 0.8125rem;
  }
}

/* ── Utilities ── */
.hidden {
  display: none !important;
}

.assoc-section-alt {
  background: var(--bg-alt);
}

.home-lead {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.home-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.home-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-features li {
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
  font-size: 0.9rem;
}

.home-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.home-contact-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.home-contact-item:last-child {
  border-bottom: none;
}

.home-contact-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.home-teaser-num {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* Highlight grid — 两列布局（发展理念页） */
#highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 767.98px) {
  #highlight-grid {
    grid-template-columns: 1fr;
  }
}
