/* ============================================================
   全局配色主题（CSS 自定义属性，集中管理颜色）
   ============================================================ */
:root {
  --bg: #0a0a0f;            /* 深色背景 */
  --bg-alt: #0f0f17;        /* 次级背景 */
  --card: #12121c;          /* 卡片背景 */
  --red: #e94560;           /* 主红 */
  --purple: #8e44ad;        /* 主紫 */
  --blue: #3ae3ff;          /* 电光蓝高亮 */
  --grad: linear-gradient(135deg, var(--red), var(--purple));  /* 红紫渐变 */
  --grad-soft: linear-gradient(135deg, rgba(233,69,96,.18), rgba(142,68,173,.18));
  --text: #f4f4f7;
  --muted: #9a9ab0;
  --border: rgba(255,255,255,.08);
  --glow-red: rgba(233,69,96,.5);
  --font: "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* ============================================================
   基础样式重置
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   水波纹涟漪按钮
   - 点击时生成扩散的波纹动画，制造反馈
   - 通过 JS 动态注入 .ripple 节点
   ============================================================ */
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: .9rem 1.8rem;
  border: none;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--glow-red);
  filter: brightness(1.1);
}
.btn:active { transform: translateY(0); }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,.35);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* 脉冲 CTA（Hero 区） */
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--glow-red); }
  70%  { box-shadow: 0 0 0 18px rgba(233,69,96,0); }
  100% { box-shadow: 0 0 0 0 rgba(233,69,96,0); }
}

/* ============================================================
   加载屏 Preloader
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.pre-title {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .1em;
}
.pre-bar {
  margin-top: 1.4rem;
  width: 180px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.pre-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--grad);
  border-radius: 4px;
  animation: loadbar 1.2s ease-in-out infinite;
}
@keyframes loadbar {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ============================================================
   Hero 区（全屏 + 动态渐变背景）
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem 1.2rem;
}
/* 动态渐变背景层（三色流动） */
.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--red) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, var(--purple) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, var(--blue) 0%, transparent 35%);
  background-size: 180% 180%;
  animation: bgflow 12s ease-in-out infinite;
  filter: blur(60px);
  opacity: .55;
}
@keyframes bgflow {
  0%,100% { background-position: 0% 0%; }
  50%     { background-position: 100% 100%; }
}
.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: .3rem 1rem;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .2em;
  margin-bottom: 1.4rem;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: .5; }
}
.hero h1 {
  font-size: clamp(2.2rem, 9vw, 5.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .03em;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1rem, 3.5vw, 1.3rem);
}
.hero-sub b { color: var(--blue); }
.hero-cta { margin-top: 2.4rem; }

/* ============================================================
   主内容布局
   ============================================================ */
main { position: relative; z-index: 1; }
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.2rem 6rem;
}

/* 社交证明 + 倒计时 */
.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  padding: 1.1rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 2.6rem;
}
.status-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: var(--muted);
}
.status-item b { color: var(--blue); font-size: 1.15rem; }
.timer {
  font-variant-numeric: tabular-nums;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .05em;
  background: var(--grad-soft);
  padding: .3rem .7rem;
  border-radius: 8px;
}

/* 文章分区 */
section.sec { margin-bottom: 2.2rem; }
.sec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.sec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142,68,173,.45);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

/* 缩略图占位（渐变背景暗示视频） */
.thumb {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  overflow: hidden;
}
.thumb::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 70% 30%, var(--red), transparent 60%),
    radial-gradient(circle at 20% 70%, var(--blue), transparent 55%);
  opacity: .4;
  animation: thumbflow 8s ease-in-out infinite;
}
@keyframes thumbflow {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-4%,4%); }
}
.thumb .play {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 2px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, background .3s ease;
}
.sec-card:hover .play { transform: scale(1.1); background: rgba(0,0,0,.7); }
.play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}
.thumb .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: .2rem .7rem;
  font-size: .72rem;
  color: #fff;
  background: var(--grad);
  border-radius: 6px;
  letter-spacing: .1em;
}

.sec-body { padding: 1.5rem 1.6rem 1.7rem; }
.sec-tagline {
  display: block;
  font-size: .75rem;
  color: var(--blue);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.sec-body h2 {
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: .7rem;
}
.sec-body p {
  color: var(--muted);
  font-size: .98rem;
  margin-bottom: 1.3rem;
}
.sec-body p b { color: var(--text); }

/* 图片展示网格（三列） */
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-bottom: 1.3rem;
}
.img-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  transition: transform .3s ease, border-color .3s ease;
}
.img-item:hover {
  transform: translateY(-4px);
  border-color: rgba(58,227,255,.45);
}
.img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  display: block;
}

.sec-cta { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.hint {
  font-size: .8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.hint::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: blink 2s infinite;
}

/* ============================================================
   粘性底部栏（滚动后显示）
   ============================================================ */
#stickyBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.2rem;
  background: rgba(10,10,15,.88);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform .4s ease;
}
#stickyBar.show { transform: translateY(0); }
#stickyBar .txt {
  font-size: .95rem;
  font-weight: 700;
}
#stickyBar .txt span {
  color: var(--blue);
  display: block;
  font-size: .72rem;
  font-weight: 400;
}
#stickyBar .btn { padding: .65rem 1.3rem; font-size: .9rem; }

/* ============================================================
   滚动淡入动画（IntersectionObserver 控制）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 1.2rem 6rem;
  color: var(--muted);
  font-size: .78rem;
}

/* ============================================================
   FAQ 常见问题（可折叠手风琴）
   ============================================================ */
.faq-sec {
  margin-top: 1rem;
  padding: 2rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.faq-head { text-align: center; margin-bottom: 1.8rem; }
.faq-head h2 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  margin-bottom: .6rem;
}
.faq-head p {
  color: var(--muted);
  font-size: .98rem;
  max-width: 560px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: .8rem;
  overflow: hidden;
  background: var(--bg-alt);
}
.faq-item.open { border-color: rgba(142,68,173,.5); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: var(--blue); }
.faq-arrow {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform .3s ease;
}
.faq-item.open .faq-arrow { transform: rotate(-135deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-a p b { color: var(--text); }
.faq-cta { text-align: center; margin-top: 1.8rem; }

/* ============================================================
   响应式：移动端优化
   ============================================================ */
@media (max-width: 600px) {
  .status-bar { justify-content: space-between; }
  .sec-body { padding: 1.2rem; }
  #stickyBar .txt { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .2s !important; }
}