/* ══════════════════════════════════════
   CSS Variables / Design Tokens
══════════════════════════════════════ */
:root {
  /* 背景層次 */
  --ink: #ffffff;
  --deep: #f5f7fa;
  --mid: #eef1f6;
  --panel: #e4e9f0;

  /* 主色：沉穩藍 */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;

  /* 修飾色 */
  --red: #e85d4a;
  --amber: #d97706;
  --teal: #0891b2;
  --purple: #7c3aed;
  --green: #059669;

  /* 品牌橘黃（Footer / 品牌文字用） */
  --brand-orange: #f59e0b;

  /* 文字層次 */
  --text: #0f172a;
  --sub: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  /* 邊框與互動 */
  --border: rgba(15, 23, 42, 0.08);
  --hover: rgba(15, 23, 42, 0.04);

  /* Gradients */
  --grad-cta: linear-gradient(135deg, #2563eb, #7c3aed);
  --grad-teal: linear-gradient(135deg, #0891b2, #0369a1);
  --grad-warm: linear-gradient(135deg, #e85d4a, #d97706);
  --grad-purple: linear-gradient(135deg, #8a6eff, #c084fc);

  /* Shadows */
  --shadow-cta: 0 4px 16px rgba(37, 99, 235, 0.25);
  --shadow-teal: 0 4px 16px rgba(8, 145, 178, 0.2);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);

  /* Border Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 100px;
}

/* ══════════════════════════════════════
   Reset & Base
══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ══════════════════════════════════════
   Accessibility
══════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.has-sub::after {
  content: '▾';
  font-size: 0.65rem;
  margin-left: 3px;
  opacity: 0.5;
}

.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.15s, transform 0.15s;
  box-shadow: var(--shadow-cta);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sub);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #f5f3ff 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 80% 30%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 70%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 96px 6% 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

.hero-h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
  max-width: 480px;
}

.hero-sub strong {
  color: var(--sub);
}

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.hero-trust {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.trust-item::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* ── Hero Visual Box ── */
.hero-visual-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-visual-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--purple), transparent);
}

.hvb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.hvb-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.hvb-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--green);
}

.hvb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

.hvb-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hvb-platform {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.hvb-plat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hvb-icon-shopee { background: rgba(255, 82, 48, 0.12); }
.hvb-icon-web    { background: rgba(0, 201, 167, 0.12); }
.hvb-icon-pos    { background: rgba(255, 181, 71, 0.12); }
.hvb-icon-wholesale { background: rgba(138, 110, 255, 0.12); }

.hvb-plat-info {
  flex: 1;
}

.hvb-plat-name {
  font-weight: 700;
  font-size: 0.85rem;
}

.hvb-plat-sub {
  font-size: 0.7rem;
  color: var(--faint);
}

.hvb-plat-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}

.hvb-plat-status.ok {
  background: rgba(5, 150, 105, 0.1);
  color: var(--green);
}

.hvb-divider {
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.hvb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.hvb-stat-num {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.hvb-num-teal   { color: var(--teal); }
.hvb-num-amber  { color: var(--amber); }
.hvb-num-red    { color: var(--red); }
.hvb-num-purple { color: var(--purple); }

.hvb-stat-label {
  font-size: 0.65rem;
  color: var(--faint);
  margin-top: 3px;
}

/* ══════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════ */
.section {
  padding: 56px 5%;
}

.section--deep { background: var(--deep); }
.section--ink  { background: var(--ink); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-label--center {
  display: flex;
  justify-content: center;
}

.label--teal   { background: rgba(8,145,178,0.08); border: 1px solid rgba(8,145,178,0.2);  color: var(--teal);   padding: 0.3rem 0.75rem; border-radius: var(--r-pill); }
.label--red    { background: rgba(232,93,74,0.08);  border: 1px solid rgba(232,93,74,0.2);  color: var(--red);    padding: 0.3rem 0.75rem; border-radius: var(--r-pill); }
.label--amber  { background: rgba(217,119,6,0.08);  border: 1px solid rgba(217,119,6,0.2);  color: var(--amber);  padding: 0.3rem 0.75rem; border-radius: var(--r-pill); }
.label--purple { background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.2); color: var(--purple); padding: 0.3rem 0.75rem; border-radius: var(--r-pill); }

.section-h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.section-h2--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 520px;
  margin-top: 0.8rem;
}

.section-sub--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-center {
  text-align: center;
}

/* ══════════════════════════════════════
   GRADIENT TEXT UTILITIES
══════════════════════════════════════ */
.grad-text {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.teal-text {
  background: var(--grad-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.purple-text {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 1.8rem;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #fff;
  color: var(--sub);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary);
  background: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  box-shadow: var(--shadow-card);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.65rem 1.2rem;
}

/* ══════════════════════════════════════
   PAIN CARDS
══════════════════════════════════════ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.pain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 74, 0.25);
  box-shadow: var(--shadow-lg);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.pain-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.pain-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.pain-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.pain-tag {
  display: inline-block;
  margin-top: 1rem;
  background: rgba(232, 93, 74, 0.08);
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ══════════════════════════════════════
   VALUE SECTION
══════════════════════════════════════ */
.value-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.value-board {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.vb-header-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.vb-row:last-of-type {
  border-bottom: none;
}

.vb-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.vb-icon--teal   { background: rgba(8, 145, 178, 0.1); }
.vb-icon--amber  { background: rgba(255, 181, 71, 0.12); }
.vb-icon--purple { background: rgba(138, 110, 255, 0.12); }

.vb-label {
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
}

.vb-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}

.vs-ok   { background: rgba(5, 150, 105, 0.1);  color: var(--green); }
.vs-sync { background: rgba(255, 181, 71, 0.12); color: var(--amber); animation: pulse 2s infinite; }

.vb-result-box {
  margin-top: 1.5rem;
  background: rgba(0, 201, 167, 0.06);
  border: 1px solid rgba(0, 201, 167, 0.15);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.vb-result-icon {
  font-size: 1.8rem;
}

.vb-result-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.vb-result-sub {
  color: var(--muted);
  font-size: 0.78rem;
}

.value-sub {
  margin-bottom: 2rem;
}

.value-points {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.vp-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.vp-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
}

.vp-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.vp-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.value-insight {
  margin-top: 1.8rem;
  background: rgba(0, 201, 167, 0.06);
  border: 1px solid rgba(0, 201, 167, 0.18);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--sub);
}

.insight-accent {
  color: var(--teal);
}

/* ══════════════════════════════════════
   STEP SECTION
══════════════════════════════════════ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.step-grid::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--red));
  z-index: 0;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.step-num--1 { background: rgba(8,145,178,0.1);  border: 1px solid rgba(8,145,178,0.25);  color: var(--teal); }
.step-num--2 { background: rgba(217,119,6,0.1);  border: 1px solid rgba(217,119,6,0.25);  color: var(--amber); }
.step-num--3 { background: rgba(232,93,74,0.1);  border: 1px solid rgba(232,93,74,0.25);  color: var(--red); }

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.step-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.step-tag {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.tag-lg {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
}

.tag-teal   { background: rgba(0,201,167,0.1);   color: var(--teal); }
.tag-amber  { background: rgba(255,181,71,0.1);  color: var(--amber); }
.tag-red    { background: rgba(255,82,48,0.1);   color: var(--red); }
.tag-purple { background: rgba(138,110,255,0.1); color: var(--purple); }

/* ══════════════════════════════════════
   AI GUIDE SECTION
══════════════════════════════════════ */
.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.ai-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.ai-tags-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.ai-chat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #0099d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.ai-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.ai-role {
  font-size: 0.7rem;
  color: var(--muted);
}

.chat-q {
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--sub);
  margin-bottom: 1rem;
}

.chat-q-label {
  font-size: 0.68rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-opt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--sub);
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.chat-opt:hover,
.chat-opt.active {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--primary-light);
  color: var(--primary);
}

.chat-opt-icon {
  font-size: 1rem;
}

.chat-result {
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  padding: 1.1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  display: none;
}

.chat-result.visible {
  display: block;
}

.cr-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.cr-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cr-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sub);
  font-size: 0.82rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.cr-link:last-child {
  border-bottom: none;
}

.cr-link::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
}

.chat-result-btns {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   SCENARIO SECTION
══════════════════════════════════════ */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.scene-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.scene-card:hover {
  transform: translateY(-3px);
}

.scene-card--1:hover { border-color: rgba(8,145,178,0.3);  box-shadow: var(--shadow-lg); }
.scene-card--2:hover { border-color: rgba(124,58,237,0.3); box-shadow: var(--shadow-lg); }
.scene-card--3:hover { border-color: rgba(217,119,6,0.3);  box-shadow: var(--shadow-lg); }
.scene-card--4:hover { border-color: rgba(232,93,74,0.3);  box-shadow: var(--shadow-lg); }

.scene-card--1::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--teal), transparent); }
.scene-card--2::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--purple), transparent); }
.scene-card--3::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--amber), transparent); }
.scene-card--4::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent); }

.scene-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.si-teal   { background: rgba(0,201,167,0.1); }
.si-purple { background: rgba(138,110,255,0.1); }
.si-amber  { background: rgba(255,181,71,0.1); }
.si-red    { background: rgba(255,82,48,0.1); }

.scene-tag {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.st-teal   { color: var(--teal); }
.st-purple { color: var(--purple); }
.st-amber  { color: var(--amber); }
.st-red    { color: var(--red); }

.scene-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.scene-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.scene-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1rem;
  align-self: center;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.scene-card:hover .scene-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* ══════════════════════════════════════
   TRUST / CASE SECTION
══════════════════════════════════════ */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.trust-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  text-align: center;
}

.ts-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.ts-num--teal   { color: var(--teal); }
.ts-num--amber  { color: var(--amber); }
.ts-num--red    { color: var(--red); }
.ts-num--purple { color: var(--purple); }

.ts-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
}

.case-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.case-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.av-teal   { background: rgba(0,201,167,0.12); }
.av-amber  { background: rgba(255,181,71,0.12); }
.av-purple { background: rgba(138,110,255,0.12); }

.case-tag {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.ct-teal   { background: rgba(0,201,167,0.1);   color: var(--teal); }
.ct-amber  { background: rgba(255,181,71,0.1);  color: var(--amber); }
.ct-purple { background: rgba(138,110,255,0.1); color: var(--purple); }

.case-quote {
  font-size: 0.87rem;
  color: var(--sub);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  font-style: normal;
}

.case-meta-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.case-meta-role {
  font-size: 0.72rem;
  color: var(--muted);
}

.case-result {
  display: flex;
  gap: 1rem;
  margin-top: 0.9rem;
}

.cr-num {
  font-size: 1.1rem;
  font-weight: 900;
}

.cr-num--teal  { color: var(--teal); }
.cr-num--amber { color: var(--amber); }

.cr-label {
  font-size: 0.65rem;
  color: var(--muted);
}

/* ══════════════════════════════════════
   WHY SECTION
══════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.why-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.why-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   FINAL CTA
══════════════════════════════════════ */
.final-cta {
  padding: 56px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.final-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.final-sub {
  color: var(--sub);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.final-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.final-trusts {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ft-item {
  font-size: 0.75rem;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ft-item::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 5% 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-brand-logo {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  color: var(--brand-orange);
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.75;
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Scroll Fade ── */
.fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade.in {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .pain-grid       { grid-template-columns: repeat(2, 1fr); }
  .trust-stats     { grid-template-columns: repeat(2, 1fr); }
  .case-grid       { grid-template-columns: 1fr 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .hero-inner,
  .value-layout,
  .ai-layout      { grid-template-columns: 1fr; }
  .hero-left      { align-items: center; text-align: center; }
  .hero-sub       { max-width: 100%; }
  .step-grid      { grid-template-columns: 1fr; }
  .step-grid::before { display: none; }
  .scene-grid,
  .why-grid       { grid-template-columns: 1fr; }
  .case-grid      { grid-template-columns: 1fr; }
  .nav-links      { display: none; }
  .nav-hamburger  { display: flex; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .pain-grid,
  .trust-stats    { grid-template-columns: 1fr; }
}

/* ── Mobile Nav Open State ── */
.nav-links.nav-mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--border);
  z-index: 199;
  gap: 1rem;
}

/* ══════════════════════════════════════
   Footer 公司資訊列
══════════════════════════════════════ */
.footer-company-info {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.fci-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
}

.fci-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.fci-item--alert .fci-value a {
  color: #fbbf24;
  font-weight: 700;
}

.fci-item--alert .fci-value a:hover {
  color: #fde68a;
}

.fci-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.85;
}

.fci-label {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.fci-value {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.fci-value a {
  color: #93c5fd;
  transition: color 0.2s;
}

.fci-value a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

/* RWD */
@media (max-width: 1024px) {
  .fci-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .fci-grid  { grid-template-columns: 1fr; }
  .footer-company-info { padding: 1.2rem 1rem; }
}

/* ══════════════════════════════════════
   Footer LINE 加入好友帶
══════════════════════════════════════ */
.footer-line-band {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 1.2rem 2rem;
  background: rgba(6, 199, 85, 0.08);
  border: 1px solid rgba(6, 199, 85, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-line-link {
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}

.footer-line-link:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.footer-line-img {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.footer-line-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .footer-line-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1rem;
    gap: 0.8rem;
  }
}

/* ══════════════════════════════════════
   Nav 下拉選單
══════════════════════════════════════ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--primary);
}

.nav-dropdown-arrow {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  min-width: 220px;
  z-index: 300;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

/* 選單箭頭小三角 */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  rotate: 45deg;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-md);
  color: var(--sub);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-dropdown-icon {
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0.3rem;
}

.nav-dropdown-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.4rem 0.75rem 0.2rem;
}

/* Mobile 下拉 */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary-light);
    border-radius: 0;
    padding: 0 0 0 0.5rem;
    margin: 0.3rem 0 0.3rem 0.5rem;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-toggle {
    color: var(--sub);
    font-size: 0.95rem;
    width: 100%;
    justify-content: space-between;
    padding: 0.3rem 0;
  }
  .nav-dropdown-item {
    font-size: 0.88rem;
    padding: 0.45rem 0.5rem;
  }
}

/* ══════════════════════════════════════
   Footer 手機版：折疊式選單
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* footer-grid 改成單欄，間距縮小 */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-bottom: 1.5rem !important;
  }

  /* 品牌區塊保持正常顯示 */
  .footer-grid > div:first-child {
    padding-bottom: 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .footer-brand-desc {
    max-width: 100%;
  }

  /* 每個連結欄變成折疊區塊 */
  .footer-grid > div:not(:first-child) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* 標題變成可點擊按鈕 */
  .footer-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }

  .footer-col-title::after {
    content: '+';
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
    transition: transform 0.25s;
    flex-shrink: 0;
  }

  .footer-col-title.is-open::after {
    transform: rotate(45deg);
  }

  /* 連結列表預設隱藏 */
  .footer-links {
    display: none;
    padding-bottom: 1rem;
    gap: 0.55rem;
  }

  .footer-links.is-open {
    display: flex;
  }

  .footer-links a {
    font-size: 0.88rem;
    padding: 0.15rem 0;
  }
}

/* ══════════════════════════════════════
   Utility Classes（取代 inline style）
══════════════════════════════════════ */
.mt-05  { margin-top: 0.5rem; }
.mt-1   { margin-top: 1rem; }
.mt-15  { margin-top: 1.5rem; }
.mt-2   { margin-top: 2rem; }
.mt-25  { margin-top: 2.5rem; }
.mt-3   { margin-top: 3rem; }
.mb-05  { margin-bottom: 0.5rem; }
.mb-1   { margin-bottom: 1rem; }
.mb-12  { margin-bottom: 1.2rem; }
.mb-15  { margin-bottom: 1.5rem; }
.mr-03  { margin-right: 0.3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-inline-flex { display: inline-flex; }
.table-scroll  { overflow-x: auto; }

/* TOC 按鈕（learn-article 側欄用） */
.btn-toc-full {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
}
.btn-toc-mt { margin-top: 0.5rem; }

/* data-mt 動態 margin（取代剩餘的 data-mt attr）*/
[data-mt="1"]  { margin-top: 1rem; }
[data-mt="2"]  { margin-top: 2rem; }
[data-mt="2.5"]{ margin-top: 2.5rem; }
[data-mt="3"]  { margin-top: 3rem; }

/* ══════════════════════════════════════
   首頁試用申請區塊（#accapply）
══════════════════════════════════════ */
.apply-header { margin-bottom: 2.5rem; }

/* 6 步驟流程 */
.apply-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 1.8rem 2rem;
}

.apply-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 90px;
  text-align: center;
}

.apply-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-step-num--green { background: var(--green); }

.apply-step-icon  { font-size: 1.5rem; }
.apply-step-label { font-size: 0.75rem; font-weight: 600; color: var(--sub); line-height: 1.4; }

.apply-step--highlight .apply-step-label { color: var(--green); font-weight: 700; }

.apply-step-arrow {
  font-size: 1.2rem;
  color: var(--faint);
  padding: 0 0.4rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

/* 申請卡片 */
.apply-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.apply-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.apply-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.apply-card--primary { border-color: rgba(37,99,235,0.3); }
.apply-card--primary::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--primary); border-radius:var(--r-xl) var(--r-xl) 0 0; }

.apply-card--teal { border-color: rgba(8,145,178,0.3); }
.apply-card--teal::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--teal); border-radius:var(--r-xl) var(--r-xl) 0 0; }

.apply-card--neutral::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--border); border-radius:var(--r-xl) var(--r-xl) 0 0; }

.apply-card-badge {
  position: absolute; top: -1px; right: 1.2rem;
  background: var(--primary); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  letter-spacing: 0.06em;
}

.apply-card-icon  { font-size: 2rem; }
.apply-card-title { font-size: 1.05rem; font-weight: 900; color: var(--text); }
.apply-card-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

.apply-card-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  flex: 1;
}

.apply-card-points li {
  font-size: 0.83rem;
  color: var(--sub);
  padding-left: 1.2rem;
  position: relative;
}

.apply-card-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.apply-card-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.btn-teal-outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 1.8rem;
  border-radius: var(--r-md);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.btn-teal-outline:hover {
  background: rgba(8,145,178,0.08);
  transform: translateY(-2px);
}

/* 底部信任列 */
.apply-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
}

/* RWD */
@media (max-width: 1024px) {
  .apply-cards { grid-template-columns: 1fr 1fr; }
  .apply-card--neutral { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  .apply-steps  { padding: 1.2rem 1rem; gap: 0.2rem; }
  .apply-step   { min-width: 60px; }
  .apply-step-label { font-size: 0.62rem; }
  .apply-step-icon  { font-size: 1.1rem; }
  .apply-step-arrow { font-size: 0.9rem; padding: 0 0.15rem; }
  .apply-cards  { grid-template-columns: 1fr; }
  .apply-card--neutral { grid-column: auto; max-width: 100%; }
}

/* ══════════════════════════════════════
   試用申請區塊（#accapply）
══════════════════════════════════════ */
.accapply-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 2rem;
}

/* 步驟指示 */
.accapply-steps {
  display: flex;
  align-items: center;
  padding: 1.4rem 2rem;
  background: var(--primary-light);
  border-bottom: 1px solid rgba(37,99,235,0.15);
  gap: 0;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.accapply-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.accapply-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accapply-step--active .accapply-step-num {
  background: var(--primary);
  color: #fff;
}

.accapply-step-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.accapply-step--active .accapply-step-text {
  color: var(--primary);
  font-weight: 700;
}

.accapply-step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 12px;
}

/* 條款文字框 */
.accapply-terms {
  height: 320px;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  font-size: 0.83rem;
  color: var(--sub);
  line-height: 1.85;
  border-bottom: 1px solid var(--border);
}

.accapply-terms p { margin-bottom: 1rem; }
.accapply-terms p:last-child { margin-bottom: 0; }
.accapply-terms strong { color: var(--text); }

/* 同意勾選 + 下一步 */
.accapply-footer {
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--deep);
}

.accapply-agree-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  flex: 1;
  min-width: 200px;
}

.accapply-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.accapply-agree-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sub);
  line-height: 1.5;
}

.accapply-err {
  font-size: 0.82rem;
  color: var(--red);
  min-height: 1.2rem;
  width: 100%;
  order: 3;
}

.accapply-next-btn {
  font-size: 1rem;
  padding: 0.85rem 2rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .accapply-steps  { padding: 1rem 1rem; }
  .accapply-step-text { display: none; }
  .accapply-step--active .accapply-step-text { display: block; }
  .accapply-terms  { padding: 1.2rem; height: 260px; }
  .accapply-footer { padding: 1.2rem; flex-direction: column; align-items: flex-start; }
  .accapply-next-btn { width: 100%; justify-content: center; }
}

/* ── AI 導購：價值目標區塊 ── */
.ai-value-box {
  margin-top: 1.8rem;
  background: var(--primary-light);
  border: 1px solid rgba(37,99,235,0.2);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
}

.ai-value-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.ai-value-text {
  font-size: 0.88rem;
  color: var(--sub);
  line-height: 1.85;
}
