```css
/* ===== 歪歪动漫 全站样式 ===== */
:root {
  --bg-primary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-nav: rgba(15, 23, 42, 0.9);
  --text-primary: #1e293b;
  --text-secondary: #334155;
  --text-heading: #0f172a;
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --accent-light: rgba(79, 70, 229, 0.12);
  --border-light: rgba(203, 213, 225, 0.6);
  --footer-bg: #0b1120;
  --footer-text: #cbd5e1;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 48px rgba(79, 70, 229, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --blur: blur(20px);
  --gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #4f46e5 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #0b1322;
  --bg-card: rgba(17, 28, 46, 0.85);
  --bg-nav: rgba(10, 15, 28, 0.95);
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-heading: #f8fafc;
  --accent: #818cf8;
  --accent-dark: #a5b4fc;
  --accent-light: rgba(129, 140, 248, 0.15);
  --border-light: rgba(51, 65, 85, 0.6);
  --footer-bg: #070c17;
  --footer-text: #b0c4de;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 48px rgba(129, 140, 248, 0.2);
  --glass-bg: rgba(17, 28, 46, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(135deg, #0a0f1c 0%, #111c2e 50%, #1e1b4b 100%);
}

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

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: var(--transition);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  border-left: 6px solid var(--accent);
  padding-left: 1rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 1rem;
  width: 60px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
}

h4 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

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

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

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

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

/* ===== 导航栏 ===== */
.nav-bar {
  background: var(--bg-nav);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--glass-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--gradient);
  padding: 0.2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  transition: var(--transition);
  flex-shrink: 0;
}

.logo:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #e0e7ff;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #ffffff;
  border-bottom-color: var(--accent);
  text-decoration: none;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  background: var(--gradient);
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  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.2), transparent);
  transition: left 0.5s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  color: white;
  text-decoration: none;
}

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

.btn:active {
  transform: translateY(0);
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

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

/* ===== 网格 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

/* ===== Banner ===== */
.banner {
  background: var(--gradient);
  color: white;
  padding: 4rem 0;
  border-radius: 0 0 40px 40px;
  position: relative;
  overflow: hidden;
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.2) 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); }
}

.banner h1 {
  color: white;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.banner p {
  color: #cbd5e1;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.banner .btn {
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
}

/* ===== 轮播 ===== */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-track {
  background: transparent;
}

.carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.carousel-item {
  min-width: 280px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  scroll-snap-align: start;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.carousel-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  transition: var(--transition);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-heading);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 8px;
}

.faq-question:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.faq-question span {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

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

.faq-answer {
  padding-top: 0.8rem;
  color: var(--text-primary);
  display: none;
  animation: fadeIn 0.3s ease;
}

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

/* ===== 表格 ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

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

th {
  background: var(--bg-nav);
  color: white;
  font-weight: 500;
  position: sticky;
  top: 0;
}

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

tr:hover {
  background: var(--accent-light);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
}

.footer a {
  color: #a5b4fc;
  transition: var(--transition);
}

.footer a:hover {
  color: white;
  text-decoration: none;
}

.footer a::after {
  display: none;
}

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

.footer h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

/* ===== 工具类 ===== */
.text-secondary {
  color: var(--text-secondary);
}

.badge {
  background: var(--gradient);
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.icon-svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

/* ===== 滚动动画 ===== */
.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);
}

/* ===== 搜索框 ===== */
.search-box {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 0.2rem 0.2rem 0.2rem 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

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

.search-box button {
  background: var(--gradient);
  border: 0;
  border-radius: 40px;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.search-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* ===== 暗黑模式切换按钮 ===== */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 30px;
  padding: 0.3rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: rotate(20deg) scale(1.1);
}

/* ===== 返回顶部按钮 ===== */
#backTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient);
  color: white;
  border: 0;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

#backTop:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* ===== 文章卡片 ===== */
article.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

article.card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  transition: var(--transition);
}

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

article.card .text-secondary {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

article.card p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

article.card a {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

article.card a:hover {
  gap: 0.6rem;
}

/* ===== 引用块 ===== */
blockquote {
  position: relative;
  padding: 1.5rem;
  font-style: italic;
  line-height: 1.8;
  transition: var(--transition);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
}

blockquote:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ===== 友情链接 ===== */
section a {
  margin-right: 0.5rem;
}

/* ===== 列表样式 ===== */
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

ol li {
  margin-bottom: 0.5rem;
  padding: 0.3rem 0;
  transition: var(--transition);
}

ol li:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* ===== 移动端适配 ===== */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
  }
  
  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 0.8rem;
    border-radius: 8px;
  }
  
  .nav-links a:hover {
    background: var(--accent-light);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .banner {
    padding: 3rem 0;
    border-radius: 0 0 30px 30px;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .search-box input {
    width: 120px;
  }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .banner h1 {
    font-size: 1.6rem;
  }
  
  .banner p {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .search-box {
    display: none;
  }
  
  .theme-toggle {
    padding: 0.3rem 0.8rem;
  }
  
  #backTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .nav-bar,
  .footer,
  #backTop,
  .theme-toggle,
  .menu-toggle,
  .search-box {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== 无障碍 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    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-primary);
}

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

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

/* ===== 选区样式 ===== */
::selection {
  background: var(--accent);
  color: white;
  text-shadow: none;
}

/* ===== 焦点可见性 ===== */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 动画增强 ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.badge {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== 悬停效果增强 ===== */
.grid-3 .card:hover,
.grid-2 .card:hover {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-light) 100%);
}

/* ===== 链接图标 ===== */
a[href^="http"]::after {
  content: ' ↗';
  font-size: 0.8em;
  opacity: 0.6;
}

/* ===== 移动端菜单动画 ===== */
.nav-links.show li {
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}

.nav-links.show li:nth-child(1) { animation-delay: 0.05s; }
.nav-links.show li:nth-child(2) { animation-delay: 0.1s; }
.nav-links.show li:nth-child(3) { animation-delay: 0.15s; }
.nav-links.show li:nth-child(4) { animation-delay: 0.2s; }
.nav-links.show li:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
```