/* ============================================================
   字幕工坊 官网样式 · 白底浅色 · 科技蓝青 · 现代动效
   ============================================================ */
:root {
  /* 品牌色（科技蓝青） */
  --primary: #2563EB;
  --primary-light: #60A5FA;
  --primary-deep: #1D4ED8;
  --accent: #06B6D4;
  --accent-light: #22D3EE;
  --pink: #EC4899;

  /* 兼容旧变量名（transcribe 等页面内联样式仍引用） */
  --dark: #F6F8FC;              /* 页面底色（浅灰白，非纯白，有层次） */
  --dark2: #FFFFFF;             /* 卡片 / 输入框 */
  --text: #0F172A;              /* 主文字 */
  --text-dim: #64748B;          /* 次要文字 */
  --glass: #FFFFFF;             /* 玻璃卡片 → 白卡片 */
  --glass-border: #E6EAF2;      /* 浅色边框 */

  --radius: 16px;
  --radius-sm: 10px;
  --transition: .28s cubic-bezier(.4,0,.2,1);

  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow: 0 10px 30px -8px rgba(37,99,235,.14), 0 4px 10px rgba(15,23,42,.06);
  --shadow-hover: 0 24px 48px -12px rgba(37,99,235,.26), 0 8px 20px rgba(15,23,42,.10);
  --grad: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --grad-soft: linear-gradient(135deg, rgba(37,99,235,.10), rgba(6,182,212,.10));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(37,99,235,.18); }

/* ===== 光标光晕（跟随鼠标的柔和光斑） ===== */
.cursor-glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.10), rgba(6,182,212,.05) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  left: 50%; top: 40%;
  transition: transform .18s ease-out;
  will-change: transform;
}

/* ===== 背景光斑（浅色柔和渐变） ===== */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: orbFloat 22s ease-in-out infinite; }
.orb-1 { width: 640px; height: 640px; background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%); top: -220px; left: -120px; }
.orb-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(6,182,212,.32), transparent 70%); top: 38%; right: -160px; animation-delay: -8s; }
.orb-3 { width: 440px; height: 440px; background: radial-gradient(circle, rgba(236,72,153,.26), transparent 70%); bottom: -140px; left: 30%; animation-delay: -15s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(70px,-50px) scale(1.12); }
  50% { transform: translate(-40px,70px) scale(.94); }
  75% { transform: translate(50px,40px) scale(1.06); }
}

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: 68px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}
.nav .logo {
  font-size: 22px; font-weight: 800; letter-spacing: .5px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transition: transform .3s;
}
.nav .logo:hover { transform: translateY(-1px); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  position: relative;
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: color .3s, background .3s;
}
.nav-links a:hover { color: var(--primary); background: rgba(37,99,235,.07); }
.nav-links a.active { color: var(--primary); background: rgba(37,99,235,.10); font-weight: 600; }

.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-user .points-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.nav-user .points-chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #B45309;
  background: linear-gradient(135deg, rgba(251,191,36,.22), rgba(245,158,11,.12));
  border: 1px solid rgba(245,158,11,.35);
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(245,158,11,.14);
}
.nav-user .points-chip::before { content: '★'; font-size: 12px; color: #F59E0B; }
.nav-user .points-chip .pts-num { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.nav-user .nav-name { font-size: 14px; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 减积分飘出动画 */
.points-deduct {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: #EF4444;
  white-space: nowrap; pointer-events: none;
  opacity: 0; margin-top: 2px;
}
.points-deduct.anim { animation: pointDeduct 1.6s ease-out forwards; }
@keyframes pointDeduct {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); }
  30% { transform: translate(-50%, -6px) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(.9); }
}

/* ===== 按钮 ===== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition); font-family: inherit;
  will-change: transform;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 20px -6px rgba(37,99,235,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(37,99,235,.6); }
.btn-primary:active { transform: translateY(0); }
/* 扫光 */
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
  background: var(--card); color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary-light); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ===== 主容器 ===== */
.container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 滚动浮现 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ===== Hero ===== */
.hero { position: relative; z-index: 1; padding: 108px 0 76px; text-align: center; }
.hero .hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--primary);
  background: var(--grad-soft); border: 1px solid rgba(37,99,235,.18);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 26px;
  animation: floatY 5s ease-in-out infinite;
}
.hero .hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(6,182,212,.5); animation: pulse 2s infinite; }
.hero h1 { font-size: 58px; font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin-bottom: 24px; }
.hero h1 span {
  background: linear-gradient(120deg, #2563EB, #06B6D4, #2563EB);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientFlow 5s linear infinite;
}
.hero p { font-size: 18px; color: var(--text-dim); max-width: 640px; margin: 0 auto 38px; }
@keyframes gradientFlow { to { background-position: 200% center; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(6,182,212,.5); } 70% { box-shadow: 0 0 0 8px rgba(6,182,212,0); } 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); } }

/* ===== 数据条 ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin: 8px 0 24px; text-align: center;
}
.stat-item {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 22px 16px; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num {
  font-size: 34px; font-weight: 800; letter-spacing: -.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ===== 区块标题 ===== */
.section { padding: 60px 0; }
.section-title { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; text-align: center; }
.section-sub { color: var(--text-dim); margin-bottom: 40px; text-align: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== 服务卡片 ===== */
.service-card {
  display: block; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0; transition: opacity .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { opacity: .035; }
.service-card .icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 18px;
  transition: transform .35s;
}
.service-card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--text-dim); }
.service-card .coming {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; color: var(--pink); background: rgba(236,72,153,.10);
  padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.icon-blue { background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(37,99,235,.05)); }
.icon-teal { background: linear-gradient(135deg, rgba(6,182,212,.16), rgba(6,182,212,.05)); }
.icon-pink { background: linear-gradient(135deg, rgba(236,72,153,.16), rgba(236,72,153,.05)); }
.icon-orange { background: linear-gradient(135deg, rgba(249,115,22,.16), rgba(249,115,22,.05)); }

/* ===== 广告位 ===== */
.ads-banner { border-radius: 20px; overflow: hidden; margin: 32px 0; border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); }
.ads-banner img, .ads-banner video { width: 100%; display: block; aspect-ratio: 21/7; object-fit: cover; }
.ads-swiper { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.ads-swiper .slide { min-width: 100%; }
.ads-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.ads-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; cursor: pointer; transition: var(--transition); }
.ads-dots .dot.active { background: var(--primary); width: 22px; border-radius: 999px; }

/* ===== 亮点 ===== */
.feature {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px 22px;
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .fi { font-size: 26px; flex-shrink: 0; }
.feature h4 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--text-dim); }

/* ===== 二维码引流 ===== */
.cta { padding: 68px 0; text-align: center; }
.cta-card {
  position: relative; overflow: hidden;
  background: var(--grad); color: #fff;
  border-radius: 26px; padding: 54px 32px;
  box-shadow: var(--shadow-hover);
}
.cta-card::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.14); filter: blur(60px);
  top: -200px; right: -100px; animation: orbFloat 14s ease-in-out infinite;
}
.cta-card h2 { font-size: 32px; margin-bottom: 14px; position: relative; }
.cta-card p { color: rgba(255,255,255,.85); margin-bottom: 24px; position: relative; }
.cta-card .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 24px -8px rgba(0,0,0,.3); position: relative; }
.cta-card .btn-primary::after { display: none; }
.qr-box {
  width: 164px; height: 164px; margin: 0 auto 18px; border-radius: 18px; overflow: hidden;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.28); position: relative;
}
.qr-box img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 登录页 ===== */
.auth-wrap { position: relative; z-index: 1; min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
  width: 100%; max-width: 410px; background: var(--card);
  border: 1px solid var(--glass-border); border-radius: 24px; padding: 42px 34px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.form-group input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border); background: #F8FAFC; color: var(--text);
  font-size: 14px; outline: none; font-family: inherit; transition: var(--transition);
}
.form-group input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-error { display: none; color: #EF4444; font-size: 13px; margin-top: 12px; text-align: center; }
.auth-tip { margin-top: 20px; font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.8; }

/* ===== 占位页 ===== */
.placeholder { position: relative; z-index: 1; padding: 120px 24px; text-align: center; }
.placeholder .big { font-size: 72px; margin-bottom: 20px; animation: floatY 5s ease-in-out infinite; display: inline-block; }
.placeholder h1 { font-size: 36px; margin-bottom: 14px; }
.placeholder p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }

/* ===== 页脚 ===== */
.footer {
  position: relative; z-index: 1;
  padding: 30px 24px 24px;
  text-align: center; margin-top: 40px;
}
.footer::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 320px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border) 20%, var(--primary-light) 50%, var(--glass-border) 80%, transparent);
  opacity: .9;
}

.footer-links { display: flex; justify-content: center; align-items: center; margin-bottom: 14px; }
.footer-links a {
  position: relative; padding: 4px 18px;
  color: var(--text-dim); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: color .3s;
}
.footer-links a + a::before {
  content: '·'; position: absolute; left: -1px; top: 50%;
  transform: translateY(-55%); color: #CBD5E1; opacity: .7; font-size: 18px; font-weight: 700;
}
.footer-links a::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.footer-links a:hover { color: var(--primary); }
.footer-links a:hover::after { transform: scaleX(1); }

.filing { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.filing a {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 14px;
  color: var(--text-dim); text-decoration: none; font-size: 11.5px; opacity: .8;
  transition: color .3s, opacity .3s;
}
.filing a + a::before { content: '|'; margin-right: 14px; color: #CBD5E1; opacity: .5; font-size: 10px; }
.filing a:hover { color: var(--primary); opacity: 1; }
.filing img { width: 14px; height: 14px; vertical-align: middle; }

.footer .copyright { color: var(--text-dim); font-size: 11px; opacity: .55; letter-spacing: .3px; }

/* ===== 导航滚动阴影 ===== */
.nav { transition: box-shadow .3s, background .3s; }
.nav.scrolled { box-shadow: 0 4px 20px -6px rgba(15,23,42,.10); }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 1200;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 10px 24px -6px rgba(37,99,235,.5);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, visibility .3s, transform .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }

/* ===== 移动端汉堡菜单 ===== */
.nav-toggle { display: none; }

/* ===== 鼠标粒子尾迹 ===== */
.cursor-particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 42px; }
  .nav { padding: 0 18px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 10px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 72px 0 52px; }
  .section-title { font-size: 26px; }
  .nav { padding: 0 16px; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 12px 30px -12px rgba(15,23,42,.15);
    padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 15px; border-radius: 10px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; margin-left: auto; margin-right: 10px;
    background: transparent; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer { padding: 22px 16px 18px; }
  .footer-links a { padding: 4px 14px; font-size: 12px; }
  .footer-links a::after { left: 14px; right: 14px; }
  .filing { flex-direction: column; gap: 4px; }
  .filing a { padding: 2px 8px; font-size: 11px; }
  .filing a + a::before { display: none; }
  .footer .copyright { font-size: 10.5px; }
}
