/* ============================================================
   撸撸射 - 完整样式表 (style.css)
   风格：深色高级质感 + 渐变光晕 + 毛玻璃 + 微动效
   响应式 + 暗色模式 + 滚动动画
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 亮色模式 */
  --bg-light: #f8fafc;
  --bg-dark: #0b0f19;
  --text-primary-light: #1e293b;
  --text-secondary-light: #475569;
  --text-heading-light: #0f172a;
  --text-link-light: #2563eb;
  --bg-card-light: rgba(255, 255, 255, 0.72);
  --border-light: rgba(148, 163, 184, 0.22);
  --btn-bg-light: #1e293b;
  --btn-text-light: #ffffff;
  --nav-bg-light: rgba(255, 255, 255, 0.68);
  --footer-bg-light: #0f172a;
  --footer-text-light: #cbd5e1;
  --footer-heading-light: #f1f5f9;
  --shadow-light: 0 8px 30px rgba(15, 23, 42, 0.06);
  --glow-primary: rgba(99, 102, 241, 0.15);
  --glow-secondary: rgba(236, 72, 153, 0.10);
  --gradient-banner: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  --gradient-text: linear-gradient(135deg, #1e293b, #334155);
  --card-bg-opacity: 0.75;
  --border-opacity: 0.25;
  --hover-lift: -6px;
  --hover-scale: 1.02;

  /* 暗色模式 */
  --bg-dark-mode: #0b0f19;
  --text-primary-dark: #e2e8f0;
  --text-secondary-dark: #94a3b8;
  --text-heading-dark: #f8fafc;
  --text-link-dark: #93c5fd;
  --bg-card-dark: rgba(30, 41, 59, 0.7);
  --border-dark: rgba(148, 163, 184, 0.18);
  --btn-bg-dark: #94a3b8;
  --btn-text-dark: #0f172a;
  --nav-bg-dark: rgba(15, 23, 42, 0.75);
  --footer-bg-dark: #070b12;
  --footer-text-dark: #94a3b8;
  --footer-heading-dark: #e2e8f0;
  --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.4);
  --glow-primary-dark: rgba(129, 140, 248, 0.12);
  --glow-secondary-dark: rgba(244, 114, 182, 0.08);
  --gradient-banner-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  --gradient-card-dark: linear-gradient(145deg, rgba(30,41,59,0.6), rgba(15,23,42,0.3));
  --gradient-text-dark: linear-gradient(135deg, #f8fafc, #cbd5e1);
  --card-bg-opacity-dark: 0.65;
  --border-opacity-dark: 0.2;
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg-light);
  background-image:
    radial-gradient(circle at 15% 20%, var(--glow-primary), transparent 40%),
    radial-gradient(circle at 85% 10%, var(--glow-secondary), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.08), transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary-light);
  line-height: 1.75;
  transition: background-color 0.4s ease, color 0.3s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

body.dark-mode {
  background-color: var(--bg-dark-mode);
  background-image:
    radial-gradient(circle at 15% 20%, var(--glow-primary-dark), transparent 40%),
    radial-gradient(circle at 85% 10%, var(--glow-secondary-dark), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(30, 27, 75, 0.4), transparent 50%);
  color: var(--text-primary-dark);
}

/* 平滑滚动偏移 */
section[id],
div[id] {
  scroll-margin-top: 80px;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5 {
  color: var(--text-heading-light);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5 {
  color: var(--text-heading-dark);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.2rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fadeInUp 0.8s ease-out;
}

body.dark-mode h1 {
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-left: 0.5rem;
  animation: fadeInUp 0.7s ease-out;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-heading-light);
  transition: color 0.3s;
}

body.dark-mode h3 {
  color: var(--text-heading-dark);
}

h4 {
  font-size: 1.15rem;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-heading-light);
  font-weight: 600;
}

p {
  color: var(--text-primary-light);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  transition: color 0.3s;
}

body.dark-mode p {
  color: var(--text-primary-dark);
}

a {
  color: var(--text-link-light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

body.dark-mode a {
  color: var(--text-link-dark);
}

a:hover {
  color: #4f46e5;
  text-decoration: none;
}

body.dark-mode a:hover {
  color: #818cf8;
}

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

body.dark-mode strong {
  color: var(--text-heading-dark);
}

/* ---------- 容器 ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg-light);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

body.dark-mode .navbar {
  background-color: var(--nav-bg-dark);
  border-bottom-color: var(--border-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-heading-light);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: default;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

body.dark-mode .logo {
  background: linear-gradient(135deg, #a5b4fc, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-primary-light);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

body.dark-mode .nav-links a {
  color: var(--text-primary-dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: #4f46e5;
}

body.dark-mode .nav-links a:hover {
  color: #94a3b8;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-primary-light);
  line-height: 1;
  z-index: 1001;
  transition: transform 0.2s;
}

body.dark-mode .menu-toggle {
  color: var(--text-primary-dark);
}

.menu-toggle:hover {
  transform: rotate(90deg);
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border-light);
  border-radius: 30px;
  padding: 0.35rem 0.9rem;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-primary-light);
  transition: all 0.3s ease;
  white-space: nowrap;
}

body.dark-mode .theme-toggle {
  border-color: var(--border-dark);
  color: var(--text-primary-dark);
}

.theme-toggle:hover {
  background-color: rgba(99, 102, 241, 0.1);
  transform: scale(1.05);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  background: var(--gradient-banner);
  color: #ffffff !important;
  padding: 0.75rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

body.dark-mode .btn {
  background: var(--gradient-banner-dark);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  text-decoration: none;
  color: #ffffff;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-heading-light);
  color: var(--text-heading-light) !important;
  box-shadow: none;
}

body.dark-mode .btn-outline {
  border-color: var(--text-heading-dark);
  color: var(--text-heading-dark) !important;
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-heading-light) !important;
  border-color: #6366f1;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin: 2.2rem 0;
}

.card {
  background: var(--gradient-card);
  background-color: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
}

body.dark-mode .card {
  background: var(--gradient-card-dark);
  background-color: var(--bg-card-dark);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-dark);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.card:hover {
  transform: translateY(var(--hover-lift)) scale(var(--hover-scale));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card h3 {
  margin-top: 0;
  color: var(--text-heading-light);
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

body.dark-mode .card h3 {
  color: var(--text-heading-dark);
}

.card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
}

.card p {
  color: var(--text-secondary-light);
  font-size: 0.98rem;
  margin-bottom: 0;
}

body.dark-mode .card p {
  color: var(--text-secondary-dark);
}

/* 动画延迟 */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* ---------- 文章列表 ---------- */
.article-list {
  margin: 2.2rem 0;
  display: grid;
  gap: 0.8rem;
}

.article-item {
  border: 1px solid transparent;
  border-bottom: 1px solid var(--border-light);
  padding: 1.4rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.dark-mode .article-item {
  border-bottom-color: var(--border-dark);
}

.article-item:hover {
  background-color: rgba(99, 102, 241, 0.04);
  border-color: var(--border-light);
  padding-left: 1.4rem;
}

body.dark-mode .article-item:hover {
  background-color: rgba(99, 102, 241, 0.1);
  border-color: var(--border-dark);
}

.article-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  transition: color 0.2s;
}

.article-item h3:hover {
  color: #6366f1;
}

.article-meta {
  color: var(--text-secondary-light);
  font-size: 0.85rem;
  display: inline-block;
  background: rgba(99, 102, 241, 0.08);
  padding: 2px 12px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

body.dark-mode .article-meta {
  color: var(--text-secondary-dark);
  background: rgba(99, 102, 241, 0.15);
}

.article-item p {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.article-item > a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6366f1;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-item > a:hover {
  gap: 8px;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

body.dark-mode .faq-item {
  background: rgba(30, 41, 59, 0.5);
  border-color: var(--border-dark);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
  font-weight: 600;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-heading-light);
  font-size: 1.02rem;
  transition: color 0.2s;
  user-select: none;
}

body.dark-mode .faq-question {
  color: var(--text-heading-dark);
}

.faq-question:hover {
  color: #6366f1;
}

.faq-question span {
  font-size: 1.4rem;
  font-weight: 300;
  color: #6366f1;
  transition: transform 0.3s ease;
  display: inline-block;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-answer {
  padding: 0 1.5rem 1.2rem 1.5rem;
  color: var(--text-primary-light);
  font-size: 0.98rem;
  border-top: 1px solid transparent;
  animation: fadeInUp 0.3s ease;
}

body.dark-mode .faq-answer {
  color: var(--text-primary-dark);
}

.faq-item.active .faq-question span {
  transform: rotate(180deg);
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 2.2rem 0;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  overflow: hidden;
}

body.dark-mode table {
  background: rgba(30, 41, 59, 0.7);
}

th,
td {
  border: 1px solid var(--border-light);
  padding: 0.9rem 1.2rem;
  text-align: left;
  color: var(--text-primary-light);
}

body.dark-mode th,
body.dark-mode td {
  border-color: var(--border-dark);
  color: var(--text-primary-dark);
}

th {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  font-weight: 700;
  color: var(--text-heading-light);
  font-size: 0.95rem;
}

body.dark-mode th {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.15));
  color: var(--text-heading-dark);
}

/* ---------- 页脚 ---------- */
.footer {
  background-color: var(--footer-bg-light);
  color: var(--footer-text-light);
  padding: 3.5rem 0;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

body.dark-mode .footer {
  background-color: var(--footer-bg-dark);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6366f1, #ec4899, transparent);
}

.footer h4 {
  color: var(--footer-heading-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

body.dark-mode .footer h4 {
  color: var(--footer-heading-dark);
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
}

.footer a {
  color: var(--footer-text-light);
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.85;
}

body.dark-mode .footer a {
  color: var(--footer-text-dark);
}

.footer a:hover {
  color: #a5b4fc;
  opacity: 1;
  text-decoration: none;
}

body.dark-mode .footer a:hover {
  color: #818cf8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
}

.footer-links div {
  flex: 1 1 200px;
  min-width: 160px;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

/* ---------- 返回顶部 ---------- */
#backTop {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  background: var(--gradient-banner);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode #backTop {
  background: var(--gradient-banner-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#backTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backTop:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
  }
}

/* 滚动触发动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }
  
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.7rem 20px;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--bg-light);
    padding: 1.2rem 0;
    gap: 0.8rem;
    border-radius: 0 0 16px 16px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
  }

  body.dark-mode .nav-links {
    background-color: var(--nav-bg-dark);
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .theme-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 0.5rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.5rem;
    order: 1;
    flex: 1;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .footer-links {
    gap: 1.5rem;
    flex-direction: column;
  }

  .footer-links div {
    flex: 1 1 100%;
  }

  #backTop {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.6rem 1rem;
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .btn-outline {
    display: block;
    width: 100%;
  }

  /* 移动端按钮组 */
  section > div[style*="flex"] {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
}

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

  h1 {
    font-size: 1.7rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .theme-toggle {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
  }

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

  .faq-answer {
    padding: 0 1.2rem 1rem 1.2rem;
  }

  .article-item {
    padding: 1rem 0.8rem;
  }

  .card {
    padding: 1.3rem;
  }
}

/* ---------- 减少动画偏好 ---------- */
@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: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #ec4899);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4f46e5, #db2777);
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* ---------- 文本选中样式 ---------- */
::selection {
  background: rgba(99, 102, 241, 0.2);
  color: var(--text-heading-light);
}

body.dark-mode ::selection {
  background: rgba(99, 102, 241, 0.4);
  color: var(--text-heading-dark);
}

/* ---------- 主内容区滚动动画应用 ---------- */
#about > div,
#home > section:first-of-type,
#home > .card-grid,
#home > .article-list,
#faqContainer,
#contact > div {
  animation: fadeInUp 0.8s ease-out both;
}

#about > div:nth-child(1) {
  animation-delay: 0.1s;
}

#about > div:nth-child(2) {
  animation-delay: 0.2s;
}

/* 渐变高亮文字 */
.highlight {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* 分隔线 */
.divider {
  width: 80px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  margin: 1.5rem 0;
}

/* 联系信息卡片 */
.contact-card {
  background: var(--gradient-card);
  background-color: var(--bg-card-light);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

body.dark-mode .contact-card {
  background: var(--gradient-card-dark);
  background-color: var(--bg-card-dark);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-dark);
}

.contact-card p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

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

/* 首屏背景装饰 */
#home::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.06), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.05), transparent 50%);
}

/* 响应式字体 */
@media (min-width: 1600px) {
  .container {
    max-width: 1440px;
  }
}

/* 打印样式 */
@media print {
  .navbar,
  .footer,
  #backTop,
  .theme-toggle,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: white;
  }

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