/* ============================================
   看番记录页面样式 - 完全复刻 LoliMeow 博客主题
   ============================================ */

/* --- CSS 变量定义（与 LoliMeow 主题一致） --- */
:root {
  --bs-primary: #8b3dff;
  --bs-primary-rgb: 139,61,255;
  --bs-white: #fff;
  --bs-dark: #0f172a;
  --bs-gray-600: #475569;
  --bs-gray-700: #334155;
  --bs-gray-800: #1e293b;
  --bs-gray-900: #0f172a;
  --bs-hui: #272727bf;
  --bs-body-bg: #fff;
  --bs-body-color: #272727;

  --anime-primary: #8b3dff;
  --anime-primary-light: #9b58ff;
  --anime-primary-dark: #7a20ff;
  --anime-bg: #fff;
  --anime-bg-secondary: #f5f5f7;
  --anime-bg-card: #fff;
  --anime-text: #272727;
  --anime-text-secondary: #475569;
  --anime-text-muted: #94a3b8;
  --anime-border: rgba(0,0,0,0.08);
  --anime-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --anime-shadow-hover: 0 8px 24px rgba(139,61,255,0.15);
  --anime-shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --anime-transition: all 0.3s ease;
  --anime-scrollbar-thumb: #D87CFF;

  --anime-status-watching: #52c41a;
  --anime-status-watched: #1890ff;
  --anime-status-wishlist: #fa8c16;
}

/* --- 暗色模式 --- */
[data-theme="dark"] {
  --bs-white: #0e0e0e;
  --bs-dark: #fff;
  --bs-gray-600: #fff;
  --bs-gray-700: #fff;
  --bs-gray-800: #fff;
  --bs-gray-900: #fff;
  --bs-hui: #fff;
  --bs-body-bg: #0e0e0e;
  --bs-body-color: #fff;

  --anime-bg: #0e0e0e;
  --anime-bg-secondary: #141414;
  --anime-bg-card: #1a1a1a;
  --anime-text: #fff;
  --anime-text-secondary: rgba(255,255,255,0.7);
  --anime-text-muted: rgba(255,255,255,0.5);
  --anime-border: rgba(255,255,255,0.1);
  --anime-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --anime-shadow-hover: 0 8px 24px rgba(139,61,255,0.25);
  --anime-shadow-card: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- 全局基础 --- */
.anime-page {
  font-family: "boxmoe", Microsoft JhengHei, Georgia, Times, serif, Microsoft Yahei, Open Sans, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  overflow-x: hidden;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.anime-page *, .anime-page *::before, .anime-page *::after { box-sizing: border-box; }
.anime-page a { transition: all 300ms ease; text-decoration: none; letter-spacing: 0; }
.anime-page a:link, .anime-page a:visited, .anime-page a:hover, .anime-page a:active { text-decoration: none; }
.anime-page ol, .anime-page ul, .anime-page li { list-style: none; }

/* --- 自定义滚动条（与博客一致） --- */
.anime-page ::-webkit-scrollbar { height: 10px; width: 10px; }
.anime-page ::-webkit-scrollbar-track { border-radius: 5px; background-color: #DFE9EB; }
[data-theme="dark"] .anime-page ::-webkit-scrollbar-track { background-color: #1a1a1a; }
.anime-page ::-webkit-scrollbar-thumb { border-radius: 5px; background-color: #D87CFF; border: 2px solid var(--anime-bg); }
.anime-page ::-webkit-scrollbar-thumb:hover { background-color: #F59DFF; }
.anime-page ::-webkit-scrollbar-thumb:active { background-color: #A34F9B; }

/* ============================================
   背景装饰（与博客一致：低饱和度圆形/长方形 SVG）
   ============================================ */
.body-background {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.body-background::before,
.body-background::after {
  content: '';
  background: url("../img/background.svg") 7% 100px no-repeat;
  width: 100%; height: 100vh;
  position: absolute;
  left: 0; top: 0;
  background-size: contain;
}

.body-background::after {
  -webkit-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  transform: scaleX(-1);
}

[data-theme="dark"] .body-background { opacity: 0.3; }

@media (max-width: 1200px) {
  .body-background { display: none; }
}

/* ============================================
   导航栏（复刻 LoliMeow boxmoe_header）
   ============================================ */
.boxmoe_header .navbar {
  background-color: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 99;
  box-shadow: none;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.boxmoe_header .navbar.scrolled {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: var(--bs-white);
  box-shadow: 0 1px 6px 0 rgba(32,33,36,0.28);
  -webkit-animation: fadeInDown 0.5s ease-in-out;
  animation: fadeInDown 0.5s ease-in-out;
  z-index: 99;
}

@-webkit-keyframes fadeInDown {
  from { opacity: 0; -webkit-transform: translateY(-100%); }
  to { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

.boxmoe_header .navbar-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bs-white);
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.boxmoe_header .navbar.scrolled .navbar-brand {
  color: var(--bs-dark);
}

.boxmoe_header .nav-right-section {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
}

/* 导航按钮（药丸形，与博客一致） */
.nav-btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 5px;
  padding: 0.3em 0.8em;
  font-size: 0.9em;
  color: var(--bs-white);
  background-color: rgba(4,4,4,0.32);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-btn:hover { color: var(--bs-dark); }

.boxmoe_header .navbar.scrolled .nav-btn {
  color: var(--bs-dark);
  background-color: rgba(0,0,0,0.05);
}

[data-theme="dark"] .nav-btn { background-color: rgba(172,240,249,0.85); color: #0e0e0e; }
[data-theme="dark"] .boxmoe_header .navbar.scrolled .nav-btn { background-color: rgba(255,255,255,0.1); color: #fff; }

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: inline-block; }

/* ============================================
   Banner 区域（完全复刻 LoliMeow 主页）
   ============================================ */
.boxmoe_header_banner {
  height: 80vh;
  background: #33333330;
  background-position: 30% 30%;
  position: relative;
  overflow: hidden;
}

.boxmoe_header_banner_img {
  width: 100%;
  height: 100%;
  position: relative;
  -webkit-transform: scale(1.4);
  -ms-transform: scale(1.4);
  transform: scale(1.4);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 1.8s cubic-bezier(0.5,0,0,1);
  transition: all 1.8s cubic-bezier(0.5,0,0,1);
}

/* 顶部渐变遮罩 */
.boxmoe_header_banner_img::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 15%;
  min-height: 60px;
  background: -webkit-linear-gradient(top, var(--bs-white), transparent);
  background: linear-gradient(to bottom, var(--bs-white), transparent);
  user-select: none;
  pointer-events: none;
  z-index: 2;
}

/* 图片暗色叠加层 */
.boxmoe_header_banner_img::after {
  position: absolute;
  width: 100%; height: 100%;
  left: 0; top: 0;
  content: "";
  background: rgba(0,0,0,0.25);
}

.boxmoe_header_banner_img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: 50% 35%;
  object-position: 50% 35%;
  user-select: none;
  pointer-events: none;
}

.boxmoe_header_banner_img.loaded {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

/* Banner 中央文字 */
.boxmoe_header_banner .site-main {
  text-align: center;
  position: absolute;
  left: 50%; top: 50%;
  -webkit-transform: translate(-50%, calc(-50% + 30px));
  -ms-transform: translate(-50%, calc(-50% + 30px));
  transform: translate(-50%, calc(-50% + 30px));
  z-index: 2;
  width: 100%;
  padding: 0 2rem;
  opacity: 0;
  -webkit-transition: all 0.8s cubic-bezier(0.4,0,0.2,1);
  transition: all 0.8s cubic-bezier(0.4,0,0.2,1);
}

.boxmoe_header_banner .site-main.loaded {
  opacity: 1;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.boxmoe_header_banner h1, .boxmoe_header_banner h2 { color: var(--bs-white); }

.boxmoe_header_banner .main-title {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.85);
}

/* 渐变文字效果（与博客一致，兼容 Edge） */
.text-gradient {
  background: -webkit-linear-gradient(left, #cbfdb1, #acbff1, #efa7ec, #ffd6a5, #ffadad, #b5f4e2, #ffd1dc, #c5a3ff, #89cff0, #f0e68c);
  background: linear-gradient(to right, #cbfdb1, #acbff1, #efa7ec, #ffd6a5, #ffadad, #b5f4e2, #ffd1dc, #c5a3ff, #89cff0, #f0e68c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 1000% 100%;
  -webkit-animation: gradient 12s linear infinite;
  animation: gradient 12s linear infinite;
  letter-spacing: 2px;
  font-size: 2rem;
  font-weight: 700;
}

/* Edge 降级：不支持 background-clip: text 时显示紫色 */
@supports not (-webkit-background-clip: text) {
  .text-gradient {
    color: var(--anime-primary);
    background: none;
    -webkit-text-fill-color: initial;
  }
}

@-webkit-keyframes gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ============================================
   SVG 波浪过渡（与博客完全一致）
   ============================================ */
.boxmoe_header_banner_waves {
  width: 100%;
  position: absolute;
  bottom: 0; left: 0;
  overflow: hidden;
  pointer-events: none;
}

.boxmoe_header_banner_waves .waves {
  position: relative;
  width: 100%;
  height: 100px;
  margin-bottom: -7px;
}

.boxmoe_header_banner_waves .parallax > use {
  fill: var(--bs-white);
  -webkit-animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
  -webkit-transition: fill .4s cubic-bezier(0.345,0.045,0.345,1);
  transition: fill .4s cubic-bezier(0.345,0.045,0.345,1);
}

.boxmoe_header_banner_waves .parallax > use:nth-child(1) { -webkit-animation-delay: -2s; animation-delay: -2s; -webkit-animation-duration: 7s; animation-duration: 7s; opacity: 0.7; }
.boxmoe_header_banner_waves .parallax > use:nth-child(2) { -webkit-animation-delay: -3s; animation-delay: -3s; -webkit-animation-duration: 10s; animation-duration: 10s; opacity: 0.5; }
.boxmoe_header_banner_waves .parallax > use:nth-child(3) { -webkit-animation-delay: -4s; animation-delay: -4s; -webkit-animation-duration: 13s; animation-duration: 13s; opacity: 0.3; }
.boxmoe_header_banner_waves .parallax > use:nth-child(4) { -webkit-animation-delay: -5s; animation-delay: -5s; -webkit-animation-duration: 20s; animation-duration: 20s; }

@-webkit-keyframes move-forever {
  0% { -webkit-transform: translate3d(-90px,0,0); transform: translate3d(-90px,0,0); }
  100% { -webkit-transform: translate3d(85px,0,0); transform: translate3d(85px,0,0); }
}
@keyframes move-forever {
  0% { -webkit-transform: translate3d(-90px,0,0); transform: translate3d(-90px,0,0); }
  100% { -webkit-transform: translate3d(85px,0,0); transform: translate3d(85px,0,0); }
}

/* ============================================
   内容区域（与博客一致，左右留白）
   ============================================ */
.anime-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 面包屑导航（与博客一致） */
.breadcrumb-head {
  position: relative;
  margin-top: 2.5rem !important;
  margin-bottom: 1.5rem;
}

.breadcrumb-head h2 {
  font-size: 30px;
  z-index: 1;
  text-transform: uppercase;
  display: block;
  width: 100%;
  font-weight: 500;
  color: var(--anime-text);
}

.breadcrumb-head span {
  font-weight: 600;
  color: var(--bs-dark);
  text-transform: uppercase;
  padding-bottom: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  position: relative;
  padding-left: 70px;
  display: block;
}

.breadcrumb-head span::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 50px;
  height: 1px;
  background: var(--bs-dark);
}

.breadcrumb-head span i { margin-right: 5px; }

/* ============================================
   统计栏
   ============================================ */
.profile-stats-bar {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  margin-bottom: 1.5rem;
  background: var(--anime-bg-card);
  border-radius: 12px;
  border: 2px solid var(--bs-dark);
  box-shadow: 3px 3px 0 0 var(--bs-dark);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

[data-theme="dark"] .profile-stats-bar {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 3px 3px 0 0 rgba(255,255,255,0.1);
}

.stat-item {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.stat-item:hover { -webkit-transform: translateY(-2px); transform: translateY(-2px); }

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--anime-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--anime-text-muted);
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--anime-border);
}

/* ============================================
   标签页导航
   ============================================ */
.anime-tabs {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--anime-border);
}

.anime-tab {
  position: relative;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--anime-text-muted);
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  background: none;
  border: none;
  font-family: inherit;
}

.anime-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--anime-primary);
  border-radius: 2px 2px 0 0;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

.anime-tab:hover { color: var(--anime-primary); }

.anime-tab.active {
  color: var(--anime-primary);
  font-weight: 700;
}

.anime-tab.active::after { width: 60%; }

.anime-tab i { margin-right: 4px; }

/* ============================================
   番剧卡片网格
   ============================================ */
.anime-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding-bottom: 2rem;
}

/* --- 番剧卡片 --- */
.anime-card {
  background-color: var(--anime-bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--anime-shadow-card);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  -webkit-animation: animeFadeInUp 0.5s ease forwards;
  animation: animeFadeInUp 0.5s ease forwards;
  opacity: 0;
  border: 2px solid transparent;
}

.anime-card:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  box-shadow: var(--anime-shadow-hover);
  border-color: var(--bs-dark);
}

[data-theme="dark"] .anime-card:hover {
  border-color: rgba(255,255,255,0.2);
}

.anime-card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.anime-card-cover img {
  width: 100%; height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}

.anime-card:hover .anime-card-cover img { -webkit-transform: scale(1.05); transform: scale(1.05); }

/* 评分徽章 */
.anime-card-rating {
  position: absolute;
  top: 8px; right: 8px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--anime-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
}

/* 状态标签 */
.anime-card-status {
  position: absolute;
  top: 8px; left: 8px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.anime-card-status.watching { background: var(--anime-status-watching); }
.anime-card-status.watched { background: var(--anime-status-watched); }
.anime-card-status.wishlist { background: var(--anime-status-wishlist); }

/* 卡片信息区 */
.anime-card-info { padding: 12px; }

.anime-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--anime-text);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 进度条 */
.anime-card-progress {
  width: 100%; height: 4px;
  background: var(--anime-border);
  border-radius: 2px;
  overflow: hidden;
}

.anime-card-progress-fill {
  height: 100%;
  background: var(--anime-primary);
  border-radius: 2px;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
}

.anime-card-progress-text {
  font-size: 0.7rem;
  color: var(--anime-text-muted);
  margin-top: 4px;
  text-align: right;
}

/* ============================================
   详情弹窗
   ============================================ */
.anime-modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

[data-theme="dark"] .anime-modal-overlay { background: rgba(0,0,0,0.7); }

.anime-modal-overlay.active { opacity: 1; visibility: visible; }

.anime-modal {
  background-color: var(--anime-bg-card);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  -webkit-transform: translateY(20px);
  -ms-transform: translateY(20px);
  transform: translateY(20px);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.anime-modal-overlay.active .anime-modal {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

.anime-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
}

.anime-modal-close:hover { background: rgba(0,0,0,0.7); -webkit-transform: scale(1.1); transform: scale(1.1); }
[data-theme="dark"] .anime-modal-close { background: rgba(255,255,255,0.15); }
[data-theme="dark"] .anime-modal-close:hover { background: rgba(255,255,255,0.25); }

.anime-modal-cover {
  width: 100%;
  max-height: 300px;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.anime-modal-info { padding: 24px; }

.anime-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--anime-text);
  margin: 0 0 16px;
}

.anime-modal-detail {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.anime-modal-detail-item {
  display: -webkit-flex;
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.anime-modal-detail-label {
  color: var(--anime-text-muted);
  min-width: 60px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.anime-modal-detail-value {
  color: var(--anime-text);
  -webkit-flex: 1;
  flex: 1;
}

.anime-modal-summary {
  font-size: 0.85rem;
  color: var(--anime-text-secondary);
  line-height: 1.8;
  margin: 0 0 20px;
  padding: 12px;
  background: var(--anime-bg-secondary);
  border-radius: 8px;
}

[data-theme="dark"] .anime-modal-summary { background: rgba(255,255,255,0.05); }

/* B站链接按钮（博客风格药丸按钮） */
.anime-modal-link {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--anime-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.anime-modal-link:hover {
  background: var(--anime-primary-dark);
  box-shadow: 0 4px 12px rgba(139,61,255,0.4);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

/* ============================================
   加载动画
   ============================================ */
.anime-loading {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 60px 0;
}

.anime-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--anime-border);
  border-top-color: var(--anime-primary);
  border-radius: 50%;
  -webkit-animation: animeSpin 0.8s linear infinite;
  animation: animeSpin 0.8s linear infinite;
}

/* ============================================
   刷新按钮
   ============================================ */
.anime-refresh-btn {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--anime-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(139,61,255,0.4);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 90;
}

.anime-refresh-btn:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(139,61,255,0.5);
}

.anime-refresh-btn.loading {
  -webkit-animation: animeSpin 1s linear infinite;
  animation: animeSpin 1s linear infinite;
  pointer-events: none;
}

/* ============================================
   空状态
   ============================================ */
.anime-empty {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--anime-text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.anime-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

/* ============================================
   页脚
   ============================================ */
.anime-footer {
  text-align: center;
  padding: 30px 24px;
  color: var(--anime-text-muted);
  font-size: 0.8rem;
  background: var(--anime-bg-secondary);
  border-top: 1px solid var(--anime-border);
}

.anime-footer a {
  color: var(--anime-primary);
  text-decoration: none;
}

.anime-footer a:hover { text-decoration: underline; }

/* ============================================
   动画关键帧
   ============================================ */
@-webkit-keyframes animeFadeInUp {
  from { opacity: 0; -webkit-transform: translateY(20px); }
  to { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes animeFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* 卡片入场交错延迟 */
.anime-card:nth-child(1) { -webkit-animation-delay: 0.02s; animation-delay: 0.02s; }
.anime-card:nth-child(2) { -webkit-animation-delay: 0.04s; animation-delay: 0.04s; }
.anime-card:nth-child(3) { -webkit-animation-delay: 0.06s; animation-delay: 0.06s; }
.anime-card:nth-child(4) { -webkit-animation-delay: 0.08s; animation-delay: 0.08s; }
.anime-card:nth-child(5) { -webkit-animation-delay: 0.10s; animation-delay: 0.10s; }
.anime-card:nth-child(6) { -webkit-animation-delay: 0.12s; animation-delay: 0.12s; }
.anime-card:nth-child(7) { -webkit-animation-delay: 0.14s; animation-delay: 0.14s; }
.anime-card:nth-child(8) { -webkit-animation-delay: 0.16s; animation-delay: 0.16s; }
.anime-card:nth-child(9) { -webkit-animation-delay: 0.18s; animation-delay: 0.18s; }
.anime-card:nth-child(10) { -webkit-animation-delay: 0.20s; animation-delay: 0.20s; }
.anime-card:nth-child(n+11) { -webkit-animation-delay: 0.22s; animation-delay: 0.22s; }

/* ============================================
   响应式布局
   ============================================ */
@media (max-width: 768px) {
  .boxmoe_header_banner { height: 60vh; }
  .boxmoe_header .navbar { padding: 0 1rem; }
  .text-gradient { font-size: 1.5rem; }
  .breadcrumb-head h2 { font-size: 22px; }
  .anime-container { padding: 0 1rem; }

  .profile-stats-bar {
    gap: 16px;
    padding: 16px;
  }

  .stat-number { font-size: 1.4rem; }

  .anime-tabs { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .anime-tab { padding: 10px 16px; font-size: 0.8rem; }

  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .anime-modal {
    max-height: 90vh;
    border-radius: 12px;
  }

  .anime-modal-info { padding: 16px; }
  .anime-modal-title { font-size: 1.1rem; }

  .anime-refresh-btn {
    bottom: 20px; right: 20px;
    width: 42px; height: 42px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1025px) {
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* ============================================
   弹幕效果（仿 B站弹幕风格）
   ============================================ */
.danmaku-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 2px 10px;
  border-radius: 20px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  -webkit-animation: danmakuScroll linear forwards;
  animation: danmakuScroll linear forwards;
  pointer-events: none;
  will-change: transform;
}

/* 弹幕颜色变体 */
.danmaku-item.color-1 { background: rgba(139,61,255,0.55); }
.danmaku-item.color-2 { background: rgba(239,68,68,0.55); }
.danmaku-item.color-3 { background: rgba(59,130,246,0.55); }
.danmaku-item.color-4 { background: rgba(16,185,129,0.55); }
.danmaku-item.color-5 { background: rgba(245,158,11,0.55); }
.danmaku-item.color-6 { background: rgba(236,72,153,0.55); }
.danmaku-item.color-7 { background: rgba(20,184,166,0.55); }
.danmaku-item.color-8 { background: rgba(99,102,241,0.55); }

@-webkit-keyframes danmakuScroll {
  from { -webkit-transform: translateX(100vw); transform: translateX(100vw); }
  to { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
}
@keyframes danmakuScroll {
  from { -webkit-transform: translateX(100vw); transform: translateX(100vw); }
  to { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
}

/* 弹幕开关按钮 */
.danmaku-toggle {
  position: fixed;
  bottom: 90px; right: 30px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--anime-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(139,61,255,0.4);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 90;
}

.danmaku-toggle:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(139,61,255,0.5);
}

.danmaku-toggle.off {
  background: var(--anime-text-muted);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.danmaku-toggle.off:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .danmaku-toggle {
    bottom: 75px; right: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .danmaku-item { font-size: 0.75rem; }
}

/* ============================================
   暗色模式特殊调整
   ============================================ */
[data-theme="dark"] .anime-card { border: 1px solid var(--anime-border); }
[data-theme="dark"] .anime-modal { border: 1px solid var(--anime-border); }
[data-theme="dark"] .anime-tabs { border-bottom-color: var(--anime-border); }
[data-theme="dark"] .anime-card-progress { background: rgba(255,255,255,0.1); }

/* 暗色模式下波浪颜色 */
[data-theme="dark"] .boxmoe_header_banner_waves .parallax > use { fill: #0e0e0e; }

/* 暗色模式下 banner 顶部渐变 */
[data-theme="dark"] .boxmoe_header_banner_img::before {
  background: -webkit-linear-gradient(top, #0e0e0e, transparent);
  background: linear-gradient(to bottom, #0e0e0e, transparent);
}
