/* ==========================================================================
   51吃瓜网官网 - 全站样式表
   主题：全网热门黑料与娱乐圈八卦资讯平台
   配色：暗夜紫 + 蜜桃粉 + 落日橙
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --bg: #0f0d17;
  --bg-soft: #14111f;
  --bg-deep: #0a0810;
  --card: #1a1729;
  --card-hover: #221e35;
  --surface: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --primary: #ff2e74;
  --primary-dark: #d81b60;
  --secondary: #ff8a3d;
  --accent: #7b5cff;
  --accent-2: #00d4c8;

  --text: #f3f1fa;
  --text-soft: #cfc9e2;
  --muted: #9b93b6;

  --grad-main: linear-gradient(120deg, #ff2e74 0%, #ff8a3d 100%);
  --grad-alt: linear-gradient(120deg, #7b5cff 0%, #ff2e74 100%);
  --grad-cool: linear-gradient(120deg, #00d4c8 0%, #7b5cff 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.55);
  --glow: 0 0 42px rgba(255, 46, 116, 0.35);

  --maxw: 1200px;
  --header-h: 72px;

  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);
}

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

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 8% -6%, rgba(255, 46, 116, 0.22), transparent 62%),
    radial-gradient(760px 480px at 96% 4%, rgba(123, 92, 255, 0.2), transparent 60%),
    radial-gradient(680px 520px at 52% 108%, rgba(0, 212, 200, 0.12), transparent 62%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

ul,
ol {
  list-style: none;
}

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

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

::selection {
  background: var(--primary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 900px;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section-tight {
  padding: 64px 0;
}

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

.section-head.left {
  text-align: left;
  margin-left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.1);
  border: 1px solid rgba(255, 138, 61, 0.28);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-title .grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- 4. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 13, 23, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-stuck {
  background: rgba(10, 8, 16, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  background: var(--grad-main);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--glow);
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text small {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
}

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

.nav-menu a:hover {
  color: #fff;
  background: var(--surface);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  width: 22px;
}

.nav-menu a.is-active {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 46, 116, 0.13);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}
.nav-toggle span:nth-child(2) {
  top: 21px;
}
.nav-toggle span:nth-child(3) {
  top: 27px;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 27px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    background 0.28s var(--ease), color 0.28s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 46, 116, 0.34);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(255, 46, 116, 0.48);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: rgba(255, 46, 116, 0.12);
  box-shadow: 0 14px 34px rgba(255, 46, 116, 0.22);
}

.btn-sm {
  padding: 9px 19px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.04rem;
}

.btn-block {
  width: 100%;
}

/* ---------- 6. Hero 主视觉 ---------- */
.hero {
  position: relative;
  padding: 78px 0 88px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -140px;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 46, 116, 0.2), transparent 66%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

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

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.25s var(--ease);
}

.tag-chip:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(255, 46, 116, 0.14);
  transform: translateY(-2px);
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  animation: floatY 7s ease-in-out infinite;
}

.hero-badge {
  position: absolute;
  left: -14px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius);
  background: rgba(26, 23, 41, 0.94);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: floatY 6s ease-in-out infinite reverse;
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.18);
  animation: blink 1.8s ease-in-out infinite;
}

.hero-badge strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-badge span {
  font-size: 0.76rem;
  color: var(--muted);
}

.hero-badge.right {
  left: auto;
  right: -10px;
  top: 26px;
  bottom: auto;
}

/* ---------- 7. 热搜滚动条 ---------- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 8, 16, 0.6);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 48px;
}

.ticker-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 100%;
  background: var(--grad-main);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 42px;
  white-space: nowrap;
  animation: tickerMove 34s linear infinite;
  padding-left: 24px;
}

.ticker-track span {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.ticker-track span::before {
  content: "●";
  color: var(--primary);
  margin-right: 8px;
  font-size: 0.6rem;
  vertical-align: middle;
}

/* ---------- 8. 数据统计 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat {
  background: var(--bg-soft);
  padding: 30px 22px;
  text-align: center;
  transition: background 0.3s var(--ease);
}

.stat:hover {
  background: var(--card-hover);
}

.stat-num {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ---------- 9. 卡片通用 ---------- */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
}

.card:hover::before {
  transform: scaleX(1);
}

/* 核心特性卡 */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(255, 46, 116, 0.13);
  border: 1px solid rgba(255, 46, 116, 0.3);
  transition: transform 0.35s var(--ease);
}

.card:hover .feature-icon {
  transform: rotate(-7deg) scale(1.08);
}

.feature-icon.v2 {
  background: rgba(123, 92, 255, 0.14);
  border-color: rgba(123, 92, 255, 0.32);
}

.feature-icon.v3 {
  background: rgba(0, 212, 200, 0.13);
  border-color: rgba(0, 212, 200, 0.3);
}

.feature-icon.v4 {
  background: rgba(255, 138, 61, 0.14);
  border-color: rgba(255, 138, 61, 0.32);
}

.card-title {
  font-size: 1.14rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.card-text {
  color: var(--muted);
  font-size: 0.94rem;
}

.card-list {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.card-list li {
  font-size: 0.9rem;
  color: var(--text-soft);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.card-list li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 900;
  flex: 0 0 auto;
}

/* ---------- 10. 资讯卡片 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

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

.news-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.news-card:hover .news-thumb img {
  transform: scale(1.08);
}

.news-cat {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.news-cat.alt {
  background: var(--grad-alt);
}

.news-cat.cool {
  background: var(--grad-cool);
}

.news-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.news-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
  transition: color 0.25s var(--ease);
}

.news-card:hover .news-title {
  color: var(--primary);
}

.news-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.news-meta .read {
  color: var(--secondary);
  font-weight: 700;
}

/* ---------- 11. 侧边栏 / 排行榜 ---------- */
.layout-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}

.panel-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.panel-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: var(--grad-main);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  transition: transform 0.25s var(--ease);
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.rank-item:nth-child(1) .rank-num {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
}

.rank-item:nth-child(2) .rank-num {
  background: rgba(255, 46, 116, 0.28);
  color: #fff;
  border-color: transparent;
}

.rank-item:nth-child(3) .rank-num {
  background: rgba(255, 138, 61, 0.28);
  color: #fff;
  border-color: transparent;
}

.rank-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.rank-item:hover .rank-text {
  color: #fff;
}

.rank-heat {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- 12. 分类筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.26s var(--ease);
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--primary);
}

.filter-btn.is-active {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 46, 116, 0.32);
}

/* ---------- 13. 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.page-link {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.26s var(--ease);
}

.page-link:hover {
  border-color: var(--primary);
  color: #fff;
}

.page-link.is-active {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
}

/* ---------- 14. FAQ 手风琴 ---------- */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item.is-open {
  border-color: rgba(255, 46, 116, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.faq-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1rem;
  color: var(--secondary);
  transition: transform 0.32s var(--ease), background 0.32s var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(135deg);
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease);
}

.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* ---------- 15. CTA 区 ---------- */
.cta-box {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 62px 48px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(255, 46, 116, 0.18), rgba(123, 92, 255, 0.16)),
    var(--bg-soft);
  border: 1px solid var(--border-strong);
}

.cta-box::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.32), transparent 66%);
  filter: blur(14px);
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  left: -140px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 200, 0.24), transparent 66%);
  filter: blur(14px);
}

.cta-box > * {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}

.cta-text {
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}

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

/* ---------- 16. 页脚 ---------- */
.site-footer {
  margin-top: 90px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 46px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 18px 0 20px;
  max-width: 340px;
}

.footer-col h2,
.footer-col h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-bottom .legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row span {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.26s var(--ease);
}

.social-row span:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(255, 46, 116, 0.14);
  transform: translateY(-3px);
}

/* ---------- 17. 页面横幅（子页） ---------- */
.page-hero {
  padding: 66px 0 54px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 46, 116, 0.08), transparent 70%);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--muted);
  max-width: 700px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb span.sep {
  color: var(--border-strong);
}

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

/* ---------- 18. 时间轴 ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
  display: grid;
  gap: 30px;
}

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

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
}

.timeline-year {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--secondary);
}

.timeline-item h3 {
  font-size: 1.06rem;
  font-weight: 800;
  margin: 6px 0 8px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- 19. 团队 / 成员 ---------- */
.member {
  text-align: center;
  padding: 28px 20px;
}

.member img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 3px solid rgba(255, 46, 116, 0.35);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.member:hover img {
  transform: scale(1.06);
  border-color: var(--primary);
}

.member h3 {
  font-size: 1.06rem;
  font-weight: 800;
}

.member .role {
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 700;
  margin: 4px 0 10px;
}

.member p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- 20. 表单 ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
}

.field label .req {
  color: var(--primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.26s var(--ease), background 0.26s var(--ease),
    box-shadow 0.26s var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f6889;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 46, 116, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 46, 116, 0.14);
}

.field .error-msg {
  font-size: 0.78rem;
  color: #ff7a9c;
  min-height: 0;
  display: none;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #ff4d6d;
  background: rgba(255, 77, 109, 0.08);
}

.field.has-error .error-msg {
  display: block;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-alert.show {
  display: block;
  animation: fadeUp 0.45s var(--ease) both;
}

/* ---------- 21. 联系信息卡 ---------- */
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.info-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.24rem;
  background: rgba(255, 46, 116, 0.13);
  border: 1px solid rgba(255, 46, 116, 0.3);
}

.info-card h2,
.info-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.info-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- 22. 文章正文 ---------- */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px 40px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.article h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
}

.article h2 {
  font-size: 1.24rem;
  font-weight: 800;
  margin: 34px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.4;
}

.article h3 {
  font-size: 1.06rem;
  font-weight: 800;
  margin: 24px 0 10px;
  color: var(--text-soft);
}

.article p {
  color: #ccc6e0;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.article figure {
  margin: 26px 0;
}

.article figure img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}

.article figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 10px;
}

.article blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--secondary);
  background: rgba(255, 138, 61, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.article ul {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.article ul li {
  color: #ccc6e0;
  font-size: 0.96rem;
  padding-left: 22px;
  position: relative;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-main);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-nav a:hover {
  color: var(--primary);
}

/* ---------- 23. 评论 ---------- */
.comment-list {
  display: grid;
  gap: 18px;
}

.comment {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.comment-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.comment-head strong {
  font-size: 0.94rem;
  font-weight: 800;
}

.comment-head time {
  font-size: 0.78rem;
  color: var(--muted);
}

.comment p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ---------- 24. 会员套餐 ---------- */
.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan.is-featured {
  border-color: rgba(255, 46, 116, 0.5);
  box-shadow: var(--glow);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  right: 22px;
  top: 22px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-main);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price .num {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-price .unit {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- 25. 提示条 / 免责声明 ---------- */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(123, 92, 255, 0.09);
  border: 1px solid rgba(123, 92, 255, 0.28);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.notice strong {
  color: #fff;
}

/* ---------- 26. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-main);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 14px 34px rgba(255, 46, 116, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.34s var(--ease);
  z-index: 90;
}

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

.to-top:hover {
  transform: translateY(-4px);
}

/* ---------- 27. 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}
.reveal-d4 {
  transition-delay: 0.4s;
}

/* ---------- 28. 关键帧 ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 46, 116, 0.4);
  }
  50% {
    box-shadow: 0 0 26px 5px rgba(255, 46, 116, 0.28);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 29. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-media img {
    animation: none;
    aspect-ratio: 16 / 10;
  }

  .layout-side,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 22px 26px;
    background: rgba(10, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-menu.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-menu a::after {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .cta-box {
    padding: 46px 24px;
  }

  .article {
    padding: 26px 20px 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    left: 8px;
  }

  .hero-badge.right {
    right: 8px;
    top: 8px;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 66px 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 0 34px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 52px 0 62px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .ticker-label {
    font-size: 0.74rem;
    padding: 0 14px;
  }

  .page-hero {
    padding: 46px 0 40px;
  }

  .to-top {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
