/* ==========================================
   樱花影视 · 清新浪漫影视平台
   Style.css · 完整版本
   ========================================== */

/* ---------- 基础变量与重置 ---------- */
:root {
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-lighter: #c4b5fd;
  --primary-dark: #6d28d9;
  --bg-deep: #0a0a18;
  --bg-body: #0f0f22;
  --bg-card: rgba(26, 26, 53, 0.7);
  --bg-card-solid: #1a1a35;
  --bg-sidebar: rgba(20, 20, 46, 0.85);
  --bg-article: rgba(22, 22, 48, 0.8);
  --border-color: rgba(45, 45, 85, 0.6);
  --border-hover: rgba(139, 92, 246, 0.7);
  --text-main: #e0e0f0;
  --text-soft: #d0d0e8;
  --text-muted: #8888aa;
  --text-bright: #f0f0ff;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.25);
  --glass-blur: blur(16px);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  background: linear-gradient(145deg, var(--bg-deep) 0%, #14142a 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 80% 90%, rgba(167, 139, 250, 0.05) 0%, transparent 35%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-dark), var(--primary));
  border-radius: 10px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
}

/* ---------- 通用元素 ---------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
  background: #2a2a4a;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-bright);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, #f0f0ff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin: 2.5rem 0 1.2rem;
  border-left: 6px solid var(--primary);
  padding-left: 1rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 1rem;
  bottom: -6px;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

h3 {
  font-size: 1.15rem;
  color: var(--text-bright);
  margin: 0.8rem 0;
}

p {
  margin-bottom: 0.5rem;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* ---------- 容器 ---------- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ---------- 头部导航 ---------- */
.site-header {
  background: rgba(13, 13, 32, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.logo h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 1px;
  color: var(--text-bright);
  -webkit-text-fill-color: initial;
  background: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.logo span {
  color: var(--primary-light);
  font-weight: 700;
}

.logo h1 .emoji {
  animation: float 3s ease-in-out infinite;
}

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

.main-nav ul {
  display: flex;
  gap: clamp(0.6rem, 1.5vw, 1.8rem);
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  color: var(--text-soft);
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 2px;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.main-nav a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.main-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.main-nav a.active {
  color: var(--primary-light);
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(1);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 2px;
}

/* ---------- 横幅 ---------- */
.banner-section {
  background: linear-gradient(135deg, rgba(28, 28, 58, 0.9), rgba(36, 31, 74, 0.9));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  margin: 1.8rem 0;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease both;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

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

.banner-section h2 {
  margin-top: 0;
  border-left: none;
  padding-left: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  background: linear-gradient(135deg, #f0f0ff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-section p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-soft);
  max-width: 800px;
}

.banner-section img {
  border-radius: var(--radius-md);
  margin-top: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.banner-section img:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

/* ---------- 卡片网格 ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 1.5rem 0;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(0.8rem, 1.5vw, 1.2rem);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background 0.3s ease;
  animation: cardIn 0.6s ease both;
  animation-delay: calc(var(--card-index, 0) * 0.05s);
  position: relative;
  overflow: hidden;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

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

.card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  background: rgba(30, 30, 60, 0.85);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: #2a2a4a;
  transition: transform 0.3s ease;
}

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

.card h3 {
  font-size: 1.05rem;
  margin-top: 0.8rem;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--primary-light);
}

.card p {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: 0.15rem 0;
  line-height: 1.5;
}

.badge {
  background: rgba(46, 46, 90, 0.8);
  color: var(--primary-lighter);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  display: inline-block;
  margin-top: 0.3rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.card:hover .badge {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

/* ---------- 按钮 ---------- */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn-gradient::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 ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  text-decoration: none;
  color: #fff;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

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

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

.btn-outline {
  border: 1px solid var(--primary-light);
  color: var(--primary-light);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  background: transparent;
  font-weight: 500;
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--bg-deep);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

/* ---------- 主布局 ---------- */
.layout-main {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 2.5rem 0;
  align-items: flex-start;
}

.content-area {
  flex: 3;
  min-width: 0;
}

.sidebar {
  flex: 1;
  background: var(--bg-sidebar);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  height: fit-content;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.sidebar:hover {
  box-shadow: var(--shadow-md);
}

.sidebar h3 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar ul {
  list-style: none;
  margin-top: 1rem;
}

.sidebar li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-color);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.sidebar li:hover {
  padding-left: 0.5rem;
  color: var(--text-bright);
}

.sidebar .rank-num {
  color: var(--primary-light);
  font-weight: bold;
  margin-right: 0.8rem;
  font-size: 1rem;
}

.sidebar .stat {
  font-size: 1.1rem;
  color: var(--text-bright);
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar small {
  color: var(--text-muted);
}

/* ---------- 评论 ---------- */
.comment-item {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  animation: cardIn 0.5s ease both;
}

.comment-item:hover {
  border-color: var(--border-hover);
  background: rgba(30, 30, 60, 0.8);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.comment-user {
  color: var(--primary-light);
  font-weight: bold;
  font-size: 0.95rem;
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.8rem;
}

.comment-text {
  margin-top: 0.4rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

/* ---------- 页脚 ---------- */
.footer {
  background: rgba(10, 10, 24, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  margin-top: 4rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer a {
  color: var(--primary-light);
  margin: 0 0.6rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer .copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
}

.footer strong {
  color: var(--text-bright);
  margin-right: 0.5rem;
}

/* ---------- 推荐网格 ---------- */
.flex-recommend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 1.5rem 0;
}

.flex-recommend .card {
  animation-delay: calc(var(--card-index, 0) * 0.08s);
}

/* ---------- 文章块 ---------- */
.article-block {
  background: var(--bg-article);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.article-block:hover {
  border-color: var(--border-hover);
}

.article-block p {
  margin: 0.8rem 0;
  color: var(--text-main);
  line-height: 1.9;
}

.article-block strong {
  color: var(--primary-light);
}

/* ---------- 角色卡片 ---------- */
.character-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  animation: cardIn 0.5s ease both;
}

.character-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  background: rgba(30, 30, 60, 0.85);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.character-card img {
  border-radius: 50%;
  width: 110px;
  height: 110px;
  object-fit: cover;
  margin-bottom: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  border: 3px solid var(--border-color);
  transition: all 0.3s ease;
}

.character-card:hover img {
  border-color: var(--primary);
  transform: scale(1.05);
}

.character-card h3 {
  margin: 0.5rem 0 0.3rem;
}

.character-card p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ---------- 标签 ---------- */
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  background: rgba(34, 34, 74, 0.8);
  color: var(--primary-lighter);
  padding: 0.2rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
}

.tag:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- 平台介绍 ---------- */
.platform-section {
  background: rgba(20, 20, 46, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin: 2rem 0;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.platform-section:hover {
  border-color: var(--border-hover);
}

.platform-section p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-soft);
  max-width: 900px;
}

/* ---------- APP下载 ---------- */
.app-download {
  text-align: center;
  padding: 2rem 0;
}

.app-download .btn-group {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.app-download img {
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  max-width: 100%;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s ease;
}

.app-download img:hover {
  transform: scale(1.02);
}

/* ---------- 动画 ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* 滚动渐入 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式滚动动画 - 使用 IntersectionObserver 由 JS 控制 */
.card, .comment-item, .character-card, .article-block {
  animation: cardIn 0.6s ease both;
  animation-delay: calc(var(--card-index, 0) * 0.05s);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .layout-main {
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .layout-main {
    flex-direction: column;
  }
  
  .main-nav ul {
    gap: 0.8rem;
  }
  
  .main-nav a {
    font-size: 0.9rem;
  }
  
  .sidebar {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
  
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .main-nav ul {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .logo h1 {
    font-size: 1.6rem;
  }
  
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
  }
  
  .card {
    padding: 0.8rem;
  }
  
  .card h3 {
    font-size: 0.95rem;
  }
  
  .card p {
    font-size: 0.8rem;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
  }
  
  .character-card img {
    width: 90px;
    height: 90px;
  }
  
  .btn-gradient, .btn-outline {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer a {
    margin: 0.3rem;
    display: inline-block;
  }
}

@media (max-width: 400px) {
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
  }
  
  .card {
    padding: 0.6rem;
    border-radius: var(--radius-sm);
  }
  
  .card h3 {
    font-size: 0.85rem;
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
  
  .comment-item {
    padding: 0.8rem;
  }
}

/* ---------- 玻璃效果增强 ---------- */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- 深色模式优化 ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-deep: #0a0a18;
    --bg-body: #0f0f22;
  }
  
  .card, .comment-item, .character-card {
    background: rgba(26, 26, 53, 0.8);
  }
}

/* ---------- 加载动画 ---------- */
.loading-placeholder {
  background: linear-gradient(90deg, #2a2a4a 25%, #3a3a5a 50%, #2a2a4a 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

/* ---------- 细节优化 ---------- */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

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

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}