:root {
  --brand: #ff5a5f;
  --brand-dark: #e0454a;
  --brand-light: #ffb3b5;
  --brand-pale: #ffd6d7;
  --brand-mist: #fff5f5;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5e;
  --ink-mute: #8a8a9e;
  --surface: #ffffff;
  --surface-alt: #fafafa;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 26, 46, 0.14);
  --shadow-brand: 0 10px 30px rgba(255, 90, 95, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.32s;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff6b70;
    --brand-dark: #ff8a8e;
    --brand-light: #7a2f33;
    --brand-pale: #4a1e21;
    --brand-mist: #1e1416;
    --accent: #a29bfe;
    --accent-light: #6c5ce7;
    --ink: #f0f0f5;
    --ink-soft: #c0c0cc;
    --ink-mute: #8a8a9e;
    --surface: #16161f;
    --surface-alt: #1c1c28;
    --surface-glass: rgba(22, 22, 31, 0.72);
    --border: rgba(255, 255, 255, 0.09);
    --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);
    --shadow-brand: 0 10px 30px rgba(255, 107, 112, 0.22);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--surface-alt);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 90, 95, 0.1), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(108, 92, 231, 0.08), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
h4 { font-size: 1.1rem; }

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.4em;
}

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

small {
  font-size: 0.82em;
  color: var(--ink-mute);
}

time {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

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

.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;
}

/* ============ 顶部信息条 ============ */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  padding: 8px var(--gutter);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(100deg, var(--brand) 0%, #ff7b6b 45%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: topbarShift 12s ease infinite;
  text-align: center;
}

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar span + span {
  opacity: 0.85;
}

@keyframes topbarShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.site-header:hover {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.logo {
  border-radius: 10px;
  box-shadow: var(--shadow-brand);
  transition: transform var(--dur) var(--ease);
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

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

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-mist);
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.14);
}

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

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

.site-search button {
  padding: 8px 16px;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--dur) var(--ease);
}

.site-search button:hover {
  filter: brightness(1.08);
}

/* ============ 面包屑 ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--border-strong);
}

.breadcrumb a {
  color: var(--ink-mute);
}

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

/* ============ 主内容 ============ */
main {
  display: block;
}

/* ============ 首屏 ============ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: clamp(32px, 6vw, 72px) var(--gutter);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 90, 95, 0.22), transparent 55%),
    radial-gradient(110% 130% at 0% 100%, rgba(108, 92, 231, 0.18), transparent 60%),
    linear-gradient(135deg, var(--surface) 0%, var(--brand-mist) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 90, 95, 0.28), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: heroFloat 14s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 28px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 0.5em;
  background: linear-gradient(120deg, var(--ink) 20%, var(--brand) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  will-change: transform;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 38px rgba(255, 90, 95, 0.38);
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface-glass);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: var(--brand);
  border-color: var(--brand-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats li {
  flex: 1 1 120px;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

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

.hero-stats strong {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.2;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease);
}

.hero-visual svg:hover {
  transform: translateY(-6px) rotate(-1.2deg);
}

/* ============ 通用 section ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--gutter);
  scroll-margin-top: 90px;
}

.section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.section > h2 + p {
  font-size: 1.02rem;
  max-width: 72ch;
}

.section h3 {
  margin-top: 1.8em;
  color: var(--ink);
}

.section h3:first-of-type {
  margin-top: 0;
}

/* 卡片化通用容器 */
.section > article,
.section > blockquote,
.section > details,
.section > ul.timeline,
.section > ul.contact-list,
.section > ul.sitemap-list,
.section > ul.link-list {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.section > article:hover,
.section > blockquote:hover,
.section > details:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

.section > article h3 {
  margin-top: 0;
  margin-bottom: 0.35em;
  font-size: 1.12rem;
}

.section > article h3 + p {
  margin-bottom: 0.6em;
}

.section > article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

.section > article a::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}

.section > article a:hover::after {
  transform: translateX(4px);
}

/* ============ 品牌介绍 / 时间线 ============ */
.timeline {
  list-style: none;
  padding-left: 0;
  position: relative;
}

.timeline li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 4px var(--brand-mist);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 1.6em;
  bottom: -0.6em;
  width: 2px;
  background: linear-gradient(var(--brand-light), transparent);
}

.timeline li:last-child::after {
  display: none;
}

/* ============ 客户评价 ============ */
blockquote {
  margin: 0 0 16px;
  padding: 22px 24px 22px 56px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--brand-mist) 100%);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 6px;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--brand-light);
  font-family: Georgia, serif;
}

blockquote p {
  margin-bottom: 0.4em;
  font-style: italic;
  color: var(--ink);
}

blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ink-mute);
}

/* ============ FAQ details ============ */
details {
  padding: 0;
  overflow: hidden;
}

details > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brand);
  background: var(--brand-mist);
  border-radius: 50%;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

details[open] > summary {
  color: var(--brand);
  background: var(--brand-mist);
}

details[open] > summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--brand);
  color: #fff;
}

details > summary:hover {
  color: var(--brand);
  background: var(--brand-mist);
}

details > p {
  margin: 0;
  padding: 4px 22px 20px;
  animation: fadeIn 0.4s var(--ease-out);
}

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

/* ============ 使用教程列表 ============ */
#howto ol,
#howto ul,
#notes ul {
  counter-reset: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px 20px 44px;
  box-shadow: var(--shadow-sm);
}

#howto ol li::marker {
  color: var(--brand);
  font-weight: 700;
}

#howto ul li::marker,
#notes ul li::marker {
  color: var(--brand);
}

/* ============ 联系我们 ============ */
.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  margin: 0;
  color: var(--ink-soft);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list strong {
  color: var(--ink);
  margin-right: 4px;
}

/* ============ 网站地图 / 友情链接 ============ */
.sitemap-list,
.link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.link-list li {
  margin: 0;
}

.sitemap-list a,
.link-list a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.sitemap-list a:hover,
.link-list a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

/* ============ 页脚 ============ */
.site-footer {
  margin-top: 40px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 90, 95, 0.14), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) var(--gutter) 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: clamp(28px, 5vw, 56px);
}

.footer-brand strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.footer-brand a {
  color: var(--brand);
  font-weight: 600;
}

.footer-legal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}

.footer-legal h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.footer-legal p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px var(--gutter);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

/* ============ 返回顶部 ============ */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 50%;
  box-shadow: var(--shadow-brand);
  opacity: 0.92;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.back-to-top:hover {
  color: #fff;
  opacity: 1;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 38px rgba(255, 90, 95, 0.42);
}

/* ============ 滚动动画 ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero,
.section {
  animation: fadeUp 0.7s var(--ease-out) both;
}

.section {
  animation-timeline: view();
  animation-range: entry 0% cover 32%;
}

@supports not (animation-timeline: view()) {
  .section {
    animation: fadeUp 0.7s var(--ease-out) both;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual svg {
    max-width: 340px;
  }

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

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

  .main-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

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

  .main-nav ul {
    flex-wrap: nowrap;
    gap: 2px;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 0.85rem;
  }

  .site-search {
    margin-left: auto;
  }

  .site-search input[type="search"] {
    width: 130px;
  }
}

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

  .topbar {
    font-size: 0.72rem;
    gap: 4px 12px;
    padding: 6px var(--gutter);
  }

  .topbar span + span {
    display: none;
  }

  .header-inner {
    padding: 10px var(--gutter);
  }

  .brand-text small {
    display: none;
  }

  .site-search input[type="search"] {
    width: 96px;
    padding: 7px 10px;
  }

  .site-search button {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .hero {
    margin: 16px 12px 0;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .hero-actions {
    gap: 10px;
    margin: 22px 0 26px;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 100%;
    padding: 12px 20px;
  }

  .hero-stats li {
    flex: 1 1 100%;
    padding: 12px 16px;
  }

  .section {
    padding: 36px 16px;
  }

  .section > article,
  .section > blockquote,
  .section > details,
  .section > ul.timeline,
  .section > ul.contact-list,
  .section > ul.sitemap-list,
  .section > ul.link-list {
    padding: 18px;
  }

  blockquote {
    padding: 18px 18px 18px 48px;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .brand-text strong {
    font-size: 1rem;
  }

  .site-search input[type="search"] {
    width: 72px;
  }
}

/* ============ 打印 ============ */
@media print {
  .topbar,
  .site-header,
  .breadcrumb,
  .back-to-top,
  .site-search,
  .hero-actions {
    display: none !important;
  }

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

  .section,
  .hero {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

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