/* ===== EnjoyCards 官网 · 精修深色版（审慎克制的科技感） ===== */
:root {
  --bg: #060a12;
  --surface: #0d1728;
  --surface-2: #101c30;
  --border: rgba(140, 180, 220, 0.12);
  --border-strong: rgba(45, 212, 191, 0.38);
  --text: #e9eef7;
  --muted: #8ea2bd;
  --accent: #2dd4bf;
  --accent-deep: #0fbfaa;
  --ink-on-accent: #04231d;
  --brand-grad: linear-gradient(135deg, #2dd4bf 0%, #0fbfaa 48%, #0b8f88 100%);
  --shadow-lg: 0 44px 90px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 20px 44px rgba(0, 0, 0, 0.32);
  --glow-soft: 0 0 0 1px rgba(45, 212, 191, 0.14), 0 18px 40px rgba(45, 212, 191, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  background-image: radial-gradient(1000px 560px at 82% -6%, rgba(15, 191, 170, 0.10), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
.container { width: min(1120px, 100% - 48px); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ===== 顶部导航 ===== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 10, 18, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; flex-wrap: wrap; }
.nav-logo { font-weight: 800; font-size: 20px; letter-spacing: -0.3px; color: var(--text); }
.nav-logo b { color: var(--accent); }
.nav-links { display: flex; gap: 6px 28px; flex-wrap: wrap; align-items: center; }
.nav-link { color: var(--muted); font-weight: 500; font-size: 15px; padding: 6px 2px; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

/* ===== 语言切换下拉 ===== */
.lang-dropdown { position: relative; }
.lang-details { position: relative; }
.lang-details[open] .lang-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-toggle { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px;
  color: var(--muted); background: rgba(255, 255, 255, 0.04); transition: color 0.2s, border-color 0.2s; }
.lang-toggle::-webkit-details-marker { display: none; }
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }
.lang-chevron { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid currentColor; transition: transform 0.2s; }
.lang-details[open] .lang-chevron { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 200px; max-height: 380px;
  overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 14px;
  background: rgba(11, 18, 32, 0.98); box-shadow: var(--shadow-md); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
.lang-option { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--muted);
  transition: background 0.15s, color 0.15s; }
.lang-option:hover { background: rgba(45, 212, 191, 0.1); color: var(--text); }
.lang-option.is-current { color: var(--accent); font-weight: 600; background: rgba(45, 212, 191, 0.07); }

/* ===== Hero ===== */
.hero { padding: 104px 0 96px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(45, 212, 191, 0.06); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(45, 212, 191, 0.6); }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px); line-height: 1.03;
  letter-spacing: -2px; margin: 24px 0 20px; font-weight: 800;
}
.hero h1 .accent { color: var(--accent); }
.hero-desc { font-size: 18px; color: var(--muted); max-width: 33em; margin: 0 0 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
  border-radius: 999px; padding: 14px 28px; font-size: 15.5px; border: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--brand-grad); color: var(--ink-on-accent); box-shadow: 0 14px 34px rgba(15, 191, 170, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15, 191, 170, 0.38); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero 闪卡实物 */
.hero-cards { position: relative; height: 344px; }
.hero-card {
  position: absolute; width: 236px; height: 326px;
  border-radius: 22px; padding: 26px 24px;
  box-shadow: var(--shadow-lg);
}
.hero-card.back {
  background: linear-gradient(160deg, #0f1b2e, #0a1422);
  right: 4px; top: 34px; transform: rotate(8deg);
  border: 1px solid var(--border);
}
.hero-card.front {
  background: var(--brand-grad); color: var(--ink-on-accent);
  left: 18px; top: 0; z-index: 2;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.10) inset;
  transition: transform 0.3s ease;
}
.hero-card.front:hover { transform: translateY(-6px) rotate(-0.5deg); }
.hero-card .tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: rgba(4, 35, 29, 0.68); }
.hero-card.back .tag { color: var(--accent); }
.hero-card .word { font-size: 30px; font-weight: 800; margin: 30px 0 6px; letter-spacing: -0.8px; }
.hero-card .ip { font-size: 14.5px; opacity: 0.82; }
.hero-card .divider { height: 1px; background: rgba(4, 35, 29, 0.16); margin: 24px 0; }
.hero-card.back .divider { background: var(--border); }
.hero-card .meaning { font-size: 14.5px; opacity: 0.92; }
.hero-card .pill { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.18); }
.hero-card.back .pill { background: rgba(45, 212, 191, 0.12); color: #a7f3d0; }
.float-tag {
  position: absolute; z-index: 3; font-size: 12px; letter-spacing: 0.02em;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(10, 17, 30, 0.92); color: var(--muted);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.float-tag b { color: var(--accent); font-weight: 700; }
.float-tag.t1 { top: 24px; right: 0; }
.float-tag.t2 { bottom: 26px; left: 4px; }

/* ===== 功能 ===== */
.features { padding: 24px 0 110px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-label { font-size: 13px; letter-spacing: 0.18em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -1.2px; margin: 12px 0 12px; }
.section-sub { color: var(--muted); font-size: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.22s, transform 0.22s, background 0.22s;
}
.feature-card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-3px); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent); background: rgba(45, 212, 191, 0.09); border: 1px solid rgba(45, 212, 191, 0.24);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.65; }

/* ===== CTA ===== */
.cta { padding: 0 0 112px; }
.cta-inner {
  text-align: center; border-radius: 28px; padding: 72px 32px;
  background: linear-gradient(180deg, rgba(15, 191, 170, 0.10), rgba(10, 17, 30, 0.45));
  border: 1px solid var(--border-strong);
}
.cta h2 { font-size: clamp(30px, 3.9vw, 44px); font-weight: 800; letter-spacing: -1.4px; margin: 0 0 14px; }
.cta p { color: var(--muted); font-size: 17px; max-width: 34em; margin: 0 auto 32px; }

/* ===== 下载按钮 ===== */
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.apk-download-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; padding: 15px 34px; }
.apk-download-btn:disabled { opacity: 0.72; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge-img { height: 52px; width: auto; display: block; border-radius: 8px; }
.store-badge-gp .store-badge-img { background: #000; }

/* ===== 页脚 ===== */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 34px; background: rgba(6, 10, 18, 0.6); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand h3 { font-size: 20px; margin: 0 0 10px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 30em; }
.footer-col h4 { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; margin: 0 0 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; text-align: center; }
.footer-visitor { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); }
.footer-visitor .visitor-label { display: inline-flex; align-items: center; gap: 6px; }
.footer-visitor .visitor-label::before { content: '👁'; font-size: 13px; opacity: 0.85; }
.footer-visitor .visitor-count { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.footer-visitor .visitor-count.is-loading { color: var(--muted); opacity: 0.7; }

/* ===== 通用页面 ===== */
.page-hero { padding: 90px 0 44px; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -1.2px; margin: 0; }
.page-content { padding-bottom: 112px; }
.page-content h2 { font-size: 24px; margin: 44px 0 12px; font-weight: 700; letter-spacing: -0.4px; }
.page-content h1 { font-size: 27px; margin: 40px 0 12px; font-weight: 700; letter-spacing: -0.4px; }
.page-content p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.page-content ul, .page-content ol { margin: 12px 0 20px; padding-left: 22px; color: var(--muted); }
.page-content li { margin: 7px 0; }
.page-content strong, .page-content em { color: var(--text); }
.page-content blockquote { margin: 26px 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: rgba(45, 212, 191, 0.06); border-radius: 0 12px 12px 0; color: var(--muted); }

.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 84px 0; }
.notfound h1 { font-size: 64px; margin: 0 0 8px; color: var(--accent); }
.notfound p { color: var(--muted); margin: 0 0 24px; }

/* ===== 动效辅助 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-cards { height: 306px; max-width: 340px; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 12px 0; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 72px; }
}