/* ============================================================
   星娱汇 STARHUB - 娱乐资讯门户 - 全局样式
   配色：深色底 + 紫粉/橙红渐变点缀
   字体：Alibaba PuHuiTi
   ============================================================ */

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

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

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

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

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

a:hover {
  color: #FF6B9D;
}

ul,
ol {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色 - 紫粉渐变 */
  --color-primary: #8B5CF6;
  --primary-from: #8B5CF6;
  --primary-to: #EC4899;
  --primary-gradient: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --primary-soft: rgba(139, 92, 246, 0.15);
  --primary-glow: rgba(236, 72, 153, 0.3);

  /* 辅色 - 橙红渐变 */
  --color-accent: #F97316;
  --accent-from: #F97316;
  --accent-to: #EF4444;
  --accent-gradient: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-glow: rgba(239, 68, 68, 0.25);

  /* 文字色 */
  --text-white: #FFFFFF;
  --text-primary: #E8E6ED;
  --text-secondary: #A19CB3;
  --text-tertiary: #6D6784;
  --text-muted: #4A465E;

  /* 背景色 */
  --bg-deep: #0A0A14;
  --bg-dark: #111122;
  --bg-card: #191929;
  --bg-hover: #252540;
  --bg-lighter: #2A2A45;
  --bg-glass: rgba(25, 25, 41, 0.8);

  /* 边框 */
  --border-color: #2A2A45;
  --border-light: #323250;
  --border-primary: rgba(139, 92, 246, 0.4);
  --border-accent: rgba(249, 115, 22, 0.4);

  /* 阴影 */
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 32px rgba(139, 92, 246, 0.25);
  --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.3);
  --shadow-glow-pink: 0 0 40px rgba(236, 72, 153, 0.3);
  --shadow-glow-orange: 0 0 30px rgba(249, 115, 22, 0.25);

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

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

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

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

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

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

.section { padding: var(--space-10) 0; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.section-title-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

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

.section-title h2 {
  font-size: 24px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

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

.section-title .more:hover {
  color: var(--color-primary);
}

/* ---------- 顶部条 ---------- */
.top-bar {
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
}

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

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.top-bar a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

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

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

.top-hot-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-weight: 600;
}

.top-hot-tag .hot-icon {
  width: 16px;
  height: 16px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 9px;
  animation: pulse-hot 1.5s ease-in-out infinite;
}

@keyframes pulse-hot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

/* ---------- 头部 ---------- */
.header {
  background: linear-gradient(180deg, #15152a 0%, #111122 100%);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 36px;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(17, 17, 34, 0.85);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 20px;
  border-radius: var(--radius-md);
  letter-spacing: -1px;
  box-shadow: var(--shadow-glow-purple);
  position: relative;
}

.logo-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--primary-gradient);
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
  filter: blur(8px);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

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

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

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

.search-form {
  display: flex;
  width: 100%;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.search-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

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

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

.search-btn {
  width: 100px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.search-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-purple);
}

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

.header-icon-btn:hover {
  color: #FFFFFF;
  background: var(--bg-hover);
  border-color: var(--color-primary);
}

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

.header-icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent-gradient);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---------- 主导航 ---------- */
.main-nav {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
}

.nav-list {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: var(--space-1);
}

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

.nav-item {
  flex-shrink: 0;
}

.nav-link {
  display: block;
  padding: 0 var(--space-5);
  height: 52px;
  line-height: 52px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-item.active .nav-link {
  color: #FFFFFF;
  font-weight: 600;
}

.nav-item.active .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px 3px 0 0;
}

.nav-item .hot-badge {
  display: inline-block;
  padding: 1px 5px;
  background: var(--accent-gradient);
  color: #FFFFFF;
  font-size: 9px;
  border-radius: var(--radius-xs);
  vertical-align: super;
  margin-left: 3px;
  font-weight: 600;
  animation: pulse-hot 2s ease-in-out infinite;
}

/* ---------- 轮播图 ---------- */
.hero-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active { opacity: 1; }

.carousel-bg {
  position: absolute;
  inset: 0;
}

.carousel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 20, 0.9) 0%, rgba(10, 10, 20, 0.5) 40%, transparent 70%),
              linear-gradient(0deg, rgba(10, 10, 20, 0.6) 0%, transparent 50%);
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-10);
  z-index: 2;
  max-width: 600px;
}

.carousel-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.carousel-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: var(--space-3);
  line-height: 1.25;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.carousel-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-glow-purple);
}

.carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
  color: #FFFFFF;
}

.carousel-controls {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-6);
  display: flex;
  gap: var(--space-2);
  z-index: 3;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background: var(--primary-gradient);
  width: 24px;
  border-radius: 4px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 3;
  opacity: 0;
  backdrop-filter: blur(10px);
}

.hero-carousel:hover .carousel-arrow { opacity: 1; }

.carousel-arrow:hover {
  background: var(--color-primary);
}

.carousel-arrow.prev { left: var(--space-4); }
.carousel-arrow.next { right: var(--space-4); }
.carousel-arrow svg { width: 20px; height: 20px; }

/* ---------- 主布局 ---------- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-6);
  padding: var(--space-6) 0 var(--space-12);
}

.main-content { min-width: 0; }

.sidebar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* ---------- 卡片基础 ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

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

.card-cover {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.card-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.card:hover .card-title { color: #EC4899; }

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

.card-rank-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 3;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  font-family: "Georgia", serif;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
}

.card-rank-badge.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #2C1810;
}

/* ---------- 网格布局 ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

/* ---------- 明星卡片 ---------- */
.star-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.star-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.star-avatar {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  overflow: hidden;
}

.star-avatar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
  pointer-events: none;
}

.star-rank-tag {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 2px 8px;
  background: var(--accent-gradient);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-rank-tag svg { width: 10px; height: 10px; }

.star-info {
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

.star-name {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.star-role {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.star-fans {
  font-size: 11px;
  color: var(--color-primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  font-weight: 500;
}

/* ---------- 侧栏组件 ---------- */
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-card) 100%);
}

.widget-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-header h3::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.widget-more {
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.widget-more:hover { color: var(--color-primary); }

/* 热搜榜 */
.hot-list { padding: var(--space-2) 0; }

.hot-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.hot-item:hover { background: var(--bg-hover); }

.hot-rank {
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  font-family: "Georgia", serif;
  flex-shrink: 0;
}

.hot-item:nth-child(1) .hot-rank {
  background: var(--accent-gradient);
  color: #FFFFFF;
  border-radius: 4px;
}
.hot-item:nth-child(2) .hot-rank {
  background: linear-gradient(135deg, #F97316, #FB923C);
  color: #FFFFFF;
  border-radius: 4px;
}
.hot-item:nth-child(3) .hot-rank {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #2C1810;
  border-radius: 4px;
}

.hot-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.hot-item:hover .hot-text { color: #EC4899; }

.hot-heat {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 600;
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.hot-tag-new,
.hot-tag-hot,
.hot-tag-boom {
  flex-shrink: 0;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  margin-left: 4px;
}
.hot-tag-new { background: #10B981; color: #FFFFFF; }
.hot-tag-hot { background: #F97316; color: #FFFFFF; }
.hot-tag-boom { background: #EF4444; color: #FFFFFF; }

/* 话题标签 */
.topic-cloud {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.topic-tag {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topic-tag:hover {
  color: #FFFFFF;
  background: var(--primary-soft);
  border-color: var(--color-primary);
}

.topic-tag.hot {
  color: #FFFFFF;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

/* ---------- 新闻列表 ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.news-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.news-item:hover {
  border-color: var(--border-primary);
  background: var(--bg-hover);
}

.news-thumb {
  width: 180px;
  height: 120px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

.news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.news-title {
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-item:hover .news-title { color: #EC4899; }

.news-summary {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

.news-category-tag {
  padding: 2px 8px;
  background: var(--primary-soft);
  color: #C4B5FD;
  font-size: 11px;
  border-radius: var(--radius-xs);
  font-weight: 500;
}

/* ---------- Tab ---------- */
.tab-bar {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.tab-item {
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.tab-item:hover { color: #FFFFFF; }

.tab-item.active {
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-weight: 600;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-8);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.pagination a {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.pagination a:hover {
  color: #FFFFFF;
  border-color: var(--color-primary);
  background: var(--primary-soft);
}

.pagination .current {
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-weight: 600;
  border-color: transparent;
}

.pagination .dots { color: var(--text-tertiary); }

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

.breadcrumb a { color: var(--text-tertiary); }
.breadcrumb a:hover { color: #EC4899; }

.breadcrumb .separator { color: var(--text-muted); font-size: 11px; }
.breadcrumb .current { color: var(--text-primary); }

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

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  color: #FFFFFF;
}

.btn-accent {
  background: var(--accent-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
  color: #FFFFFF;
}

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

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

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

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-deep);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  padding: var(--space-10) 0 var(--space-8);
  border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-tertiary);
  margin: var(--space-4) 0 var(--space-5);
  max-width: 300px;
}

.footer-social { display: flex; gap: var(--space-3); }

.footer-social a {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.footer-social a:hover {
  background: var(--primary-gradient);
  color: #FFFFFF;
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: var(--shadow-glow-purple);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: var(--space-5);
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 32px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.footer-col li { margin-bottom: var(--space-3); }

.footer-col a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: #EC4899; }

.footer-bottom {
  background: #050510;
  padding: var(--space-5) 0;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: #EC4899; }

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 46px;
  height: 46px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-purple);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.6);
}

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

/* ---------- 揭示动画 ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 992px) {
  .container { max-width: 720px; padding: 0 16px; }
  .header-main { flex-wrap: wrap; gap: var(--space-3); }
  .header-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .hero-carousel { aspect-ratio: 16 / 9; }
  .carousel-title { font-size: 24px; }
  .carousel-content { padding: var(--space-5) var(--space-6); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-brand { grid-column: 1 / -1; }
  .news-thumb { width: 140px; height: 100px; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .top-bar { display: none; }
  .header { top: 0; }
  .logo-text { font-size: 20px; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .header-actions .user-avatar { display: none; }
  .mobile-toggle { display: flex; }
  .nav-link { padding: 0 var(--space-4); font-size: 14px; height: 48px; line-height: 48px; }
  .hero-carousel { aspect-ratio: 4 / 3; }
  .carousel-title { font-size: 20px; }
  .carousel-desc { display: none; }
  .carousel-content { padding: var(--space-4); max-width: 100%; }
  .section-title h2 { font-size: 18px; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .sidebar { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .news-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .news-title { font-size: 15px; }
  .footer-main { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .tab-bar { gap: var(--space-2); }
  .tab-item { padding: 6px 14px; font-size: 13px; }
  .star-name { font-size: 13px; }
}
