:root {
  --grad: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --grad-soft: linear-gradient(135deg, rgba(240,148,51,0.12), rgba(204,35,102,0.10), rgba(188,24,136,0.12));
  --grad-text: linear-gradient(135deg, #e8621a, #d42060, #a8149a);
  --accent-orange: #f09433;
  --accent-pink: #dc2743;
  --accent-purple: #bc1888;

  /* Light theme */
  --dark-bg: #fafafa;
  --dark-card: #ffffff;
  --dark-card-2: #f5f3f8;
  --border: rgba(0,0,0,0.07);
  --border-grad: rgba(220,39,67,0.25);
  --text: #2a2a2a;
  --text-muted: #666;
  --text-dim: #999;
  --white: #1a1a1a;

  --radius: 16px;
  --shadow: 0 4px 24px rgba(180,40,100,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --glow: 0 0 40px rgba(220,39,67,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--dark-bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: linear-gradient(#f09433, #bc1888); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 5vw; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav-logo span {
  font-family: 'DM Serif Display', serif; font-size: 1.3rem;
  background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.86rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-pink); }
.nav-cta {
  background: var(--grad); color: white !important;
  padding: 8px 20px; border-radius: 50px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(220,39,67,0.25);
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); color: white !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ── GRAD TEXT ── */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--grad); color: white;
  padding: 13px 28px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 6px 24px rgba(220,39,67,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(220,39,67,0.45); }
.btn-secondary {
  background: transparent; color: var(--text);
  padding: 12px 28px; border-radius: 50px;
  border: 1.5px solid rgba(0,0,0,0.15);
  text-decoration: none; font-weight: 500; font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--accent-pink); background: rgba(220,39,67,0.04); }

/* ── SECTION ── */
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-transform: uppercase; margin-bottom: 0.6rem; display: inline-block;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white); margin-bottom: 1rem; line-height: 1.2;
}
.section-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

/* ── GLASS CARD ── */
.glass {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.glass:hover { border-color: var(--border-grad); box-shadow: 0 8px 32px rgba(200,40,100,0.1); }

/* ── CONTENT BLOCKS ── */
.warn {
  background: rgba(240,148,51,0.07); border-left: 3px solid var(--accent-orange);
  padding: 0.75rem 1rem; border-radius: 0 8px 8px 0;
  margin: 0.8rem 0; font-size: 0.88rem; color: #b05a00; line-height: 1.7;
}
.info {
  background: rgba(220,39,67,0.06); border-left: 3px solid var(--accent-pink);
  padding: 0.75rem 1rem; border-radius: 0 8px 8px 0;
  margin: 0.8rem 0; font-size: 0.88rem; color: #b02040; line-height: 1.7;
}
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 3px 12px; border-radius: 50px; margin-bottom: 0.8rem;
  background: var(--grad); color: white;
}

/* ── FOOTER ── */
footer {
  background: #f5f3f8; border-top: 1px solid rgba(0,0,0,0.07);
  color: var(--text-muted); padding: 2.5rem 5vw; text-align: center; font-size: 0.82rem;
}
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent-pink); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease both; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem 5vw 2rem; gap: 1.2rem; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
}

/* ── LIGHT THEME ENHANCEMENTS ── */
/* Subtle gradient strip at very top of page */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  z-index: 200;
}

/* Soft page tint */
body {
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(240,148,51,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 60%, rgba(188,24,136,0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Cards get a lighter feel */
.glass, .info-card, .quick-card, .stat-card, .about-feature {
  background: #ffffff;
}

/* Gradient divider accent for sections */
.about, .quick {
  position: relative;
}
