/* ============================================================
   黑桃视频 style.css — 完整样式表
   设计风格：现代 · 渐变 · 毛玻璃 · 响应式 · 暗色模式
   ============================================================ */

/* ---------- CSS 变量与主题 ---------- */
:root {
  --bg: #f9f9fc;
  --bg-secondary: #f0f1f8;
  --text: #1e1e2a;
  --text-muted: #5a5a6e;
  --accent: #1a1a2e;
  --accent-2: #e94560;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --border: #e2e2ea;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  --gradient-accent: linear-gradient(135deg, #e94560, #ff6b6b);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

[data-theme="dark"] {
  --bg: #12121a;
  --bg-secondary: #1a1a26;
  --text: #e5e5f0;
  --text-muted: #9a9ab0;
  --accent: #e94560;
  --accent-2: #ff6b6b;
  --card: #1e1e2a;
  --card-glass: rgba(30, 30, 42, 0.72);
  --border: #33334d;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.4);
  --gradient-card: linear-gradient(145deg, rgba(30,30,42,0.9), rgba(30,30,42,0.5));
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

body.darkmode {
  --bg: #12121a;
  --bg-secondary: #1a1a26;
  --text: #e5e5f0;
  --text-muted: #9a9ab0;
  --accent: #e94560;
  --accent-2: #ff6b6b;
  --card: #1e1e2a;
  --card-glass: rgba(30, 30, 42, 0.72);
  --border: #33334d;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.4);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

ul,
ol {
  list-style-position: inside;
}

/* ---------- 布局工具 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 60px 0 32px;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 4px;
}

/* ---------- 吸顶导航 ---------- */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.sticky-nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: -0.5px;
  white-space: nowrap;
  transition: var(--transition);
}

.logo span {
  color: var(--accent-2);
}

.menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  transition: color 0.2s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-2);
  transition: width 0.3s ease;
}

.menu a:hover {
  color: var(--accent-2);
}

.menu a:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 40px;
  padding: 8px 18px;
  gap: 8px;
  border: 1px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-box:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

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

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

.search-box svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.dark-toggle {
  font-size: 1.3rem;
  color: var(--text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

.dark-toggle:hover {
  background: var(--accent-2);
  color: white;
  transform: rotate(20deg);
}

.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-menu:hover {
  background: var(--bg-secondary);
}

#mobileNav {
  display: none;
  background: var(--card);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.3s ease;
}

#mobileNav a {
  display: block;
  padding: 10px 0;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#mobileNav a:last-child {
  border-bottom: none;
}

#mobileNav a:hover {
  color: var(--accent-2);
  padding-left: 8px;
}

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

/* ---------- Hero Banner ---------- */
.hero {
  background: var(--gradient-hero);
  color: white;
  border-radius: 0 0 48px 48px;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease;
}

.hero h1 span {
  color: var(--accent-2);
  background: linear-gradient(135deg, #ff6b6b, #e94560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 30px;
  max-width: 500px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* ---------- 按钮 ---------- */
.btn {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
}

.btn:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  box-shadow: none;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

/* ---------- 卡片网格 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(233, 69, 96, 0.3);
}

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

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.card strong {
  color: var(--text);
}

.card em {
  display: block;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ---------- 数字统计 ---------- */
.stats-row {
  display: flex;
  justify-content: space-around;
  margin: 48px 0;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

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

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ---------- 轮播 ---------- */
.carousel {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.carousel:hover {
  box-shadow: var(--shadow-hover);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 40px;
  background: var(--gradient-card);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-slide:nth-child(2) {
  background: linear-gradient(145deg, rgba(232, 238, 249, 0.9), rgba(232, 238, 249, 0.5));
}

.carousel-slide:nth-child(3) {
  background: linear-gradient(145deg, rgba(249, 232, 232, 0.9), rgba(249, 232, 232, 0.5));
}

.carousel-slide h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.carousel-slide p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  opacity: 0;
}

.carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--accent-2);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

/* ---------- 文章卡片 ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.article-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.article-card:hover h3 {
  color: var(--accent-2);
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 12px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-more {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.read-more:hover {
  gap: 8px;
  color: var(--accent);
}

.read-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent-2);
  box-shadow: var(--shadow-hover);
}

.faq-item.open {
  border-color: var(--accent-2);
  background: linear-gradient(145deg, var(--card), rgba(233, 69, 96, 0.05));
}

.faq-question {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-size: 1rem;
}

.faq-question span {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-2);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 69, 96, 0.1);
  border-radius: 50%;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-muted);
  margin-top: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- HowTo 教程 ---------- */
.howto-steps {
  list-style: none;
  counter-reset: step;
  margin: 16px 0;
}

.howto-steps li {
  counter-increment: step;
  margin-bottom: 16px;
  padding-left: 44px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}

.howto-steps li::before {
  content: counter(step);
  background: var(--gradient-accent);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
}

.howto-steps li:hover::before {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.card h4 {
  margin: 20px 0 12px;
  font-size: 1.05rem;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.card ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}

.card ul li {
  margin: 6px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul li::marker {
  color: var(--accent-2);
}

/* ---------- 联系区域 ---------- */
#contact .card {
  background: var(--gradient-card);
}

#contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.95rem;
}

#contact p:last-child {
  margin-bottom: 0;
}

/* ---------- 页脚 ---------- */
footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 48px 0 0;
  margin-top: 80px;
  border-radius: 40px 40px 0 0;
  position: relative;
}

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

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

.footer-grid h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-grid p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
}

.footer-grid a {
  color: #ccc;
  display: block;
  margin: 8px 0;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-grid a:hover {
  color: white;
  padding-left: 8px;
}

.footer-grid a::before {
  content: "›";
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: var(--transition);
  color: var(--accent-2);
}

.footer-grid a:hover::before {
  opacity: 1;
  left: -4px;
}

.footer-links {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links strong {
  color: #ddd;
  margin-right: 12px;
}

.footer-links a {
  color: #999;
  display: inline-block;
  margin: 0 12px 0 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
  font-size: 0.85rem;
  color: #777;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--gradient-accent);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);
  border: none;
  font-size: 1.4rem;
  z-index: 100;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.5);
}

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 暗色模式适配 ---------- */
body.darkmode .carousel-slide {
  background: linear-gradient(145deg, rgba(30, 30, 42, 0.9), rgba(30, 30, 42, 0.5));
}

body.darkmode .carousel-slide:nth-child(2) {
  background: linear-gradient(145deg, rgba(30, 30, 42, 0.9), rgba(30, 30, 42, 0.5));
}

body.darkmode .carousel-slide:nth-child(3) {
  background: linear-gradient(145deg, rgba(30, 30, 42, 0.9), rgba(30, 30, 42, 0.5));
}

body.darkmode .carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

body.darkmode .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

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

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

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

@media (max-width: 768px) {
  .menu,
  .search-box {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 48px 0 56px;
    border-radius: 0 0 32px 32px;
  }

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

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

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

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 1.6rem;
    margin: 40px 0 24px;
  }

  .card {
    padding: 20px;
  }

  .stats-row {
    padding: 24px 16px;
    gap: 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .carousel-slide {
    padding: 24px;
    min-height: 180px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    opacity: 1;
  }

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .logo {
    font-size: 1.3rem;
  }

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

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

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

  .footer-grid a {
    display: inline-block;
    margin: 6px 12px;
  }

  .footer-links {
    text-align: center;
  }

  .footer-links a {
    display: inline-block;
    margin: 4px 8px;
  }

  .faq-item {
    padding: 16px;
  }

  .faq-question {
    font-size: 0.95rem;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  .sticky-nav,
  .hero-cta,
  .carousel-btn,
  .dark-toggle,
  .mobile-menu,
  .back-to-top {
    display: none !important;
  }

  .hero {
    background: white;
    color: black;
    border-radius: 0;
    padding: 32px 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 无障碍与焦点样式 ---------- */
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* ---------- 选中文本样式 ---------- */
::selection {
  background: var(--accent-2);
  color: white;
}

/* ---------- 滤镜与特效 ---------- */
.card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stats-row {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- 渐变文字 ---------- */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- 动画关键帧 ---------- */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* ---------- 悬停特效增强 ---------- */
.card:hover .read-more {
  color: var(--accent);
}

.btn:active {
  transform: scale(0.98);
}

/* ---------- 暗色模式过渡 ---------- */
body,
.card,
.stats-row,
.faq-item,
.carousel,
.sticky-nav {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ---------- 移动端菜单打开状态 ---------- */
#mobileNav.open {
  display: block;
  animation: slideDown 0.3s ease;
}

/* ---------- 导航栏滚动状态 ---------- */
.sticky-nav.scrolled {
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ---------- 空状态与辅助 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 响应式字体 ---------- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
}

/* ---------- 结束 ---------- */