:root {
  --lemon: #FFB800;
  --lemon-deep: #FF9E00;
  --lemon-soft: #FFF3D1;
  --orange: #FF7A45;
  --ink: #1A1A1A;
  --ink-2: #2E2E2E;
  --text: #23262B;
  --text-soft: #5A616B;
  --text-mute: #8A919C;
  --bg: #FFFDF7;
  --bg-2: #FFFFFF;
  --bg-3: #FFF8E6;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #FFFFFF;
  --line: rgba(26, 26, 26, 0.08);
  --line-strong: rgba(26, 26, 26, 0.14);
  --shadow-sm: 0 2px 8px rgba(60, 45, 0, 0.06);
  --shadow: 0 10px 30px rgba(60, 45, 0, 0.10);
  --shadow-lg: 0 24px 60px rgba(60, 45, 0, 0.16);
  --glow: 0 0 0 4px rgba(255, 184, 0, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 68px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"],
html.dark,
body.dark {
  --ink: #F5F5F5;
  --ink-2: #E6E6E6;
  --text: #EDEFF2;
  --text-soft: #B4BBC4;
  --text-mute: #8C939D;
  --bg: #121316;
  --bg-2: #1A1C20;
  --bg-3: #1F2126;
  --card: rgba(30, 33, 38, 0.62);
  --card-solid: #1E2126;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.62);
  --glow: 0 0 0 4px rgba(255, 184, 0, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 88% -10%, rgba(255, 184, 0, 0.16), transparent 60%),
    radial-gradient(900px 520px at -8% 6%, rgba(255, 122, 69, 0.12), transparent 58%),
    radial-gradient(700px 500px at 50% 110%, rgba(255, 184, 0, 0.08), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--lemon-deep);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--orange);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h4 { font-size: 1.05rem; }

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

::selection {
  background: rgba(255, 184, 0, 0.35);
  color: var(--ink);
}

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

/* ============ Header ============ */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

html[data-theme="dark"] #siteHeader,
html.dark #siteHeader,
body.dark #siteHeader {
  background: rgba(18, 19, 22, 0.72);
}

#siteHeader.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.4);
  transition: transform 0.5s var(--ease);
}

.brand:hover svg {
  transform: rotate(-12deg) scale(1.06);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(120deg, var(--lemon-deep), var(--orange) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

nav[aria-label="主导航"] {
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lemon), var(--orange));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(255, 184, 0, 0.14);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 60%;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--lemon);
  box-shadow: var(--glow);
}

.site-search input[type="search"] {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  width: 168px;
  padding: 4px 0;
}

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

.site-search button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--lemon), var(--lemon-deep));
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 158, 0, 0.4);
  filter: brightness(1.04);
}

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

#themeToggle,
#menuToggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#themeToggle:hover,
#menuToggle:hover {
  transform: translateY(-2px) rotate(8deg);
  background: rgba(255, 184, 0, 0.2);
  box-shadow: var(--shadow-sm);
}

#menuToggle {
  display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

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

.breadcrumb a:hover {
  color: var(--lemon-deep);
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-mute);
}

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
}

main > section {
  margin: 44px 0;
  padding: 32px clamp(18px, 3vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow);
  border-color: rgba(255, 184, 0, 0.35);
}

main > section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 20px;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--lemon), var(--orange));
}

main > section > h3 {
  margin: 26px 0 10px;
}

main > section > h4 {
  margin: 20px 0 8px;
  color: var(--lemon-deep);
}

/* ============ Hero ============ */
#hero {
  margin-top: 28px;
  padding: clamp(24px, 3.4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 184, 0, 0.22), rgba(255, 122, 69, 0.14) 55%, rgba(255, 255, 255, 0.05)),
    var(--card);
  border: 1px solid rgba(255, 184, 0, 0.28);
  overflow: hidden;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.35), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.28), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 26px, 0) scale(1.08); }
}

#heroTitle {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  background: linear-gradient(100deg, var(--ink) 30%, var(--lemon-deep) 75%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
  line-height: 1.95;
  max-width: 980px;
  color: var(--text-soft);
}

/* ============ Carousel ============ */
.banner-carousel {
  position: relative;
  z-index: 1;
  margin: 26px 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-3);
  isolation: isolate;
}

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

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

.banner-carousel svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

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

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 184, 0, 0.85);
  color: var(--ink);
  transform: translateY(-50%) scale(1.08);
}

/* ============ Hero stats ============ */
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats .stat {
  padding: 18px 14px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hero-stats .stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 184, 0, 0.5);
}

.hero-stats .num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--lemon-deep);
  font-variant-numeric: tabular-nums;
}

.hero-stats .label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ============ Anchor nav ============ */
.anchor-nav {
  margin: 28px 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: var(--ink);
  border-color: var(--lemon);
  background: rgba(255, 184, 0, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 184, 0, 0.22);
}

/* ============ News / Articles cards ============ */
#news article,
#articles article {
  position: relative;
  padding: 22px 24px;
  margin: 16px 0;
  border-radius: var(--radius);
  background: var(--card-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--lemon), var(--orange));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 184, 0, 0.4);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleY(1);
}

#news article h3,
#articles article h3 {
  margin-bottom: 8px;
}

#articles article h3 a {
  color: var(--ink);
  position: relative;
}

#articles article h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lemon), var(--orange));
  transition: width 0.35s var(--ease);
}

#articles article h3 a:hover {
  color: var(--lemon-deep);
}

#articles article h3 a:hover::after {
  width: 100%;
}

#news time,
#articles time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-3);
  border: 1px solid var(--line);
}

#news article p,
#articles article p {
  margin-bottom: 10px;
  font-size: 0.94rem;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lemon-deep);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 184, 0, 0.45);
  background: rgba(255, 184, 0, 0.1);
  transition: all 0.25s var(--ease);
}

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

#articles article > a:last-child:hover {
  background: linear-gradient(135deg, var(--lemon), var(--lemon-deep));
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(255, 158, 0, 0.35);
}

#articles article > a:last-child:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ ============ */
.faq-item {
  margin: 12px 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-solid);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item:hover {
  border-color: rgba(255, 184, 0, 0.45);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  margin: 0;
}

.faq-item h3 button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  padding: 16px 52px 16px 20px;
  position: relative;
  line-height: 1.6;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.faq-item h3 button::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lemon-deep);
  background: rgba(255, 184, 0, 0.16);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-item h3 button:hover {
  background: rgba(255, 184, 0, 0.08);
}

.faq-item h3 button[aria-expanded="true"] {
  color: var(--lemon-deep);
}

.faq-item h3 button[aria-expanded="true"]::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(135deg, var(--lemon), var(--lemon-deep));
  color: var(--ink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.35s var(--ease);
  padding: 0 20px;
}

.faq-item.open .faq-answer,
.faq-answer[style*="max-height"] {
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.94rem;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* ============ Contact / info blocks ============ */
#contact p,
#footerInfo p {
  font-size: 0.94rem;
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: all 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--ink);
  border-color: var(--lemon);
  background: rgba(255, 184, 0, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 184, 0, 0.2);
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  padding: 40px 20px 100px;
  background:
    linear-gradient(180deg, transparent, rgba(255, 184, 0, 0.06)),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 26px;
  padding: 24px clamp(16px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

footer > section:hover {
  box-shadow: var(--shadow);
  border-color: rgba(255, 184, 0, 0.3);
}

footer h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-left: 14px;
  position: relative;
}

footer h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--lemon), var(--orange));
}

footer p {
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 0.8em;
}

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  font-weight: 600;
}

/* ============ Back to top ============ */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 120;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 184, 0, 0.5);
  background: linear-gradient(135deg, var(--lemon), var(--lemon-deep));
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(255, 158, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#backToTop:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 34px rgba(255, 158, 0, 0.55);
}

#backToTop:active {
  transform: translateY(-1px) scale(0.98);
}

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

.reveal.visible {
  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; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .site-search input[type="search"] { width: 130px; }
  .main-nav a { padding: 6px 9px; font-size: 0.86rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }

  .header-inner {
    padding: 8px 16px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .brand-name { font-size: 1.05rem; }

  .site-search {
    order: 5;
    flex: 1 1 100%;
    display: none;
  }

  .site-search.open {
    display: flex;
  }

  #menuToggle { display: inline-flex; }

  nav[aria-label="主导航"] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-solid);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 16px 18px;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  nav[aria-label="主导航"].open { display: block; }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

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

  .main-nav a:hover { transform: none; }

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

  main > section { padding: 24px 18px; margin: 30px 0; }

  #hero { padding: 24px 18px; }

  .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 1.25rem; }
}

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

  .breadcrumb { padding: 10px 16px 0; font-size: 0.8rem; }

  main { padding: 0 14px 30px; }

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

  #hero { padding: 20px 16px; }

  .hero-lead { font-size: 0.92rem; line-height: 1.85; }

  .banner-carousel { margin: 18px 0 16px; }

  .hero-stats { gap: 10px; }

  .hero-stats .stat { padding: 14px 10px; }

  .hero-stats .label { font-size: 0.75rem; }

  .anchor-nav { padding: 10px; }

  .anchor-nav a { padding: 5px 11px; font-size: 0.8rem; }

  #news article,
  #articles article { padding: 18px 16px; }

  .faq-item h3 button { padding: 14px 46px 14px 16px; font-size: 0.95rem; }

  .faq-answer { padding: 0 16px; }

  .faq-item.open .faq-answer,
  .faq-answer[style*="max-height"] { padding: 0 16px 16px; }

  footer { padding: 28px 14px 90px; }

  footer > section { padding: 18px 16px; margin-bottom: 16px; }

  #backToTop { right: 14px; bottom: 18px; width: 44px; height: 44px; }
}

@media (max-width: 400px) {
  .brand-name { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ============ Print ============ */
@media print {
  #siteHeader, #backToTop, .site-search, .carousel-prev, .carousel-next, #themeToggle, #menuToggle {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  main > section, footer > section { box-shadow: none; border: 1px solid #ddd; }
  a { color: #000; }
}
</｜｜DSML｜｜ parameter>
</｜｜DSML｜｜ invoke>
</｜｜DSML｜｜ calls>