/* ===== 妖精网站 - 完整样式表 ===== */
/* 主题：暗黑紫罗兰幻想风 | 支持暗色模式 | 响应式布局 | 毛玻璃效果 */

:root {
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;
  --bg-main: #0a0a18;
  --bg-card: rgba(26, 26, 53, 0.85);
  --bg-card-hover: rgba(35, 35, 70, 0.95);
  --bg-section: rgba(22, 22, 48, 0.9);
  --bg-aside: rgba(20, 20, 46, 0.9);
  --border-color: rgba(45, 45, 85, 0.8);
  --text-primary: #f0f0ff;
  --text-secondary: #d0d0e8;
  --text-muted: #8888aa;
  --text-accent: #a78bfa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);
  --gradient-main: linear-gradient(135deg, #0a0a18 0%, #14142a 100%);
  --gradient-accent: linear-gradient(135deg, #a78bfa, #8b5cf6);
  --gradient-button: linear-gradient(135deg, #7c3aed, #6d28d9);
  --glass-blur: blur(15px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-main);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--gradient-main);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 80%, rgba(109, 40, 217, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

ul, ol {
  list-style: none;
}

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

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

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

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

/* ===== 头部导航 ===== */
header {
  background: rgba(13, 13, 32, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

header nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 15px 0;
  gap: 10px;
}

header nav > a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-normal);
}

header nav > a:hover {
  transform: scale(1.02);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

header ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

header ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  transition: all var(--transition-fast);
  background: transparent;
}

header ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

header ul li a:hover {
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.1);
}

header ul li a:hover::after {
  transform: scaleX(1);
}

/* ===== 主内容区域布局 ===== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 25px;
  position: relative;
  z-index: 1;
}

main > div:first-child {
  min-width: 0;
}

/* ===== 通用区块标题 ===== */
section {
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out both;
}

section h2 {
  color: var(--text-primary);
  font-size: 2rem;
  border-left: 5px solid var(--primary);
  padding-left: 15px;
  margin-bottom: 25px;
  position: relative;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
  padding: 8px 15px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 15px;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* ===== 漫画卡片网格 ===== */
section#hot > div:last-child,
section#recommend > div:last-child,
section#characters > div:last-child {
  display: grid;
  gap: 20px;
}

section#hot > div:last-child {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

section#recommend > div:last-child {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

section#characters > div:last-child {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ===== 漫画卡片样式 ===== */
section#hot article,
section#recommend article,
section#characters article {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

section#hot article::before,
section#recommend article::before,
section#characters article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
  z-index: 1;
}

section#hot article:hover,
section#recommend article:hover,
section#characters article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--bg-card-hover);
}

section#hot article:hover::before,
section#recommend article:hover::before,
section#characters article:hover::before {
  transform: scaleX(1);
}

section#hot article img,
section#recommend article img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

section#hot article:hover img,
section#recommend article:hover img {
  transform: scale(1.05);
}

section#hot article div,
section#recommend article div,
section#characters article div {
  padding: 15px;
}

section#hot article h3,
section#recommend article h3,
section#characters article h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

section#hot article:hover h3,
section#recommend article:hover h3,
section#characters article:hover h3 {
  color: var(--primary-light);
}

section#hot article p,
section#recommend article p,
section#characters article p {
  margin: 4px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

section#hot article p span,
section#recommend article p span {
  color: var(--text-accent);
}

/* 标签样式 */
section#hot article span[style*="background"],
section#recommend article span[style*="background"] {
  display: inline-block;
  background: var(--gradient-button) !important;
  color: #fff !important;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-top: 8px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

/* ===== 精品推荐卡片 ===== */
section#recommend article {
  background: rgba(28, 28, 58, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

section#recommend article div {
  padding: 20px;
}

section#recommend article h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

section#recommend article p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== 详细内容区域 ===== */
section#detail {
  background: var(--bg-section);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

section#detail::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

section#detail h2 {
  margin-top: 0;
}

section#detail h3 {
  color: var(--text-primary);
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

section#detail h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 3px;
}

section#detail p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
  text-align: justify;
}

section#detail div[style*="flex"] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

section#detail div[style*="flex"] span {
  background: var(--gradient-button) !important;
  color: #fff !important;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
  transition: all var(--transition-fast);
}

section#detail div[style*="flex"] span:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5);
}

/* ===== 角色卡片 ===== */
section#characters article {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

section#characters article:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

section#characters article img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid var(--primary);
  transition: all var(--transition-normal);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

section#characters article:hover img {
  border-color: var(--primary-light);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
  transform: scale(1.05);
}

section#characters article h3 {
  margin: 0 0 5px;
  color: var(--text-primary);
  font-size: 1.3rem;
}

section#characters article p:first-of-type {
  color: var(--text-accent);
  font-size: 0.95rem;
  font-weight: 500;
}

section#characters article p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 5px 0;
}

/* ===== 平台介绍区域 ===== */
section#platform {
  background: rgba(20, 20, 46, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

section#platform p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1rem;
}

section#platform strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== APP下载区域 ===== */
section#app {
  background: linear-gradient(135deg, rgba(20, 20, 46, 0.95), rgba(28, 28, 58, 0.95));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

section#app::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

section#app h2 {
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 15px;
  border: none;
  padding: 0;
  text-align: center;
  background: none;
}

section#app h2::after {
  display: none;
}

section#app p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 25px;
  line-height: 1.7;
}

section#app div[style*="flex"] {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

section#app a {
  display: inline-block;
  background: var(--gradient-button) !important;
  color: #ffffff !important;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all var(--transition-normal) !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

section#app a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  color: #fff !important;
}

/* ===== 用户评论区域 ===== */
section#reviews > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

section#reviews article {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-normal);
}

section#reviews article:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: rgba(30, 30, 60, 0.9);
}

section#reviews article p:first-child {
  margin: 0 0 10px;
  color: var(--text-accent);
  font-weight: bold;
  font-size: 1rem;
}

section#reviews article p:nth-child(2) {
  margin: 0 0 10px;
  color: var(--text-secondary);
  line-height: 1.7;
}

section#reviews article p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== 侧边栏 ===== */
aside {
  min-width: 280px;
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}

aside > div {
  background: var(--bg-aside);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

aside > div:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 92, 246, 0.3);
}

aside h2 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  font-weight: 600;
  border-left: none;
  padding-left: 0;
  background: none;
}

aside h2::after {
  display: none;
}

aside ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

aside ul li:last-child {
  border-bottom: none;
}

aside ul li:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

aside ul li span:last-child {
  color: var(--text-accent);
  font-weight: 500;
  white-space: nowrap;
}

/* 统计卡片 */
aside div[style*="grid"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

aside div[style*="grid"] > div {
  background: rgba(28, 28, 58, 0.9);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

aside div[style*="grid"] > div:hover {
  background: rgba(40, 40, 80, 0.9);
  border-color: rgba(139, 92, 246, 0.3);
  transform: scale(1.02);
}

aside div[style*="grid"] p:first-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

aside div[style*="grid"] p:last-child {
  margin: 5px 0 0;
  color: var(--text-accent);
  font-size: 1.8rem;
  font-weight: bold;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 页脚 ===== */
footer {
  background: rgba(10, 10, 24, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-color);
  padding: 30px 20px 20px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

footer > div:first-child {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

footer div > div {
  padding: 10px 0;
}

footer h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

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

footer ul li {
  margin-bottom: 8px;
}

footer ul li a {
  color: var(--text-accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

footer ul li a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

footer > div:last-child {
  max-width: 1400px;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

footer > div:last-child p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* 滚动动画 - 使用Intersection Observer配合 */
@media (prefers-reduced-motion: no-preference) {
  section {
    animation: fadeInUp 0.6s ease-out both;
  }
  
  section:nth-child(2) {
    animation-delay: 0.1s;
  }
  
  section:nth-child(3) {
    animation-delay: 0.2s;
  }
  
  section:nth-child(4) {
    animation-delay: 0.3s;
  }
}

/* ===== 响应式布局 ===== */
/* 平板设备 */
@media screen and (max-width: 1024px) {
  main {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 20px;
  }
  
  aside {
    min-width: auto;
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  aside > div {
    margin-bottom: 0;
  }
  
  section#reviews > div:last-child {
    grid-template-columns: 1fr;
  }
}

/* 手机设备 */
@media screen and (max-width: 768px) {
  header {
    padding: 0 15px;
  }
  
  header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }
  
  header nav > a {
    margin-bottom: 10px;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  header ul {
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5px 0;
  }
  
  header ul li a {
    font-size: 0.85rem;
    padding: 6px 10px;
    white-space: nowrap;
  }
  
  header ul li a::after {
    display: none;
  }
  
  main {
    padding: 15px;
    gap: 15px;
  }
  
  section {
    margin-bottom: 30px;
  }
  
  section h2 {
    font-size: 1.5rem;
    padding: 6px 12px;
  }
  
  section#hot > div:last-child,
  section#recommend > div:last-child,
  section#characters > div:last-child {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  section#recommend > div:last-child {
    grid-template-columns: 1fr;
  }
  
  section#detail {
    padding: 20px;
  }
  
  section#detail h3 {
    font-size: 1.3rem;
  }
  
  section#detail p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  section#platform {
    padding: 20px;
  }
  
  section#app {
    padding: 30px 20px;
  }
  
  section#app h2 {
    font-size: 1.8rem;
  }
  
  section#app p {
    font-size: 1rem;
  }
  
  section#app a {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
  }
  
  section#reviews > div:last-child {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  aside {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  footer {
    padding: 20px 15px 15px;
  }
  
  footer > div:first-child {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  footer h3 {
    font-size: 1.1rem;
  }
  
  section#characters article img {
    max-width: 140px;
  }
  
  section#hot article h3,
  section#recommend article h3,
  section#characters article h3 {
    font-size: 1.1rem;
  }
  
  section#hot article p,
  section#recommend article p,
  section#characters article p {
    font-size: 0.85rem;
  }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
  section#hot > div:last-child,
  section#characters > div:last-child {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
  
  section#hot article div,
  section#recommend article div,
  section#characters article div {
    padding: 10px;
  }
  
  section#hot article h3,
  section#recommend article h3,
  section#characters article h3 {
    font-size: 1rem;
  }
  
  section#hot article p,
  section#recommend article p,
  section#characters article p {
    font-size: 0.8rem;
  }
  
  section#detail,
  section#platform {
    padding: 15px;
  }
  
  section#app {
    padding: 20px 15px;
  }
  
  section#app div[style*="flex"] {
    flex-direction: column;
    align-items: center;
  }
  
  section#app a {
    max-width: 100%;
  }
  
  section#reviews article {
    padding: 15px;
  }
  
  section#reviews article p:nth-child(2) {
    font-size: 0.9rem;
  }
  
  aside div[style*="grid"] p:last-child {
    font-size: 1.5rem;
  }
  
  header ul li a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
}

/* ===== 暗色模式适配（系统级） ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #0a0a18;
    --bg-card: rgba(26, 26, 53, 0.9);
    --bg-section: rgba(22, 22, 48, 0.95);
    --text-primary: #f0f0ff;
    --text-secondary: #d0d0e8;
  }
}

/* 强制暗色模式（网站默认） */
@media (prefers-color-scheme: light) {
  :root {
    --bg-main: #0a0a18;
    --bg-card: rgba(26, 26, 53, 0.85);
    --bg-section: rgba(22, 22, 48, 0.9);
    --text-primary: #f0f0ff;
    --text-secondary: #d0d0e8;
  }
}

/* ===== 无障碍与细节优化 ===== */
::selection {
  background: var(--primary);
  color: #fff;
}

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

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

/* 打印样式 */
@media print {
  header, footer, aside, section#app, section#reviews {
    display: none !important;
  }
  
  main {
    grid-template-columns: 1fr !important;
  }
  
  body {
    background: #fff !important;
    color: #000 !important;
  }
  
  section#hot article,
  section#recommend article,
  section#characters article,
  section#detail,
  section#platform {
    break-inside: avoid;
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ddd !important;
  }
}

/* ===== 渐变边框与毛玻璃效果增强 ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 渐变边框技巧 */
.gradient-border {
  border: 1px solid transparent !important;
  background-image: linear-gradient(rgba(26, 26, 53, 0.9), rgba(26, 26, 53, 0.9)), 
    linear-gradient(135deg, #a78bfa, #6d28d9, #a78bfa) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
}

/* 悬停光效 */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* 顶部导航渐变线 */
header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

/* 区块悬浮时的微光效果 */
section#hot > div:last-child article::after,
section#recommend > div:last-child article::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

section#hot > div:last-child article:hover::after,
section#recommend > div:last-child article:hover::after {
  opacity: 1;
}

/* 文本渐变色 */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 卡片内图片平滑过渡 */
section#hot article img,
section#recommend article img,
section#characters article img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 移动端触摸优化 */
@media (hover: none) {
  section#hot article:hover,
  section#recommend article:hover,
  section#characters article:hover,
  section#reviews article:hover {
    transform: none;
  }
  
  header ul li a:active {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
  }
}

/* 加载动画 */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* 响应式字体大小 */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 13px;
  }
}

/* 侧边栏滚动条优化 */
aside::-webkit-scrollbar {
  width: 6px;
}

aside::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 3px;
}

/* 卡片进入动画 */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  section#hot article,
  section#recommend article,
  section#characters article,
  section#reviews article {
    animation: cardIn 0.5s ease-out both;
  }
  
  section#hot article:nth-child(2),
  section#recommend article:nth-child(2),
  section#characters article:nth-child(2),
  section#reviews article:nth-child(2) {
    animation-delay: 0.05s;
  }
  
  section#hot article:nth-child(3),
  section#recommend article:nth-child(3),
  section#characters article:nth-child(3),
  section#reviews article:nth-child(3) {
    animation-delay: 0.1s;
  }
  
  section#hot article:nth-child(4),
  section#recommend article:nth-child(4),
  section#characters article:nth-child(4),
  section#reviews article:nth-child(4) {
    animation-delay: 0.15s;
  }
  
  section#hot article:nth-child(5),
  section#recommend article:nth-child(5),
  section#characters article:nth-child(5),
  section#reviews article:nth-child(5) {
    animation-delay: 0.2s;
  }
  
  section#hot article:nth-child(6),
  section#recommend article:nth-child(6),
  section#characters article:nth-child(6),
  section#reviews article:nth-child(6) {
    animation-delay: 0.25s;
  }
  
  section#hot article:nth-child(7),
  section#recommend article:nth-child(7),
  section#characters article:nth-child(7),
  section#reviews article:nth-child(7) {
    animation-delay: 0.3s;
  }
  
  section#hot article:nth-child(8),
  section#recommend article:nth-child(8),
  section#characters article:nth-child(8),
  section#reviews article:nth-child(8) {
    animation-delay: 0.35s;
  }
  
  section#hot article:nth-child(9),
  section#recommend article:nth-child(9),
  section#characters article:nth-child(9),
  section#reviews article:nth-child(9) {
    animation-delay: 0.4s;
  }
  
  section#hot article:nth-child(10),
  section#recommend article:nth-child(10),
  section#characters article:nth-child(10),
  section#reviews article:nth-child(10) {
    animation-delay: 0.45s;
  }
  
  section#hot article:nth-child(11),
  section#recommend article:nth-child(11),
  section#characters article:nth-child(11),
  section#reviews article:nth-child(11) {
    animation-delay: 0.5s;
  }
  
  section#hot article:nth-child(12),
  section#recommend article:nth-child(12),
  section#characters article:nth-child(12),
  section#reviews article:nth-child(12) {
    animation-delay: 0.55s;
  }
}

/* 最终优化：确保所有颜色都有良好对比度 */
a:focus, button:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
  }
  
  section#hot article img,
  section#recommend article img,
  section#characters article img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* 确保内容在极端尺寸下可读 */
@media screen and (max-width: 320px) {
  section#hot > div:last-child,
  section#characters > div:last-child {
    grid-template-columns: 1fr;
  }
  
  section#hot article,
  section#characters article {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  section#hot article img,
  section#characters article img {
    width: 100%;
    max-width: 200px;
  }
}

/* 完成 - 妖精网站样式表 v1.0 */