:root {
  --bg: #f4f5fb;
  --bg-alt: #eceef8;
  --text: #1c1c2e;
  --text-soft: #4a4a63;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --border: #e3e4f0;
  --border-glass: rgba(255, 255, 255, 0.5);
  --primary: #6246ea;
  --primary-light: #8b74f0;
  --primary-dark: #4a32c0;
  --accent: #ff6b81;
  --accent-light: #ff9aab;
  --muted: #6c6c85;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 8px 30px rgba(36, 32, 78, 0.08);
  --shadow-hover: 0 16px 44px rgba(98, 70, 234, 0.18);
  --gradient-banner: linear-gradient(135deg, #6246ea 0%, #8b74f0 45%, #ff6b81 100%);
  --gradient-soft: linear-gradient(135deg, rgba(98, 70, 234, 0.12), rgba(255, 107, 129, 0.12));
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-alt: #16162a;
  --text: #ececf5;
  --text-soft: #b8b8d0;
  --card: #1c1c30;
  --card-glass: rgba(28, 28, 48, 0.68);
  --border: #2c2c46;
  --border-glass: rgba(255, 255, 255, 0.08);
  --primary: #9b86f5;
  --primary-light: #b6a6fa;
  --primary-dark: #7c63e0;
  --accent: #ff8a9a;
  --accent-light: #ffb3be;
  --muted: #9a9ab8;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 16px 44px rgba(155, 134, 245, 0.25);
  --gradient-banner: linear-gradient(135deg, #4a32c0 0%, #7c63e0 45%, #ff6b81 100%);
  --gradient-soft: linear-gradient(135deg, rgba(155, 134, 245, 0.14), rgba(255, 138, 154, 0.12));
}

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

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

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(98, 70, 234, 0.10), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(255, 107, 129, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(155, 134, 245, 0.14), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(255, 138, 154, 0.10), transparent 55%),
    var(--bg);
}

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

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

button {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--accent));
}

/* ===== 吸顶导航（毛玻璃） ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card-glass);
  border-bottom: 1px solid var(--border-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.navbar:hover {
  box-shadow: 0 4px 24px rgba(36, 32, 78, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo svg {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(98, 70, 234, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 10px 24px rgba(98, 70, 234, 0.5);
}

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

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 10px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-banner);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--gradient-soft);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(98, 70, 234, 0.14);
  background: var(--card);
}

.search-box input {
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 0.9rem;
  width: 150px;
  padding: 6px 0;
}

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

.search-box button {
  background: var(--gradient-banner);
  border: none;
  cursor: pointer;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.search-box button:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 6px 18px rgba(98, 70, 234, 0.4);
}

.theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(98, 70, 234, 0.22);
}

.mobile-menu-btn {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer;
  width: 42px;
  height: 42px;
  place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.mobile-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 18px 0 6px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.breadcrumb a {
  color: var(--muted);
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--primary);
  background: var(--gradient-soft);
}

.breadcrumb span {
  margin: 0 4px;
  color: var(--border);
}

.breadcrumb span:last-child {
  color: var(--text-soft);
  font-weight: 600;
}

/* ===== 首屏 Hero（渐变 Banner） ===== */
.hero {
  position: relative;
  padding: 56px 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 18px;
  background: var(--gradient-banner);
  box-shadow: 0 24px 60px rgba(98, 70, 234, 0.28);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(500px 320px at 5% 95%, rgba(255, 255, 255, 0.14), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  filter: blur(6px);
  z-index: -1;
  animation: heroFloat 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 26px, 0) scale(1.06); }
}

.hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.32;
  margin-bottom: 18px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(30, 20, 70, 0.28);
}

.hero p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 26px;
  text-shadow: 0 1px 10px rgba(30, 20, 70, 0.22);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(20, 10, 60, 0.35));
  animation: heroVisualFloat 6s ease-in-out infinite;
}

@keyframes heroVisualFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero .btn-primary {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(20, 10, 60, 0.28);
}

.hero .btn-primary:hover {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 16px 36px rgba(20, 10, 60, 0.38);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero .btn-outline:hover {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: #ffffff;
}

/* ===== 按钮 ===== */
.btn {
  position: relative;
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.btn:hover::after {
  left: 130%;
}

.btn-primary {
  background: var(--gradient-banner);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(98, 70, 234, 0.32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(98, 70, 234, 0.42);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(98, 70, 234, 0.3);
}

/* ===== 统计数字 ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 44px 0;
}

.stat-item {
  position: relative;
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-banner);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(98, 70, 234, 0.35);
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item .number {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-item .label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ===== 轮播 ===== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  margin: 40px 0;
}

.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0.5;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease);
  position: relative;
  z-index: 1;
}

.carousel-slide {
  min-width: 100%;
  padding: 52px 40px;
  text-align: center;
}

.carousel-slide h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
}

.carousel-slide p {
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.98rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 0 22px;
  position: relative;
  z-index: 1;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.carousel-dots button:hover {
  background: var(--primary-light);
}

.carousel-dots button.active {
  width: 30px;
  background: var(--gradient-banner);
}

/* ===== 通用区块 ===== */
section {
  padding: 54px 0;
  scroll-margin-top: 86px;
}

.section-title {
  position: relative;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-left: 18px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.15em;
  border-radius: 6px;
  background: var(--gradient-banner);
}

.section-sub {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
  padding-left: 18px;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease), border-color 0.38s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.38s var(--ease);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-banner);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease);
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(98, 70, 234, 0.3);
}

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

.card:hover::after {
  transform: scaleX(1);
}

.card h3 {
  position: relative;
  font-size: 1.14rem;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
  z-index: 1;
}

.card p {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-soft);
  z-index: 1;
}

.card .meta {
  position: relative;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  z-index: 1;
}

/* ===== 文章列表 ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.article-item {
  position: relative;
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease), border-color 0.38s var(--ease);
}

.article-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-banner);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.4s var(--ease);
}

.article-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(98, 70, 234, 0.3);
}

.article-item:hover::before {
  transform: scaleY(1);
}

.article-item h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-item h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.article-item h3 a:hover {
  color: var(--primary);
}

.article-item .meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.article-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.read-more {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.28s var(--ease), color 0.28s var(--ease);
}

.read-more:hover {
  transform: translateX(5px);
  color: var(--accent);
}

/* ===== FAQ ===== */
#faqList {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.faq-item:hover {
  background: var(--gradient-soft);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.25s var(--ease), padding 0.3s var(--ease);
}

.faq-question:hover {
  color: var(--primary);
  padding-left: 12px;
}

.faq-question span {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-question[aria-expanded="true"] span {
  transform: rotate(180deg);
  background: var(--gradient-banner);
  color: #fff;
  border-color: transparent;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
  color: var(--text-soft);
  font-size: 0.92rem;
  opacity: 0;
}

.faq-answer.open {
  max-height: 480px;
  opacity: 1;
}

.faq-answer p {
  padding: 0 6px 20px;
}

/* ===== HowTo 步骤 ===== */
.howto-steps {
  list-style: none;
  counter-reset: step;
  position: relative;
}

.howto-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 62px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  border-bottom: 1px dashed var(--border);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.howto-steps li:hover {
  background: var(--gradient-soft);
  transform: translateX(4px);
}

.howto-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(98, 70, 234, 0.32);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.howto-steps li:hover::before {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 10px 22px rgba(98, 70, 234, 0.45);
}

.howto-steps li h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 700;
}

.howto-steps li p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ===== 联系信息 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-item {
  position: relative;
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease), border-color 0.38s var(--ease);
}

.contact-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.38s var(--ease);
  pointer-events: none;
}

.contact-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(98, 70, 234, 0.3);
}

.contact-item:hover::before {
  opacity: 1;
}

.contact-item .icon {
  position: relative;
  font-size: 1.9rem;
  margin-bottom: 10px;
  display: inline-block;
  transition: transform 0.4s var(--ease);
  z-index: 1;
}

.contact-item:hover .icon {
  transform: translateY(-4px) scale(1.15) rotate(6deg);
}

.contact-item h4 {
  position: relative;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 700;
  z-index: 1;
}

.contact-item p {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-soft);
  word-break: break-word;
  z-index: 1;
}

/* ===== 页脚 ===== */
footer {
  position: relative;
  background: var(--card-glass);
  border-top: 1px solid var(--border-glass);
  padding: 48px 0 22px;
  margin-top: 50px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-banner);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 34px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 800;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-banner);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-col ul li a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer-bottom p {
  margin: 0 auto;
  max-width: 900px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(98, 70, 234, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  z-index: 999;
  display: grid;
  place-items: center;
}

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

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 34px rgba(98, 70, 234, 0.55);
}

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

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式：平板 ===== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 0.88rem;
  }

  .search-box input {
    width: 110px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 44px 28px;
    gap: 28px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

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

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

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card-glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    padding: 18px 20px 22px;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 18px 40px rgba(36, 32, 78, 0.16);
    gap: 6px;
    animation: menuDrop 0.35s var(--ease);
  }

  .nav-links.mobile-open li {
    width: 100%;
  }

  .nav-links.mobile-open a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.98rem;
    border-radius: 12px;
  }

  .nav-links.mobile-open a::after {
    display: none;
  }

  .search-box input {
    width: 100px;
  }
}

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

/* ===== 响应式：手机 ===== */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .navbar .container {
    height: 62px;
    gap: 10px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  .nav-links.mobile-open {
    top: 62px;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding: 36px 22px;
    border-radius: var(--radius);
    margin-top: 12px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.94rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 32px 0;
  }

  .stat-item {
    padding: 22px 18px;
  }

  .stat-item .number {
    font-size: 1.8rem;
  }

  .carousel-slide {
    padding: 38px 22px;
  }

  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.3rem;
    padding-left: 15px;
  }

  .section-title::before {
    width: 5px;
  }

  .section-sub {
    padding-left: 15px;
    margin-bottom: 24px;
  }

  .card {
    padding: 22px 20px;
  }

  .card-grid,
  .article-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .howto-steps li {
    padding: 16px 14px 16px 56px;
  }

  .howto-steps li::before {
    left: 10px;
    width: 30px;
    height: 30px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .contact-item {
    padding: 20px 14px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 400px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: 1.35rem;
  }
}

/* ===== 无障碍与动效偏好 ===== */
@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;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .navbar,
  .back-to-top,
  .carousel,
  .theme-toggle,
  .mobile-menu-btn {
    display: none !important;
  }

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

  .card,
  .article-item,
  .stat-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}