:root {
  --brand: #c2185b;
  --brand-dark: #8e0e42;
  --brand-light: #f06292;
  --brand-soft: rgba(194, 24, 91, 0.08);
  --accent: #ff8a65;
  --accent-2: #7e57c2;
  --gradient-hero: linear-gradient(135deg, #c2185b 0%, #e91e63 35%, #7e57c2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(194, 24, 91, 0.10), rgba(126, 87, 194, 0.10));
  --bg: #fdf6f9;
  --bg-alt: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --text: #2b1f26;
  --text-soft: #6b5860;
  --text-mute: #93828a;
  --border: rgba(194, 24, 91, 0.12);
  --shadow-sm: 0 2px 10px rgba(120, 20, 60, 0.06);
  --shadow-md: 0 10px 30px rgba(120, 20, 60, 0.10);
  --shadow-lg: 0 20px 50px rgba(120, 20, 60, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg: #14101a;
  --bg-alt: #1c1624;
  --bg-elev: rgba(38, 30, 48, 0.72);
  --glass: rgba(45, 35, 58, 0.55);
  --glass-border: rgba(255, 255, 255, 0.10);
  --text: #f3eaf3;
  --text-soft: #c4b3c6;
  --text-mute: #93839a;
  --border: rgba(240, 98, 146, 0.18);
  --brand-soft: rgba(240, 98, 146, 0.12);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

*,
*::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.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(194, 24, 91, 0.10), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(126, 87, 194, 0.10), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  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);
}

html[data-theme="dark"] a {
  color: var(--brand-light);
}

ul,
ol {
  padding-left: 1.4em;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

p { margin: 0.6em 0; }

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

/* ===== 通用 ===== */
.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;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: top 0.3s var(--ease);
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(194, 24, 91, 0.35);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}
.brand-slogan {
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 1px;
}

.main-nav {
  flex: 1;
  min-width: 0;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-hero);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}
.main-nav a:hover::after {
  width: 60%;
}

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 14px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-search:focus-within {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.site-search input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  width: 150px;
  padding: 6px 0;
  outline: none;
}
.site-search input::placeholder {
  color: var(--text-mute);
}
.site-search button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-hero);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-search button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  box-shadow: var(--shadow-sm);
  background: var(--brand-soft);
}
.menu-toggle { display: none; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: slideDown 0.3s var(--ease);
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 12px 20px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text-soft);
  font-size: 0.92rem;
  border: 1px solid var(--border);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-menu a:hover {
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateX(3px);
}

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

/* ===== 面包屑 ===== */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-mute);
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-mute);
  opacity: 0.6;
}
.breadcrumb a {
  color: var(--text-soft);
}
.breadcrumb a:hover {
  color: var(--brand);
}

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

.section {
  margin: 34px 0;
  padding: clamp(22px, 4vw, 44px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.section > h2:first-child {
  margin-top: 0;
  padding-bottom: 14px;
  position: relative;
}
.section > h2:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-hero);
}
.section h3 {
  margin-top: 1.6em;
  padding-left: 14px;
  border-left: 4px solid var(--brand-light);
  border-radius: 2px;
}

/* ===== 首屏 ===== */
.hero {
  margin: 22px 0 34px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-lg);
  color: #fff;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(500px 260px at 10% 90%, rgba(255, 138, 101, 0.35), transparent 60%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

.hero-slider {
  position: relative;
  padding: clamp(28px, 5vw, 62px) clamp(22px, 5vw, 64px) clamp(20px, 3vw, 30px);
  min-height: 320px;
}
.hero-slider .slide {
  display: none;
  animation: fadeSlide 0.6s var(--ease);
}
.hero-slider .slide.is-active {
  display: block;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1,
.hero h2 {
  color: #fff;
  margin: 0 0 14px;
  max-width: 900px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}
.hero-lead,
.hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 780px;
  font-size: clamp(0.94rem, 1.7vw, 1.06rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.94rem;
  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);
}
.btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover {
  color: var(--brand-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-3px);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.slider-prev,
.slider-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.slider-prev:hover,
.slider-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.slider-dots button[aria-selected="true"] {
  width: 28px;
  background: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-stats .stat {
  background: rgba(0, 0, 0, 0.12);
  padding: 20px 14px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease);
}
.hero-stats .stat:hover {
  background: rgba(0, 0, 0, 0.22);
}
.stat-num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
}

/* ===== 列表与卡片 ===== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  position: relative;
}
.timeline li {
  position: relative;
  padding: 14px 16px 14px 42px;
  margin-bottom: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-hero);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.timeline li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.feature-list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-hero);
}
.feature-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.news-list li {
  padding: 14px 18px;
  margin-bottom: 10px;
  border-left: 4px solid var(--brand-light);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.news-list li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--brand);
}
.news-list time {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .news-list time {
  color: var(--brand-light);
}

/* ===== 文章 ===== */
.article-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
  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: 5px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}
.article-card:hover::before {
  opacity: 1;
}
.article-card h3 {
  margin-top: 0;
  border-left: 0;
  padding-left: 0;
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
}
.article-meta {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin: 6px 0 12px;
}
.article-summary {
  color: var(--text-soft);
  background: var(--gradient-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.93rem;
  border: 1px dashed var(--border);
}
.article-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--text-soft);
  font-size: 0.95rem;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.read-more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.read-more:hover {
  background: var(--gradient-hero);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.read-more:hover::after {
  transform: translateX(4px);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-item[open] {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 18px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--brand);
  background: var(--brand-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--gradient-hero);
  color: #fff;
}
.faq-item summary:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--text-soft);
  font-size: 0.94rem;
  animation: fadeSlide 0.35s var(--ease);
}

/* ===== 引用与联系 ===== */
blockquote {
  margin: 20px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  border-left: 5px solid var(--brand);
  color: var(--text-soft);
  font-style: normal;
}
blockquote p {
  margin: 8px 0;
  position: relative;
  padding-left: 20px;
}
blockquote p::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 1.4rem;
  color: var(--brand-light);
  font-weight: 700;
}

.contact-list,
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}
.contact-list li {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-list li:hover {
  transform: translateX(5px);
  border-color: var(--brand-light);
}

.sitemap-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.sitemap-list a,
.friend-links a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sitemap-list a:hover,
.friend-links a:hover {
  background: var(--gradient-hero);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.friend-links {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.copyright-line {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--text-mute);
  text-align: center;
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: 20px;
  background: linear-gradient(160deg, #3a1229 0%, #241628 60%, #1a1020 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 44px 20px 20px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 98, 146, 0.35), transparent 70%);
  pointer-events: none;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  position: relative;
}
.footer-col h3 {
  color: #fff;
  font-size: 1.02rem;
  margin: 0 0 12px;
  padding-bottom: 10px;
  position: relative;
}
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-hero);
}
.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.footer-col a::before {
  content: "›";
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: opacity 0.25s var(--ease), left 0.25s var(--ease);
}
.footer-col a:hover {
  color: #fff;
  padding-left: 6px;
}
.footer-col a:hover::before {
  opacity: 1;
  left: -4px;
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
}

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu:not([hidden]) { display: block; }
  .site-search input { width: 120px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 8px 14px; gap: 10px; }
  .brand-slogan { display: none; }
  .brand-name { font-size: 1.04rem; }
  .brand-logo { width: 38px; height: 38px; }
  .site-search { display: none; }
  .breadcrumb { padding: 10px 14px 0; }
  main { padding: 0 14px 30px; }
  .section { margin: 22px 0; padding: 20px 16px; border-radius: var(--radius); }
  .hero { border-radius: var(--radius); }
  .hero-slider { min-height: 0; padding: 26px 18px 18px; }
  .hero-cta { gap: 10px; }
  .btn-primary,
  .btn-secondary { padding: 11px 20px; font-size: 0.88rem; flex: 1 1 auto; }
  .hero-stats .stat { padding: 16px 10px; }
  .stat-label { font-size: 0.72rem; }
  .mobile-menu ul { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .article-card { padding: 18px 16px; border-radius: var(--radius); }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .site-footer { padding: 34px 16px 18px; }
  .back-to-top { right: 14px; bottom: 16px; width: 44px; height: 44px; }
  .timeline li { padding-left: 38px; }
  .timeline li::before { left: 14px; }
}

@media (max-width: 420px) {
  body { font-size: 15px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .sitemap-list,
  .friend-links { grid-template-columns: 1fr; }
  .slider-controls { gap: 10px; }
}

/* ===== 打印 ===== */
@media print {
  .site-header,
  .back-to-top,
  .slider-controls,
  .theme-toggle,
  .menu-toggle,
  .site-search,
  .hero-stats,
  .site-footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section,
  .article-card {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }
  .reveal { opacity: 1; transform: none; }
}