```css
/* ============================================================
   青漫动漫 - 全站样式表
   风格: 梦幻紫罗兰 · 毛玻璃 · 渐变光晕
   ============================================================ */

/* ---------- 主题变量与暗色模式 ---------- */
:root {
  --bg: #F8F4FF;
  --bg-soft: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --card-bg: rgba(255, 255, 255, 0.85);
  --text: #1A1A2E;
  --text-soft: #2D2D44;
  --text-muted: #6F6C8C;
  --primary: #6B4CFF;
  --primary-soft: #A78BFA;
  --primary-glow: rgba(107, 76, 255, 0.25);
  --accent: #FF9A8B;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 40px rgba(107, 76, 255, 0.18);
  --border: rgba(107, 76, 255, 0.15);
  --gradient-banner: linear-gradient(135deg, #1A1A2E 0%, #3D2C8D 50%, #6B4CFF 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(243, 237, 255, 0.8));
  --nav-bg: rgba(26, 26, 46, 0.85);
  --footer-bg: #12121F;
}

[data-theme="dark"] {
  --bg: #12121F;
  --bg-soft: #1E1E30;
  --bg-glass: rgba(30, 30, 48, 0.75);
  --card-bg: rgba(30, 30, 48, 0.85);
  --text: #F0EEFF;
  --text-soft: #D4CFFF;
  --text-muted: #A29EC4;
  --primary: #8B6FFF;
  --primary-soft: #B9A5FF;
  --primary-glow: rgba(139, 111, 255, 0.3);
  --border: rgba(139, 111, 255, 0.2);
  --gradient-card: linear-gradient(145deg, rgba(40, 40, 60, 0.9), rgba(30, 30, 48, 0.8));
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 40px rgba(139, 111, 255, 0.25);
}

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

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

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.4s ease, color 0.3s ease;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(107, 76, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255, 154, 139, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

::selection {
  background: var(--primary);
  color: #fff;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { 
  font-size: clamp(1.4rem, 3vw, 1.9rem); 
  margin: 2rem 0 1.2rem;
  padding-left: 1rem;
  border-left: 6px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, var(--primary-glow), transparent);
}
h3 { 
  font-size: 1.15rem; 
  margin: 1rem 0 0.6rem;
  color: var(--text-soft);
}

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(107, 76, 255, 0.1); }
}

section, .card, .char-card, .comment-item {
  animation: fadeInUp 0.7s ease both;
}

/* 滚动触发延迟 */
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.25s; }
.card:nth-child(7) { animation-delay: 0.3s; }
.card:nth-child(8) { animation-delay: 0.35s; }
.card:nth-child(9) { animation-delay: 0.4s; }
.card:nth-child(10) { animation-delay: 0.45s; }
.card:nth-child(11) { animation-delay: 0.5s; }
.card:nth-child(12) { animation-delay: 0.55s; }
.card:nth-child(13) { animation-delay: 0.6s; }

/* ---------- 渐变Banner（顶部导航） ---------- */
.nav-header {
  background: var(--gradient-banner);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.nav-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.logo h1 {
  color: #FFFFFF;
  font-size: 1.9rem;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
  background: linear-gradient(135deg, #fff 0%, #E4D9FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(107, 76, 255, 0.3));
}

.logo h1 span {
  background: linear-gradient(135deg, var(--primary-soft), #FF9A8B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a {
  color: #E8E4FF;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 40px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- 卡片网格（毛玻璃+圆角） ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
  margin: 2rem 0;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--radius);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover), 0 0 0 1px var(--primary-soft);
  border-color: var(--primary-soft);
}

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

.card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: linear-gradient(135deg, #E4D9FF, #D6C8FF);
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-body {
  padding: 16px;
  position: relative;
  background: linear-gradient(180deg, transparent, var(--card-bg) 30%);
}

.card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #FFFFFF;
  padding: 3px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.rating {
  color: #FFB800;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 184, 0, 0.1);
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 0.85rem;
}

/* ---------- 布局（侧边栏） ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin: 2.5rem 0;
}

.sidebar {
  background: var(--bg-glass);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 90px;
  height: fit-content;
  animation: fadeInRight 0.8s ease;
}

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

.sidebar h3 {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  font-size: 1.1rem;
  position: relative;
}

.sidebar h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.sidebar ul {
  list-style: none;
  margin-top: 14px;
}

.sidebar li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: default;
}

.sidebar li:hover {
  padding-left: 8px;
  color: var(--primary);
}

.sidebar li strong {
  color: var(--text);
  font-weight: 600;
}

.stat-item {
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 10px 0;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-soft);
}

/* ---------- 介绍区块（毛玻璃卡片） ---------- */
.intro-section {
  background: var(--bg-glass);
  border-radius: 28px;
  padding: 36px;
  margin: 32px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.intro-section p {
  margin-bottom: 14px;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
}

.intro-section strong {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- 角色卡片 ---------- */
.char-card {
  display: flex;
  gap: 20px;
  background: var(--bg-glass);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  align-items: center;
}

.char-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-soft);
}

.char-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #DCD0FF, #B9A5FF);
  border: 3px solid var(--primary-soft);
  box-shadow: 0 4px 16px var(--primary-glow);
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.char-card:hover img {
  transform: scale(1.05) rotate(3deg);
}

.char-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.char-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ---------- 用户评论 ---------- */
.comment-item {
  background: var(--bg-glass);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 10px 0;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 28px;
}

.comment-item::before {
  content: '💬';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.6;
}

.comment-item:hover {
  background: var(--bg-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.comment-item strong {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- APP下载区块 ---------- */
.app-download {
  background: var(--gradient-banner);
  color: #FFFFFF;
  border-radius: 32px;
  padding: 44px 30px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 26, 46, 0.3);
}

.app-download::before,
.app-download::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.app-download::before {
  top: -60px;
  left: -60px;
}

.app-download::after {
  bottom: -60px;
  right: -60px;
  animation-delay: 3s;
}

.app-download h2,
.app-download h3 {
  color: #FFFFFF;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.app-download p {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
  margin: 16px 0;
}

.btn {
  background: linear-gradient(135deg, #fff, #F0EAFF);
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
  margin: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(107, 76, 255, 0.4);
  border-color: var(--primary-soft);
}

.btn-light {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- 底部 ---------- */
footer {
  background: var(--footer-bg);
  color: #D6C8FF;
  padding: 50px 0 30px;
  margin-top: 60px;
  position: relative;
  border-top: 1px solid var(--border);
}

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

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

footer a {
  color: var(--primary-soft);
  transition: all 0.3s ease;
}

footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 30px;
}

.footer-links a {
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  color: #A29EC4;
  font-size: 0.85rem;
  line-height: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-top: 20px;
  }
  
  .nav-links {
    gap: 4px;
    padding: 4px 8px;
  }
  
  .nav-links a {
    padding: 4px 12px;
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .nav-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 6px;
  }
  
  .nav-links a {
    flex-shrink: 0;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .card-title {
    font-size: 0.95rem;
  }
  
  .card-meta {
    font-size: 0.75rem;
  }
  
  .intro-section {
    padding: 24px 18px;
  }
  
  .char-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px;
  }
  
  .char-card img {
    width: 80px;
    height: 80px;
  }
  
  .app-download {
    padding: 32px 16px;
  }
  
  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
    display: block;
    width: 80%;
    margin: 10px auto;
  }
  
  .footer-links {
    gap: 12px;
  }
  
  h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .card-body {
    padding: 10px;
  }
  
  .card-title {
    font-size: 0.85rem;
  }
  
  .card-meta {
    font-size: 0.7rem;
    line-height: 1.5;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  
  .intro-section {
    padding: 18px 14px;
    border-radius: 20px;
  }
  
  .comment-item {
    padding: 12px 14px 12px 24px;
    font-size: 0.85rem;
  }
  
  .copyright p {
    font-size: 0.75rem;
  }
}

/* ---------- 暗色模式适配 ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12121F;
    --bg-soft: #1E1E30;
    --bg-glass: rgba(30, 30, 48, 0.75);
    --card-bg: rgba(30, 30, 48, 0.85);
    --text: #F0EEFF;
    --text-soft: #D4CFFF;
    --text-muted: #A29EC4;
    --primary: #8B6FFF;
    --primary-soft: #B9A5FF;
    --primary-glow: rgba(139, 111, 255, 0.3);
    --border: rgba(139, 111, 255, 0.2);
    --gradient-card: linear-gradient(145deg, rgba(40, 40, 60, 0.9), rgba(30, 30, 48, 0.8));
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 40px rgba(139, 111, 255, 0.25);
  }
  
  .card {
    background: var(--card-bg);
  }
  
  .card img {
    background: linear-gradient(135deg, #2D2D44, #1E1E30);
  }
  
  .stat-item {
    background: linear-gradient(135deg, rgba(139, 111, 255, 0.15), transparent);
  }
  
  .comment-item {
    background: rgba(30, 30, 48, 0.6);
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-soft);
}

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

/* ---------- 列表样式优化 ---------- */
.layout ul[style*="list-style:none"] {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.layout ul[style*="list-style:none"] li {
  padding: 12px 16px;
  margin: 8px 0;
  background: var(--bg-glass);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  color: var(--text-soft);
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
}

.layout ul[style*="list-style:none"] li:hover {
  transform: translateX(6px);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.layout ul[style*="list-style:none"] li strong {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- 图片加载动画 ---------- */
.card img {
  opacity: 0;
  animation: imgLoad 0.6s ease forwards;
}

@keyframes imgLoad {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- 卡片角标 ---------- */
.card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  animation: glowPulse 2s ease-in-out infinite;
}

/* ---------- 渐变文字效果 ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-soft));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

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

/* ---------- 焦点可见性（无障碍） ---------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 暗色模式切换按钮（预留） ---------- */
.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg);
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- 打印样式 ---------- */
@media print {
  .nav-header,
  .app-download,
  footer,
  .sidebar {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
```