:root {
  --brand: #e94560;
  --brand-dark: #c73650;
  --brand-light: #ff6b81;
  --accent: #f5a623;
  --bg: #f7f8fc;
  --bg-alt: #ffffff;
  --bg-soft: #eef0f7;
  --text: #1a1a2e;
  --text-soft: #4a4a6a;
  --text-mute: #8a8aa0;
  --border: rgba(26, 26, 46, 0.08);
  --card-shadow: 0 10px 30px rgba(26, 26, 46, 0.08);
  --card-shadow-hover: 0 18px 45px rgba(233, 69, 96, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --header-bg: rgba(255, 255, 255, 0.72);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --gradient-brand: linear-gradient(135deg, #e94560 0%, #ff6b81 45%, #f5a623 100%);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 40%, #e94560 130%);
  --gradient-soft: linear-gradient(135deg, #fff0f3 0%, #f7f8fc 60%, #eef0f7 100%);
  --maxw: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff5c77;
    --brand-dark: #e94560;
    --brand-light: #ff8598;
    --accent: #ffc04d;
    --bg: #0e0e1a;
    --bg-alt: #16162a;
    --bg-soft: #1d1d33;
    --text: #f2f2f8;
    --text-soft: #c3c3d6;
    --text-mute: #8a8aa8;
    --border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --card-shadow-hover: 0 18px 45px rgba(255, 92, 119, 0.28);
    --glass-bg: rgba(22, 22, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(14, 14, 26, 0.72);
    --gradient-hero: linear-gradient(135deg, #0e0e1a 0%, #241533 45%, #a3243b 130%);
    --gradient-soft: linear-gradient(135deg, #16162a 0%, #0e0e1a 60%, #1d1d33 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

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

ul,
ol {
  list-style: none;
}

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

/* ============ 滚动条 ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-soft);
}

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

#site-header:hover {
  box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.logo:hover {
  transform: translateY(-2px) scale(1.02);
  color: var(--text);
}

.logo svg {
  border-radius: 10px;
  filter: drop-shadow(0 6px 14px rgba(233, 69, 96, 0.4));
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.08);
  filter: drop-shadow(0 10px 22px rgba(233, 69, 96, 0.6));
}

.logo span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

#site-header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

#site-header nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

#site-header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#site-header nav a:hover {
  color: var(--brand);
  background: rgba(233, 69, 96, 0.08);
  transform: translateY(-2px);
}

#site-header nav a:hover::after {
  width: 60%;
}

#site-header form[role="search"] {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#site-header form[role="search"]:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.14);
}

#site-header input[type="search"] {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  width: 150px;
  padding: 6px 0;
}

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

#site-header button[type="submit"] {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  background-size: 160% 160%;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background-position 0.5s var(--ease);
}

#site-header button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
  background-position: 100% 50%;
}

/* ============ 面包屑 ============ */
body > nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 0;
}

body > nav[aria-label="面包屑导航"] ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-mute);
}

body > nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-mute);
  opacity: 0.6;
}

body > nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

body > nav[aria-label="面包屑导航"] a:hover {
  color: var(--brand);
  background: rgba(233, 69, 96, 0.08);
}

body > nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

/* ============ 主内容容器 ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 24px 60px;
}

main > section {
  margin-bottom: 32px;
  padding: 40px 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.4s var(--ease);
  animation: fadeUp 0.8s var(--ease) both;
}

main > section:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(233, 69, 96, 0.22);
}

main > section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

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

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

main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.15s; }
main > section:nth-of-type(5) { animation-delay: 0.2s; }
main > section:nth-of-type(6) { animation-delay: 0.25s; }

/* ============ 标题 ============ */
main h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

main h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 22px;
  padding-left: 18px;
  position: relative;
  color: var(--text);
  letter-spacing: -0.3px;
}

main h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.1em;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

main h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 26px 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

main h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.12);
}

main p {
  color: var(--text-soft);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

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

/* ============ 首屏 Hero ============ */
#hero {
  background: var(--gradient-hero);
  color: #fff;
  border: none;
  padding: 64px 40px;
  position: relative;
  isolation: isolate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 107, 129, 0.45), transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(245, 166, 35, 0.35), transparent 45%),
    radial-gradient(circle at 70% 15%, rgba(120, 80, 255, 0.3), transparent 50%);
  z-index: -1;
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

#hero h1 {
  background: linear-gradient(120deg, #ffffff 0%, #ffd8e0 50%, #ffd98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
}

#hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 780px;
  font-size: 1.02rem;
}

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

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.hero-actions a:first-child {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.45);
}

.hero-actions a:first-child:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 42px rgba(233, 69, 96, 0.6);
  color: #fff;
}

.hero-actions a:last-child {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-actions a:last-child:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px) scale(1.03);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-stats > div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hero-stats > div:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(120deg, #fff, #ffd98a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.5px;
}

/* ============ 列表样式 ============ */
main ul:not(.hero-stats):not([class]) {
  display: grid;
  gap: 12px;
}

main ul:not(.hero-stats):not([class]) > li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

main ul:not(.hero-stats):not([class]) > li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.12);
  transition: transform 0.3s var(--ease);
}

main ul:not(.hero-stats):not([class]) > li:hover {
  transform: translateX(6px);
  background: var(--bg-alt);
  border-color: rgba(233, 69, 96, 0.25);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.12);
}

main ul:not(.hero-stats):not([class]) > li:hover::before {
  transform: translateY(-50%) scale(1.25);
}

main ol:not([class]) {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

main ol:not([class]) > li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

main ol:not([class]) > li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.35);
  transition: transform 0.3s var(--ease);
}

main ol:not([class]) > li:hover {
  transform: translateX(6px);
  background: var(--bg-alt);
  border-color: rgba(233, 69, 96, 0.25);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.12);
}

main ol:not([class]) > li:hover::before {
  transform: translateY(-50%) scale(1.1) rotate(-8deg);
}

/* ============ 卡片网格：影视资源 / 案例 / 文章 / 新闻 ============ */
#products,
#solutions,
#scenarios,
#cases,
#testimonials,
#news,
#articles,
#howto,
#faq,
#contact,
#sitemap,
#links,
#privacy,
#disclaimer,
#security,
#author-info {
  position: relative;
}

#products h3,
#solutions h3,
#cases h3,
#news h3,
#articles h3,
#howto h3,
#contact h3,
#privacy h3 {
  margin-top: 30px;
}

#products h3 + p,
#solutions h3 + p,
#cases h3 + p,
#howto h3 + p {
  margin-bottom: 18px;
}

#cases article,
#news article,
#articles article {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

#cases article::before,
#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#cases article:hover,
#news article:hover,
#articles article:hover {
  transform: translateY(-6px);
  background: var(--bg-alt);
  border-color: rgba(233, 69, 96, 0.28);
  box-shadow: var(--card-shadow-hover);
}

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

#cases h3,
#news h3,
#articles h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

#news time,
#articles time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-mute);
  background: rgba(233, 69, 96, 0.08);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(233, 69, 96, 0.3);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#news article a:hover,
#articles article a:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(233, 69, 96, 0.35);
}

#news article a:hover::after,
#articles article a:hover::after {
  transform: translateX(4px);
}

/* ============ 客户评价 ============ */
#testimonials blockquote {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  margin-bottom: 18px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#testimonials blockquote::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 18px;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--brand);
  opacity: 0.18;
}

#testimonials blockquote:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(233, 69, 96, 0.28);
}

#testimonials blockquote p {
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  position: relative;
  z-index: 1;
}

#testimonials blockquote footer {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--brand);
  font-weight: 600;
  font-style: normal;
}

/* ============ FAQ 手风琴 ============ */
#faq details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

#faq details[open] {
  background: var(--bg-alt);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.12);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}

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

#faq summary:hover {
  color: var(--brand);
  background: rgba(233, 69, 96, 0.06);
}

#faq details p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  animation: fadeIn 0.4s var(--ease);
}

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

/* ============ 联系我们 ============ */
#contact address {
  font-style: normal;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: grid;
  gap: 10px;
}

#contact address p {
  margin: 0;
  font-size: 0.95rem;
}

#contact address strong {
  color: var(--brand);
  margin-right: 6px;
}

/* ============ 网站地图 & 友情链接 ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#sitemap ul > li,
#links ul > li {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

#sitemap ul > li::before,
#links ul > li::before {
  display: none !important;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(233, 69, 96, 0.35);
}

/* ============ 作者信息 ============ */
#author-info {
  background: var(--gradient-soft);
}

#author-info p {
  margin-bottom: 8px;
}

/* ============ 页脚 ============ */
footer {
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(233, 69, 96, 0.35), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(245, 166, 35, 0.22), transparent 45%);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.footer-inner h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-inner h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
}

.footer-inner p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner ul {
  display: grid;
  gap: 10px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: inline-block;
  position: relative;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-inner a::before {
  content: "›";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.footer-inner a:hover {
  color: #fff;
  padding-left: 14px;
}

.footer-inner a:hover::before {
  opacity: 1;
}

.footer-inner address {
  font-style: normal;
}

footer > p {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============ 返回顶部 ============ */
body > a[href="#site-header"] {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 0;
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0.9;
}

body > a[href="#site-header"]::before {
  content: "↑";
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

body > a[href="#site-header"]:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 20px 44px rgba(233, 69, 96, 0.6);
  opacity: 1;
  color: #fff;
}

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

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

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

  #site-header nav {
    order: 3;
    flex-basis: 100%;
  }

  #site-header nav ul {
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

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

  #site-header nav a {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 7px 12px;
  }

  #site-header form[role="search"] {
    margin-left: auto;
  }

  #site-header input[type="search"] {
    width: 110px;
  }

  main {
    padding: 18px 16px 48px;
  }

  main > section {
    padding: 30px 22px;
    border-radius: var(--radius);
    margin-bottom: 22px;
  }

  #hero {
    padding: 44px 22px;
  }
}

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

  .logo span {
    font-size: 1.15rem;
  }

  #site-header form[role="search"] {
    flex-basis: 100%;
    order: 2;
    padding-left: 14px;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
    padding: 13px 20px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-stats > div {
    padding: 16px 12px;
  }

  main h2 {
    padding-left: 14px;
  }

  main ul:not(.hero-stats):not([class]) > li {
    padding: 11px 14px 11px 40px;
  }

  main ol:not([class]) > li {
    padding: 14px 14px 14px 56px;
  }

  main ol:not([class]) > li::before {
    width: 30px;
    height: 30px;
    left: 12px;
    font-size: 0.82rem;
  }

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

  #testimonials blockquote {
    padding: 22px 20px 18px;
  }

  #faq summary {
    padding: 15px 46px 15px 18px;
    font-size: 0.93rem;
  }

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

  #faq details p {
    padding: 0 18px 18px;
  }

  #contact address {
    padding: 20px 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px 28px;
    gap: 26px;
  }

  body > a[href="#site-header"] {
    right: 16px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }
}

/* ============ 减少动画偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}