:root {
  --bg-deep: #070914;
  --bg-card: rgba(18, 22, 40, 0.65);
  --stroke: rgba(140, 160, 255, 0.12);
  --text: #eef0ff;
  --muted: #9aa3c4;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --magenta: #e879f9;
  --glow-violet: rgba(139, 92, 246, 0.45);
  --glow-cyan: rgba(34, 211, 238, 0.35);
  --radius: 20px;
  --font-sans: "DM Sans", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.bg-mesh {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--glow-violet), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 10%, var(--glow-cyan), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(232, 121, 249, 0.15), transparent 45%),
    linear-gradient(180deg, #0a0d18 0%, var(--bg-deep) 40%, #060812 100%);
}
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative; z-index: 2;
  max-width: 1120px; margin: 0 auto; padding: 0 24px 96px;
}

.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 32px; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
  width: 48px; height: 48px; border-radius: 14px;
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong {
  font-family: "Outfit", var(--font-sans);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
}
.brand-text span {
  font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a:not(.btn-primary) {
  padding: 8px 12px; font-size: 0.8125rem; color: var(--muted);
  border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn-primary):hover {
  color: var(--text); background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; font-size: 0.875rem; font-weight: 600;
  color: #0a0b12;
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 45%, #6366f1 100%);
  border-radius: 12px; border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}
.btn-ghost {
  display: inline-flex; align-items: center; padding: 12px 18px;
  font-size: 0.875rem; font-weight: 500; color: var(--text);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke);
  border-radius: 12px; transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
}

section { margin-bottom: 72px; }
.section-head { margin-bottom: 28px; }
.section-head h1,
.section-head h2 {
  font-family: "Outfit", var(--font-sans);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p {
  margin: 0; color: var(--muted); font-size: 1.05rem;
  max-width: 40em; line-height: 1.55;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: center; padding-bottom: 48px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero h1 {
  font-family: "Outfit", var(--font-sans);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--cyan), var(--violet), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: 1.1rem; line-height: 1.65; color: var(--muted);
  margin: 0 0 24px; max-width: 34em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.store-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px; min-height: 48px; font-size: 0.875rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.store-badge:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(255, 255, 255, 0.09); transform: translateY(-1px);
}
.store-badge small { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.store-badge__icon { width: 26px; height: 26px; display: grid; place-items: center; }
.store-badge__icon svg { width: 24px; height: 24px; }

.glass-card {
  position: relative;
  background: var(--bg-card); backdrop-filter: blur(20px);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.glass-card .app-icon {
  width: 72px; height: 72px; border-radius: 20px; margin-bottom: 16px;
}

/* 深度功能模組（類企業站 products-fun） */
.product-module {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 20px;
  background: rgba(10, 13, 26, 0.72);
}
.product-module h3 {
  font-family: "Outfit", var(--font-sans);
  font-size: 1.35rem; font-weight: 600; margin: 0 0 12px;
}
.product-module > p {
  margin: 0 0 18px; color: var(--muted); line-height: 1.65; font-size: 0.98rem;
}
.fun-block { margin-bottom: 18px; }
.fun-block:last-child { margin-bottom: 0; }
.fun-block h4 {
  margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: #d4daf8;
}
.fun-block ul {
  margin: 0; padding-left: 1.25em; color: var(--muted);
  font-size: 0.92rem; line-height: 1.65;
}
.fun-block li { margin-bottom: 0.4em; }

/* 幫助中心卡片 */
.help-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .help-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .help-grid { grid-template-columns: repeat(3, 1fr); }
}
.help-card {
  display: block; padding: 22px;
  border: 1px solid var(--stroke); border-radius: 16px;
  background: rgba(12, 16, 32, 0.55);
  transition: border-color 0.2s, transform 0.2s;
}
.help-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}
.help-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.help-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.help-card .more {
  display: inline-block; margin-top: 12px; font-size: 0.85rem;
  color: #a5b4fc;
}

/* 內頁文章 */
.page-hero { padding-bottom: 32px; border-bottom: 1px solid var(--stroke); margin-bottom: 36px; }
.page-hero .breadcrumb {
  font-size: 0.8125rem; color: var(--muted); margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: #a5b4fc; }
.page-hero h1 {
  font-family: "Outfit", var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 12px;
}
.page-hero .meta { font-size: 0.875rem; color: var(--muted); }

.article {
  max-width: 760px; margin: 0 auto;
}
.article h2 {
  font-family: "Outfit", var(--font-sans);
  font-size: 1.25rem; margin: 2em 0 0.75em; color: var(--text);
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.05rem; margin: 1.5em 0 0.5em; color: #d8defc; }
.article p, .article li {
  color: var(--muted); line-height: 1.75; font-size: 0.98rem;
}
.article p { margin: 0 0 1em; }
.article ul, .article ol { margin: 0 0 1em; padding-left: 1.35em; }
.article li { margin-bottom: 0.45em; }
.article strong { color: #d8defc; }

.faq details {
  border: 1px solid var(--stroke); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 10px;
  background: rgba(12, 16, 32, 0.55);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 0.95rem;
  list-style: none; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin: 12px 0 0; font-size: 0.92rem; line-height: 1.68; color: var(--muted);
}

.cta {
  text-align: center; padding: 48px 28px; border-radius: 28px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(12, 16, 32, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.cta h2 {
  font-family: "Outfit", var(--font-sans);
  font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 12px;
}
.cta p { margin: 0 auto 24px; max-width: 32em; color: var(--muted); line-height: 1.6; }

footer {
  text-align: center; padding-top: 32px;
  border-top: 1px solid var(--stroke);
  color: var(--muted); font-size: 0.8125rem;
}
footer .foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px; color: var(--text); font-weight: 600;
}
footer .foot-brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot-links {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  justify-content: center; margin: 16px 0;
}
.foot-links a {
  color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px;
}
.foot-links a:hover { color: var(--cyan); }

.domain-pill {
  display: inline-block; padding: 8px 14px; font-size: 0.8125rem;
  font-family: ui-monospace, monospace; color: var(--cyan);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 10px;
}

.panel {
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: rgba(10, 13, 26, 0.72);
  margin-bottom: 16px;
}
