/* ============================================================
   星文阁 STARLIT - 现代二次元轻小说阅读平台 - 全局样式
   配色：浅紫蓝渐变 + 白色 + 深紫文字 + 粉紫点缀
   字体：Alibaba PuHuiTi
   ============================================================ */

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Alibaba PuHuiTi", "Alibaba PuHuiTi 2.0", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #4A4A6A;
  background: #F7F8FF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul, ol { list-style: none; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #2D2B55;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色 - 紫蓝色系 */
  --color-primary: #6366F1;
  --primary-50: #EEF2FF;
  --primary-100: #E0E7FF;
  --primary-200: #C7D2FE;
  --primary-300: #A5B4FC;
  --primary-400: #818CF8;
  --primary-500: #6366F1;
  --primary-600: #4F46E5;
  --primary-700: #4338CA;
  --primary-800: #3730A3;
  --primary-900: #312E81;

  /* 点缀色 - 粉紫 */
  --color-accent: #EC4899;
  --accent-50: #FDF2F8;
  --accent-100: #FCE7F3;
  --accent-200: #FBCFE8;
  --accent-300: #F9A8D4;
  --accent-400: #F472B6;
  --accent-500: #EC4899;
  --accent-600: #DB2777;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #818CF8 0%, #A78BFA 50%, #C084FC 100%);
  --gradient-accent: linear-gradient(135deg, #F472B6 0%, #A78BFA 100%);
  --gradient-soft: linear-gradient(180deg, #EEF2FF 0%, #F5F3FF 100%);
  --gradient-hero: linear-gradient(120deg, #6366F1 0%, #8B5CF6 35%, #D946EF 75%, #EC4899 100%);
  --gradient-card: linear-gradient(145deg, #C7D2FE 0%, #E9D5FF 100%);

  /* 文字色 */
  --text-title: #2D2B55;
  --text-primary: #4A4A6A;
  --text-secondary: #6B6B8B;
  --text-tertiary: #9999B5;
  --text-muted: #C4C4D8;
  --text-white: #FFFFFF;

  /* 背景色 */
  --bg-white: #FFFFFF;
  --bg-soft: #F7F8FF;
  --bg-lavender: #EEF2FF;
  --bg-purple-50: #FAF5FF;
  --bg-card: #FFFFFF;
  --bg-hover: #F5F3FF;

  /* 边框 */
  --border-color: #E8E8F5;
  --border-light: #F1F1FA;
  --border-primary: rgba(99, 102, 241, 0.2);

  /* 阴影 - 轻柔二次元风 */
  --shadow-sm: 0 1px 3px rgba(99, 102, 241, 0.06);
  --shadow-card: 0 4px 16px rgba(99, 102, 241, 0.08);
  --shadow-hover: 0 12px 32px rgba(99, 102, 241, 0.15);
  --shadow-lg: 0 20px 48px rgba(99, 102, 241, 0.18);
  --shadow-purple: 0 8px 24px rgba(139, 92, 246, 0.25);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 999px;

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* 最大宽度 */
  --container-max: 1200px;
}

/* ---------- 通用工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }

.divider { height: 1px; background: var(--border-color); }

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

.gradient-text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- 顶部条 ---------- */
.top-bar {
  background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 50%, #DB2777 100%);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  height: 34px;
  line-height: 34px;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
}

.top-bar a:hover {
  color: #fff;
}

.top-bar-divider {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.2);
}

/* ---------- 头部 ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg { width: 100%; height: 100%; }

.brand-name {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* 搜索框 */
.header-search {
  flex: 1;
  max-width: 420px;
}

.search-box {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 8px 0 20px;
  background: #F5F5FF;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-primary);
  padding: 0 8px;
}

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

.search-box button {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.search-box button:hover {
  background: var(--primary-600);
  transform: scale(1.05);
}

.search-box button svg { width: 15px; height: 15px; }

/* 头部动作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-soft);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.icon-btn:hover {
  color: var(--color-primary);
  background: var(--primary-50);
}

.icon-btn svg { width: 18px; height: 18px; }

.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-btn:hover {
  background: var(--primary-50);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.user-btn .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover { background: var(--primary-50); color: var(--color-primary); }
.mobile-menu-btn svg { width: 18px; height: 18px; }

/* ---------- 主导航 ---------- */
.primary-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu a {
  display: block;
  padding: 0 18px;
  height: 54px;
  line-height: 54px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-menu a.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-vip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.nav-vip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* ---------- 章节标题区 ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-title);
}

.section-title .icon {
  width: 4px;
  height: 22px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title .accent-label {
  background: var(--accent-50);
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.section-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.section-more:hover {
  color: var(--color-primary);
  gap: 8px;
}

.section-more svg { width: 12px; height: 12px; }

/* ---------- 作品卡片 ---------- */
.book-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-200);
}

.book-cover-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gradient-card);
}

.book-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: #fff;
  position: relative;
  transition: transform var(--transition-slow);
}

.book-card:hover .book-cover {
  transform: scale(1.05);
}

.book-cover-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.book-cover-author {
  font-size: 11px;
  opacity: 0.8;
}

/* 角标 */
.book-tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tag-hot { background: linear-gradient(135deg, #F97316, #EF4444); }
.tag-new { background: linear-gradient(135deg, #10B981, #059669); }
.tag-vip { background: linear-gradient(135deg, #F59E0B, #D97706); }
.tag-finish { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }

.book-score {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: #FBBF24;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.book-score svg { width: 11px; height: 11px; fill: #FBBF24; }

.book-update {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  color: #fff;
  font-size: 11px;
  text-align: center;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-info {
  padding: 12px 14px 14px;
}

.book-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.book-author {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.book-tag {
  padding: 2px 7px;
  font-size: 10px;
  color: var(--primary-600);
  background: var(--primary-50);
  border-radius: 4px;
  font-weight: 500;
}

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.book-meta .views {
  display: flex;
  align-items: center;
  gap: 3px;
}

.book-meta .views svg { width: 12px; height: 12px; }

.book-status {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.status-ongoing {
  color: #10B981;
  background: #D1FAE5;
}

.status-finished {
  color: #8B5CF6;
  background: #EDE9FE;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  border-radius: var(--radius-full);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-accent:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.btn-outline {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--primary-200);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--primary-50);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--primary-50);
  color: var(--color-primary);
}

.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-tertiary); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--text-muted); font-size: 11px; }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
}

.pagination a {
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

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

.pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination .dots { color: var(--text-muted); background: transparent; border: none; }

/* ---------- 侧栏组件 ---------- */
.widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.widget-title .icon {
  width: 3px;
  height: 16px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ---------- 标签云 ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.tag-chip:hover {
  background: var(--primary-50);
  color: var(--color-primary);
}

.tag-chip.active {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-base);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--primary-600);
  transform: translateY(-4px);
}

.back-top svg { width: 16px; height: 16px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #1F1F3A;
  color: rgba(255,255,255,0.6);
  margin-top: 60px;
}

.footer-upper {
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-brand .brand-name {
  font-size: 24px;
}

.footer-brand .brand-sub {
  color: rgba(255,255,255,0.4);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-socials svg { width: 15px; height: 15px; }

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary-300);
  padding-left: 4px;
}

.footer-lower {
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-lower-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a { color: rgba(255,255,255,0.4); }
.footer-links a:hover { color: var(--primary-300); }

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.float-anim { animation: floatY 4s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pulse-anim { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--primary-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-400); }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 28px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
  .container { max-width: 720px; padding: 0 16px; }
  .brand-sub { display: none; }
  .header-search { flex: 1; max-width: none; }
  .user-btn .name { display: none; }
  .nav-vip { padding: 5px 12px; font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  body { font-size: 13px; }
  .top-bar { display: none; }
  .header-inner { padding: 12px 0; gap: 12px; }
  .brand-name { font-size: 18px; }
  .brand-icon { width: 36px; height: 36px; }
  .header-search { display: none; }
  .header-actions .icon-btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-menu a { padding: 0 14px; font-size: 13px; height: 48px; line-height: 48px; }
  .back-top { right: 16px; bottom: 16px; width: 38px; height: 38px; }
  .footer-upper { padding: 40px 0 28px; }
  .footer-lower-inner { flex-direction: column; text-align: center; gap: 8px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .brand-icon { width: 32px; height: 32px; }
}
