/* ===== 影新鲜 全局样式 ===== */
:root {
  --primary: #2F86FF;
  --theme: #2F86FF;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --gray-1: #1A1F2E;
  --gray-2: #4E5969;
  --gray-3: #86909C;
  --gray-4: #C9CDD4;
  --movie: #FF7D00;
  --drama: #2F86FF;
  --show:  #F54A8B;
  --anime: #FFB800;
  --duan:  #9966FF;
  --doc:   #2FA787;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--gray-1);
  transition: background 0.8s ease;
}

/* ===== 顶部通栏导航 ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 40px;
  height: 80px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 16px rgba(26, 31, 46, 0.06);
}

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

.logo {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(255, 125, 0, 0.25));
  transition: transform 0.3s ease;
}
.brand:hover .logo { transform: rotate(-5deg) scale(1.05); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #FFB347 0%, #FF7D00 35%, #FF5722 65%, #E64A19 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  text-shadow: 0 2px 8px rgba(255, 125, 0, 0.15);
}
.brand-slogan { font-size: 12px; color: var(--gray-3); margin-top: 4px; letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-2);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-item:hover { color: var(--theme); background: rgba(47, 134, 255, 0.08); }
.nav-item.active {
  color: var(--theme);
  background: rgba(47, 134, 255, 0.1);
  font-weight: 600;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 6px;
}

.nav-more {
  display: none;
  position: relative;
  padding: 10px 18px;
  font-size: 16px;
  color: var(--gray-2);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.nav-more:hover { color: var(--theme); background: rgba(47, 134, 255, 0.08); }
.more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26, 31, 46, 0.12);
  padding: 8px;
  min-width: 140px;
}
.more-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--gray-2);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.more-menu a:hover { color: var(--theme); background: var(--bg); }
.more-menu a.active { color: var(--theme); font-weight: 600; background: rgba(47, 134, 255, 0.08); }
.nav-more:hover .more-menu { display: block; }

.search-box input {
  width: 220px;
  padding: 10px 18px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  transition: all 0.25s ease;
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 134, 255, 0.12);
  background: #fff;
}

@media (max-width: 1200px) {
  .nav-item.optional { display: none; }
  .nav-more { display: flex; align-items: center; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topnav { gap: 16px; padding: 0 20px; flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .search-box input { width: 160px; }
  .brand-name { font-size: 24px; }
  .logo { width: 42px; height: 42px; }
  .nav-item { padding: 8px 14px; font-size: 15px; }
}

/* ===== 首页布局 ===== */
.home-layout {
  display: flex;
  gap: 28px;
  max-width: 1400px;
  margin: 28px auto;
  padding: 0 28px;
  align-items: flex-start;
}
.home-main { flex: 1 1 72%; min-width: 0; }
.home-side { flex: 0 0 320px; position: sticky; bottom: 28px; align-self: flex-end; }

/* 视图切换过渡动画 */
.view-enter { animation: viewFadeIn 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); }
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.block { margin-bottom: 36px; }
.block-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 轮播 Banner ===== */
.banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 440px;
  margin-bottom: 36px;
  background: #1A1F2E;
  box-shadow: 0 8px 32px rgba(26, 31, 46, 0.15);
}
.slides { height: 100%; position: relative; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.on { opacity: 1; }
.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 46, 0.85) 0%, rgba(26, 31, 46, 0.4) 40%, rgba(26, 31, 46, 0.1) 70%, transparent 100%);
}
.slide-with-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 60px;
  gap: 48px;
}
.slide-poster-wrap {
  position: relative;
  flex-shrink: 0;
}
.slide-poster {
  width: 220px;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}
.slide-poster-glow {
  position: absolute;
  inset: -20px;
  border-radius: 20px;
  z-index: 1;
  filter: blur(30px);
  opacity: 0.6;
}
.slide-text-only {
  flex: 1;
  color: #fff;
  z-index: 2;
}
.slide-text-only .slide-tag { margin-bottom: 20px; }
.slide-text-only h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.slide-text-only p {
  font-size: 16px;
  opacity: 0.95;
  max-width: 560px;
  line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.slide-info {
  position: absolute;
  left: 40px;
  bottom: 80px;
  right: 120px;
  z-index: 2;
  color: #fff;
}
.slide-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.slide-info h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.slide-info p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 640px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.banner-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 300;
}
.banner-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

.banner-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 40px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  background: linear-gradient(to top, rgba(26, 31, 46, 0.75), transparent);
}
.banner-current-title {
  font-size: 24px;
  color: #fff;
  font-weight: 700;
}
.banner-controls {
  position: absolute;
  bottom: 24px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}
.banner-btns {
  display: flex;
  gap: 10px;
}
.dots { display: flex; gap: 6px; align-items: center; }
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.dots span.on {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}

/* ===== 分品类卡片组（网格布局） ===== */
.cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.cat-head .block-title { margin-bottom: 0; }
.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.more-link {
  font-size: 14px;
  color: var(--gray-3);
  cursor: pointer;
  transition: color 0.2s ease;
  font-weight: 500;
}
.more-link:hover { color: var(--primary); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.cat-poster-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26, 31, 46, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 2/3;
  background: var(--gray-6);
  width: 100%;
  min-height: 0;
}
.cat-poster-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(26, 31, 46, 0.15);
}
.cat-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cat-poster-wrap:hover img { transform: scale(1.06); }
.cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
}
.cat-card-info {
  margin-top: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
  line-height: 1.3;
}
.cat-card-desc {
  font-size: 12px;
  color: var(--gray-3);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

@media (max-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .banner { height: 340px; }
  .slide-with-poster { padding: 0 24px; gap: 20px; }
  .slide-poster { width: 120px; height: 180px; }
  .slide-text-only h2 { font-size: 24px; }
  .slide-text-only p { font-size: 13px; -webkit-line-clamp: 3; }
  .slide-info h2 { font-size: 24px; }
  .slide-info { left: 20px; bottom: 70px; right: 80px; }
  .slide-info p { font-size: 13px; }
  .banner-bottom { padding: 16px 20px; }
  .banner-btn { width: 36px; height: 36px; font-size: 22px; }
  .banner-btn.prev { left: 10px; }
  .banner-btn.next { right: 10px; }
}

/* ===== 右侧边栏 ===== */
.side-card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(26, 31, 46, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.side-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 31, 46, 0.1); }
.side-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  color: var(--gray-1);
}
.side-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.side-link:hover { opacity: 0.8; }

/* 今日票房 */
.box-office-card { background: linear-gradient(180deg, #FFFAF5 0%, #fff 100%); }
.bo-top {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #FFF4EC 0%, #FFE8D8 100%);
  border-radius: 12px;
  margin-bottom: 12px;
}
.bo-top-poster {
  position: relative;
  flex-shrink: 0;
}
.bo-top-poster img {
  width: 72px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.25);
}
.bo-top-poster .bo-rank.big {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 28px;
  height: 28px;
  font-size: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7D00, #FF9F4A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 125, 0, 0.4);
}
.bo-top-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.bo-top-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-1);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bo-top-box {
  font-size: 20px;
  font-weight: 800;
  color: var(--movie);
}
.bo-trend {
  font-size: 12px;
  font-weight: 500;
  color: #22C55E;
  margin-left: 4px;
}
.bo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #F5F7FA;
}
.bo-item:last-child { border-bottom: none; }
.bo-rank {
  width: 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--gray-3);
  text-align: center;
  flex-shrink: 0;
}
.bo-rank.top3 {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
}
.bo-rank.top3:not(.big) { background: linear-gradient(135deg, #FF7D00, #FF9F4A); }
.bo-name {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-2);
}
.bo-num {
  font-size: 14px;
  color: var(--gray-1);
  font-weight: 600;
}

/* 今日大盘 */
.market-card {
  background: linear-gradient(135deg, #FFF9F2 0%, #FFFFFF 100%);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.market-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26, 31, 46, 0.12); }
.market-chart {
  position: absolute;
  top: 12px;
  right: 12px;
}
.market-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.market-icon { flex-shrink: 0; }
.market-label {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-1);
}
.market-num {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, #FF7D00, #FF5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 6px 0;
  letter-spacing: -1px;
}
.market-meta { font-size: 12px; color: var(--gray-3); }
.market-go {
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 影视资讯 */
.news-side-card { background: linear-gradient(180deg, #FAFAFA 0%, #fff 100%); }
.side-spacer { width: 100%; }
.flash-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #F5F0EB;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.flash-item:last-child { border-bottom: none; }
.flash-item:hover .flash-title { color: #FF7D00; }
.flash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF7D00;
  flex-shrink: 0;
  margin-top: 7px;
  position: relative;
}
.flash-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF7D00;
  transform: translate(-50%, -50%);
  animation: ripple 3.5s ease-out infinite;
}
@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}
.flash-content { flex: 1; min-width: 0; }
.flash-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.5;
  transition: color 0.2s ease;
}
.flash-time {
  font-size: 12px;
  color: var(--gray-3);
  margin-top: 6px;
  display: block;
}
.flash-src { margin-top: 14px; font-size: 12px; color: var(--gray-4); text-align: center; }

/* ===== 分类时间线页 ===== */
.tl-page { max-width: 960px; margin: 28px auto; padding: 0 28px; }
.tl-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--theme);
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.range-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.range-label { font-size: 14px; color: var(--gray-3); margin-right: 6px; font-weight: 500; }
.pill {
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  background: #EDF0F5;
  color: var(--gray-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pill:hover { background: #E2E6EE; }
.pill.active {
  background: var(--theme);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 31, 46, 0.15);
}

/* ===== 时间线 ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 10px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--theme), #E5E7EB);
  opacity: 0.3;
}
.day-group { margin-bottom: 28px; }
.day-head {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme);
  margin-bottom: 16px;
  transition: color 0.2s ease;
}
.tl-item { position: relative; margin-bottom: 20px; }
.tl-node {
  position: absolute;
  left: -28px; top: 26px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--tc);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--tc);
  opacity: 0.95;
}

/* ===== 资讯卡片 ===== */
.card {
  display: flex;
  gap: 20px;
  background: var(--card);
  border-radius: 12px;
  border-left: 3px solid var(--tc);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(26, 31, 46, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 31, 46, 0.12);
  border-left-width: 5px;
}
.poster { flex-shrink: 0; width: 100px; }
.poster img {
  width: 100px; height: 150px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.card:hover .poster img { transform: scale(1.04); }
.card-main { flex: 1; min-width: 0; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-time { font-size: 13px; color: var(--gray-3); }
.tag-solid {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--tc);
  flex-shrink: 0;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 8px;
}
.detail-hint { font-size: 12px; color: var(--gray-4); font-weight: 400; margin-left: 10px; }
.card-summary {
  font-size: 14px;
  color: var(--gray-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  line-height: 1.6;
}
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.source { font-size: 13px; color: var(--gray-3); }
.src-btn {
  font-size: 13px;
  color: var(--gray-3);
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  padding: 6px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}
.src-btn:hover { color: var(--primary); border-color: var(--primary); background: rgba(47, 134, 255, 0.05); }

.detail { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.detail.open { max-height: 500px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #F0F3F8; }
.detail p { font-size: 14px; color: var(--gray-2); margin-bottom: 10px; line-height: 1.7; }
.meta-line { font-size: 13px; color: var(--gray-2); margin-bottom: 6px; }
.meta-line strong { color: var(--gray-1); margin-right: 4px; }

.empty-tip { text-align: center; color: var(--gray-3); font-size: 15px; padding: 60px 0; }

/* ===== 页脚 ===== */
.footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 28px 48px;
  text-align: center;
}
.footer p { font-size: 13px; color: var(--gray-3); margin-bottom: 8px; }
.footer .version { font-weight: 600; margin-top: 12px; color: var(--gray-4); }

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed;
  right: 32px; bottom: 32px;
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5BA3FF);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(47, 134, 255, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(47, 134, 255, 0.45); }

@media (max-width: 1100px) {
  .home-layout { flex-direction: column; }
  .home-side { position: static; width: 100%; flex: none; }
}
@media (max-width: 600px) {
  .home-layout { padding: 0 16px; margin: 16px auto; gap: 20px; }
  .side-card { padding: 16px; }
}
