:root {
  --brand: #E85D04;
  --brand-dark: #C2410C;
  --brand-light: #FF8A3D;
  --accent: #6A4C93;
  --accent-2: #1982C4;
  --bg: #FFF8F2;
  --bg-alt: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #FFFFFF;
  --border: rgba(232, 93, 4, 0.16);
  --text: #2B1D14;
  --text-soft: #6B5547;
  --text-muted: #94806F;
  --shadow-sm: 0 2px 10px rgba(120, 60, 10, 0.08);
  --shadow-md: 0 10px 30px rgba(120, 60, 10, 0.12);
  --shadow-lg: 0 20px 50px rgba(120, 60, 10, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #E85D04 0%, #FF8A3D 55%, #FFB347 100%);
  --grad-accent: linear-gradient(135deg, #6A4C93 0%, #1982C4 100%);
}

[data-theme="dark"] {
  --bg: #12100E;
  --bg-alt: #1A1714;
  --surface: rgba(38, 32, 27, 0.72);
  --surface-solid: #221D19;
  --border: rgba(255, 138, 61, 0.22);
  --text: #F5EDE6;
  --text-soft: #C9B8AA;
  --text-muted: #9A8A7C;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --grad-brand: linear-gradient(135deg, #C2410C 0%, #E85D04 55%, #FF8A3D 100%);
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(232, 93, 4, 0.10), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(106, 76, 147, 0.08), transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-dark);
}

[data-theme="dark"] a:hover,
[data-theme="dark"] a:focus-visible {
  color: var(--brand-light);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ 头部 ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(232, 93, 4, 0.35);
  transition: transform 0.4s var(--ease);
}

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

.brand:hover {
  color: var(--brand);
}

.brand-name {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#site-header nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand);
  background: rgba(232, 93, 4, 0.1);
  transform: translateY(-2px);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: inset 0 1px 3px rgba(120, 60, 10, 0.05);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.15);
}

.site-search input {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text);
  width: 190px;
  min-width: 0;
  border-radius: 999px;
  outline: none;
}

.site-search input::placeholder {
  color: var(--text-muted);
}

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.42);
}

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

#theme-toggle {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

#theme-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(232, 93, 4, 0.08);
  transform: translateY(-2px);
}

/* ============ 主内容容器 ============ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ============ 面包屑 ============ */
.breadcrumb {
  padding: 18px 0 6px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-muted);
  opacity: 0.6;
}

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

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

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ============ Banner ============ */
.banner {
  position: relative;
  margin: 12px 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--grad-brand);
  isolation: isolate;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.banner-slides {
  position: relative;
  min-height: 260px;
}

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

.slide.active {
  display: block;
}

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

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

.banner-controls {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.banner-controls button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.banner-controls button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

/* ============ 数据统计 ============ */
.stats {
  margin: 0 0 44px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stats h2 {
  margin: 0 0 22px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(232, 93, 4, 0.08), transparent 70%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stats-list li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ============ 主文章 ============ */
.main-article {
  position: relative;
}

.main-article > h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--text) 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .main-article > h1 {
  background: linear-gradient(120deg, #F5EDE6 30%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.main-article .meta {
  margin: 0 0 36px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.9;
}

.main-article .meta .author {
  font-weight: 700;
  color: var(--brand);
}

.main-article .meta .editor {
  font-weight: 600;
  color: var(--text);
}

.main-article .meta time {
  font-variant-numeric: tabular-nums;
}

/* ============ 章节 ============ */
.main-article section {
  margin: 0 0 40px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
  animation: riseIn 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}

@supports not (animation-timeline: view()) {
  .main-article section {
    animation: none;
  }
}

.main-article section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 93, 4, 0.3);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-article h2 {
  position: relative;
  margin: 0 0 20px;
  padding-left: 16px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.main-article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(232, 93, 4, 0.5);
}

.main-article h3 {
  margin: 28px 0 12px;
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
}

.main-article h3::before {
  content: "▸ ";
  color: var(--brand);
  font-weight: 800;
}

.main-article h4 {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

[data-theme="dark"] .main-article h4 {
  color: var(--brand-light);
}

.main-article p {
  margin: 0 0 16px;
  color: var(--text-soft);
  text-align: justify;
  letter-spacing: 0.2px;
}

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

.main-article ul,
.main-article ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
  color: var(--text-soft);
}

.main-article li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.main-article li::marker {
  color: var(--brand);
  font-weight: 700;
}

/* ============ 新闻列表 ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.news-list li {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

.news-list h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.news-list h3::before {
  content: none;
}

.news-list h3 a {
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.news-list h3 a:hover {
  color: var(--brand);
}

.news-meta {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.news-list p:last-child {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ============ 文章卡片 ============ */
.article-card {
  margin: 0 0 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(106, 76, 147, 0.35);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.article-card h3::before {
  content: none;
}

.article-card h3 a {
  color: var(--text);
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

.article-card h3 a:hover {
  color: var(--brand);
  background-size: 100% 2px;
}

.article-meta {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.article-summary {
  margin: 0 0 14px;
  font-size: 0.93rem;
  color: var(--text-soft);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  transition: all 0.3s var(--ease);
}

.read-more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.read-more:hover {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 93, 4, 0.35);
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ 手风琴 ============ */
.faq-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.faq-list dt {
  margin: 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.6;
  padding: 16px 52px 16px 20px;
  border-radius: var(--radius);
  position: relative;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}

.faq-question:hover {
  border-color: var(--brand);
  background: rgba(232, 93, 4, 0.06);
  box-shadow: var(--shadow-sm);
}

.faq-question[aria-expanded="true"] {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.3);
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  margin: 0;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease),
    padding 0.35s var(--ease);
}

.faq-answer.is-open {
  max-height: 600px;
  opacity: 1;
  padding: 16px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
}

/* ============ 引用 ============ */
blockquote {
  margin: 20px 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, rgba(106, 76, 147, 0.08), rgba(25, 130, 196, 0.06));
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

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

/* ============ 联系 / 网站地图 / 友链 ============ */
.contact-list,
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.contact-list li {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateX(4px);
  border-color: var(--brand);
}

.sitemap-list {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.sitemap-list li {
  margin: 0;
}

.sitemap-list a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

.sitemap-list a:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(232, 93, 4, 0.3);
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.friend-links li {
  margin: 0;
}

.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

.friend-links a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(106, 76, 147, 0.32);
}

/* ============ 页脚 ============ */
#site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.footer-inner section {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.footer-inner section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.footer-inner h2 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(232, 93, 4, 0.2);
}

.footer-inner p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============ 返回顶部 ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  border: 0;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(232, 93, 4, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 34px rgba(232, 93, 4, 0.5);
}

#back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }

  .site-search input {
    width: 150px;
  }

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

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  #site-header nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #site-header nav::-webkit-scrollbar {
    display: none;
  }

  .nav-list {
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 2px;
  }

  .nav-list a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .site-search {
    flex: 1 1 auto;
  }

  .site-search input {
    width: 100%;
  }

  main {
    padding: 0 16px 48px;
  }

  .main-article section {
    padding: 24px 20px;
    border-radius: var(--radius);
  }

  .banner-slides {
    min-height: auto;
  }

  .banner-controls {
    right: 12px;
    bottom: 10px;
  }

  .banner-controls button {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .footer-inner {
    padding: 36px 16px 22px;
    gap: 18px;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

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

  .brand svg {
    width: 34px;
    height: 34px;
  }

  .stats {
    padding: 24px 16px;
  }

  .stats-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stats-list li {
    padding: 10px 6px;
  }

  .main-article .meta {
    font-size: 0.8rem;
    padding: 12px 14px;
  }

  .main-article section {
    padding: 20px 16px;
    margin-bottom: 28px;
  }

  .main-article h2 {
    padding-left: 14px;
  }

  .main-article h2::before {
    width: 4px;
  }

  .article-card {
    padding: 18px 16px;
  }

  .news-list li {
    padding: 16px;
  }

  .faq-question {
    padding: 14px 46px 14px 16px;
    font-size: 0.94rem;
  }

  .faq-answer.is-open {
    padding: 14px 16px 18px;
  }

  .sitemap-list {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner section {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  .sitemap-list {
    grid-template-columns: 1fr;
  }

  .stats-list {
    grid-template-columns: 1fr;
  }
}

/* ============ 动效降级 ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

  body {
    background: #fff;
    color: #000;
  }

  .main-article section,
  .stats,
  .footer-inner section {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}