/* 今晚去哪喝 Tonight Drink — 官方公開網站
 * 延續 App 品牌視覺 token（見 lib/theme/app_colors.dart／app_text_styles.dart），
 * 純靜態 CSS，不依賴任何外部字型／CDN，降低維護與部署成本。
 */

:root {
  --bg: #07080f;
  --bg-elevated: #0d1020;
  --surface: #141828;
  --surface-variant: #1b2036;
  --surface-border: #2a3050;

  --text-primary: #f5f6fa;
  --text-secondary: #a6abc2;
  --text-muted: #878ca8;

  --neon-blue: #4f7cff;
  --neon-purple: #9b5cf6;
  --neon-pink: #ee5c9e;

  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --max-width: 960px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Microsoft JhengHei", "Noto Sans TC", "Heiti TC", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(
      1200px 600px at 15% -10%,
      rgba(155, 92, 246, 0.16),
      transparent 60%
    ),
    radial-gradient(900px 500px at 100% 0%, rgba(79, 124, 255, 0.12), transparent 55%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--neon-pink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 2px;
}

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

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

/* ---- Header ---- */

.site-header {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(7, 8, 15, 0.75);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.brand-name .en {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

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

.site-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-primary);
}

/* ---- Hero ---- */

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .en-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 20px;
  letter-spacing: 1px;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 17px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid var(--surface-border);
}

.btn-primary {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(155, 92, 246, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  text-decoration: none;
  border-color: var(--neon-purple);
}

/* ---- Feature grid ---- */

.section {
  padding: 40px 0;
}

.section h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 8px;
}

.section .section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- Company card ---- */

.company-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.company-card .label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.company-card .name-zh {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 2px;
}

.company-card .name-en {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.company-card .contact-email {
  font-size: 15px;
  font-weight: 700;
  color: var(--neon-pink);
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 32px 0;
  margin-top: 24px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text-primary);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---- Legal / content pages (Privacy, Terms, Contact) ---- */

.page-header {
  padding: 48px 0 8px;
}

.page-header .eyebrow {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 8px;
}

.page-header .updated {
  color: var(--text-muted);
  font-size: 13.5px;
}

.legal {
  padding: 24px 0 64px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--text-primary);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 12px;
}

.legal ul {
  color: var(--text-secondary);
  font-size: 15px;
  padding-left: 22px;
  margin: 0 0 12px;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--text-primary);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-secondary);
  vertical-align: top;
}

.legal th {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Contact page ---- */

.contact-block {
  text-align: center;
  padding: 8px 0 48px;
}

.contact-block .company-card {
  max-width: 480px;
  margin: 28px auto 0;
}

.contact-block .mailto-btn {
  margin-top: 18px;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .hero {
    padding: 44px 0 36px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p.lead {
    font-size: 15.5px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .legal-card {
    padding: 22px;
  }

  .page-header h1 {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 15px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 12px;
  }
}
