```css
/* ===== CSS变量与主题 ===== */
:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-footer: #1e293b;
  --bg-code: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #334155;
  --text-heading: #0f172a;
  --text-link: #1d4ed8;
  --text-white: #f8fafc;
  --border-light: #cbd5e1;
  --color-accent: #be123c;
  --color-accent-dark: #9f1239;
  --color-btn-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --hero-grad: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 30%, #fbcfe8 60%, #f9a8d4 100%);
  --card-radius: 20px;
  --transition-fast: all 0.3s ease;
}

[data-theme="dark"] {
  --bg-page: #0f172a;
  --bg-card: #1e293b;
  --bg-header: rgba(15, 23, 42, 0.85);
  --bg-footer: #0b1220;
  --bg-code: #1e293b;
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-heading: #f1f5f9;
  --text-link: #93c5fd;
  --text-white: #f8fafc;
  --border-light: #334155;
  --color-accent: #e11d48;
  --color-accent-dark: #be123c;
  --color-btn-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(148, 163, 184, 0.2);
  --hero-grad: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #6b21a8 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 20% 20%, rgba(225, 29, 72, 0.03) 0%, transparent 50%);
}

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

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  border-left: 5px solid var(--color-accent);
  padding-left: 16px;
  margin: 3rem 0 1.5rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  left: 16px;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  opacity: 0.3;
}

h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1.1rem;
  margin: 1.2rem 0 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

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

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

ul, ol {
  margin: 0 0 1.5rem 1.8rem;
  color: var(--text-primary);
}

li {
  margin-bottom: 0.4rem;
}

/* ===== 布局容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ===== 导航栏 ===== */
.navbar {
  background: var(--bg-header);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.8rem 0;
  gap: 0.5rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.logo span {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: white;
  padding: 2px 12px;
  border-radius: 8px;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

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

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

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

.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--glass-border);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
  border-color: var(--color-accent);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0.5rem 0.3rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  width: 140px;
  transition: width 0.3s ease;
}

.search-box input:focus {
  width: 180px;
}

.search-box button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  padding: 0.3rem;
}

.search-box button:hover {
  transform: scale(1.1);
  color: var(--color-accent);
}

.theme-toggle, .menu-toggle {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.theme-toggle:hover, .menu-toggle:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* ===== Hero首屏 ===== */
.hero {
  background: var(--hero-grad);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: heroFloat 10s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
  max-width: 850px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-accent);
  padding: 0.3rem 1.2rem;
  border-radius: 30px;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== 按钮 ===== */
.btn {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: white;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
}

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

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

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

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

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

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== 文章列表 ===== */
.article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding: 1.2rem 0;
  gap: 20px;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.article-item:hover {
  background: var(--glass-bg);
  box-shadow: var(--shadow-sm);
  padding-left: 1.5rem;
}

.article-item h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.article-item .date {
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: 0.85rem;
  background: var(--bg-code);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

.read-more {
  color: var(--color-accent);
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

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

/* ===== FAQ ===== */
.faq-list details {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-list details:hover {
  border-color: var(--color-accent);
  transform: translateX(5px);
}

.faq-list details[open] {
  background: var(--bg-card);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text-heading);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 30px;
  transition: color 0.3s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list summary:hover {
  color: var(--color-accent);
}

.faq-list p {
  margin-top: 0.8rem;
  color: var(--text-primary);
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-light);
}

/* ===== HowTo ===== */
.howto-box {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--glass-border);
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.howto-box ol {
  margin-left: 1.5rem;
  padding-right: 1rem;
}

.howto-box li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-light);
  transition: padding-left 0.3s ease;
}

.howto-box li:hover {
  padding-left: 1rem;
  color: var(--color-accent);
}

.howto-box p {
  margin-bottom: 1rem;
}

.howto-box p:last-child {
  margin-bottom: 0;
}

/* ===== 联系地址 ===== */
address {
  font-style: normal;
  color: var(--text-primary);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

address:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

address p {
  margin-bottom: 0.8rem;
  padding: 0.3rem 0;
}

address p:last-child {
  margin-bottom: 0;
}

/* ===== 友情链接 ===== */
section p a {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-primary);
}

section p a:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
  text-decoration: none;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-footer);
  color: var(--text-white);
  padding: 4rem 0 1.5rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark), var(--color-accent));
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

footer a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--color-accent);
}

footer h4 {
  color: #f1f5f9;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-grid div {
  margin-bottom: 1rem;
}

.footer-grid p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.5rem;
  margin-top: 2rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.copyright p {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
  z-index: 2000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.5);
}

/* ===== 表格 ===== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

th {
  background: var(--bg-code);
  font-weight: 700;
  color: var(--text-heading);
}

tr {
  transition: background 0.3s ease;
}

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

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== 分隔线 ===== */
hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2rem 0;
  position: relative;
}

hr::after {
  content: '✦';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-page);
  padding: 0 1rem;
  color: var(--color-accent);
}

/* ===== 图片占位 ===== */
.svg-placeholder {
  background: var(--bg-code);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.svg-placeholder:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.svg-placeholder svg {
  max-width: 100%;
  height: auto;
}

/* ===== 响应式 ===== */
.menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1.2rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    border: 1px solid var(--glass-border);
  }

  .nav-links.open {
    display: flex;
    animation: slideDown 0.3s ease;
  }

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

  .nav-links a {
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .menu-toggle {
    display: block;
  }

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

  .search-box input:focus {
    width: 120px;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

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

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

  .article-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .article-item h4 {
    font-size: 1rem;
  }

  .article-item .date {
    align-self: flex-start;
  }

  .howto-box {
    padding: 1.5rem;
  }

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

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  h3 {
    font-size: 1.2rem;
  }

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

  .card {
    padding: 1.5rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo span {
    font-size: 1.1rem;
    padding: 2px 8px;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .search-box {
    display: none;
  }

  .theme-toggle {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
  }

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

  .faq-list details {
    padding: 1rem;
  }

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

  address {
    padding: 1.5rem;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 5px;
  transition: all 0.3s ease;
}

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

/* ===== 选择文本 ===== */
::selection {
  background: var(--color-accent);
  color: white;
}

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

/* ===== 暗色模式微调 ===== */
[data-theme="dark"] .hero-badge {
  background: rgba(17, 24, 39, 0.9);
  color: #fecdd3;
}

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

[data-theme="dark"] .nav-links a::after {
  background: var(--color-accent);
}

[data-theme="dark"] .copyright {
  border-top-color: rgba(148, 163, 184, 0.15);
}

/* ===== 打印优化 ===== */
@media print {
  .navbar, .back-to-top, .theme-toggle, .menu-toggle, .search-box {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card, .faq-list details, .howto-box {
    box-shadow: none;
    border: 1px solid #ddd;
    background: white;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
```