:root {
  --brand: #ff6b1a;
  --brand-2: #ff9a3c;
  --brand-3: #ff3d6e;
  --brand-grad: linear-gradient(135deg, #ff6b1a 0%, #ff3d6e 60%, #a13cff 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(255,107,26,.14), rgba(161,60,255,.14));
  --bg: #fbf7f3;
  --bg-2: #ffffff;
  --bg-3: #f3ece6;
  --text: #241d18;
  --text-2: #6a5d54;
  --text-3: #9a8d84;
  --line: rgba(36,29,24,.10);
  --line-strong: rgba(36,29,24,.18);
  --glass: rgba(255,255,255,.62);
  --glass-strong: rgba(255,255,255,.82);
  --glass-border: rgba(255,255,255,.65);
  --shadow-sm: 0 2px 8px rgba(60,30,10,.06);
  --shadow: 0 10px 30px -10px rgba(90,40,10,.18);
  --shadow-lg: 0 24px 60px -20px rgba(90,40,10,.28);
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.68,.32,1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
}

html.dark {
  --bg: #0e0b10;
  --bg-2: #17121b;
  --bg-3: #1f1826;
  --text: #f4eef8;
  --text-2: #b9aabd;
  --text-3: #8a7b90;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.20);
  --glass: rgba(28,20,34,.55);
  --glass-strong: rgba(30,22,38,.78);
  --glass-border: rgba(255,255,255,.12);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.4);
  --shadow: 0 12px 34px -12px rgba(0,0,0,.7);
  --shadow-lg: 0 28px 70px -24px rgba(0,0,0,.85);
  --brand-grad-soft: linear-gradient(135deg, rgba(255,107,26,.20), rgba(161,60,255,.22));
}

*, *::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: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(255,107,26,.16), transparent 62%),
    radial-gradient(820px 520px at 92% 4%, rgba(161,60,255,.14), transparent 60%),
    radial-gradient(700px 500px at 50% 108%, rgba(255,61,110,.10), transparent 65%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--brand-3); }
ul, ol { padding-left: 1.3em; }
li { margin: .35em 0; }

h1, h2, h3, h4 {
  line-height: 1.35;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
h4 { font-size: 1.05rem; color: var(--brand); }
p { margin: 0 0 1em; color: var(--text-2); }
strong { color: var(--text); font-weight: 700; }

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

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

::selection { background: rgba(255,107,26,.28); color: var(--text); }

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--glass);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
#site-header.is-stuck {
  background: var(--glass-strong);
  border-bottom-color: var(--line);
  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: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: .02em;
}
.logo svg {
  border-radius: 10px;
  box-shadow: 0 6px 18px -6px rgba(255,107,26,.7);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.logo:hover svg {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 10px 26px -8px rgba(255,61,110,.8);
}
.logo-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#main-nav { margin-left: auto; }
#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#main-nav li { margin: 0; }
#main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--brand);
  background: var(--brand-grad-soft);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 3px 3px 14px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-search:focus-within {
  border-color: var(--brand);
  background: var(--bg-2);
  box-shadow: 0 0 0 4px rgba(255,107,26,.14);
}
.site-search input {
  width: 150px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .86rem;
  padding: 6px 0;
  outline: none;
}
.site-search input::placeholder { color: var(--text-3); }
.site-search button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-grad);
  padding: 7px 14px;
  border-radius: 999px;
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.site-search button:hover { filter: brightness(1.08); transform: scale(1.03); }

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-2);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-grad-soft);
  transform: translateY(-1px);
}
#menu-toggle { display: none; }

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

/* 面包屑 */
.breadcrumb { margin: 18px 0 4px; font-size: .84rem; color: var(--text-3); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}
.breadcrumb a { color: var(--text-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--text-3); }

/* ============ HERO / BANNER ============ */
#hero {
  position: relative;
  margin: 20px 0 34px;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 60px) clamp(22px, 4.5vw, 56px) clamp(56px, 7vw, 84px);
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-grad);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 380px at 88% 12%, rgba(255,255,255,.32), transparent 62%),
    radial-gradient(520px 420px at 6% 92%, rgba(0,0,0,.22), transparent 60%);
  pointer-events: none;
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.banner-slides { position: relative; min-height: 210px; }
.banner-slides .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.985);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
  pointer-events: none;
}
.banner-slides .slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.banner-slides .slide h1,
.banner-slides .slide h2 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(60,10,30,.28);
  max-width: 18em;
}
.banner-slides .slide h1 { font-size: clamp(1.55rem, 3.6vw, 2.6rem); }
.banner-slides .slide p {
  color: rgba(255,255,255,.92);
  max-width: 44em;
  font-size: clamp(.94rem, 1.4vw, 1.06rem);
  text-shadow: 0 1px 10px rgba(60,10,30,.2);
}

.btn-primary {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .96rem;
  color: #ff5a12;
  background: #fff;
  box-shadow: 0 12px 30px -10px rgba(60,10,30,.5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn-primary:hover {
  color: #ff5a12;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px -12px rgba(60,10,30,.6);
  background: #fff7f2;
}
.btn-primary:active { transform: translateY(-1px) scale(.99); }

.banner-dots {
  position: absolute;
  left: clamp(22px, 4.5vw, 56px);
  bottom: clamp(20px, 3vw, 30px);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.banner-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  background: rgba(255,255,255,.4);
  transition: background .3s var(--ease), width .35s var(--ease), box-shadow .3s var(--ease);
}
.banner-dots button:hover { background: rgba(255,255,255,.7); }
.banner-dots button[aria-selected="true"] {
  width: 48px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.22);
}

/* ============ STATS ============ */
#stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -6px 0 46px;
}
.stat-item {
  position: relative;
  text-align: center;
  padding: 22px 12px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.stat-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand-grad);
  opacity: .85;
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,107,26,.4);
}
.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: .82rem;
  color: var(--text-3);
  font-weight: 600;
}

/* ============ SECTIONS ============ */
main > section:not(#hero):not(#stats) {
  position: relative;
  margin: 0 0 34px;
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
main > section.is-revealed {
  opacity: 1;
  transform: none;
}
main > section:not(#hero):not(#stats):hover {
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 18px;
}
main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-grad);
}
main > section > h3 { margin-top: 1.5em; color: var(--text); }
main > section > h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brand-grad);
  vertical-align: middle;
  transform: translateY(-2px);
}

/* 时间线 */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), rgba(161,60,255,.35));
}
.timeline li {
  position: relative;
  padding: 8px 0 8px 30px;
  margin: 0;
  color: var(--text-2);
  transition: transform .3s var(--ease);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(255,107,26,.12);
}
.timeline li:hover { transform: translateX(4px); }

/* 列表通用 */
#products ul,
#solutions ul,
#howto ul,
#howto ol {
  padding: 0;
  list-style: none;
  counter-reset: step;
}
#products ul li,
#solutions ul li,
#howto ul li {
  position: relative;
  padding: 10px 14px 10px 42px;
  margin: 8px 0;
  border-radius: var(--radius-s);
  background: var(--bg-3);
  color: var(--text-2);
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
#products ul li::before,
#solutions ul li::before,
#howto ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: .72rem;
  font-weight: 900;
  color: #fff;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 4px 10px -3px rgba(255,107,26,.7);
}
#products ul li:hover,
#solutions ul li:hover,
#howto ul li:hover {
  background: var(--brand-grad-soft);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#howto ol { counter-reset: step; }
#howto ol li {
  position: relative;
  counter-increment: step;
  padding: 12px 16px 12px 52px;
  margin: 10px 0;
  border-radius: var(--radius-s);
  background: var(--bg-3);
  border-left: 3px solid var(--brand);
  color: var(--text-2);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: .82rem;
  font-weight: 900;
  color: #fff;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 6px 14px -5px rgba(255,61,110,.8);
}
#howto ol li:hover {
  background: var(--brand-grad-soft);
  transform: translateX(4px);
}

/* 新闻 */
.news-item {
  position: relative;
  padding: 20px 22px;
  margin: 14px 0;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.news-item:hover {
  background: var(--bg-2);
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-item:hover::before { opacity: 1; }
.news-item h3 { margin-bottom: 4px; font-size: 1.08rem; }
.news-item p { margin-bottom: .5em; }
.news-item p:last-child { margin-bottom: 0; }

.meta {
  font-size: .8rem;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: .01em;
}
.meta time { font-variant-numeric: tabular-nums; }

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

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid transparent;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.article-card.is-revealed { opacity: 1; transform: none; }
.article-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--brand-grad);
  filter: blur(46px);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.article-card:hover {
  background: var(--bg-2);
  border-color: var(--line-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.article-card:hover::after { opacity: .22; }
.article-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.article-card h3::after { display: none; }
.article-card p { font-size: .9rem; margin-bottom: .9em; }
.article-card p:last-of-type { flex: 1; }
.article-card > a {
  align-self: flex-start;
  margin-top: auto;
  font-size: .86rem;
  font-weight: 800;
  color: var(--brand);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,107,26,.35);
  background: rgba(255,107,26,.06);
  transition: all .3s var(--ease);
}
.article-card > a:hover {
  color: #fff;
  border-color: transparent;
  background: var(--brand-grad);
  transform: translateX(3px);
  box-shadow: 0 10px 22px -10px rgba(255,61,110,.9);
}

/* 客户评价 */
blockquote {
  position: relative;
  margin: 14px 0;
  padding: 20px 22px 20px 54px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border-left: 3px solid transparent;
  border-image: var(--brand-grad) 1;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
blockquote::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 4px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
}
blockquote p { margin: 0; font-style: italic; color: var(--text-2); }
blockquote:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ============ FAQ ============ */
#faq details {
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid transparent;
  margin: 10px 0;
  overflow: hidden;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
#faq details[open] {
  background: var(--bg-2);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
#faq details:hover { border-color: rgba(255,107,26,.35); }
#faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: var(--text);
  transition: color .25s var(--ease), background .25s var(--ease);
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  border-radius: 1px;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .35s var(--ease);
}
#faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
#faq details[open] summary { color: var(--brand); }
#faq summary:hover { background: var(--brand-grad-soft); }
#faq details > p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: .93rem;
  animation: faqIn .4s var(--ease) both;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ============ 联系 / 地图 / 链接 ============ */
.contact-list,
.sitemap-list,
.friend-links,
.editor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  margin: 8px 0;
  border-radius: var(--radius-s);
  background: var(--bg-3);
  color: var(--text-2);
  word-break: break-word;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.contact-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-grad);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255,107,26,.12);
}
.contact-list li:hover { background: var(--brand-grad-soft); transform: translateX(4px); }

.sitemap-list,
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sitemap-list li,
.friend-links li { margin: 0; }
.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  border-color: transparent;
  background: var(--brand-grad);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(255,61,110,.95);
}

.editor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.editor-list li {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: var(--bg-3);
  font-size: .9rem;
  color: var(--text-2);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.editor-list li:hover { background: var(--brand-grad-soft); transform: translateY(-2px); }

/* ============ FOOTER ============ */
footer {
  margin-top: 20px;
  padding: 40px 20px 28px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand-grad);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.footer-inner p {
  margin: 0 0 8px;
  font-size: .88rem;
  color: var(--text-2);
}
.footer-inner strong {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1rem;
}
.footer-inner a { color: var(--brand); font-weight: 600; }
.footer-inner a:hover { text-decoration: underline; }
.footer-inner .copyright {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: .8rem;
  color: var(--text-3);
}

/* ============ 返回顶部 ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  background: var(--brand-grad);
  box-shadow: 0 14px 30px -10px rgba(255,61,110,.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.85);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, box-shadow .35s var(--ease);
}
#back-to-top::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 12px;
  height: 12px;
  border-left: 2.5px solid #fff;
  border-top: 2.5px solid #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}
#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(255,61,110,.95);
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  #main-nav ul { gap: 0; }
  #main-nav a { padding: 8px 9px; font-size: .84rem; }
  .site-search input { width: 118px; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  #menu-toggle { display: inline-block; order: 3; }
  #theme-toggle { order: 2; }
  .header-tools { order: 4; margin-left: auto; }
  .site-search { order: 1; }
  #main-nav {
    order: 5;
    flex-basis: 100%;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .45s var(--ease), opacity .35s var(--ease), margin .35s var(--ease);
  }
  #main-nav.is-open {
    max-height: 520px;
    opacity: 1;
    margin: 6px 0 4px;
  }
  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--bg-3);
    border: 1px solid var(--line);
  }
  #main-nav a { padding: 11px 16px; border-radius: var(--radius-s); font-size: .92rem; }

  #stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner-slides { min-height: 260px; }
  #articles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.75; }
  main { padding: 0 14px 28px; }
  .header-inner { padding: 8px 14px; }
  .logo-text { font-size: 1rem; }
  .logo svg { width: 30px; height: 30px; }

  .site-search { flex: 1 1 100%; order: 6; }
  .site-search input { width: 100%; }
  .header-tools { flex: 1 1 100%; order: 5; justify-content: flex-end; }
  #menu-toggle { order: 3; }

  #hero {
    margin: 14px 0 24px;
    border-radius: var(--radius-l);
    padding: 26px 20px 62px;
  }
  .banner-slides { min-height: 320px; }
  .banner-slides .slide p { font-size: .92rem; }
  .btn-primary { padding: 11px 24px; font-size: .9rem; }
  .banner-dots { left: 20px; bottom: 20px; }
  .banner-dots button { width: 26px; }
  .banner-dots button[aria-selected="true"] { width: 38px; }

  #stats { gap: 10px; margin-bottom: 30px; }
  .stat-item { padding: 16px 8px; }
  .stat-label { font-size: .74rem; }

  main > section:not(#hero):not(#stats) {
    padding: 20px 16px;
    border-radius: var(--radius);
    margin-bottom: 22px;
  }
  main > section > h2 { font-size: 1.24rem; }

  #articles { grid-template-columns: 1fr; gap: 14px; }
  .news-item { padding: 16px; }
  blockquote { padding: 18px 16px 18px 44px; }
  blockquote::before { font-size: 2.4rem; left: 10px; }

  #faq summary { padding: 14px 46px 14px 16px; font-size: .94rem; }
  #faq details > p { padding: 0 16px 16px; }

  .sitemap-list a,
  .friend-links a { padding: 7px 13px; font-size: .8rem; }

  #back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  footer { padding: 30px 14px 24px; }
}

@media (max-width: 380px) {
  #stats { grid-template-columns: 1fr; }
  .banner-slides { min-height: 360px; }
}

/* ============ 动效 & 无障碍 ============ */
@media (hover: none) {
  .article-card:hover,
  .news-item:hover,
  .stat-item:hover,
  blockquote:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  main > section,
  .article-card,
  .stat-item { opacity: 1 !important; transform: none !important; }
}

@media print {
  #site-header, #back-to-top, .banner-dots, .header-tools, .site-search { display: none !important; }
  body { background: #fff; color: #000; }
  main > section { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
  #hero { box-shadow: none; }
}
</style>