/* TDL Browser 宣传站 v2 — 品牌渐变 #7ceaff→#00d4ff→#4f8cf7→#8b5cf6
   Apple 式大标题 + 滚动渐入 + 光效背景 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #070b11;
  --bg-soft: #0d131c;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9eef5;
  --text-dim: #98a6b8;
  --grad: linear-gradient(120deg, #7ceaff 0%, #00d4ff 30%, #4f8cf7 70%, #8b5cf6 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,234,255,.14), rgba(139,92,246,.14));
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: rgba(0, 212, 255, 0.35); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 渐变流光微动 */
.shimmer {
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ============ 背景光效 ============ */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .16; }
.glow-1 { width: 640px; height: 640px; background: #00d4ff; top: -180px; left: -120px; animation: drift1 16s ease-in-out infinite alternate; }
.glow-2 { width: 560px; height: 560px; background: #8b5cf6; top: 8%; right: -160px; animation: drift2 20s ease-in-out infinite alternate; }
.glow-3 { width: 520px; height: 520px; background: #4f8cf7; top: 46%; left: 24%; opacity: .10; animation: drift1 24s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(90px, 60px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-80px, 70px) scale(1); } }

.rays, .rays svg { width: 100%; height: 100%; }
.rays-group { transform-origin: 600px 400px; animation: raySpin 90s linear infinite; }
@keyframes raySpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

main, .nav, .hero, section, .marquee, .footer { position: relative; z-index: 1; }

/* ============ 滚动渐入 ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; } .d2 { transition-delay: .24s; } .d3 { transition-delay: .36s; } .d4 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .shimmer, .rays-group, .glow { animation: none; }
}

/* ============ 导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 17, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(7, 11, 17, 0.85); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--grad); color: #04121c; font-weight: 700; font-size: 13px;
  padding: 7px 16px; border-radius: 999px; text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,212,255,.3); }

/* ============ Hero ============ */
.hero { max-width: 1120px; margin: 0 auto; padding: 120px 24px 40px; text-align: center; }
.hero-kicker { font-size: 14px; letter-spacing: 3px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 24px; }
.hero-title { font-size: clamp(46px, 8vw, 96px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.hero-sub { max-width: 600px; margin: 28px auto 0; font-size: 19px; color: var(--text-dim); }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #04121c; box-shadow: 0 8px 32px rgba(0,212,255,.25); }
.btn-primary:hover { box-shadow: 0 14px 44px rgba(139,92,246,.35); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--card); }
.btn-big { font-size: 18px; padding: 18px 44px; }

/* ---- mockup ---- */
.shot-wrap { position: relative; margin: 80px auto 0; max-width: 800px; perspective: 1200px; }
.shot-glow {
  position: absolute; inset: -40px; z-index: 0; border-radius: 24px;
  background: var(--grad-soft); filter: blur(50px); opacity: .7;
  animation: glowPulse 5s ease-in-out infinite alternate;
}
@keyframes glowPulse { from { opacity: .45; } to { opacity: .85; } }
.shot {
  position: relative; z-index: 1;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #101724, #0a0f18);
  box-shadow: 0 50px 120px rgba(0,0,0,.6);
  overflow: hidden; text-align: left;
  transition: transform .5s cubic-bezier(.2,.65,.3,1);
  transform-style: preserve-3d;
}
.shot-wrap:hover .shot { transform: rotateX(2.5deg) rotateY(-2.5deg) translateY(-4px); }
.shot-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.035);
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.shot-tabs { display: flex; gap: 6px; margin-left: 12px; flex: 1; min-width: 0; }
.shot-tab {
  font-size: 12px; color: var(--text-dim);
  padding: 5px 14px; border-radius: 8px;
  background: rgba(255,255,255,.045);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.shot-tab.active { background: rgba(0,212,255,.13); color: var(--text); }
.shot-tab.plus { padding: 5px 10px; }
.shot-url { font-size: 12px; color: var(--text-dim); padding: 5px 14px; border-radius: 8px; background: rgba(255,255,255,.06); }
.shot-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 76px 20px; }
.shot-logo { animation: float 4.5s ease-in-out infinite; filter: drop-shadow(0 18px 40px rgba(0,212,255,.35)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.shot-name { color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 1px; }
.shot-tagline { color: var(--text-dim); font-size: 13px; }

/* ============ 跑马灯 ============ */
.marquee {
  margin: 90px 0 0; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; background: rgba(255,255,255,.02);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 26s linear infinite;
  color: var(--text-dim); font-size: 15px; letter-spacing: 2px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ 分节通用 ============ */
.sec-kicker { text-align: center; font-size: 13px; letter-spacing: 4px; color: var(--text-dim); margin-bottom: 18px; }
.sec-title { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -0.02em; text-align: center; line-height: 1.2; }

/* ============ 特性 ============ */
.features { max-width: 1120px; margin: 0 auto; padding: 130px 24px 30px; }
.features .sec-title { margin-bottom: 64px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 30px;
  transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,212,255,.09), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,212,255,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.card-icon { font-size: 32px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* ============ 深潜 ============ */
.deep { max-width: 1120px; margin: 0 auto; padding: 140px 24px 30px; }
.deep .sec-title { margin-bottom: 80px; }
.deep-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.deep-row.reverse .deep-text { order: 2; }
.deep-row.reverse .deep-visual { order: 1; }
.deep-num {
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.deep-text h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 10px 0 18px; letter-spacing: -0.01em; }
.deep-text p { color: var(--text-dim); font-size: 16px; }

/* 架构层图 */
.chip-diagram { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.chip {
  width: 78%; text-align: center; padding: 20px 18px;
  border-radius: 14px; border: 1px solid var(--line);
  font-weight: 700; font-size: 16px;
  background: var(--card);
  transition: transform .25s, border-color .25s;
}
.chip small { display: block; font-weight: 400; font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.chip:hover { transform: scale(1.04); }
.chip.core { border-color: rgba(124,234,255,.4); background: rgba(124,234,255,.06); }
.chip.layer2 { border-color: rgba(79,140,247,.4); background: rgba(79,140,247,.06); }
.chip.layer3 { border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.08); }
.chip-diagram .chip:not(:last-child)::after {
  content: "↓"; display: block; margin: 10px auto -22px;
  color: var(--text-dim); font-size: 14px;
}

/* 内存对比条 */
.mem-bars { display: flex; flex-direction: column; gap: 20px; }
.mem-bar { display: flex; align-items: center; gap: 14px; }
.mem-label { width: 96px; font-size: 14px; color: var(--text-dim); flex-shrink: 0; }
.mem-fill {
  position: relative; height: 34px; width: 100%;
  background: rgba(255,255,255,.05); border-radius: 10px; overflow: hidden;
}
.mem-fill::after {
  content: ""; position: absolute; inset: 0; width: var(--w);
  border-radius: 10px;
  animation: barGrow 1.2s cubic-bezier(.2,.65,.3,1) both;
}
.mem-fill.bad::after  { background: linear-gradient(90deg, #ff5f57, #b91c1c); }
.mem-fill.good::after { background: var(--grad); }
@keyframes barGrow { from { width: 0; } to { width: var(--w); } }
.mem-fill em {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 13px; font-weight: 600; color: #fff; z-index: 1;
}
.mem-note { font-size: 12px; color: var(--text-dim); opacity: .7; margin-top: 4px; }

/* 三个零 */
.principles { display: flex; justify-content: center; gap: 26px; }
.principle { text-align: center; padding: 26px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); flex: 1; transition: transform .25s, border-color .25s; }
.principle:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.4); }
.principle span { font-size: clamp(40px, 5vw, 60px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.principle p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

/* ============ 对比表 ============ */
.compare { max-width: 1020px; margin: 0 auto; padding: 140px 24px 30px; }
.compare .sec-title { margin-bottom: 56px; }
.table-wrap { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.cmp-table thead th { font-size: 14px; color: var(--text); background: rgba(255,255,255,.03); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td.me, .cmp-table th.me { color: var(--text); background: rgba(0,212,255,.05); font-weight: 600; }
.cmp-table td.me.hl { color: #7ceaff; }
.cmp-table tbody tr { transition: background .2s; }
.cmp-table tbody tr:hover { background: rgba(255,255,255,.03); }

/* ============ 更新日志时间线 ============ */
.changelog { max-width: 860px; margin: 0 auto; padding: 140px 24px 30px; }
.changelog .sec-title { margin-bottom: 70px; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, #7ceaff, #00d4ff, #4f8cf7, #8b5cf6);
  opacity: .4; border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -33px; top: 26px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg);
  border: 3px solid #00d4ff; box-shadow: 0 0 14px rgba(0,212,255,.6);
}
.tl-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 30px;
  transition: transform .25s, border-color .25s;
}
.tl-card:hover { transform: translateX(6px); border-color: rgba(0,212,255,.3); }
.tl-ver {
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: var(--grad); color: #04121c; margin-right: 12px;
}
.tl-date { font-size: 13px; color: var(--text-dim); }
.tl-card h3 { font-size: 20px; margin: 14px 0 10px; }
.tl-card ul { list-style: none; }
.tl-card li { color: var(--text-dim); font-size: 15px; padding: 4px 0 4px 20px; position: relative; }
.tl-card li::before { content: "—"; position: absolute; left: 0; color: rgba(0,212,255,.5); }

/* ============ FAQ ============ */
.faq { max-width: 780px; margin: 0 auto; padding: 140px 24px 30px; }
.faq .sec-title { margin-bottom: 56px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 28px;
  transition: border-color .25s, background .25s;
}
details:hover, details[open] { border-color: rgba(0,212,255,.3); }
summary {
  cursor: pointer; font-size: 17px; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
.faq-arrow { color: var(--text-dim); transition: transform .3s; flex-shrink: 0; }
details[open] .faq-arrow { transform: rotate(180deg); }
details p { color: var(--text-dim); font-size: 15px; margin-top: 14px; }
details code { background: rgba(255,255,255,.07); padding: 2px 8px; border-radius: 6px; font-size: 13px; }
details a { color: #00d4ff; text-decoration: none; }

/* ============ 下载 ============ */
.download { padding: 170px 24px 120px; }
.download-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 70px 40px; border-radius: 28px;
  border: 1px solid rgba(0,212,255,.25);
  background: linear-gradient(180deg, rgba(0,212,255,.06), rgba(139,92,246,.06));
  position: relative; overflow: hidden;
}
.download-inner::before {
  content: ""; position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 130%; height: 120%;
  background: radial-gradient(closest-side, rgba(0,212,255,.12), transparent);
  pointer-events: none;
}
.dl-logo { filter: drop-shadow(0 14px 34px rgba(0,212,255,.4)); margin-bottom: 24px; animation: float 5s ease-in-out infinite; }
.download .sec-title { margin-bottom: 16px; }
.dl-sub { color: var(--text-dim); font-size: 16px; margin-bottom: 40px; }
.dl-note { color: var(--text-dim); font-size: 13px; margin-top: 18px; }
.dl-list { list-style: none; margin-top: 44px; display: flex; flex-direction: column; gap: 12px; color: var(--text-dim); font-size: 15px; }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 64px; text-align: center;
  color: var(--text-dim); font-size: 14px;
}
.footer img { opacity: .8; margin-bottom: 12px; }
.footer a { color: #00d4ff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.copy { margin-top: 8px; font-size: 12px; opacity: .6; }

/* ============ 小屏适配 ============ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding-top: 90px; }
  .deep-row { grid-template-columns: 1fr; gap: 36px; padding: 44px 0; }
  .deep-row.reverse .deep-text { order: 1; }
  .deep-row.reverse .deep-visual { order: 2; }
  .principles { flex-direction: column; }
  .mem-label { width: 76px; font-size: 13px; }
  .cmp-table { font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 12px 12px; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .shot-tab:nth-child(3) { display: none; }
}
