/* ==========================================
   原神 Boss 攻略网站 - 核心样式表
   风格：亮色 (Light Mode)、液态玻璃 (Liquid Glass)、无渐变 (No Gradients)
   ========================================== */

/* 引入 Google 字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- 设计变量 (Tokens) --- */
:root {
  /* 基础色彩 */
  --bg-main: #f3f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-modal: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(255, 255, 255, 0.85);
  --border-glass-hover: rgba(255, 255, 255, 0.95);
  
  /* 字体颜色 */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  /* 功能色彩 */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.1);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  
  /* 元素色彩 (亮色温和版 - 无渐变) */
  --color-anemo: #00bfa5;
  --bg-anemo: rgba(0, 191, 165, 0.1);
  
  --color-geo: #f59e0b;
  --bg-geo: rgba(245, 158, 11, 0.1);
  
  --color-electro: #8b5cf6;
  --bg-electro: rgba(139, 92, 246, 0.1);
  
  --color-dendro: #10b981;
  --bg-dendro: rgba(16, 185, 129, 0.1);
  
  --color-hydro: #06b6d4;
  --bg-hydro: rgba(6, 182, 212, 0.1);
  
  --color-pyro: #f43f5e;
  --bg-pyro: rgba(244, 63, 94, 0.1);
  
  --color-cryo: #0ea5e9;
  --bg-cryo: rgba(14, 165, 233, 0.1);
  
  /* 阴影效果 */
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-liquid: 0 24px 48px -12px rgba(31, 38, 135, 0.08), inset 0 2px 4px 0 rgba(255, 255, 255, 0.9);
  --shadow-liquid-hover: 0 32px 64px -16px rgba(31, 38, 135, 0.15), inset 0 2px 4px 0 rgba(255, 255, 255, 0.95);
  
  /* 其他 */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  
  /* 占位卡片专属变量 */
  --border-placeholder: rgba(0, 0, 0, 0.08);
  --bg-placeholder: rgba(0, 0, 0, 0.015);

  /* 嵌套卡片背景 */
  --bg-card-nested: #ffffff;
}

/* --- 深色模式配色 (Dark Mode) --- */
:root[data-theme="dark"] {
  /* 基础色彩 */
  --bg-main: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-modal: rgba(15, 23, 42, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  
  /* 字体颜色 */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-light: #ffffff;
  
  /* 功能色彩 */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);

  /* 嵌套卡片背景 (暗色半透明玻璃叠层) */
  --bg-card-nested: rgba(255, 255, 255, 0.05);
  
  /* 阴影效果 */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-liquid: 0 24px 48px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  --shadow-liquid-hover: 0 32px 64px -16px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  
  /* 占位卡片专属变量 - 深色模式 */
  --border-placeholder: rgba(255, 255, 255, 0.15);
  --bg-placeholder: rgba(255, 255, 255, 0.02);
}

/* 深色模式特定组件背景与边框覆盖 */
[data-theme="dark"] .search-wrapper {
  background-color: rgba(15, 23, 42, 0.85);
}
[data-theme="dark"] .modal-left {
  background-color: rgba(15, 23, 42, 0.45);
  border-right-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .modal-boss-art {
  background-color: rgba(15, 23, 42, 0.55);
}
[data-theme="dark"] .modal-right {
  background-color: rgba(15, 23, 42, 0.25);
}
[data-theme="dark"] .modal-tabs {
  background-color: rgba(15, 23, 42, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .modal-left::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

/* --- 重置与全局样式 --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  padding: 0;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* 隐藏滚动条但保留功能 */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-main);
}
body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-main);
}
body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* --- 页面网格与版心 --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 头部导航栏 --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-tag {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links li.active a {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.theme-toggle-btn {
  background: var(--primary-light);
  border: 1px solid var(--border-glass);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  padding: 0;
  outline: none;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.theme-toggle-btn i {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover i {
  transform: rotate(30deg) scale(1.1);
}

/* --- 首页图标按钮样式微调 (使其与主题切换按钮在尺寸和形状上高度一致) --- */
#linkHome {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.nav-links li.active #linkHome {
  border-color: var(--border-glass);
}

#linkHome:hover {
  transform: scale(1.05);
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* --- 英雄横幅板块 (Hero Section) --- */
.hero-section {
  padding: 30px 0 20px 0;
  text-align: center;
}

.hero-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-liquid);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  position: relative;
  overflow: hidden;
}

/* 模拟液态气泡装饰 */
.bubble-decoration {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(79, 70, 229, 0.04);
  pointer-events: none;
  z-index: 0;
}

.bubble-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -50px;
}

.bubble-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 400;
}

/* 搜索框组件 */
.search-wrapper {
  background-color: rgba(255, 255, 255, 0.85); /* 提升液态玻璃质感 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 24px; /* 调整内边距，使右侧按钮和边缘等距 */
  transition: var(--transition);
  margin: 0 auto;
  max-width: 540px;
}

.search-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), var(--shadow-md);
}

.search-icon {
  color: var(--text-muted);
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0; /* 防止图标被压缩 */
}

.search-input {
  border: none;
  outline: none;
  font-size: 16px;
  flex-grow: 1; /* 占据剩余全部空间 */
  min-width: 0; /* 允许输入框缩窄，触发文本省略/截断，保护右侧按钮不被挤压 */
  color: var(--text-primary);
  background: transparent;
}

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

.search-btn {
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-title);
  white-space: nowrap; /* 绝对禁止按钮文字折行 */
  flex-shrink: 0; /* 绝对禁止按钮被挤压变形 */
}

.search-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.filter-toggle-btn {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.filter-toggle-btn:hover, .filter-toggle-btn.active {
  background-color: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.3);
}

/* --- 过滤器板块 (Filter Section) --- */
.filter-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.4s ease;
}

.filter-section.active {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 40px;
}

.filter-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-liquid);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 70px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background-color: var(--bg-card-nested);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.2);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

/* 元素特定过滤器颜色 */
.filter-btn.el-btn:hover {
  border-color: var(--el-color);
  color: var(--el-color);
  background-color: var(--el-bg);
}
.filter-btn.el-btn.active {
  background-color: var(--el-color) !important;
  border-color: var(--el-color) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 10px var(--el-bg);
}

/* --- Boss 网格板块 (Boss Grid Section) --- */
.boss-grid-section {
  margin-bottom: 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.04);
  padding: 2px 10px;
  border-radius: 20px;
}

.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* --- Boss 卡片组件 --- */
.boss-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-liquid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer; /* 标识整个卡片均可点击 */
}

.boss-card:hover {
  transform: scale(1.02) translateY(-6px);
  box-shadow: var(--shadow-liquid-hover);
  border-color: var(--el-color); /* 悬浮时边框变更为该 Boss 的元素色彩 */
}

/* 卡片头部插画区域 */
.boss-card-image-container {
  height: 180px;
  position: relative;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 水滴样式的占位图设计，带有对应元素背景色 */
.boss-card-bg-shape {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; /* 液态水滴不规则圆 */
  background-color: var(--el-bg);
  opacity: 0.8;
  z-index: 1;
  transition: var(--transition);
  animation: liquidBubble 8s ease-in-out infinite alternate;
}

.boss-card:hover .boss-card-bg-shape {
  border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  transform: scale(1.1);
}

@keyframes liquidBubble {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%; }
}

.boss-card-avatar {
  font-size: 64px;
  color: var(--el-color);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.boss-card:hover .boss-card-avatar {
  transform: scale(1.1) rotate(5deg);
}

/* 标签角标 */
.boss-type-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #3b82f6; /* 周本 */
}

.boss-type-badge.normal {
  background-color: #10b981; /* 世界 */
}

.boss-element-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--text-light);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--el-color);
  font-size: 14px;
}

/* 卡片内容区域 */
.boss-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.boss-card-region {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.boss-card-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.boss-card-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.boss-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 66px;
}

/* 难度星级 */
.boss-card-difficulty {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: auto;
  margin-bottom: 16px;
}

.boss-card-difficulty span {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.boss-card-difficulty i {
  color: #fbbf24;
  font-size: 12px;
}

/* 操作按钮 */
.boss-card-btn {
  width: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* 空网格提示 */
.empty-grid-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-liquid);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

.empty-grid-msg i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-grid-msg h3 {
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 8px;
}

/* --- 沉浸式详情模态框 (Detail Modal) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.3); /* 遮罩半透明 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 1100px;
  height: 85vh;
  background-color: var(--bg-modal);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 32px 64px -16px rgba(15, 23, 42, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

/* 模态框关闭按钮 */
.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-card-nested);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.modal-close-btn:hover {
  background-color: var(--danger-light);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg);
}

/* 模态框左侧：Boss 形象与基础信息 */
.modal-left {
  width: 35%;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.4);
  overflow-y: auto;
}

.modal-left::-webkit-scrollbar {
  width: 6px;
}
.modal-left::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.modal-boss-art {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.modal-boss-bg-shape {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50% 40% 60% 50% / 40% 60% 50% 60%;
  background-color: var(--el-bg);
  z-index: 1;
}

.modal-boss-icon {
  font-size: 80px;
  color: var(--el-color);
  position: relative;
  z-index: 2;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
}

.modal-boss-region {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-boss-name {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal-boss-title {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.modal-boss-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Boss 属性与弱点卡片 */
.stat-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item {
  background-color: var(--bg-card-nested);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.stat-item-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-item-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.weakness-card {
  background-color: var(--bg-card-nested);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.weakness-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.weakness-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.summary-card {
  background-color: var(--bg-card-nested);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
}

.summary-title {
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b; /* Orange/Yellow theme for bulb icon */
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 600;
}

/* 模态框右侧：攻略导航与内容页 */
.modal-right {
  width: 65%;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.2);
}

/* 内部 Tab 栏 */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0 40px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.3);
}

.modal-tab-btn {
  background: none;
  border: none;
  padding: 0 24px;
  height: 100%;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.modal-tab-btn:hover {
  color: var(--el-color, var(--primary));
}

.modal-tab-btn.active {
  color: var(--el-color, var(--primary));
}

.modal-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--el-color, var(--primary));
  border-radius: 4px 4px 0 0;
}

/* 右侧内容滚动视口 */
.modal-tab-content-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px;
}

.modal-tab-content-wrapper::-webkit-scrollbar {
  width: 8px;
}
.modal-tab-content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

/* 具体选项卡内容 */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 攻略建议板块 */
.pro-tips-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.pro-tip-item {
  background-color: var(--bg-card-nested);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pro-tip-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.pro-tip-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 招式机制板块 */
.mechanics-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mechanic-card {
  background-color: var(--bg-card-nested);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mechanic-header {
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.01);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mechanic-header i {
  color: var(--primary);
}

.mechanic-body {
  padding: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* 阶段打法 */
.phases-timeline {
  position: relative;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.phases-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 4px;
  bottom: 8px;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.05);
}

.phase-node {
  position: relative;
}

.phase-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 2px solid var(--text-light);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.phase-node-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.phase-node-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.phase-actions-list {
  background-color: var(--bg-card-nested);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.phase-action-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.phase-action-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.phase-action-item:first-child {
  padding-top: 0;
}

.phase-action-item i {
  color: var(--primary);
  margin-top: 4px;
  font-size: 12px;
}

/* 队伍推荐板块 */
.team-comp-card {
  background-color: var(--bg-card-nested);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.team-comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  padding-bottom: 12px;
}

.team-comp-name {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-comp-name i {
  color: #10b981;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.team-member {
  background-color: var(--bg-main);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.member-role {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.member-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px auto;
  display: block;
  border: 2px solid var(--border-glass);
  background-color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.team-member:hover .member-avatar {
  transform: scale(1.1);
  border-color: var(--el-color);
}

.team-synergy-box {
  background-color: rgba(16, 185, 129, 0.05);
  border-left: 4px solid #10b981;
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.synergy-title {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.synergy-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- 页脚 (Footer) --- */
footer {
  background-color: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

footer p {
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- 返回顶部按钮 --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top.active:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

/* --- 反馈建议浮动按钮 --- */
.feedback-trigger {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  outline: none;
}

.feedback-trigger:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.feedback-trigger i {
  font-size: 18px;
}

/* --- 反馈模态框样式 --- */
.feedback-card-modal {
  background-color: var(--bg-modal);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-primary);
}

.feedback-header {
  text-align: center;
  margin-bottom: 20px;
}

.feedback-header-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
}

.feedback-header h3 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.feedback-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feedback-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-tag {
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.feedback-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.feedback-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-light) !important;
}

.form-select, .form-input, .form-textarea {
  background-color: var(--bg-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 13.5px;
  outline: none;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-counter {
  font-size: 11.5px;
  color: var(--text-muted);
}

.feedback-submit-btn {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--text-light);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
}

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

/* 提交成功状态 */
.feedback-success-state {
  text-align: center;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  animation: scaleBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon {
  font-size: 32px;
  color: #10b981;
}

.feedback-success-state h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feedback-success-state p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 360px;
}

.success-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin-bottom: 15px;
}

.success-btn {
  flex: 1;
  max-width: 130px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  outline: none;
}

.email-btn {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--text-light);
}

.email-btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.copy-btn {
  background-color: var(--bg-main);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.copy-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.2);
}

.back-to-form-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition);
  outline: none;
}

.back-to-form-btn:hover {
  color: var(--primary);
}

/* 成功动效 */
@keyframes scaleBounce {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ==========================================
   响应式设计媒体查询 (Media Queries)
   ========================================== */

/* --- 桌面大屏适配 --- */
@media (min-width: 1200px) {
  .boss-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 中等屏幕 (平板端: 768px - 1024px) --- */
@media (max-width: 1024px) {
  .boss-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-card {
    height: 90vh;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-left {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    overflow-y: visible;
    flex-shrink: 0;
  }

  .modal-boss-art {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    flex-shrink: 0;
  }

  .modal-boss-bg-shape {
    width: 120px;
    height: 120px;
  }

  .modal-boss-icon {
    font-size: 60px;
    width: 100px;
    height: 100px;
  }

  .modal-boss-desc {
    display: none;
  }

  .modal-left .stat-panel-title {
    display: block;
    margin-top: 10px;
  }

  .modal-left .stats-grid {
    display: grid;
  }

  .modal-left .weakness-card {
    display: block;
  }

  .modal-boss-info {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .modal-right {
    width: 100%;
    height: auto;
    overflow-y: visible;
    flex-shrink: 0;
  }

  .modal-tabs {
    padding: 0 20px;
    position: sticky;
    top: 0;
    background-color: var(--bg-modal);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    border-bottom: 1px solid var(--border-glass);
  }

  .modal-tab-content-wrapper {
    padding: 30px;
    overflow-y: visible;
  }
}

/* --- 移动端适配 (手机端: < 768px) --- */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    height: 70px;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-tag {
    display: none;
  }

  .nav-links {
    display: none; /* 移动端折叠导航，或简单保持为主标题 */
  }

  .hero-card {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-subtitle {
    display: none; /* 移动端隐藏副标题以极致省空间 */
  }

  .search-wrapper {
    padding: 4px 6px 4px 16px;
  }

  .search-input {
    font-size: 14px;
  }

  .search-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .filter-toggle-btn {
    width: 36px;
    height: 36px;
    margin-right: 6px;
  }

  .filter-card {
    padding: 16px 20px;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filter-label {
    min-width: unset;
  }

  .boss-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 模态框移动端极致适配 */
  .modal-card {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  .modal-overlay.active {
    background-color: var(--bg-main);
  }

  .modal-left {
    height: auto;
    padding: 24px 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
    overflow-y: visible;
    flex-shrink: 0;
  }

  .modal-boss-art {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .modal-boss-bg-shape {
    width: 90px;
    height: 90px;
  }

  .modal-boss-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
  }

  .modal-boss-name {
    font-size: 22px;
  }

  .modal-boss-title {
    font-size: 13px;
    margin-bottom: 0;
  }

  .modal-right {
    height: auto;
    overflow-y: visible;
    flex-shrink: 0;
  }

  .modal-tabs {
    padding: 0 10px;
    height: 50px;
    position: sticky;
    top: 0;
    background-color: var(--bg-modal);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    border-bottom: 1px solid var(--border-glass);
  }

  .modal-tab-btn {
    padding: 0 8px;
    font-size: 12.5px;
    gap: 4px;
  }

  .modal-tab-content-wrapper {
    padding: 20px 16px;
    overflow-y: visible;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .team-comp-card {
    padding: 16px;
  }

  .team-comp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pro-tip-item {
    padding: 12px;
  }

  .modal-close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    z-index: 110;
  }
}

/* --- Boss 陆续更新占位卡片 --- */
.boss-card-placeholder {
  border: 2px dashed var(--border-placeholder) !important;
  background: var(--bg-placeholder) !important;
  cursor: default !important;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  min-height: 340px;
  box-shadow: none !important;
  transition: var(--transition);
}

.boss-card-placeholder:hover {
  transform: translateY(-4px) !important;
  border-color: var(--primary) !important;
  background: var(--bg-placeholder) !important;
  opacity: 0.9;
}

.placeholder-icon {
  font-size: 44px;
  color: var(--text-muted);
  margin-bottom: 18px;
  animation: pulse-placeholder 2.5s infinite ease-in-out;
}

.placeholder-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.placeholder-subtext {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

@keyframes pulse-placeholder {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.85;
    color: var(--color-anemo); /* 脉冲时产生风元素色的微光 */
  }
}

/* --- Twikoo 评论系统样式重置与毛玻璃美化 --- */
#tcomment {
  margin-top: 10px;
  width: 100%;
}

.tk-footer {
  display: none !important;
}

/* 输入框区域美化 */
.twikoo .tk-submit {
  margin-bottom: 20px;
}

.twikoo .tk-input {
  background-color: var(--bg-main) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
  transition: var(--transition) !important;
}

[data-theme="dark"] .twikoo .tk-input {
  background-color: rgba(15, 23, 42, 0.45) !important;
}

.twikoo .tk-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-light) !important;
}

/* 用户名、邮箱、网址输入框 */
.twikoo .tk-meta-input {
  gap: 10px;
}

.twikoo .tk-meta-input .el-input {
  margin-bottom: 8px !important;
}

/* 预览与提交按钮 */
.twikoo .tk-row .tk-btn {
  background-color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  color: var(--text-light) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  cursor: pointer !important;
}

.twikoo .tk-row .tk-btn:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.twikoo .tk-row .tk-btn-secondary {
  background-color: var(--bg-main) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
}

.twikoo .tk-row .tk-btn-secondary:hover {
  background-color: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}

/* 评论条目卡片 */
.twikoo .tk-comment {
  border-bottom: 1px dashed var(--border-glass) !important;
  padding: 15px 0 !important;
  margin-top: 0 !important;
}

/* 评论者昵称与徽章 */
.twikoo .tk-nick {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

.twikoo .tk-badge {
  background-color: var(--primary) !important;
  color: var(--text-light) !important;
  border-radius: 4px !important;
}

/* 评论时间 */
.twikoo .tk-time {
  color: var(--text-muted) !important;
}

/* 评论正文 */
.twikoo .tk-content {
  color: var(--text-secondary) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-top: 8px !important;
}

/* 回复框区域 */
.twikoo .tk-comment-replies {
  margin-top: 12px !important;
  border-left: 2px solid var(--primary) !important;
  padding-left: 15px !important;
  background-color: rgba(255, 255, 255, 0.01) !important;
  border-radius: 4px !important;
}

/* 评论列表中的加载与空状态 */
.twikoo .tk-comments-no {
  color: var(--text-muted) !important;
  font-size: 14px !important;
  padding: 20px 0 !important;
  text-align: center !important;
}

.twikoo .tk-expand {
  background-color: var(--bg-main) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  transition: var(--transition) !important;
}

.twikoo .tk-expand:hover {
  background-color: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}

/* 评论预览编辑状态等修饰 */
.twikoo .tk-preview-container {
  border: 1px solid var(--border-glass) !important;
  background-color: var(--bg-main) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
}

.twikoo .el-loading-spinner .path {
  stroke: var(--primary) !important;
}

/* ==========================================
   全局加载遮罩样式 (Global Loading Overlay)
   ========================================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 25, 0.5); /* 半透明暗影 */
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* 高于详情模态框 overlay */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-spinner-wrapper {
  background-color: var(--bg-modal);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  padding: 24px 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loading-overlay.active .loading-spinner-wrapper {
  transform: scale(1);
}

.spinner-icon {
  font-size: 36px;
  color: var(--primary);
}

.loading-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

