/* ===== 全局变量 - 现代化配色系统 ===== */
:root {
  /* 主色调 - 深邃蓝紫渐变 */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-glow: rgba(99, 102, 241, 0.15);
  
  /* 强调色 - 温暖金色 */
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --accent-glow: rgba(245, 158, 11, 0.15);
  
  /* 功能色 */
  --success: #10b981;
  --danger: #ef4444;
  
  /* 文字层次 */
  --text-main: #0f172a;
  --text-sub: #64748b;
  --text-light: #94a3b8;
  
  /* 背景层次 */
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  
  /* 边框 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* 圆角系统 */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 9999px;
  
  /* 阴影层次 - 增强立体感 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== 顶部导航 - 玻璃态效果 ===== */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1320px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  color: var(--text-sub);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.main-nav a:hover::before,
.main-nav a.active::before {
  opacity: 1;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== Hero 区域 - 首页横幅 ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  z-index: 0;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 28px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  min-width: 140px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.stat-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat-item .num {
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
}

/* ===== 通用 Section ===== */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}

.section-title .icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.section-desc {
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 500;
}

.btn-more {
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-more:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
}

/* ===== 朝代行样式 - 首页推荐 ===== */
.dynasty-row-wrap {
  width: 100%;
}

.dynasty-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

.dynasty-row:last-child {
  margin-bottom: 0;
}

.dynasty-row-block {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 28px 24px 32px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  min-width: 0;
}

.dynasty-row-block:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dynasty-row-head {
  padding: 0 8px 18px;
  margin-bottom: 18px;
  border-bottom: 2px dashed var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dynasty-row-count {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.dynasty-row-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.dynasty-row-name:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.dynasty-row-name::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.dynasty-row-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.dynasty-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fafbff 0%, #ffffff 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-width: 0;
}

.dynasty-row-item:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
  transform: translateX(6px);
}

.dynasty-row-item a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
  transition: color 0.2s ease;
}

.dynasty-row-item a:hover {
  color: var(--primary-dark);
}

.dynasty-row-author {
  color: var(--text-sub);
  font-size: 13px;
  white-space: nowrap;
  padding-left: 12px;
  flex-shrink: 0;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .dynasty-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dynasty-row {
    grid-template-columns: 1fr;
  }
}

/* ===== 友链板块 ===== */
.youlian-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.youlian-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.youlian-title .yl-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10b981, #667eea);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.youlian-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.youlian-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
}

.youlian-item:hover {
  background: #fff;
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.youlian-item .yl-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.youlian-item .yl-url {
  font-size: 12px;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .youlian-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .youlian-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .youlian-list {
    grid-template-columns: 1fr;
  }
}

/* ===== Grid 系统 ===== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* ===== 朝代卡片 ===== */
.dynasty-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.dynasty-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: all 0.5s ease;
}

.dynasty-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dynasty-card:hover::before {
  transform: scale(2.5);
  opacity: 0.15;
}

.dynasty-card .emoji {
  font-size: 42px;
  margin-bottom: 14px;
  display: block;
}

.dynasty-card .name {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.dynasty-card .count {
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
}

/* ===== 诗词卡片 ===== */
.poem-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.poem-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: var(--primary-light);
}

.poem-card .poem-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.poem-card .poem-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.poem-card .poem-title a:hover {
  color: var(--primary-dark);
}

.poem-card .poem-title::before {
  content: "📜";
  font-size: 16px;
}

.poem-card .poem-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.poem-card .poem-meta span {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

.poem-card .poem-content {
  font-size: 14px;
  color: var(--text-main);
  line-height: 2;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

/* ===== 作者卡片 ===== */
.author-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.author-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  margin: 0 auto 16px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.author-card .name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.author-card .dynasty {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}

/* ===== 体裁分类 - 新样式 ===== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.genre-card-new {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.genre-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-cool);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.genre-card-new:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.genre-card-new:hover::before {
  opacity: 1;
}

.genre-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--primary-light);
}

.genre-link {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.genre-link:hover {
  transform: translateX(4px);
}

.genre-icon-new {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--gradient-cool);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(79, 172, 254, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.genre-meta {
  flex: 1;
}

.genre-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.genre-count {
  font-size: 14px;
  color: var(--primary-dark);
  font-weight: 600;
}

.genre-poems {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.genre-poem-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.genre-poem-item:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
  transform: translateX(6px);
}

.genre-poem-item .poem-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.genre-poem-item .poem-author {
  color: var(--text-sub);
  font-size: 13px;
  white-space: nowrap;
  padding-left: 12px;
  flex-shrink: 0;
  font-weight: 500;
}

/* ===== 体裁卡片 ===== */
.genre-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.genre-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.genre-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--gradient-cool);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(79, 172, 254, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.genre-info {
  flex: 1;
}

.genre-info .name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.genre-info .desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.genre-info .count {
  font-size: 13px;
  color: var(--primary-dark);
  margin-top: 6px;
  font-weight: 700;
}

/* ===== 诗词详情页 ===== */
.poem-detail {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 60px;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.poem-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--gradient-primary);
}

.poem-detail .dynasty-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.poem-detail h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.poem-detail .author-line {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 2px dashed var(--border-light);
  font-weight: 500;
}

.poem-detail .author-line a {
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-dark);
  transition: color 0.2s ease;
}

.poem-detail .author-line a:hover {
  color: var(--primary);
}

.poem-detail .content {
  font-size: 22px;
  line-height: 2.6;
  color: var(--text-main);
  white-space: pre-wrap;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  padding: 40px;
  background: linear-gradient(135deg, #faf5ff 0%, #fef3c7 100%);
  border-radius: var(--radius-lg);
  margin: 28px 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ===== 作者介绍 ===== */
.author-intro {
  margin-top: 48px;
  padding: 36px;
  background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.author-intro h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}

.author-intro p {
  font-size: 16px;
  color: var(--text-main);
  line-height: 2;
}

/* ===== 上下篇导航 ===== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.post-nav-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.post-nav-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.post-nav-item .label {
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-weight: 700;
}

.post-nav-item .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.post-nav-item.next {
  text-align: right;
}

/* ===== 相关诗词板块（统一风格） ===== */
.related-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-top: 40px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.related-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--primary-light);
}

.related-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.related-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fafbff 0%, #ffffff 100%);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.related-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.related-card:hover::before {
  opacity: 1;
}

.related-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.related-card:hover .related-title {
  color: var(--primary-dark);
}

.related-author {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}

/* 响应式 */
@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .related-section {
    padding: 24px 20px;
  }
  
  .related-header {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }
  
  .related-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .related-header h3 {
    font-size: 19px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .related-card {
    padding: 14px 16px;
  }
}

/* ===== 旧的相关诗词样式（保留兼容） ===== */
.related-poems h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.01em;
}

.related-poems h3::before {
  content: "📚";
  font-size: 24px;
}

.related-list {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.related-list a {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  border: 1px solid var(--border-light);
}

.related-list a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateX(6px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.related-list a::before {
  content: "→";
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.related-list a .mp-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
  font-weight: 600;
}

.related-list a .mp-author {
  color: var(--text-sub);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 10px;
  font-weight: 500;
}

/* ===== 作者详情页 ===== */
.author-profile {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 60px;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.author-profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(245, 158, 11, 0.1));
  z-index: 0;
}

.author-profile-inner {
  position: relative;
  z-index: 1;
}

.big-avatar {
  width: 140px;
  height: 140px;
  border-radius: 48px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 900;
  margin: 0 auto 24px;
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.author-profile h1 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.author-profile .dynasty-tag {
  display: inline-block;
  padding: 8px 28px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.author-profile .intro-text {
  font-size: 17px;
  color: var(--text-main);
  line-height: 2.2;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  text-align: left;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.author-profile .stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.author-profile .stat-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 24px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.author-profile .stat-box .num {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.author-profile .stat-box .lbl {
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
}

/* ===== 朝代标签导航 ===== */
.dynasty-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.dynasty-tabs a {
  padding: 12px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid var(--border-light);
}

.dynasty-tabs a:hover,
.dynasty-tabs a.active {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  border-color: transparent;
}

/* ===== 页脚 ===== */
.site-footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 48px 24px 36px;
  margin-top: 80px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-sub);
  font-size: 15px;
}

.site-footer .foot-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.site-footer .foot-slogan {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.site-footer .foot-copy {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 表单卡片 ===== */
.form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.form-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.01em;
}

.form-card p.desc {
  color: var(--text-sub);
  margin-bottom: 32px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 26px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-primary {
  padding: 16px 36px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===== 提示框 ===== */
.alert {
  padding: 20px 28px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.alert-info {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 100px 24px;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.empty-state .emoji {
  font-size: 72px;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* ===== 页面横幅 ===== */
.page-hero {
  padding: 48px 0 24px;
  text-align: center;
  position: relative;
}

.page-hero h2 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--text-sub);
  font-size: 16px;
  font-weight: 500;
}

.page-hero .meta-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-hero .meta-row span {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-sub);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .dynasty-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* 头部导航 - 移动端 */
  .header-inner {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  /* 显示汉堡菜单按钮 */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* 隐藏导航，点击按钮后展开 */
  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .main-nav.mobile-open {
    max-height: 500px;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }
  
  .main-nav a {
    width: 100%;
    text-align: center;
  }
  
  /* Hero 区域 */
  .hero {
    padding: 48px 0 36px;
  }
  
  .hero h2 {
    font-size: 36px;
  }
  
  .hero-stats {
    gap: 16px;
  }
  
  .stat-item {
    padding: 20px 24px;
    min-width: auto;
    flex: 1;
  }
  
  .stat-item .num {
    font-size: 28px;
  }
  
  /* Section */
  .section {
    padding: 40px 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Grid 布局 */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 详情页 */
  .poem-detail,
  .author-profile,
  .form-card {
    padding: 36px 24px;
  }
  
  .poem-detail h1 {
    font-size: 32px;
  }
  
  .poem-detail .content {
    font-size: 18px;
    padding: 28px;
  }
  
  .post-nav {
    grid-template-columns: 1fr;
  }
  
  .post-nav-item.next {
    text-align: left;
  }
  
  /* 相关诗词 */
  .related-list {
    grid-template-columns: 1fr;
  }
  
  /* 朝代行 */
  .dynasty-row {
    grid-template-columns: 1fr;
  }
  
  /* 移动端隐藏友情链接 */
  .youlian-section {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Grid 布局 */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: 1fr;
  }
  
  /* 品牌文字 */
  .brand-text p {
    display: none;
  }
  
  /* 诗词卡片 */
  .poem-card {
    padding: 24px;
  }
  
  /* 容器 */
  .container {
    padding: 0 20px;
  }
  
  /* Hero */
  .hero h2 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
}

/* ===== 动画效果 ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid > * {
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.grid > *:nth-child(1) {
  animation-delay: 0.05s;
}

.grid > *:nth-child(2) {
  animation-delay: 0.1s;
}

.grid > *:nth-child(3) {
  animation-delay: 0.15s;
}

.grid > *:nth-child(4) {
  animation-delay: 0.2s;
}

.grid > *:nth-child(5) {
  animation-delay: 0.25s;
}

.grid > *:nth-child(6) {
  animation-delay: 0.3s;
}

/* 卡片悬停效果增强 */
.poem-card:hover .poem-title,
.dynasty-card:hover .name,
.author-card:hover .name {
  color: var(--primary-dark);
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 焦点状态优化 */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 图片响应式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 文本选择样式 */
::selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

::-moz-selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  z-index: 999;
  user-select: none;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}
