/* =========================================================
   魔改短剧AI漫剧 - 全局样式表
   主题：AI短剧 / 漫剧 / 竖屏娱乐
   配色：深空夜蓝 + 霓虹紫 + 青蓝渐变
   ========================================================= */

:root {
  --bg-dark: #0b0d1a;
  --bg-deep: #0e1124;
  --bg-card: #151a30;
  --bg-card-hover: #1b2140;
  --primary: #7c5cff;
  --primary-light: #9d7bff;
  --accent: #22d3ee;
  --accent-2: #f472b6;
  --grad-main: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --grad-hot: linear-gradient(135deg, #f472b6 0%, #ff8a5c 100%);
  --text-main: #eef0ff;
  --text-sub: #a6accd;
  --text-muted: #767c9e;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.25);
  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 背景装饰 ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 12% 8%, rgba(124, 92, 255, 0.16), transparent 65%),
    radial-gradient(700px 500px at 88% 15%, rgba(34, 211, 238, 0.12), transparent 65%),
    radial-gradient(800px 600px at 50% 110%, rgba(244, 114, 182, 0.10), transparent 70%);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 10px 26px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(124, 92, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 16px 38px;
  font-size: 17px;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 26, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.4);
}

.brand em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list a {
  font-size: 15px;
  color: var(--text-sub);
  position: relative;
  padding: 6px 2px;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-main);
  transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text-main);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 26px;
  cursor: pointer;
  padding: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 130px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 20% 30%, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(600px 360px at 80% 40%, rgba(34, 211, 238, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s ease both;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(32px, 5.6vw, 60px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.hero h1 .grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-sub);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.stat-card {
  min-width: 150px;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card span {
  font-size: 14px;
  color: var(--text-sub);
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-head p {
  color: var(--text-sub);
  font-size: 16px;
}

/* ---------- 特性 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(124, 92, 255, 0.45);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  background: rgba(124, 92, 255, 0.15);
}

.feature-card:nth-child(2) .feature-icon { background: rgba(34, 211, 238, 0.15); }
.feature-card:nth-child(3) .feature-icon { background: rgba(244, 114, 182, 0.15); }
.feature-card:nth-child(4) .feature-icon { background: rgba(255, 170, 60, 0.15); }

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 14.5px;
}

/* ---------- 服务介绍 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.06);
}

.service-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(11, 13, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-body p {
  color: var(--text-sub);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.service-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 热门剧集网格 ---------- */
.show-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.show-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.show-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

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

.show-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.show-card:hover .show-cover img {
  transform: scale(1.06);
}

.show-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--grad-hot);
  color: #fff;
}

.show-rank {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  background: rgba(11, 13, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.show-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 13, 26, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.show-play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.5);
}

.show-card:hover .show-play {
  opacity: 1;
}

.show-info {
  padding: 16px;
}

.show-info h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-info p {
  font-size: 13.5px;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-stats {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- 榜单 ---------- */
.rank-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rank-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.rank-panel h3 {
  font-size: 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  transition: background 0.3s ease;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rank-no {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-sub);
}

.rank-item:nth-child(1) .rank-no,
.rank-item:nth-child(2) .rank-no,
.rank-item:nth-child(3) .rank-no {
  background: var(--grad-hot);
  color: #fff;
}

.rank-cover {
  width: 54px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-body {
  flex: 1;
  min-width: 0;
}

.rank-body strong {
  display: block;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-body span {
  font-size: 13px;
  color: var(--text-muted);
}

.rank-score {
  font-weight: 800;
  color: var(--accent);
  font-size: 16px;
}

/* ---------- 编辑推荐 ---------- */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pick-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.pick-cover {
  width: 92px;
  height: 122px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.pick-body h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.pick-body p {
  font-size: 13.5px;
  color: var(--text-sub);
}

.pick-body .pick-why {
  margin-top: 10px;
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
}

/* ---------- 新剧速递 ---------- */
.news-list {
  display: grid;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.news-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-row:hover {
  transform: translateX(6px);
  border-color: rgba(124, 92, 255, 0.5);
}

.news-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.12);
}

.news-date strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-light);
}

.news-date span {
  font-size: 12px;
  color: var(--text-muted);
}

.news-row h3 {
  font-size: 17px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-row .news-type {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- CTA ---------- */
.cta {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-box {
  position: relative;
  text-align: center;
  padding: 70px 40px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 30% 20%, rgba(124, 92, 255, 0.3), transparent 70%),
    radial-gradient(500px 280px at 75% 40%, rgba(34, 211, 238, 0.22), transparent 70%),
    var(--bg-card);
  border: 1px solid rgba(124, 92, 255, 0.35);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--text-sub);
  font-size: 16px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- 内容区（内页） ---------- */
.page-hero {
  padding: 76px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-sub);
  font-size: 16px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- 关于页 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.about-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-sub);
  margin-bottom: 14px;
}

.about-text ul {
  margin-top: 16px;
}

.about-text li {
  padding: 8px 0;
  color: var(--text-sub);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.about-text li::before {
  content: "✦";
  color: var(--accent);
  flex-shrink: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
}

.value-card .feature-icon {
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-sub);
  font-size: 14.5px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  padding: 0 0 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-main);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2);
}

.timeline-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-sub);
  font-size: 14.5px;
}

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.contact-form h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-form > p {
  color: var(--text-sub);
  margin-bottom: 26px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form-wrap h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-form-wrap > p {
  color: var(--text-sub);
  margin-bottom: 24px;
}

.contact-info h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-info {
  display: grid;
  gap: 20px;
  align-content: start;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(124, 92, 255, 0.14);
}

.info-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.info-card p {
  color: var(--text-sub);
  font-size: 14.5px;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-q::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: var(--primary-light);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-sub);
  font-size: 15px;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 24px 22px;
}

/* ---------- 产品页 ---------- */
.product-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ---------- 新闻页 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.news-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-cover img {
  transform: scale(1.06);
}

.news-body {
  padding: 24px;
}

.news-body .news-date-row {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-body p {
  color: var(--text-sub);
  font-size: 14.5px;
}

.news-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
}

/* ---------- 新闻详情 ---------- */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.article-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.article-header h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--text-muted);
  font-size: 14px;
}

.article-cover {
  border-radius: var(--radius);
  margin-bottom: 30px;
}

.article-content h2 {
  font-size: 24px;
  margin: 34px 0 14px;
}

.article-content h3 {
  font-size: 19px;
  margin: 26px 0 12px;
}

.article-content p {
  color: var(--text-sub);
  margin-bottom: 16px;
  font-size: 16px;
}

.article-content ul,
.article-content ol {
  color: var(--text-sub);
  margin: 0 0 18px 22px;
  font-size: 16px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--primary-light);
  font-size: 13px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}

.article-nav a {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.article-nav a:hover {
  border-color: rgba(124, 92, 255, 0.5);
  transform: translateY(-4px);
}

.article-nav .nav-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.article-nav .nav-title {
  font-size: 15.5px;
  color: var(--text-main);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-sub);
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(11, 13, 26, 0.6);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 46px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-sub);
  font-size: 14.5px;
  max-width: 320px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--text-sub);
  font-size: 14.5px;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- 动效 ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.float-anim {
  animation: floatY 5s ease-in-out infinite;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .show-grid,
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid,
  .picks-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 13, 26, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav-list.open {
    display: flex;
  }
  .nav-list a {
    padding: 14px 6px;
    border-bottom: 1px solid var(--line);
  }
  .nav-list a::after {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta .btn {
    display: none;
  }
  .hero {
    padding: 70px 0 90px;
  }
  .section {
    padding: 60px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .rank-wrap {
    grid-template-columns: 1fr;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .cta-box {
    padding: 50px 24px;
  }
}

@media (max-width: 560px) {
  .features-grid,
  .services-grid,
  .picks-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .show-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stat-card {
    min-width: 120px;
    padding: 16px 20px;
  }
  .news-row {
    flex-wrap: wrap;
  }
  .hero-stats {
    gap: 10px;
  }
}
