/* === 口袋喵 官网共享样式 ===
   设计原则：极简、暖色调、中文优先、移动优先。
   零依赖、零构建。 */

:root {
  --bg: #fffaf3;
  --bg-soft: #fff3e6;
  --surface: #ffffff;
  --ink: #1f1611;
  --ink-soft: #6b5d52;
  --ink-faint: #a89889;
  --brand: #ff7849;
  --brand-dark: #e85d2c;
  --brand-soft: #ffd9c7;
  --line: #f0e3d2;
  --shadow: 0 1px 2px rgba(31, 22, 17, 0.04), 0 8px 24px rgba(255, 120, 73, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 880px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.7;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* === 顶部导航 === */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #ffa07a);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

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

.nav-links a {
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--brand-dark);
  opacity: 1;
}

/* === Hero === */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 56px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero-mascot {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--brand), #ffa07a);
  border-radius: 36px;
  display: grid;
  place-items: center;
  font-size: 72px;
  line-height: 1;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 40px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 22, 17, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
  opacity: 1;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* === 功能区 === */
.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 600;
}

.feature p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}

/* === 页脚 === */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 24px 48px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--brand-dark);
}

/* === 法律文档页（privacy / terms） === */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.doc h1 {
  font-size: clamp(28px, 4.5vw, 36px);
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc .doc-meta {
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  font-size: 22px;
  margin: 44px 0 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.doc h3 {
  font-size: 17px;
  margin: 28px 0 10px;
  font-weight: 600;
}

.doc p {
  margin: 12px 0;
  color: var(--ink);
}

.doc ul {
  padding-left: 22px;
  margin: 12px 0;
}

.doc li {
  margin: 6px 0;
}

.doc a {
  word-break: break-all;
}

.doc strong {
  color: var(--ink);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.doc th,
.doc td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
}

.doc tr:last-child td {
  border-bottom: none;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 16px;
}

/* === 响应式 === */
@media (max-width: 720px) {
  .nav-inner {
    padding: 12px 18px;
  }

  .nav-links {
    gap: 16px;
    font-size: 14px;
  }

  .hero {
    padding: 48px 20px 36px;
  }

  .hero-mascot {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    font-size: 56px;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 8px 20px 56px;
  }

  .doc {
    padding: 36px 20px 48px;
  }

  .doc table {
    font-size: 13.5px;
  }

  .doc th,
  .doc td {
    padding: 10px 10px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }
}

/* === 点击复制邮箱按钮（footer） === */
.copy-email {
  font: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease;
  font-variant-numeric: tabular-nums;
}

.copy-email:hover {
  color: var(--brand-dark);
}

.copy-email--done {
  color: var(--brand) !important;
}
