/* Talebit website & legal pages shared styles — responsive, mobile-first */
:root {
  --ink: #121c35;
  --accent: #2456c8;
  --button-blue: #2354bd;
  --link-blue: #174bbd;
  --page-bg: #edf2f8;
  --surface: #ffffff;
  --muted: #526482;
  --border: #e3ebf5;
  --border-light: #dce7f6;
  --fill-light: #f3f7fd;
  --fill-blue: #edf3fb;
  --serif: Georgia, 'Times New Roman', 'Songti SC', 'SimSun', serif;
  --sans: Arial, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max: 1120px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航 */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.nav .brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav .links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav .links a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.nav .links a:hover { color: var(--link-blue); text-decoration: none; }
.nav .cta {
  background: var(--button-blue);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--serif);
}
.nav .cta:hover { background: #16439f; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #121c35 0%, #1a2c55 55%, #2456c8 130%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  max-width: 560px;
}
.hero h1 em { font-style: italic; color: #cfe0ff; }
.hero p.sub {
  margin-top: 20px;
  color: #c6d5f0;
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 520px;
}
.hero .actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--serif);
}
.btn.primary { background: #fff; color: var(--button-blue); }
.btn.primary:hover { background: #eef3ff; text-decoration: none; }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { background: rgba(255,255,255,.2); text-decoration: none; }

/* 特性区 */
.section { padding: 64px 0; }
.section.alt { background: #fff; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 34px);
  text-align: center;
  margin-bottom: 12px;
}
.section .lead {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 44px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 35, 71, .1);
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--fill-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature .icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.feature h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* 免费特色横幅 */
.free-banner {
  background: linear-gradient(135deg, #2456c8, #16439f);
  color: #fff;
  border-radius: 20px;
  padding: 44px 32px;
  text-align: center;
  margin-top: 12px;
}
.free-banner h2 { color: #fff; margin-bottom: 10px; }
.free-banner p { color: #d6e3ff; font-size: 16px; max-width: 480px; margin: 0 auto; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #aebad0;
  padding: 48px 0 32px;
  font-size: 14px;
}
.site-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.site-footer .brand {
  font-family: var(--serif);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.site-footer a { color: #c6d5f0; }
.site-footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .copyright {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px;
  font-size: 13px;
  color: #8492a8;
}

/* ===== 用户协议页 ===== */
.legal-hero {
  background: linear-gradient(160deg, #121c35 0%, #1a2c55 60%, #2456c8 140%);
  color: #fff;
  padding: 48px 0;
}
.legal-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
}
.legal-hero .meta { margin-top: 8px; color: #c6d5f0; font-size: 14px; }
.legal-body {
  background: #fff;
  padding: 40px 20px 72px;
}
.legal-body .doc {
  max-width: 760px;
  margin: 0 auto;
}
.legal-body h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--ink);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 14px; color: #34455f; font-size: 15px; line-height: 1.8; }
.legal-body ul, .legal-body ol { margin: 0 0 14px 22px; color: #34455f; font-size: 15px; line-height: 1.8; }
.legal-body li { margin-bottom: 6px; }
.legal-body .toc {
  background: var(--fill-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 36px;
}
.legal-body .toc h3 { font-family: var(--serif); font-size: 16px; margin-bottom: 10px; }
.legal-body .toc a { display: block; padding: 4px 0; color: var(--link-blue); font-size: 14.5px; }

/* 响应式：移动端 */
@media (max-width: 640px) {
  .nav { height: 58px; }
  .nav .links a.optional { display: none; }
  .nav .cta { padding: 8px 14px; font-size: 13px; }
  .hero .container { padding-top: 48px; padding-bottom: 48px; }
  .section { padding: 44px 0; }
  .free-banner { padding: 32px 20px; }
}
