:root {
  /* 与 HexCat/HexCat/DesignSystem/HCColor.swift 对齐 */
  --sky-top: #1A0B2E;    /* deepSpaceStart */
  --sky-mid: #16213E;    /* deepSpaceMid */
  --sky-bottom: #0F3460; /* deepSpaceEnd */
  --accent: #C8A8E9;     /* lavender */
  --glow-mint: #8FE3CF;  /* mint */
  --star-gold: #FDE68A;  /* starGold */
  --ink: #FFFFFF;
  --dim: rgba(255, 255, 255, 0.72);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(160deg, rgba(26, 11, 46, 0.94) 0%, rgba(22, 33, 62, 0.90) 55%, rgba(15, 52, 96, 0.92) 100%),
    url("assets/hexcat-hero-landscape.png") center / cover no-repeat fixed;
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--accent); }
a:focus-visible, .badge:focus-visible {
  outline: 2px solid var(--glow-mint); outline-offset: 2px; border-radius: 4px;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
nav .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
nav .brand img { width: 40px; height: 40px; border-radius: 10px; }
nav .links a { margin-left: 24px; color: var(--dim); text-decoration: none; font-size: 15px; }
nav .links a:hover { color: var(--accent); }

/* Hero */
.hero { text-align: center; padding: 64px 0 48px; }
.hero img.icon { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 12px 48px rgba(200, 168, 233, 0.25); }
.hero h1 { font-size: 44px; margin: 28px 0 12px; color: var(--accent); letter-spacing: 0.5px; }
.hero .tagline { font-size: 20px; color: var(--dim); max-width: 560px; margin: 0 auto; }
.badge {
  display: inline-block; margin-top: 32px; padding: 12px 28px;
  background: linear-gradient(90deg, var(--accent), var(--glow-mint));
  color: #1A0B2E; font-weight: 700; font-size: 17px;
  border-radius: 999px; text-decoration: none;
}

/* Features */
.features { padding: 48px 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
.feature {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px; padding: 24px 28px;
}
.feature h2 { font-size: 19px; color: var(--glow-mint); margin-bottom: 6px; }
.feature p { color: var(--dim); font-size: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }

/* Screenshots */
.shots { padding: 32px 0 64px; }
.shots h2 { text-align: center; color: var(--star-gold); margin-bottom: 24px; font-size: 26px; }
.shotrow { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; align-items: center; }
.shotrow img {
  width: min(82vw, 620px); height: auto; border-radius: 18px; flex: 0 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* Legal pages */
.page h1 { color: var(--accent); font-size: 32px; margin: 40px 0 20px; }
.page h2 { color: var(--glow-mint); font-size: 20px; margin: 28px 0 10px; }
.page p, .page li, .page td, .page th { color: var(--dim); font-size: 16px; }
.page ul { padding-left: 22px; }
.page .updated { color: var(--dim); font-size: 14px; margin-bottom: 24px; }
.page table { border-collapse: collapse; margin: 12px 0; width: 100%; table-layout: fixed; }
.page th, .page td {
  border: 1px solid rgba(255, 255, 255, 0.18); padding: 8px 12px;
  text-align: left; vertical-align: top;
  overflow-wrap: anywhere; /* 长 URL(隐私政策链接)在移动端可断行 */
}
.page th { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* Support CTA (index) */
.hero-contact { margin-top: 20px; font-size: 16px; color: var(--dim); }
.hero-contact a { color: var(--accent); font-weight: 600; }
.support-cta {
  text-align: center; padding: 16px 0 48px;
}
.support-cta h2 { color: var(--accent); font-size: 24px; margin-bottom: 10px; }
.support-cta p { color: var(--dim); font-size: 16px; }
.support-email { margin: 6px 0 10px; }
.support-email a {
  font-size: 22px; font-weight: 700; color: var(--glow-mint);
  text-decoration: none; border-bottom: 2px solid rgba(143, 227, 207, 0.4);
  padding-bottom: 2px;
}
.support-email a:hover { color: var(--accent); border-color: var(--accent); }

/* FAQ readability: breathing room between Q&A groups */
.faq p { margin-bottom: 22px; }
.faq p strong { color: var(--ink); display: inline-block; margin-bottom: 4px; }

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0 48px; margin-top: 32px;
  color: var(--dim); font-size: 14px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--dim); text-decoration: none; margin-right: 20px; }
footer a:hover { color: var(--accent); }

/* Language switcher */
.langswitch {
  display: block; /* 覆盖 nav 的 flex，让语言链接正常换行 */
  text-align: center; padding: 0 0 40px;
  color: var(--dim); font-size: 13px; line-height: 2;
}
.langswitch a, .langswitch .cur { color: var(--dim); text-decoration: none; margin: 0 7px; display: inline-block; }
.langswitch a:hover { color: var(--accent); }
.langswitch .cur { color: var(--accent); font-weight: 600; }

/* TikTok redirect fallback page */
.redirect-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 32px;
}
.redirect-card { max-width: 420px; }
.redirect-card .logo {
  width: 96px; height: 96px; border-radius: 24px; margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.redirect-card h1 { font-size: 28px; margin-bottom: 12px; color: var(--accent); }
.redirect-card p { font-size: 16px; line-height: 1.6; color: var(--dim); margin-bottom: 28px; }
.redirect-card .button {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--glow-mint));
  color: #1A0B2E; font-size: 17px; font-weight: 700; text-decoration: none;
}
.redirect-card .home { display: block; margin-top: 18px; font-size: 14px; color: var(--dim); }
