/* =========================================================
   TTLocker 官网样式
   深色安全风：靛蓝-青色渐变点缀，系统字体，无外部依赖
   ========================================================= */

:root {
  --bg: #0b0e14;
  --bg-soft: #10141d;
  --surface: #151a25;
  --surface-2: #1a2130;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf3;
  --text-muted: #9aa4b5;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- 语言可见性 ---- */
body[data-lang="zh"] .en { display: none !important; }
body[data-lang="en"] .zh { display: none !important; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- 导航 ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-links { display: flex; gap: 22px; }

.nav-link { color: var(--text-muted); font-size: 15px; }
.nav-link:hover { color: var(--text); text-decoration: none; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch a {
  padding: 4px 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.lang-switch a.active {
  background: var(--grad);
  color: #fff;
}
.lang-switch a:hover { text-decoration: none; }

/* ---- Hero ---- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(99, 102, 241, 0.22), transparent),
    radial-gradient(ellipse 40% 40% at 80% 10%, rgba(34, 211, 238, 0.10), transparent);
}

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.35);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.hero p.tagline {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 18px;
  color: var(--text-muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.badge {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface);
}

.hero-cta { margin-top: 36px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

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

/* ---- 通用 section ---- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.3px; }
.section-head p { color: var(--text-muted); margin-top: 10px; font-size: 16px; }

/* ---- 功能网格 ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, 0.45); }

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---- 隐私对比区 ---- */
.privacy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.split-card {
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--border);
}

.split-card.local {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), rgba(21, 26, 37, 0.9));
  border-color: rgba(34, 211, 238, 0.28);
}

.split-card.cloud {
  background: var(--surface);
}

.split-card h3 { font-size: 19px; margin-bottom: 6px; }
.split-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }

.split-card ul { list-style: none; }
.split-card li {
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.split-card li::before { content: "·"; color: var(--accent-2); font-weight: 800; }
.split-card li strong { color: var(--text); font-weight: 600; }

/* ---- 页脚 ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 52px;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }

.footer-meta {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- 文档页（隐私政策 / 服务条款）---- */
.doc-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.doc-header { margin-bottom: 36px; }
.doc-header .back {
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}
.doc-header h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.4px; }
.doc-header .doc-meta {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-body h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-top: 8px;
}

.doc-body h3 { font-size: 16.5px; margin: 22px 0 8px; }

.doc-body p, .doc-body li {
  color: #c3cbd8;
  font-size: 15px;
  margin-bottom: 10px;
}

.doc-body ul, .doc-body ol { padding-left: 22px; margin-bottom: 14px; }
.doc-body li { margin-bottom: 6px; }

.doc-body strong { color: var(--text); font-weight: 600; }

.doc-note {
  background: rgba(99, 102, 241, 0.09);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: #c3cbd8;
}

/* ---- 响应式 ---- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-split { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; }
  .hero h1 { font-size: 30px; }
  .nav-links { display: none; }
  .section { padding: 52px 0; }
  .doc-header h1 { font-size: 27px; }
}
