:root {
  --brand: #FF6B35;
  --brand-dark: #E5521B;
  --brand-light: #FF8F66;
  --brand-soft: #FFF3E0;
  --accent: #7B3FE4;
  --accent-2: #2D6CDF;
  --bg: #F7F8FC;
  --bg-elev: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --text: #1C1E26;
  --text-soft: #4A4F5C;
  --text-mute: #7A8091;
  --border: rgba(20, 24, 40, 0.08);
  --border-strong: rgba(20, 24, 40, 0.14);
  --shadow-sm: 0 2px 8px rgba(20, 24, 40, 0.06);
  --shadow-md: 0 8px 28px rgba(20, 24, 40, 0.09);
  --shadow-lg: 0 18px 48px rgba(20, 24, 40, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 68px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --brand: #FF7B4D;
  --brand-dark: #FF6B35;
  --brand-light: #FFA07A;
  --brand-soft: rgba(255, 107, 53, 0.16);
  --accent: #A374FF;
  --accent-2: #5B93F0;
  --bg: #0E1015;
  --bg-elev: #171A21;
  --bg-glass: rgba(23, 26, 33, 0.66);
  --text: #ECEEF4;
  --text-soft: #B9BFCC;
  --text-mute: #8A91A1;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --brand: #FF7B4D;
    --brand-dark: #FF6B35;
    --brand-light: #FFA07A;
    --brand-soft: rgba(255, 107, 53, 0.16);
    --accent: #A374FF;
    --accent-2: #5B93F0;
    --bg: #0E1015;
    --bg-elev: #171A21;
    --bg-glass: rgba(23, 26, 33, 0.66);
    --text: #ECEEF4;
    --text-soft: #B9BFCC;
    --text-mute: #8A91A1;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -8%, rgba(255, 107, 53, 0.14), transparent 60%),
    radial-gradient(1000px 520px at 96% 4%, rgba(123, 63, 228, 0.12), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.32rem); }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-soft); }

ul, ol { padding-left: 1.2em; }

strong { color: var(--text); font-weight: 700; }

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ========== 顶部导航 ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; color: var(--brand); }

.logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.32);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.45);
}

#main-nav { flex: 1 1 auto; }

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

#menu-toggle,
#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

#menu-toggle { display: none; }

#menu-toggle:hover,
#theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

#menu-toggle:active,
#theme-toggle:active { transform: scale(0.95); }

#site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#site-search input[type="search"] {
  width: 186px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  outline: none;
  transition: width 0.3s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

#site-search input[type="search"]::placeholder { color: var(--text-mute); }

#site-search input[type="search"]:focus {
  width: 220px;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.16);
}

#site-search button {
  padding: 9px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.32);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
}

#site-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.45);
  filter: brightness(1.05);
}

#site-search button:active { transform: translateY(0) scale(0.97); }

/* ========== 主体布局 ========== */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 72px;
}

main > section {
  position: relative;
  margin: 0 0 28px;
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

main > section:hover::before { opacity: 1; }

main > section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

main > section h2::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.5);
}

main > section h3 {
  margin-top: 1.6em;
  padding-left: 14px;
  border-left: 3px solid var(--brand);
  color: var(--text);
}

main > section h3:first-of-type { margin-top: 0.4em; }

main > section h4 {
  margin-top: 1.2em;
  color: var(--brand-dark);
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-mute);
  margin-bottom: 24px;
}

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 18px 4px 6px;
  font-size: 0.88rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--text-mute);
  opacity: 0.7;
}

.breadcrumb a { color: var(--text-soft); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); text-decoration: none; }

/* ========== Hero 渐变 Banner ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px) !important;
  color: #fff;
  background: linear-gradient(135deg, #FF6B35 0%, #FF3D6E 42%, #7B3FE4 100%) !important;
  border: none !important;
  box-shadow: 0 24px 60px rgba(123, 63, 228, 0.32) !important;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(500px 260px at 0% 110%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero h1,
.hero p,
.hero strong,
.hero span { color: #fff; }

.hero h1 {
  margin-top: 26px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

.hero .lead {
  max-width: 78ch;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* 轮播 */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.carousel .slide {
  display: none;
  animation: slideFade 0.8s var(--ease) both;
}

.carousel .slide.active { display: block; }

.carousel .slide svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes slideFade {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* 数据统计 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.stats > div:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.stats strong {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.stats span {
  margin-top: 6px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

/* ========== 锚点导航 ========== */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  margin: 0 0 28px;
  padding: 10px 14px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-nav::-webkit-scrollbar { display: none; }

.anchor-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
}

.anchor-nav a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.32);
}

/* ========== 文章卡片 ========== */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

#articles > h2,
#articles > .section-desc {
  grid-column: 1 / -1;
}

#articles > article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 22px 18px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

#articles > article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease);
}

#articles > article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 53, 0.4);
}

#articles > article:hover::before { transform: scaleX(1); }

#articles > article h3 {
  margin: 0 0 8px;
  padding: 0;
  border: none;
  font-size: 1.04rem;
  line-height: 1.5;
  transition: color 0.22s var(--ease);
}

#articles > article:hover h3 { color: var(--brand-dark); }

#articles > article time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

#articles > article time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.7);
}

#articles > article p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--text-soft);
}

#articles > article > p:first-of-type {
  margin-bottom: 10px;
  font-size: 0;
}

#articles > article a {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

#articles > article a::after {
  content: "→";
  transition: transform 0.22s var(--ease);
}

#articles > article a:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  text-decoration: none;
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.34);
}

#articles > article a:hover::after { transform: translateX(3px); }

/* ========== FAQ 手风琴 ========== */
#faq details {
  margin-bottom: 12px;
  padding: 0;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

#faq details:hover {
  border-color: rgba(255, 107, 53, 0.38);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 52px 16px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

#faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details[open] summary {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--brand);
}

#faq details > p {
  margin: 0;
  padding: 4px 22px 20px 58px;
  font-size: 0.94rem;
  line-height: 1.82;
  color: var(--text-soft);
  animation: faqIn 0.36s var(--ease) both;
}

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 联系我们 ========== */
#contact p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 10px;
  padding: 11px 16px;
  font-size: 0.94rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

#contact p:hover {
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

#contact h3 {
  margin-top: 1.4em;
}

/* ========== 网站地图 / 友情链接 ========== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#sitemap li,
#links li { margin: 0; }

#sitemap a,
#links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}

#sitemap a::before,
#links a::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--brand-dark);
  border-color: rgba(255, 107, 53, 0.45);
  background: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

#sitemap a:hover::before,
#links a:hover::before {
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

/* ========== 法律声明 ========== */
#legal h3 {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

#legal p { font-size: 0.94rem; }

/* ========== 页脚 ========== */
footer {
  position: relative;
  padding: 48px 20px 40px;
  text-align: center;
  color: var(--text-soft);
  background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.06));
  border-top: 1px solid var(--border);
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 80%);
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
}

footer p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-mute);
}

footer p:first-child {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-soft);
}

footer a { color: var(--text-soft); font-weight: 600; }
footer a:hover { color: var(--brand); }

/* ========== 返回顶部 ========== */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(255, 107, 53, 0.55);
}

#back-to-top:active { transform: translateY(0) scale(0.96); }

/* ========== 滚动动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  :root { --maxw: 100%; }

  #site-search input[type="search"] { width: 150px; }
  #site-search input[type="search"]:focus { width: 180px; }

  #main-nav a { padding: 7px 10px; font-size: 0.88rem; }
}

@media (max-width: 860px) {
  .header-inner { gap: 10px; }

  #main-nav {
    order: 5;
    flex: 1 1 100%;
    display: none;
  }

  #main-nav.is-open {
    display: block;
    animation: navDrop 0.3s var(--ease) both;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 4px;
    border-top: 1px solid var(--border);
  }

  #main-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  #menu-toggle { display: inline-flex; }

  #site-search {
    order: 6;
    flex: 1 1 100%;
    padding-top: 6px;
  }

  #site-search input[type="search"],
  #site-search input[type="search"]:focus {
    width: 100%;
    flex: 1 1 auto;
  }

  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .anchor-nav { top: var(--header-h); }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.76; }

  main { padding: 0 14px 56px; }

  main > section {
    padding: 20px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
  }

  main > section h2 {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 18px;
  }

  main > section h2::before { width: 6px; }

  .hero {
    padding: 20px 16px !important;
    border-radius: var(--radius) !important;
  }

  .hero h1 { margin-top: 18px; }

  .carousel { border-radius: var(--radius-sm); }

  .stats { gap: 10px; margin-top: 20px; }

  .stats > div { padding: 14px 8px; }

  .stats span { font-size: 0.76rem; }

  .breadcrumb { padding: 12px 2px 4px; font-size: 0.82rem; }

  .anchor-nav {
    padding: 8px 10px;
    border-radius: var(--radius);
    margin-bottom: 18px;
  }

  .anchor-nav a { padding: 6px 11px; font-size: 0.82rem; }

  #articles { grid-template-columns: 1fr; gap: 14px; }

  #articles > article { padding: 18px 16px 16px; }

  #faq summary {
    padding: 14px 44px 14px 14px;
    font-size: 0.92rem;
    gap: 10px;
  }

  #faq summary::before {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
    border-radius: 6px;
  }

  #faq summary::after { right: 16px; }

  #faq details > p {
    padding: 2px 18px 16px 46px;
    font-size: 0.9rem;
  }

  #sitemap ul,
  #links ul { grid-template-columns: 1fr; }

  #contact p { padding: 10px 13px; font-size: 0.9rem; }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  footer { padding: 36px 16px 30px; }
}

@media (max-width: 400px) {
  .logo span { font-size: 0.96rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats strong { font-size: 1.35rem; }
}

/* ========== 打印 ========== */
@media print {
  #site-header,
  .anchor-nav,
  #back-to-top,
  #site-search,
  #menu-toggle,
  #theme-toggle,
  .carousel { display: none !important; }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .hero {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .hero h1,
  .hero p { color: #000 !important; text-shadow: none; }

  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }

  #faq details { border: 1px solid #ccc; }
  #faq details > p { display: block; }
}