```css
/* ===== 全局重置与变量 ===== */
:root {
  --bg: #f8f5f0;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #ffffff;
  --surface2: #efece6;
  --surface-glass: rgba(255, 255, 255, 0.6);
  --text-main: #1f2937;
  --text-secondary: #3a4a5a;
  --text-heading: #0f1c2e;
  --text-link: #1f4e8c;
  --accent: #b4532a;
  --accent-light: #d97742;
  --accent-dark: #8b3a1e;
  --footer-bg: #1e2a36;
  --footer-text: #e5e7eb;
  --border-color: rgba(203, 213, 224, 0.6);
  --nav-bg: rgba(255, 255, 255, 0.8);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --code-bg: #eef2f6;
  --gradient-hero: linear-gradient(135deg, #fdf0e6 0%, #f8e1d0 50%, #f3d5b5 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  --blur: blur(20px);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f151c;
  --surface: rgba(28, 42, 53, 0.85);
  --surface-solid: #1c2a35;
  --surface2: #22303b;
  --surface-glass: rgba(28, 42, 53, 0.6);
  --text-main: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-heading: #f1f5f9;
  --text-link: #9fc5ff;
  --accent: #e58e5a;
  --accent-light: #f0a878;
  --accent-dark: #d97742;
  --footer-bg: #0b1117;
  --footer-text: #d1d5db;
  --border-color: rgba(58, 74, 90, 0.6);
  --nav-bg: rgba(28, 42, 53, 0.8);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --code-bg: #2a3743;
  --gradient-hero: linear-gradient(135deg, #1a2530 0%, #1e2e3d 50%, #24384a 100%);
  --gradient-card: linear-gradient(145deg, rgba(28,42,53,0.95), rgba(28,42,53,0.7));
}

/* ===== 基础样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 20% 20%, var(--accent-light) 0%, transparent 50%),
    radial-gradient(at 80% 0%, var(--accent) 0%, transparent 40%),
    radial-gradient(at 0% 100%, var(--accent-dark) 0%, transparent 50%);
  background-size: 100% 100%;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.2s ease;
  font-size: 1rem;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  opacity: 0.9;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

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

::selection {
  background: var(--accent);
  color: white;
}

/* ===== 导航栏 ===== */
.site-header {
  background: var(--nav-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.logo a {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.logo span {
  font-weight: 400;
}

.logo a:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 2px 8px rgba(180, 83, 42, 0.3));
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

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

.nav-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 4px 8px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 42, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 0.9rem;
  width: 150px;
  color: var(--text-main);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
}

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

.search-box button {
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 30px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

.dark-toggle {
  background: var(--surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.dark-toggle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-heading);
  transition: var(--transition);
}

.hamburger:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

/* ===== Hero区域 ===== */
.hero {
  background: var(--gradient-hero);
  padding: 60px 40px;
  border-radius: var(--radius);
  margin: 24px 0 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(180, 83, 42, 0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--text-heading);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease;
}

.hero-text .subhead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.btn-group {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 14px 32px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(180, 83, 42, 0.3);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

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

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(180, 83, 42, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 25px rgba(180, 83, 42, 0.3);
}

.hero-visual {
  flex: 0 0 250px;
  text-align: center;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-visual svg {
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  transition: var(--transition);
  animation: float 4s ease-in-out infinite;
}

.hero-visual svg:hover {
  transform: scale(1.05) rotate(2deg);
}

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

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

/* ===== 面包屑 ===== */
.breadcrumb {
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ===== 通用区块样式 ===== */
.section-title {
  font-size: 2.2rem;
  color: var(--text-heading);
  margin: 50px 0 30px;
  border-left: 6px solid var(--accent);
  padding-left: 20px;
  font-weight: 700;
  position: relative;
  transition: var(--transition);
  animation: fadeInUp 0.6s ease;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 20px;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

/* ===== 网格布局 ===== */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ===== 卡片样式 ===== */
.card {
  background: var(--gradient-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

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

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

.card h4 {
  color: var(--text-heading);
  margin: 12px 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition);
}

.card h4:hover {
  color: var(--accent);
}

.card p {
  color: var(--text-main);
  line-height: 1.8;
}

.card a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== 徽章 ===== */
.badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(180, 83, 42, 0.2);
  transition: var(--transition);
}

.badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(180, 83, 42, 0.3);
}

/* ===== 文章列表 ===== */
.article-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  transition: var(--transition);
  animation: fadeInUp 0.5s ease;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item:hover {
  padding-left: 20px;
  background: linear-gradient(90deg, var(--surface-glass), transparent);
  border-radius: 12px;
}

.article-item time {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.article-item h3 {
  margin: 8px 0;
  font-size: 1.3rem;
  transition: var(--transition);
}

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

.article-item h3 a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.article-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== FAQ手风琴 ===== */
.faq-item {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
  animation: fadeInUp 0.5s ease;
}

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

.faq-q {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-glass);
  transition: var(--transition);
  font-size: 1.1rem;
}

.faq-q:hover {
  background: var(--surface2);
  color: var(--accent);
}

.faq-q span {
  font-size: 1.5rem;
  font-weight: 300;
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface2);
}

.faq-q:hover span {
  background: var(--accent);
  color: white;
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 24px 24px;
  color: var(--text-main);
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

.faq-a p {
  margin-top: 12px;
}

/* ===== 表格 ===== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--surface-glass);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

th {
  background: var(--surface2);
  color: var(--text-heading);
  font-weight: 600;
  text-align: left;
  padding: 16px;
  font-size: 1rem;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: var(--surface-glass);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
  margin-top: 60px;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

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

.site-footer h4 {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
  display: inline-block;
  margin-bottom: 8px;
  line-height: 2;
}

.site-footer a:hover {
  opacity: 1;
  color: white;
  transform: translateX(5px);
  text-decoration: underline;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== HowTo教程 ===== */
.howto-steps {
  background: var(--surface-glass);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease;
}

.howto-steps:hover {
  box-shadow: var(--shadow-lg);
}

.howto-steps h3 {
  color: var(--text-heading);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.howto-steps h4 {
  color: var(--accent);
  margin: 24px 0 12px;
  font-size: 1.2rem;
}

.howto-steps ol, .howto-steps ul {
  padding-left: 24px;
  line-height: 2.2;
}

.howto-steps li {
  margin: 4px 0;
  position: relative;
}

.howto-steps ol li::marker {
  color: var(--accent);
  font-weight: bold;
}

.howto-steps ul li::marker {
  color: var(--accent);
}

.howto-steps p {
  line-height: 1.8;
}

/* ===== 联系区域 ===== */
#contact .card {
  background: var(--surface-glass);
  backdrop-filter: blur(15px);
}

#contact .card p {
  margin: 12px 0;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  transition: var(--transition);
}

#contact .card p:last-child {
  border-bottom: none;
}

#contact .card p:hover {
  padding-left: 10px;
  color: var(--accent);
}

#contact .card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

#contact .card a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ===== 返回顶部按钮 ===== */
#backTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 26px;
  cursor: pointer;
  display: none;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
}

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

#backTop:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(180, 83, 42, 0.4);
}

#backTop::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ===== 滚动动画 ===== */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .article-item, .faq-item, .howto-steps, .hero, .section-title {
  animation: reveal 0.8s ease both;
}

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

/* 滚动视口动画 */
@media (prefers-reduced-motion: no-preference) {
  .card, .article-item, .faq-item, .howto-steps {
    animation: reveal 0.8s ease both;
  }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero {
    padding: 40px 30px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--nav-bg);
    backdrop-filter: var(--blur);
    padding: 20px 0;
    border-radius: 0 0 var(--radius) var(--radius);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.show {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  
  .nav-links a {
    padding: 12px 24px;
    width: 100%;
    font-size: 1.1rem;
  }
  
  .nav-links a:hover {
    background: var(--surface2);
    padding-left: 32px;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-visual {
    flex: 1 1 100%;
    text-align: center;
  }
  
  .hero-visual svg {
    max-width: 180px;
  }
  
  .search-box {
    display: none;
  }
  
  .nav-ctrl {
    gap: 8px;
  }
  
  .dark-toggle {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin: 40px 0 20px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .grid-2, .grid-3, .grid-4 {
    gap: 20px;
  }
  
  .card {
    padding: 24px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
  }
  
  #backTop {
    width: 45px;
    height: 45px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text .subhead {
    font-size: 1rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.3rem;
    padding-left: 12px;
  }
  
  .card {
    padding: 20px;
    border-radius: 20px;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .logo a {
    font-size: 1.4rem;
  }
  
  .dark-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .hamburger {
    font-size: 1.6rem;
  }
  
  .article-item h3 {
    font-size: 1.1rem;
  }
  
  .faq-q {
    font-size: 1rem;
    padding: 16px;
  }
  
  .howto-steps {
    padding: 20px;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .site-header, .site-footer, #backTop, .btn-group, .search-box, .dark-toggle, .hamburger {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card, .howto-steps, .hero {
    box-shadow: none;
    border: 1px solid #ddd;
    background: white;
  }
}

/* ===== 暗色模式微调 ===== */
[data-theme="dark"] .hero {
  background: var(--gradient-hero);
}

[data-theme="dark"] .card {
  background: var(--gradient-card);
}

[data-theme="dark"] .search-box input {
  color: var(--text-main);
}

[data-theme="dark"] .btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* ===== 焦点可见性 ===== */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 无障碍 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 加载动画 ===== */
@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;
  }
}
```