/* ════════════════════════════════════
   GUI Tools — app.css
   Design System + All Page Styles
════════════════════════════════════ */

/* ════════════════════════════════════
   BASE / SHARED STYLES
════════════════════════════════════ */
/* ═══════════════════════════════════════════
   GUI Tools — Design System Base
   Shared across all design mockup pages
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+TC:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:            #f6f8ff;
  --c-surface:       #ffffff;
  --c-surface-2:     #f0f4ff;
  --c-surface-3:     #e8eeff;
  --c-primary:       #2563eb;
  --c-primary-dark:  #1d4ed8;
  --c-primary-light: #3b82f6;
  --c-primary-glow:  rgba(37,99,235,0.14);
  --c-accent:        #7c3aed;
  --c-accent-light:  #8b5cf6;
  --c-text:          #0f172a;
  --c-text-2:        #475569;
  --c-text-3:        #94a3b8;
  --c-border:        rgba(0,0,0,0.07);
  --c-border-strong: rgba(0,0,0,0.12);
  --c-success:       #16a34a;
  --c-error:         #dc2626;
  --c-warning:       #d97706;
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.1);
  --shadow-pri: 0 8px 24px rgba(37,99,235,0.25);
  --font:   'Inter', 'Noto Sans TC', system-ui, sans-serif;
  --mono:   'JetBrains Mono', Consolas, monospace;
  --ease:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 60px;
  background: rgba(246,248,255,0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; padding: 0 24px;
}

.nav-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 10px;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 800; font-size: 1rem;
  color: var(--c-text); letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.35); flex-shrink: 0;
}

.nav-logo em { color: var(--c-primary); font-style: normal; }

.nav-sep {
  width: 1px; height: 20px;
  background: var(--c-border-strong); margin: 0 2px; flex-shrink: 0;
}

.nav-fb {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: #1877f2; color: white;
  text-decoration: none; font-size: 0.8rem; font-weight: 700;
  transition: var(--ease); white-space: nowrap;
}
.nav-fb:hover { opacity: 0.87; transform: translateY(-1px); }

.nav-right {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
}

.nav-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface); color: var(--c-text-2);
  text-decoration: none; font-size: 0.82rem; font-weight: 600;
  transition: var(--ease); box-shadow: var(--shadow-xs);
  white-space: nowrap;
}
.nav-btn:hover {
  color: var(--c-primary); border-color: rgba(37,99,235,0.28);
  background: rgba(37,99,235,0.04); transform: translateY(-1px);
}
.nav-btn.active {
  color: var(--c-primary); border-color: rgba(37,99,235,0.32);
  background: rgba(37,99,235,0.07);
}

.nav-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; color: var(--c-text-2);
  transition: var(--ease); box-shadow: var(--shadow-xs);
}
.nav-icon:hover {
  color: var(--c-primary); border-color: rgba(37,99,235,0.28);
  transform: translateY(-1px);
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 0 24px;
}

.breadcrumb-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 6px;
  height: 40px; overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumb-inner::-webkit-scrollbar { display: none; }

.bc-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--c-text-3); white-space: nowrap;
}

.bc-item a {
  color: var(--c-text-2); text-decoration: none; font-weight: 500;
  transition: var(--ease);
}
.bc-item a:hover { color: var(--c-primary); }

.bc-sep { color: var(--c-text-3); font-size: 0.72rem; }

.bc-item.current { color: var(--c-text); font-weight: 600; }

/* ── MAIN WRAPPER ── */
.page-wrap {
  max-width: 1280px; margin: 0 auto; width: 100%;
  padding: 40px 24px 80px; flex: 1;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 16px 24px; text-align: center;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px; margin: 0 auto;
}

.footer-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 10px; margin-bottom: 8px;
}
.footer-links a {
  font-size: 0.76rem; color: var(--c-text-2); text-decoration: none;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--c-primary); }
.footer-links-sep { font-size: 0.76rem; color: var(--c-text-3); user-select: none; }
.footer-copy { font-size: 0.76rem; color: var(--c-text-3); }

.legal-hero {
  text-align: center; margin-bottom: 28px; padding: 8px 0 4px;
}
.legal-hero-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px;
}
.legal-hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; margin: 0 0 8px;
}
.legal-hero-meta { font-size: 0.82rem; color: var(--c-text-3); margin: 0; }
.legal-card {
  max-width: 760px; margin: 0 auto;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px 32px 36px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) {
  .legal-card { padding: 20px 18px 28px; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-family: var(--font);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: var(--ease); text-decoration: none; white-space: nowrap;
  line-height: 1.3;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: white; box-shadow: var(--shadow-pri);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  background: var(--c-surface); color: var(--c-text-2);
  border-color: var(--c-border-strong); box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  color: var(--c-primary); border-color: rgba(37,99,235,0.3);
  background: rgba(37,99,235,0.03);
}

.btn-outline-active {
  background: rgba(37,99,235,0.07); color: var(--c-primary);
  border-color: rgba(37,99,235,0.3);
}

.btn-ghost {
  background: transparent; color: var(--c-text-2); border-color: transparent;
}
.btn-ghost:hover { background: var(--c-surface-2); color: var(--c-text); }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 1rem; border-radius: var(--radius); }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; white-space: nowrap;
}
.tag-blue   { background: rgba(37,99,235,0.08);  color: var(--c-primary); }
.tag-purple { background: rgba(124,58,237,0.08); color: var(--c-accent);  }
.tag-green  { background: rgba(22,163,74,0.08);  color: var(--c-success); }
.tag-red    { background: rgba(220,38,38,0.08);  color: var(--c-error);   }
.tag-gray   { background: var(--c-surface-2);    color: var(--c-text-3);  }

/* ── FORM ELEMENTS ── */
.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.84rem; font-weight: 600; color: var(--c-text);
}

.form-input, .form-textarea, .form-select {
  font-family: var(--font); font-size: 0.9rem;
  color: var(--c-text); background: var(--c-surface);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius-sm); padding: 10px 14px;
  transition: var(--ease); outline: none; width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--c-text-3);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* iOS Safari：聚焦字體小於 16px 的表單欄位會強制縮放視窗（Android 多數不受影響） */
@media (max-width: 991.98px) {
  textarea,
  select,
  [contenteditable="true"],
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="color"]) {
    font-size: 16px !important;
  }
}

.form-hint { font-size: 0.76rem; color: var(--c-text-3); }

/* ── ICON WRAPPERS ── */
.ic {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0;
}
.ic-blue   { background: linear-gradient(135deg,#dbeafe,#bfdbfe); color:#1d4ed8; }
.ic-purple { background: linear-gradient(135deg,#ede9fe,#ddd6fe); color:#7c3aed; }
.ic-green  { background: linear-gradient(135deg,#dcfce7,#bbf7d0); color:#15803d; }
.ic-orange { background: linear-gradient(135deg,#ffedd5,#fed7aa); color:#c2410c; }
.ic-pink   { background: linear-gradient(135deg,#fce7f3,#fbcfe8); color:#be185d; }
.ic-cyan   { background: linear-gradient(135deg,#cffafe,#a5f3fc); color:#0e7490; }
.ic-yellow { background: linear-gradient(135deg,#fef9c3,#fef08a); color:#a16207; }
.ic-red    { background: linear-gradient(135deg,#fee2e2,#fecaca); color:#b91c1c; }
.ic-indigo { background: linear-gradient(135deg,#e0e7ff,#c7d2fe); color:#4338ca; }
.ic-teal   { background: linear-gradient(135deg,#ccfbf1,#99f6e4); color:#0f766e; }

/* ── CARDS ── */
.card {
  background: var(--c-surface); border-radius: var(--radius);
  border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── DIVIDER ── */
.divider {
  border: none; border-top: 1px solid var(--c-border); margin: 0;
}

/* ── ANIMATIONS ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.45s ease both; }

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37,99,235,0.22); }
  50%       { box-shadow: 0 0 0 6px rgba(37,99,235,0.08); }
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 640px) {
  .page-wrap { padding: 24px 16px 60px; }
  .nav { padding: 0 16px; }
  .breadcrumb-bar { padding: 0 16px; }
  .footer { padding: 14px 16px; }
}



/* ════════════════════════════════════
   HOME PAGE
════════════════════════════════════ */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --c-bg: #f6f8ff;
      --c-surface: #ffffff;
      --c-surface-2: #f0f4ff;
      --c-primary: #2563eb;
      --c-primary-light: #3b82f6;
      --c-primary-glow: rgba(37,99,235,0.15);
      --c-accent: #7c3aed;
      --c-accent-glow: rgba(124,58,237,0.12);
      --c-text: #0f172a;
      --c-text-2: #475569;
      --c-text-3: #94a3b8;
      --c-border: rgba(0,0,0,0.07);
      --c-border-strong: rgba(0,0,0,0.12);
      --radius-sm: 10px;
      --radius: 16px;
      --radius-lg: 24px;
      --radius-xl: 32px;
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
      --shadow: 0 4px 20px rgba(0,0,0,0.08);
      --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
      --shadow-primary: 0 8px 24px rgba(37,99,235,0.25);
      --font: 'Inter', 'Noto Sans TC', system-ui, sans-serif;
      --transition: 0.2s ease;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font);
      background: var(--c-bg);
      color: var(--c-text);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

    /* ── Noise texture overlay ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 0;
    }

    /* ════════════════ NAVBAR ════════════════ */
    .nav {
      position: sticky;
      top: 0;
      z-index: 100;
      height: 60px;
      background: rgba(246,248,255,0.82);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--c-border);
      display: flex;
      align-items: center;
      padding: 0 24px;
    }

    .nav-inner {
      max-width: 1280px;
      margin: 0 auto;
      width: 100%;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      font-weight: 800;
      font-size: 1rem;
      color: var(--c-text);
      letter-spacing: -0.01em;
    }

    .nav-logo-icon {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 0.85rem;
      box-shadow: 0 2px 8px rgba(37,99,235,0.35);
    }

    .nav-logo span em {
      color: var(--c-primary);
      font-style: normal;
    }

    .nav-divider {
      width: 1px;
      height: 20px;
      background: var(--c-border-strong);
      margin: 0 4px;
    }

    .nav-fb {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 999px;
      background: #1877f2;
      color: white;
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 700;
      transition: var(--transition);
    }

    .nav-fb:hover { opacity: 0.88; transform: translateY(-1px); }

    .nav-right {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .nav-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid var(--c-border-strong);
      background: var(--c-surface);
      color: var(--c-text-2);
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 600;
      transition: var(--transition);
      box-shadow: var(--shadow-sm);
    }

    .nav-btn:hover {
      color: var(--c-primary);
      border-color: rgba(37,99,235,0.3);
      background: rgba(37,99,235,0.04);
      transform: translateY(-1px);
    }

    .nav-icon-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid var(--c-border-strong);
      background: var(--c-surface);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1rem;
      color: var(--c-text-2);
      transition: var(--transition);
      box-shadow: var(--shadow-sm);
    }

    .nav-icon-btn:hover {
      color: var(--c-primary);
      border-color: rgba(37,99,235,0.3);
      transform: translateY(-1px);
    }

    /* ════════════════ HERO ════════════════ */
    .hero {
      position: relative;
      overflow: clip;
      width: 100%;
      padding: 72px 24px 60px;
      text-align: center;
    }

    /* Gradient orbs */
    .hero-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(72px);
      pointer-events: none;
      animation: orb-float 8s ease-in-out infinite;
    }

    .hero-orb-a {
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
      top: -180px;
      left: -100px;
      animation-delay: 0s;
    }

    .hero-orb-b {
      width: 420px;
      height: 420px;
      background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
      top: -100px;
      right: -80px;
      animation-delay: -3s;
    }

    .hero-orb-c {
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, rgba(6,182,212,0.14) 0%, transparent 70%);
      bottom: -80px;
      left: 40%;
      animation-delay: -5s;
    }

    @keyframes orb-float {
      0%, 100% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-20px) scale(1.04); }
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      max-width: 720px;
      margin: 0 auto;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 14px 5px 8px;
      border-radius: 999px;
      background: rgba(37,99,235,0.08);
      border: 1px solid rgba(37,99,235,0.2);
      color: var(--c-primary);
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      margin-bottom: 20px;
      animation: badge-in 0.5s ease both;
    }

    .hero-badge-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--c-primary);
      box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
      animation: pulse 2s ease infinite;
    }

    @keyframes pulse {
      0%, 100% { box-shadow: 0 0 0 3px rgba(37,99,235,0.25); }
      50% { box-shadow: 0 0 0 6px rgba(37,99,235,0.1); }
    }

    @keyframes badge-in {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .hero-h1 {
      font-size: clamp(2rem, 5vw, 3.4rem);
      font-weight: 900;
      line-height: 1.12;
      letter-spacing: -0.03em;
      color: var(--c-text);
      margin-bottom: 16px;
      animation: hero-in 0.6s ease 0.1s both;
    }

    .hero-h1 .gradient-text {
      background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-lead {
      font-size: clamp(0.95rem, 2vw, 1.1rem);
      color: var(--c-text-2);
      line-height: 1.65;
      margin-bottom: 32px;
      animation: hero-in 0.6s ease 0.2s both;
    }

    @keyframes hero-in {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Search box */
    .search-wrap {
      max-width: 560px;
      margin: 0 auto 32px;
      animation: hero-in 0.6s ease 0.3s both;
    }

    .search-box {
      display: flex;
      align-items: center;
      background: var(--c-surface);
      border: 2px solid transparent;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg), 0 0 0 1px var(--c-border);
      padding: 6px 6px 6px 18px;
      gap: 8px;
      transition: var(--transition);
    }

    .search-box:focus-within {
      border-color: var(--c-primary);
      box-shadow: var(--shadow-lg), 0 0 0 4px rgba(37,99,235,0.1);
    }

    .search-box i {
      color: var(--c-text-3);
      font-size: 1.1rem;
      flex-shrink: 0;
    }

    .search-box input {
      flex: 1;
      border: none;
      outline: none;
      font-family: var(--font);
      font-size: 0.95rem;
      color: var(--c-text);
      background: transparent;
    }

    .search-box input::placeholder { color: var(--c-text-3); }

    .search-btn {
      padding: 10px 20px;
      border-radius: 12px;
      border: none;
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      color: white;
      font-size: 0.88rem;
      font-weight: 700;
      cursor: pointer;
      transition: var(--transition);
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    }

    .search-btn:hover { opacity: 0.9; transform: translateY(-1px); }

    /* Stats strip */
    .stats-strip {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 32px;
      animation: hero-in 0.6s ease 0.4s both;
    }

    .stat-item {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .stat-num {
      font-size: 1.4rem;
      font-weight: 900;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .stat-label {
      font-size: 0.75rem;
      color: var(--c-text-3);
      font-weight: 500;
    }

    .stat-sep {
      width: 1px;
      height: 36px;
      background: var(--c-border-strong);
      align-self: center;
    }

    /* ════════════════ MAIN LAYOUT ════════════════ */
    .main {
      width: 100%;
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 24px 80px;
    }

    /* ════════════════ CATEGORY NAV ════════════════ */
    .cat-nav-wrap {
      margin-bottom: 40px;
      position: relative;
    }

    .cat-nav-toggle,
    .cat-modal-header,
    .cat-modal-backdrop {
      display: none;
    }

    .cat-modal-panel {
      position: static;
    }

    .cat-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      overflow: visible;
    }

    .cat-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border-radius: 999px;
      border: 1px solid var(--c-border-strong);
      background: var(--c-surface);
      color: var(--c-text-2);
      font-size: 0.84rem;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: var(--transition);
      box-shadow: var(--shadow-sm);
      text-decoration: none;
    }

    .cat-pill:hover {
      color: var(--c-primary);
      border-color: rgba(37,99,235,0.3);
      background: rgba(37,99,235,0.04);
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    .cat-pill.active {
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      color: white;
      border-color: transparent;
      box-shadow: 0 6px 18px rgba(37,99,235,0.3);
      transform: translateY(-1px);
    }

    .cat-pill i { font-size: 0.9rem; }

    body.category-modal-open {
      overflow: hidden;
    }

    /* ════════════════ FEATURED BANNER ════════════════ */
    .featured-banner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 48px;
    }

    .featured-card {
      border-radius: var(--radius-lg);
      padding: 28px 28px 24px;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      min-height: 180px;
    }

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

    .featured-card-a {
      background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #1e1b4b 100%);
      color: white;
      box-shadow: 0 8px 32px rgba(30,58,138,0.4);
    }

    .featured-card-b {
      background: linear-gradient(135deg, #0f766e 0%, #0e7490 50%, #1e40af 100%);
      color: white;
      box-shadow: 0 8px 32px rgba(15,118,110,0.35);
    }

    .featured-card::before {
      content: '';
      position: absolute;
      top: -40px;
      right: -40px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: rgba(255,255,255,0.05);
    }

    .featured-card::after {
      content: '';
      position: absolute;
      bottom: -30px;
      left: -20px;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: rgba(255,255,255,0.04);
    }

    .featured-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      background: rgba(255,255,255,0.15);
      padding: 3px 10px;
      border-radius: 999px;
      margin-bottom: 12px;
      width: fit-content;
      position: relative;
      z-index: 1;
    }

    .featured-title {
      font-size: 1.3rem;
      font-weight: 800;
      margin-bottom: 6px;
      letter-spacing: -0.02em;
      position: relative;
      z-index: 1;
    }

    .featured-desc {
      font-size: 0.84rem;
      opacity: 0.78;
      line-height: 1.5;
      position: relative;
      z-index: 1;
      flex: 1;
    }

    .featured-action {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.82rem;
      font-weight: 700;
      margin-top: 16px;
      opacity: 0.88;
      position: relative;
      z-index: 1;
    }

    /* ════════════════ SECTION HEADER ════════════════ */
    .section-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
    }

    .section-icon {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95rem;
      flex-shrink: 0;
    }

    .section-title {
      font-size: 1.05rem;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .section-count {
      font-size: 0.78rem;
      color: var(--c-text-2);
      font-weight: 600;
      background: var(--c-surface-3);
      padding: 2px 8px;
      border-radius: 999px;
    }

    .section-link {
      margin-left: auto;
      font-size: 0.82rem;
      color: var(--c-primary);
      font-weight: 600;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 3px;
      transition: var(--transition);
    }

    .section-link:hover { opacity: 0.75; }

    /* ════════════════ TOOL GRID ════════════════ */
    .tool-section { margin-bottom: 52px; }

    .tool-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
    }

    .tool-card {
      background: var(--c-surface);
      border-radius: var(--radius);
      border: 1px solid var(--c-border);
      padding: 20px;
      cursor: pointer;
      transition: var(--transition);
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      gap: 10px;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }

    .tool-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
      opacity: 0;
      transition: var(--transition);
    }

    .tool-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: rgba(37,99,235,0.2);
    }

    .tool-card:hover::before { opacity: 1; }

    .tool-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
    }

    .tool-icon-wrap {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      flex-shrink: 0;
      position: relative;
    }

    .tool-icon-wrap::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    }

    /* Icon color variants */
    .ic-blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
    .ic-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
    .ic-green  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
    .ic-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #c2410c; }
    .ic-pink   { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }
    .ic-cyan   { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0e7490; }
    .ic-yellow { background: linear-gradient(135deg, #fef9c3, #fef08a); color: #a16207; }
    .ic-red    { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
    .ic-indigo { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
    .ic-teal   { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0f766e; }
    .ic-rose   { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #e11d48; }
    .ic-lime   { background: linear-gradient(135deg, #ecfccb, #d9f99d); color: #3f6212; }

    .fav-btn {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: none;
      background: transparent;
      color: var(--c-text-3);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.9rem;
      transition: var(--transition);
      flex-shrink: 0;
    }

    .fav-btn:hover { color: #f59e0b; transform: scale(1.15); }

    /* ════════════════ FAVORITES — 拖曳排序（簡易版） ════════════════ */
    .tool-favorites-collection {
      min-height: 12rem;
    }

    /* 收藏格：外層為 grid cell，內層連結需撐滿同一列高度（與首頁直接 .tool-card.tool-item 不同） */
    .tool-favorites-collection .tool-grid > .tool-item {
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .tool-favorites-collection .tool-grid > .tool-item > .tool-card {
      flex: 1 1 auto;
      min-height: 100%;
    }

    .tool-favorites-collection .favorite-toolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .tool-favorites-collection .favorite-drag-handle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      background: transparent;
      color: var(--c-text-3);
      padding: 0;
      font-size: 1.1rem;
      line-height: 1;
      cursor: grab;
      touch-action: none;
    }

    .tool-favorites-collection .favorite-drag-handle:hover {
      color: var(--c-primary);
    }

    .tool-favorites-collection .favorite-drag-handle:active {
      cursor: grabbing;
    }

    .tool-favorites-collection .favorite-drag-handle:focus-visible {
      outline: 2px solid var(--c-primary);
      outline-offset: 2px;
      border-radius: 6px;
    }

    .tool-favorites-collection .tool-item.is-sorting {
      position: fixed;
      z-index: 120;
      pointer-events: none;
      margin: 0 !important;
    }

    .tool-favorites-collection .tool-item.is-sorting .tool-card {
      transform: var(--favorite-drag-start-transform, translateY(0px)) rotate(1.5deg) !important;
      box-shadow: var(--shadow-lg) !important;
    }

    .tool-favorites-collection .favorite-sort-placeholder {
      opacity: 1;
      box-sizing: border-box;
    }

    .tool-favorites-collection .favorite-sort-outline {
      width: 100%;
      height: 100%;
      min-height: 100%;
      border: 2px dashed rgba(37, 99, 235, 0.35);
      border-radius: var(--radius);
      background: rgba(37, 99, 235, 0.06);
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
    }

    .tool-name {
      font-size: 0.92rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      line-height: 1.3;
    }

    .tool-desc {
      font-size: 0.78rem;
      color: var(--c-text-2);
      line-height: 1.5;
      flex: 1;
    }

    .tool-meta {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 2px;
    }

    .tool-tag {
      font-size: 0.68rem;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 999px;
      background: var(--c-surface-3);
      color: var(--c-text-2);
    }

    .tool-hot {
      font-size: 0.68rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 999px;
      background: rgba(239,68,68,0.08);
      color: #dc2626;
    }

    /* ════════════════ HOT TOOLS — wider cards ════════════════ */
    .hot-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 48px;
    }

    .hot-card {
      background: var(--c-surface);
      border-radius: var(--radius-lg);
      border: 1px solid var(--c-border);
      padding: 22px 22px 18px;
      display: flex;
      align-items: flex-start;
      gap: 16px;
      text-decoration: none;
      color: inherit;
      transition: var(--transition);
      box-shadow: var(--shadow-sm);
      cursor: pointer;
    }

    .hot-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: rgba(37,99,235,0.2);
    }

    .hot-icon {
      width: 52px;
      height: 52px;
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      flex-shrink: 0;
    }

    .hot-info { flex: 1; min-width: 0; }

    .hot-name {
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      margin-bottom: 4px;
    }

    .hot-desc {
      font-size: 0.8rem;
      color: var(--c-text-2);
      line-height: 1.45;
    }

    .hot-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 999px;
      margin-top: 8px;
    }

    .hot-badge-fire {
      background: rgba(239,68,68,0.08);
      color: #dc2626;
    }

    .hot-badge-new {
      background: rgba(37,99,235,0.08);
      color: var(--c-primary);
    }

    .hot-badge-star {
      background: rgba(245,158,11,0.1);
      color: #b45309;
    }

    /* ════════════════ FOOTER ════════════════ */
    .footer {
      border-top: 1px solid var(--c-border);
      padding: 16px 24px;
      text-align: center;
    }

    .footer-inner {
      max-width: 1280px;
      margin: 0 auto;
    }

    .footer-copy {
      font-size: 0.78rem;
      color: var(--c-text-3);
    }

    /* ════════════════ RESPONSIVE ════════════════ */
    @media (max-width: 900px) {
      .hot-grid { grid-template-columns: repeat(2, 1fr); }
      .featured-banner { grid-template-columns: 1fr; }
    }

    @media (max-width: 640px) {
      .hero { padding: 48px 16px 40px; }
      .main { padding: 0 16px 60px; }
      .cat-nav-wrap {
        margin-bottom: 28px;
      }
      .cat-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 44px;
        border: 1px solid var(--c-border-strong);
        border-radius: var(--radius);
        background: var(--c-surface);
        color: var(--c-text);
        font-size: 0.92rem;
        font-weight: 700;
        box-shadow: var(--shadow-sm);
      }
      .cat-modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1080;
        background: rgba(15, 23, 42, 0.46);
      }
      .cat-modal-panel {
        display: none;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 1081;
        max-height: min(76vh, 560px);
        overflow: auto;
        padding: 16px;
        border: 1px solid var(--c-border);
        border-radius: 16px;
        background: var(--c-surface);
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
        opacity: 0;
        pointer-events: none;
        transform: translateY(18px);
        transition: opacity 0.18s ease, transform 0.18s ease;
      }
      .cat-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
      }
      .cat-modal-header h2 {
        margin: 0;
        font-size: 1rem;
        font-weight: 800;
        color: var(--c-text);
      }
      .cat-modal-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid var(--c-border);
        border-radius: 50%;
        background: var(--c-surface-2);
        color: var(--c-text-2);
      }
      .cat-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }
      .cat-pill {
        justify-content: center;
        min-height: 42px;
        padding: 8px 10px;
      }
      .cat-nav-wrap.is-open .cat-modal-backdrop {
        display: block;
      }
      .cat-nav-wrap.is-open .cat-modal-panel {
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }
      .stats-strip { gap: 18px; }
      .stat-num { font-size: 1.2rem; }
      .hot-grid { grid-template-columns: 1fr; }
      .tool-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
      .nav-fb { display: none; }
      .nav-btn { display: none; }
      .nav-sep { display: none; }
    }

    /* ════════════════ ANIMATIONS ════════════════ */
    .fade-up {
      animation: fade-up 0.5s ease both;
    }

    @keyframes fade-up {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .tool-card, .hot-card {
      animation: fade-up 0.4s ease both;
    }

    .tool-grid .tool-card:nth-child(1)  { animation-delay: 0.00s; }
    .tool-grid .tool-card:nth-child(2)  { animation-delay: 0.04s; }
    .tool-grid .tool-card:nth-child(3)  { animation-delay: 0.08s; }
    .tool-grid .tool-card:nth-child(4)  { animation-delay: 0.12s; }
    .tool-grid .tool-card:nth-child(5)  { animation-delay: 0.16s; }
    .tool-grid .tool-card:nth-child(6)  { animation-delay: 0.20s; }
    .tool-grid .tool-card:nth-child(7)  { animation-delay: 0.24s; }
    .tool-grid .tool-card:nth-child(8)  { animation-delay: 0.28s; }
  


/* ════════════════════════════════════
   TOOL PAGE (JSON Formatter)
════════════════════════════════════ */

    /* ── Tool Page Specific ── */
    .tool-header {
      display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px;
    }

    .tool-header-icon {
      width: 56px; height: 56px; border-radius: 16px; font-size: 1.6rem;
      flex-shrink: 0;
    }

    .tool-header-text { flex: 1; min-width: 0; }

    .tool-title {
      font-size: 1.55rem; font-weight: 800; letter-spacing: -0.025em;
      margin-bottom: 4px;
    }

    .tool-lead {
      font-size: 0.9rem; color: var(--c-text-2); line-height: 1.55;
    }

    .tool-header-actions {
      display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0;
    }

    .tool-inline-actions {
      margin-top: 12px;
      display: flex;
      align-items: center;
      gap: 20px;
      font-size: 0.82rem;
    }

    .tool-inline-actions a {
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-weight: 600;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      padding: 0 !important;
      border-radius: 0 !important;
    }

    .tool-inline-fav {
      color: var(--c-text-2);
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      font: inherit;
    }

    .tool-inline-fav:hover {
      color: var(--c-warning);
      opacity: 1;
    }

    .tool-inline-fav.is-favorited {
      color: var(--c-warning);
    }

    .tool-inline-report {
      color: var(--c-text-2);
    }

    .tool-inline-report:hover {
      opacity: 0.85;
    }

    /* 工具頁外層 section：僅版面語意；最小高度由 includes/ad-unit.php 內 .site-ad-slot 負責 */
    .tool-top-ad {
      flex-shrink: 0;
      position: relative;
      width: 100%;
      box-sizing: border-box;
    }

    /* ad-unit 產生的包裝，供 flex 欄內避免被壓扁（min-height 由該檔 inline） */
    .site-ad-slot {
      flex-shrink: 0;
      width: 100%;
      box-sizing: border-box;
    }

    /* ── Editor area ── */
    .editor-wrap {
      display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
      margin-bottom: 12px;
    }

    .editor-panel {
      display: flex; flex-direction: column; gap: 0;
      border: 1.5px solid var(--c-border-strong); border-radius: var(--radius);
      overflow: hidden; background: var(--c-surface);
      box-shadow: var(--shadow-sm);
    }

    .editor-panel-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 14px;
      border-bottom: 1px solid var(--c-border);
      background: var(--c-surface-2);
    }

    .editor-panel-label {
      font-size: 0.78rem; font-weight: 700; color: var(--c-text-2);
      display: flex; align-items: center; gap: 6px;
    }

    .editor-panel-label i { font-size: 0.85rem; }

    .editor-panel-actions { display: flex; gap: 6px; }

    .editor-panel-btn {
      display: flex; align-items: center; gap: 4px;
      padding: 4px 10px; border-radius: 6px;
      border: 1px solid var(--c-border-strong);
      background: var(--c-surface); color: var(--c-text-2);
      font-size: 0.75rem; font-weight: 600; cursor: pointer;
      transition: var(--ease); font-family: var(--font);
    }
    .editor-panel-btn:hover { color: var(--c-primary); border-color: rgba(37,99,235,0.3); }
    .editor-panel-btn.primary-btn {
      background: var(--c-primary); color: white;
      border-color: transparent;
    }

    .editor-textarea {
      font-family: var(--mono); font-size: 0.84rem;
      color: var(--c-text); background: var(--c-surface);
      border: none; outline: none; resize: none;
      padding: 16px; width: 100%; min-height: 380px;
      line-height: 1.65; flex: 1;
    }
    .editor-textarea::placeholder { color: var(--c-text-3); }

    .editor-status {
      padding: 8px 14px;
      border-top: 1px solid var(--c-border);
      background: var(--c-surface-2);
      display: flex; align-items: center; justify-content: space-between;
      font-size: 0.72rem; color: var(--c-text-3);
    }

    .status-ok  { color: var(--c-success); font-weight: 600; }
    .status-err { color: var(--c-error); font-weight: 600; }

    /* Formatted output with syntax highlight effect */
    .editor-output {
      font-family: var(--mono); font-size: 0.84rem; line-height: 1.65;
      padding: 16px; min-height: 380px; overflow: auto; white-space: pre;
      background: var(--c-surface); color: var(--c-text);
    }

    .json-key   { color: #1d4ed8; }
    .json-str   { color: #16a34a; }
    .json-num   { color: #c2410c; }
    .json-bool  { color: #7c3aed; }
    .json-null  { color: #94a3b8; }

    /* ── Toolbar ── */
    .toolbar {
      display: flex; align-items: center; gap: 8px;
      padding: 12px 0; flex-wrap: wrap;
    }

    .toolbar-group {
      display: flex; align-items: center; gap: 4px;
      padding: 3px; background: var(--c-surface-2);
      border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
    }

    .tb-btn {
      display: flex; align-items: center; gap: 5px;
      padding: 6px 12px; border-radius: 6px;
      border: none; font-family: var(--font);
      font-size: 0.82rem; font-weight: 600; cursor: pointer;
      transition: var(--ease); color: var(--c-text-2);
      background: transparent;
    }
    .tb-btn:hover { background: var(--c-surface); color: var(--c-primary); }
    .tb-btn.active {
      background: var(--c-surface); color: var(--c-primary);
      box-shadow: var(--shadow-xs);
    }

    .toolbar-sep {
      width: 1px; height: 24px; background: var(--c-border-strong); margin: 0 4px;
    }

    /* ── Info Tabs ── */
    .info-section {
      margin-top: 36px; padding-top: 36px;
      border-top: 1px solid var(--c-border);
    }

    .tabs-nav {
      display: flex; gap: 2px; border-bottom: 2px solid var(--c-border);
      margin-bottom: 24px;
      /* overflow-x:auto（各工具 RWD）會讓部分瀏覽器連動 y 軸出現多餘直向捲軸 */
      overflow-y: hidden;
    }

    .tab-btn {
      padding: 10px 20px; border: none; background: transparent;
      font-family: var(--font); font-size: 0.88rem; font-weight: 600;
      color: var(--c-text-3); cursor: pointer; transition: var(--ease);
      position: relative; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
    .tab-btn:hover { color: var(--c-text-2); background: var(--c-surface-2); }
    .tab-btn.active {
      color: var(--c-primary);
    }
    .tab-btn.active::after {
      content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
      height: 2px; background: var(--c-primary); border-radius: 2px 2px 0 0;
    }

    .info-section .tab-content { display: block; }
    .info-section .tab-pane { padding-top: 4px; }

    .info-section .tabs-nav.nav {
      border-bottom: 2px solid var(--c-border);
    }

    .info-section .tabs-nav .nav-item {
      margin-bottom: 0;
    }

    .info-section .tab-btn.nav-link {
      border: none;
      background: transparent;
      color: var(--c-text-3);
      border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }

    .info-section .tab-btn.nav-link:hover {
      color: var(--c-text-2);
      background: var(--c-surface-2);
      border: none;
    }

    .info-section .tab-btn.nav-link.active {
      color: var(--c-primary);
      background: transparent;
      border: none;
    }

    /* FAQ */
    .faq-item {
      border: 1px solid var(--c-border); border-radius: var(--radius);
      overflow: hidden; margin-bottom: 8px;
    }

    .faq-q {
      padding: 14px 18px; font-size: 0.9rem; font-weight: 600;
      cursor: pointer; display: flex; align-items: center; justify-content: space-between;
      background: var(--c-surface); transition: var(--ease);
    }
    .faq-q:hover { background: var(--c-surface-2); }

    .faq-a {
      padding: 0 18px 16px; font-size: 0.86rem; color: var(--c-text-2);
      line-height: 1.7; border-top: 1px solid var(--c-border);
      background: var(--c-surface);
    }

    /* Related articles (knowledge tab) */
    .rk-item {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 12px 0; border-bottom: 1px solid var(--c-border);
      text-decoration: none; color: inherit; transition: var(--ease);
    }
    .rk-item:last-child { border-bottom: none; }
    .rk-item:hover { opacity: 0.8; }

    .rk-thumb {
      width: 68px; height: 68px; border-radius: 10px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem; color: rgba(255,255,255,0.95);
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
    }

    .rk-info { flex: 1; min-width: 0; }
    .rk-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
    .rk-excerpt { font-size: 0.77rem; color: var(--c-text-2); line-height: 1.45; }
    .rk-date { font-size: 0.7rem; color: var(--c-text-3); margin-top: 5px; }

    /* ── Related Tools ── */
    .related-section {
      margin-top: 40px; padding-top: 36px;
      border-top: 1px solid var(--c-border);
    }

    .related-title {
      font-size: 1rem; font-weight: 800; letter-spacing: -0.015em;
      margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
    }

    .related-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
      gap: 10px;
    }

    .related-card {
      background: var(--c-surface); border: 1px solid var(--c-border);
      border-radius: var(--radius); padding: 14px 16px;
      display: flex; align-items: center; gap: 12px;
      text-decoration: none; color: inherit; transition: var(--ease);
      box-shadow: var(--shadow-xs);
    }
    .related-card:hover {
      transform: translateY(-3px); box-shadow: var(--shadow);
      border-color: rgba(37,99,235,0.2);
    }

    .related-icon {
      width: 40px; height: 40px; border-radius: 11px; font-size: 1.1rem;
      flex-shrink: 0;
    }

    .related-info { flex: 1; min-width: 0; }
    .related-name { font-size: 0.84rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .related-desc { font-size: 0.72rem; color: var(--c-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    @media (max-width: 900px) {
      .editor-wrap { grid-template-columns: 1fr; }
      .tool-header { flex-wrap: wrap; }
      .tool-header-actions { margin-left: 0; width: 100%; }
    }

    @media (max-width: 640px) {
      .tool-title { font-size: 1.25rem; }
      .toolbar { gap: 6px; }
    }

    .page-wrap.container {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      padding-top: 40px;
      padding-bottom: 80px;
    }
  


/* ════════════════════════════════════
   TOOL USAGE CARDS (各工具共用)
════════════════════════════════════ */

    /* ── Info tab nav — gray active style ── */
    .tool-info-tabs .tab-btn {
      font-weight: 700;
      padding: 12px 20px;
      border-radius: 10px 10px 0 0;
    }

    .tool-info-tabs .tab-btn.active {
      background: #6b7280;
      color: #fff;
    }

    /* ── Usage step cards ── */
    .tool-usage-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
      margin-bottom: 24px;
    }

    .tool-usage-card {
      background: var(--c-surface-2);
      border-radius: var(--radius, 12px);
      padding: 18px;
      border: 1px solid var(--c-border);
    }

    .tool-usage-icon {
      font-size: 1.4rem;
      margin-bottom: 8px;
      line-height: 1.2;
    }

    .tool-usage-title {
      font-weight: 700;
      font-size: 0.88rem;
      margin-bottom: 4px;
    }

    .tool-usage-text {
      font-size: 0.82rem;
      color: var(--c-text-2);
      line-height: 1.55;
    }



/* ════════════════════════════════════
   KNOWLEDGE LIST
════════════════════════════════════ */

    /* ── Knowledge List Specific ── */

    /* Hero */
    .k-hero {
      text-align: center; padding: 52px 0 40px;
      position: relative; overflow: hidden;
    }

    .k-hero-orb {
      position: absolute; border-radius: 50%;
      filter: blur(60px); pointer-events: none;
    }
    .k-hero-orb-a {
      width: 380px; height: 380px;
      background: radial-gradient(circle,rgba(37,99,235,0.15) 0%,transparent 70%);
      top: -160px; left: -80px;
    }
    .k-hero-orb-b {
      width: 300px; height: 300px;
      background: radial-gradient(circle,rgba(124,58,237,0.12) 0%,transparent 70%);
      top: -100px; right: -40px;
    }

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

    .k-hero-icon {
      width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px;
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      display: flex; align-items: center; justify-content: center;
      font-size: 1.8rem; color: white;
      box-shadow: 0 8px 28px rgba(37,99,235,0.3);
    }

    .k-hero-h1 {
      font-size: clamp(1.6rem,3.5vw,2.4rem);
      font-weight: 900; letter-spacing: -0.03em;
      margin-bottom: 10px;
    }

    .k-hero-lead {
      font-size: 0.95rem; color: var(--c-text-2); line-height: 1.65;
      margin-bottom: 24px;
    }

    /* Search */
    .k-search {
      max-width: 480px; margin: 0 auto 24px;
      display: flex; align-items: center;
      background: var(--c-surface);
      border: 1.5px solid var(--c-border-strong);
      border-radius: 999px;
      padding: 8px 8px 8px 18px;
      box-shadow: var(--shadow);
      gap: 8px;
    }
    .k-search:focus-within {
      border-color: var(--c-primary);
      box-shadow: var(--shadow), 0 0 0 3px rgba(37,99,235,0.1);
    }
    .k-search i { color: var(--c-text-3); }
    .k-search input {
      flex: 1; border: none; outline: none; background: transparent;
      font-family: var(--font); font-size: 0.9rem; color: var(--c-text);
    }
    .k-search input::placeholder { color: var(--c-text-3); }
    .k-search-btn {
      padding: 8px 18px; border-radius: 999px; border: none;
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      color: white; font-size: 0.82rem; font-weight: 700; cursor: pointer;
      transition: var(--ease);
    }
    .k-search-btn:hover { opacity: 0.9; }

    /* Stats row */
    .k-stats {
      display: flex; justify-content: center; gap: 28px;
      padding: 20px 0; border-top: 1px solid var(--c-border);
      border-bottom: 1px solid var(--c-border);
      margin-bottom: 36px;
    }

    .k-stat {
      display: flex; flex-direction: column; align-items: center; gap: 2px;
    }
    .k-stat-num {
      font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em;
    }
    .k-stat-label { font-size: 0.72rem; color: var(--c-text-3); }

    /* Article Grid */
    .k-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px; margin-bottom: 48px;
    }

    .k-card {
      background: var(--c-surface); border-radius: var(--radius-lg);
      border: 1px solid var(--c-border);
      box-shadow: var(--shadow-sm);
      overflow: hidden; text-decoration: none; color: inherit;
      transition: var(--ease); display: flex; flex-direction: column;
    }
    .k-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
      border-color: rgba(37,99,235,0.18);
    }

    .k-card-thumb {
      height: 140px; display: flex; align-items: center; justify-content: center;
      font-size: 2.6rem; color: rgba(255,255,255,0.95);
      position: relative; overflow: hidden;
    }
    .k-card-thumb::after {
      content: ''; position: absolute; inset: 0;
      background: rgba(0,0,0,0.08);
    }
    .k-card-thumb i { position: relative; z-index: 1; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25)); }

    .k-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }

    .k-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }

    .k-card-tag {
      padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
      background: rgba(37,99,235,0.07); color: var(--c-primary);
    }

    .k-card-title {
      font-size: 0.98rem; font-weight: 700; line-height: 1.4;
      letter-spacing: -0.01em; margin-bottom: 8px;
    }

    .k-card-excerpt {
      font-size: 0.8rem; color: var(--c-text-2); line-height: 1.6;
      flex: 1; margin-bottom: 14px;
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }

    .k-card-footer {
      display: flex; align-items: center; justify-content: space-between;
      padding-top: 12px; border-top: 1px solid var(--c-border);
      font-size: 0.72rem; color: var(--c-text-3);
    }

    .k-card-date { display: flex; align-items: center; gap: 4px; }

    .k-card-read {
      display: flex; align-items: center; gap: 3px;
      color: var(--c-primary); font-weight: 600;
    }

    /* Featured article (spans 2 cols) */
    .k-card-featured {
      grid-column: span 2;
      flex-direction: row;
    }

    .k-card-featured .k-card-thumb {
      width: 260px; min-width: 260px; height: auto;
      flex-shrink: 0;
    }

    .k-card-featured .k-card-body { padding: 24px 24px; }

    .k-card-featured .k-card-title { font-size: 1.15rem; }

    .k-card-featured .k-card-excerpt { -webkit-line-clamp: 4; }

    /* Pagination */
    .k-pagination {
      display: flex; align-items: center; justify-content: center; gap: 6px;
    }

    .k-page-btn {
      width: 38px; height: 38px; border-radius: 10px;
      border: 1px solid var(--c-border-strong);
      background: var(--c-surface); color: var(--c-text-2);
      display: flex; align-items: center; justify-content: center;
      font-size: 0.85rem; font-weight: 600; cursor: pointer;
      transition: var(--ease); text-decoration: none;
    }
    .k-page-btn:hover { color: var(--c-primary); border-color: rgba(37,99,235,0.3); }
    .k-page-btn.active {
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      color: white; border-color: transparent;
      box-shadow: 0 4px 12px rgba(37,99,235,0.28);
    }

    @media (max-width: 960px) {
      .k-grid { grid-template-columns: repeat(2, 1fr); }
      .k-card-featured { grid-column: span 2; flex-direction: column; }
      .k-card-featured .k-card-thumb { width: 100%; height: 160px; }
    }

    @media (max-width: 640px) {
      .k-grid { grid-template-columns: 1fr; }
      .k-card-featured { grid-column: span 1; }
      .k-stats { gap: 16px; }
    }
  


/* ════════════════════════════════════
   KNOWLEDGE DETAIL
════════════════════════════════════ */

    /* ── Article Detail Specific ── */

    /* Hero Banner */
    .article-hero {
      background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%);
      padding: 52px 24px 0; margin: 0; overflow: hidden; position: relative;
    }

    .article-hero::before {
      content: ''; position: absolute; inset: 0;
      background: rgba(0,0,0,0.12);
    }

    .article-hero-orb {
      position: absolute; border-radius: 50%;
      background: rgba(255,255,255,0.07); pointer-events: none;
    }
    .article-hero-orb-a { width:300px;height:300px; top:-100px;right:-60px; }
    .article-hero-orb-b { width:200px;height:200px; bottom:-80px;left:10%; }

    .article-hero-inner {
      max-width: 1120px; margin: 0 auto; position: relative; z-index: 1;
      display: flex; align-items: flex-end; gap: 32px;
    }

    .article-hero-text { flex: 1; padding-bottom: 36px; }

    .article-hero-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

    .article-hero-tag {
      padding: 4px 12px; border-radius: 999px;
      background: rgba(255,255,255,0.18); color: white;
      font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
    }

    .article-hero-h1 {
      font-size: clamp(1.4rem, 3.5vw, 2.1rem);
      font-weight: 900; color: white; letter-spacing: -0.025em;
      line-height: 1.25; margin-bottom: 14px;
    }

    .article-hero-meta {
      display: flex; align-items: center; gap: 16px;
      flex-wrap: wrap;
    }

    .article-hero-meta-item {
      display: flex; align-items: center; gap: 5px;
      font-size: 0.8rem; color: rgba(255,255,255,0.78);
    }

    .article-hero-icon {
      width: 160px; min-width: 160px; height: 160px;
      display: flex; align-items: center; justify-content: center;
      font-size: 4rem; color: rgba(255,255,255,0.92);
      filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
      align-self: center; padding-bottom: 0; flex-shrink: 0;
    }

    /* Layout */
    .article-layout {
      display: grid; grid-template-columns: 1fr 280px; gap: 32px;
      padding-top: 40px;
      max-width: 1120px;
      margin: 0 auto;
    }

    /* Article body */
    .article-body { min-width: 0; }

    .article-content {
      max-width: 760px;
    }

    .article-content {
      font-size: 0.94rem; line-height: 1.82; color: var(--c-text);
    }

    .article-content h2 {
      font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
      margin: 36px 0 14px; color: var(--c-text);
      padding-bottom: 10px; border-bottom: 2px solid var(--c-border);
    }

    .article-content h3 {
      font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px;
    }

    .article-content p { margin-bottom: 1.1em; }

    .article-content ul, .article-content ol {
      padding-left: 1.5em; margin-bottom: 1.1em;
    }

    .article-content li { margin-bottom: 0.45em; }

    .article-content strong { font-weight: 700; }

    .article-content code {
      font-family: var(--mono); font-size: 0.86em;
      background: rgba(37,99,235,0.07); color: var(--c-primary);
      padding: 0.15em 0.45em; border-radius: 5px;
    }

    .article-content pre {
      background: #1e1b4b; border-radius: var(--radius);
      padding: 20px; overflow-x: auto; margin: 20px 0;
      box-shadow: var(--shadow);
    }

    .article-content pre code {
      font-family: var(--mono); font-size: 0.84rem;
      color: #e2e8f0; background: transparent; padding: 0;
      line-height: 1.7;
    }

    .article-content blockquote {
      border-left: 3px solid var(--c-primary);
      background: rgba(37,99,235,0.04);
      padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      margin: 20px 0; color: var(--c-text-2);
    }

    .article-content .info-box {
      background: var(--c-surface-2);
      border: 1px solid var(--c-border);
      border-radius: var(--radius); padding: 18px 20px; margin: 20px 0;
      display: flex; gap: 12px; align-items: flex-start;
    }

    .article-content .info-box-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

    .article-content table {
      width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.86rem;
    }

    .article-content th {
      background: var(--c-surface-2);
      color: var(--c-text);
      padding: 10px 14px;
      border: 1px solid var(--c-border);
      text-align: left;
      font-weight: 700;
    }

    /* Bootstrap `.table` 會對 th/td 套用 `--bs-emphasis-color`；全站暗黑用 `data-theme` 時
       若未同步 `data-bs-theme`，表頭易變成深字 + 深底。提高選擇器權重以覆寫。 */
    .article-content .table > :not(caption) > * > th,
    .article-content .table > :not(caption) > * > td {
      color: var(--c-text);
    }

    .article-content td {
      padding: 9px 14px;
      border: 1px solid var(--c-border);
      vertical-align: top;
      color: var(--c-text);
    }

    .article-content td:first-child code { background: rgba(37,99,235,0.07); }

    /* Article actions */
    .article-actions {
      display: flex; gap: 10px; flex-wrap: wrap;
      padding: 24px 0; border-top: 1px solid var(--c-border);
      margin-top: 32px;
    }

    /* Sidebar */
    .article-sidebar { display: flex; flex-direction: column; gap: 20px; }

    .sidebar-card {
      background: var(--c-surface); border: 1px solid var(--c-border);
      border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-xs);
    }

    .sidebar-title {
      font-size: 0.82rem; font-weight: 800; letter-spacing: 0.05em;
      text-transform: uppercase; color: var(--c-text-3);
      margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
    }

    /* Table of Contents */
    .toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

    .toc-item a {
      display: block; padding: 6px 10px; border-radius: 7px;
      text-decoration: none; font-size: 0.82rem; color: var(--c-text-2);
      font-weight: 500; transition: var(--ease); line-height: 1.4;
    }
    .toc-item a:hover, .toc-item.active a {
      background: rgba(37,99,235,0.07);
      color: var(--c-primary); font-weight: 600;
    }
    .toc-item.sub a { padding-left: 22px; font-size: 0.78rem; }

    /* Related tools in sidebar */
    .sidebar-tool {
      display: flex; align-items: center; gap: 10px;
      text-decoration: none; color: inherit; padding: 8px 0;
      border-bottom: 1px solid var(--c-border); transition: var(--ease);
    }
    .sidebar-tool:last-child { border-bottom: none; padding-bottom: 0; }
    .sidebar-tool:hover { opacity: 0.75; }

    .sidebar-tool-icon {
      width: 36px; height: 36px; border-radius: 10px; font-size: 1rem;
      flex-shrink: 0;
    }

    .sidebar-tool-name { font-size: 0.83rem; font-weight: 600; }
    .sidebar-tool-desc { font-size: 0.72rem; color: var(--c-text-2); }

    /* Share bar */
    .share-bar { display: flex; gap: 8px; }

    .share-btn {
      flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
      padding: 9px 0; border-radius: var(--radius-sm);
      border: 1px solid var(--c-border-strong);
      background: var(--c-surface); color: var(--c-text-2);
      font-size: 0.8rem; font-weight: 600; cursor: pointer;
      transition: var(--ease); text-decoration: none;
    }
    .share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
    .share-fb { color: #1877f2; border-color: rgba(24,119,242,0.25); }
    .share-copy { }

    /* Related articles at bottom */
    .more-section {
      margin-top: 48px; padding-top: 40px;
      border-top: 1px solid var(--c-border);
    }

    .more-title {
      font-size: 1.05rem; font-weight: 800; letter-spacing: -0.015em;
      margin-bottom: 20px;
    }

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

    .more-card {
      background: var(--c-surface); border: 1px solid var(--c-border);
      border-radius: var(--radius); overflow: hidden;
      text-decoration: none; color: inherit; transition: var(--ease);
      display: flex; flex-direction: column;
      box-shadow: var(--shadow-xs);
    }
    .more-card:hover {
      transform: translateY(-3px); box-shadow: var(--shadow);
      border-color: rgba(37,99,235,0.18);
    }

    .more-card-thumb {
      height: 88px; display: flex; align-items: center; justify-content: center;
      font-size: 1.8rem; color: rgba(255,255,255,0.95);
      position: relative; overflow: hidden;
    }
    .more-card-thumb::after {
      content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.1);
    }
    .more-card-thumb i { position: relative; z-index: 1; }

    .more-card-body { padding: 14px 16px; flex: 1; }
    .more-card-title { font-size: 0.86rem; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
    .more-card-date { font-size: 0.7rem; color: var(--c-text-3); }

    @media (max-width: 960px) {
      .article-layout { grid-template-columns: 1fr; }
      .article-sidebar { display: none; }
      .article-hero-icon {
        width: 120px; min-width: 120px; height: 120px;
        font-size: 3rem;
      }
      .more-grid { grid-template-columns: repeat(2, 1fr); }
      .article-content { max-width: 100%; }
    }

    @media (max-width: 640px) {
      .more-grid { grid-template-columns: 1fr; }
      .article-hero { padding: 36px 16px 0; }
      .article-hero-h1 { font-size: 1.4rem; }
      .article-hero-icon {
        width: 88px; min-width: 88px; height: 88px;
        font-size: 2.2rem;
      }
    }
  


/* ════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════ */

    /* ── Contact Page Specific ── */

    /* Page header */
    .contact-hero {
      text-align: center; padding: 52px 0 40px;
      position: relative; overflow: hidden;
    }
    .contact-hero-orb {
      position: absolute; border-radius: 50%;
      filter: blur(60px); pointer-events: none;
    }
    .contact-hero-orb-a {
      width: 360px; height: 360px;
      background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
      top: -150px; right: -50px;
    }
    .contact-hero-orb-b {
      width: 280px; height: 280px;
      background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
      bottom: -100px; left: -40px;
    }

    .contact-hero-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

    .contact-hero-icon {
      width: 60px; height: 60px; border-radius: 18px;
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      display: flex; align-items: center; justify-content: center;
      font-size: 1.6rem; color: white;
      box-shadow: 0 8px 24px rgba(37,99,235,0.28);
      margin: 0 auto 18px;
    }

    .contact-hero-h1 {
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 900; letter-spacing: -0.025em; margin-bottom: 10px;
    }

    .contact-hero-lead {
      font-size: 0.93rem; color: var(--c-text-2); line-height: 1.65;
    }

    /* Layout */
    .contact-layout {
      display: grid; grid-template-columns: 1fr 380px; gap: 40px;
      max-width: 960px; margin: 0 auto;
    }

    /* Form Card */
    .form-card {
      background: var(--c-surface); border: 1px solid var(--c-border);
      border-radius: var(--radius-lg); padding: 32px 36px;
      box-shadow: var(--shadow);
    }

    .form-card-title {
      font-size: 1.05rem; font-weight: 800; letter-spacing: -0.015em;
      margin-bottom: 24px; display: flex; align-items: center; gap: 8px;
    }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

    .form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

    .form-label {
      font-size: 0.83rem; font-weight: 700; color: var(--c-text);
      display: flex; align-items: center; gap: 6px;
    }

    .label-required {
      color: var(--c-error); font-size: 0.75rem; font-weight: 600;
    }

    .label-optional {
      color: var(--c-text-3); font-size: 0.72rem; font-weight: 500;
    }

    .readonly-input {
      background: var(--c-surface-2); color: var(--c-text-2);
      display: flex; align-items: center; gap: 8px;
      padding: 10px 14px; border-radius: var(--radius-sm);
      border: 1.5px solid var(--c-border);
      font-size: 0.88rem;
    }

    .readonly-input i { color: var(--c-text-3); }

    .char-count {
      font-size: 0.72rem; color: var(--c-text-3); text-align: right;
      margin-top: 4px;
    }

    .submit-btn {
      width: 100%; padding: 13px; border-radius: var(--radius);
      border: none; cursor: pointer; font-family: var(--font);
      font-size: 0.95rem; font-weight: 700;
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      color: white; box-shadow: var(--shadow-pri);
      display: flex; align-items: center; justify-content: center; gap: 8px;
      transition: var(--ease); margin-top: 8px;
    }
    .submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }

    .form-note {
      font-size: 0.73rem; color: var(--c-text-3); text-align: center;
      margin-top: 14px; line-height: 1.6;
    }

    /* Info Sidebar */
    .contact-sidebar { display: flex; flex-direction: column; gap: 16px; }

    .info-card {
      background: var(--c-surface); border: 1px solid var(--c-border);
      border-radius: var(--radius-lg); padding: 24px;
      box-shadow: var(--shadow-xs);
    }

    .info-card-title {
      font-size: 0.88rem; font-weight: 800; margin-bottom: 18px;
      display: flex; align-items: center; gap: 8px;
    }

    .info-item {
      display: flex; align-items: flex-start; gap: 12px;
      margin-bottom: 14px;
    }
    .info-item:last-child { margin-bottom: 0; }

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

    .info-text { flex: 1; }
    .info-label { font-size: 0.75rem; font-weight: 700; color: var(--c-text-2); margin-bottom: 2px; }
    .info-value { font-size: 0.85rem; color: var(--c-text); line-height: 1.45; }

    /* Social Links */
    .social-links { display: flex; flex-direction: column; gap: 8px; }

    .social-link {
      display: flex; align-items: center; gap: 10px;
      padding: 11px 14px; border-radius: var(--radius);
      border: 1px solid var(--c-border-strong);
      background: var(--c-surface); color: var(--c-text);
      text-decoration: none; font-size: 0.85rem; font-weight: 600;
      transition: var(--ease);
    }
    .social-link:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }

    .social-link-icon {
      width: 32px; height: 32px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; flex-shrink: 0;
    }

    .social-link-sub { font-size: 0.72rem; color: var(--c-text-3); font-weight: 500; }
    .social-link-arrow { margin-left: auto; color: var(--c-text-3); }

    /* FAQ mini */
    .mini-faq { display: flex; flex-direction: column; gap: 8px; }

    .mini-faq-item {
      padding: 12px 14px; border-radius: var(--radius);
      background: var(--c-surface-2); border: 1px solid var(--c-border);
    }

    .mini-faq-q {
      font-size: 0.82rem; font-weight: 700; margin-bottom: 5px;
      color: var(--c-text);
    }

    .mini-faq-a {
      font-size: 0.77rem; color: var(--c-text-2); line-height: 1.55;
    }

    /* Success state */
    .success-banner {
      display: flex; align-items: center; gap: 14px;
      padding: 18px 20px; border-radius: var(--radius);
      background: rgba(22,163,74,0.07);
      border: 1px solid rgba(22,163,74,0.2);
      margin-bottom: 20px;
    }

    .success-icon {
      width: 40px; height: 40px; border-radius: 50%;
      background: rgba(22,163,74,0.12); color: var(--c-success);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; flex-shrink: 0;
    }

    .success-text-title { font-weight: 700; font-size: 0.9rem; color: var(--c-success); }
    .success-text-desc { font-size: 0.8rem; color: var(--c-text-2); }

    @media (max-width: 800px) {
      .contact-layout { grid-template-columns: 1fr; }
      .contact-sidebar { order: -1; }
      .form-row { grid-template-columns: 1fr; }
      .form-card { padding: 24px 20px; }
    }
  


/* ════════════════════════════════════
   ABOUT PAGE
════════════════════════════════════ */

    /* ── About Page Specific ── */

    /* Hero */
    .about-hero {
      position: relative; overflow: hidden;
      padding: 64px 0 56px; text-align: center;
    }

    .hero-orb {
      position: absolute; border-radius: 50%;
      filter: blur(72px); pointer-events: none;
    }
    .orb-a {
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, transparent 70%);
      top: -200px; left: -100px;
    }
    .orb-b {
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
      top: -150px; right: -80px;
    }
    .orb-c {
      width: 300px; height: 300px;
      background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
      bottom: -80px; left: 40%;
    }

    .about-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

    .about-hero-logo {
      display: inline-flex; align-items: center; gap: 12px;
      margin-bottom: 24px;
    }

    .about-logo-icon {
      width: 72px; height: 72px; border-radius: 22px;
      background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem; color: white;
      box-shadow: 0 12px 36px rgba(37,99,235,0.32);
    }

    .about-logo-text { text-align: left; }
    .about-logo-name { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; }
    .about-logo-domain { font-size: 0.82rem; color: var(--c-text-3); font-weight: 500; }

    .about-hero-h1 {
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 900; letter-spacing: -0.03em;
      margin-bottom: 14px; line-height: 1.15;
    }

    .about-hero-lead {
      font-size: 1rem; color: var(--c-text-2); line-height: 1.7;
      margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto;
    }

    /* Stats banner */
    .stats-banner {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
      margin-bottom: 64px;
    }

    .stat-card {
      background: var(--c-surface); border: 1px solid var(--c-border);
      border-radius: var(--radius-lg); padding: 22px 20px; text-align: center;
      box-shadow: var(--shadow-sm); transition: var(--ease);
    }
    .stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

    .stat-icon {
      width: 44px; height: 44px; border-radius: 13px; margin: 0 auto 10px;
      display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    }

    .stat-num {
      font-size: 2rem; font-weight: 900; letter-spacing: -0.03em;
      margin-bottom: 3px;
    }

    .stat-label { font-size: 0.78rem; color: var(--c-text-2); font-weight: 500; }

    /* Mission / Values */
    .section-title-lg {
      font-size: 1.4rem; font-weight: 900; letter-spacing: -0.025em;
      margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
    }

    .values-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
      margin-bottom: 56px;
    }

    .value-card {
      background: var(--c-surface); border: 1px solid var(--c-border);
      border-radius: var(--radius-lg); padding: 28px 24px;
      box-shadow: var(--shadow-sm); transition: var(--ease);
      position: relative; overflow: hidden;
    }
    .value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

    .value-card::after {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    }

    .value-card-a::after { background: linear-gradient(90deg, #2563eb, #7c3aed); }
    .value-card-b::after { background: linear-gradient(90deg, #0f766e, #0e7490); }
    .value-card-c::after { background: linear-gradient(90deg, #c2410c, #d97706); }

    .value-icon {
      width: 52px; height: 52px; border-radius: 15px; margin-bottom: 16px;
      display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    }

    .value-title {
      font-size: 1.05rem; font-weight: 800; letter-spacing: -0.015em;
      margin-bottom: 10px;
    }

    .value-body {
      font-size: 0.875rem; color: var(--c-text-2); line-height: 1.7;
    }

    /* Mission full-width */
    .mission-card {
      background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #1e1b4b 100%);
      border-radius: var(--radius-xl); padding: 48px 52px;
      margin-bottom: 56px; position: relative; overflow: hidden;
      box-shadow: 0 16px 48px rgba(30,58,138,0.4);
    }

    .mission-card::before {
      content: ''; position: absolute; top: -80px; right: -60px;
      width: 280px; height: 280px; border-radius: 50%;
      background: rgba(255,255,255,0.05);
    }

    .mission-card::after {
      content: ''; position: absolute; bottom: -60px; left: -40px;
      width: 200px; height: 200px; border-radius: 50%;
      background: rgba(255,255,255,0.04);
    }

    .mission-inner { position: relative; z-index: 1; max-width: 640px; }

    .mission-label {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 12px; border-radius: 999px;
      background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.82);
      font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
      text-transform: uppercase; margin-bottom: 16px;
    }

    .mission-title {
      font-size: clamp(1.4rem, 2.8vw, 2rem);
      font-weight: 900; color: white; letter-spacing: -0.025em;
      line-height: 1.2; margin-bottom: 16px;
    }

    .mission-body {
      font-size: 0.95rem; color: rgba(255,255,255,0.72);
      line-height: 1.75; margin-bottom: 24px;
    }

    .mission-cta {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 11px 22px; border-radius: var(--radius);
      background: rgba(255,255,255,0.15); color: white;
      font-size: 0.88rem; font-weight: 700;
      border: 1px solid rgba(255,255,255,0.25);
      text-decoration: none; transition: var(--ease);
    }
    .mission-cta:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }

    /* Team */
    .team-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
      margin-bottom: 56px;
    }

    .team-card {
      background: var(--c-surface); border: 1px solid var(--c-border);
      border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
      box-shadow: var(--shadow-sm); transition: var(--ease);
    }
    .team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

    .team-avatar {
      width: 70px; height: 70px; border-radius: 50%;
      margin: 0 auto 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem; position: relative;
    }

    .team-avatar::after {
      content: ''; position: absolute;
      width: 14px; height: 14px; border-radius: 50%;
      background: var(--c-success);
      border: 2px solid white;
      bottom: 2px; right: 2px;
    }

    .team-name { font-size: 0.95rem; font-weight: 800; margin-bottom: 2px; }
    .team-role {
      font-size: 0.78rem; font-weight: 700; color: var(--c-primary);
      margin-bottom: 10px;
    }
    .team-desc { font-size: 0.78rem; color: var(--c-text-2); line-height: 1.55; }

    /* Timeline / Milestones */
    .timeline { position: relative; margin-bottom: 56px; }
    .timeline::before {
      content: ''; position: absolute;
      left: 22px; top: 0; bottom: 0; width: 2px;
      background: linear-gradient(to bottom, var(--c-primary), var(--c-accent));
      border-radius: 2px;
    }

    .timeline-item {
      display: flex; gap: 20px; margin-bottom: 28px; padding-left: 6px;
    }
    .timeline-item:last-child { margin-bottom: 0; }

    .timeline-dot {
      width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.88rem; border: 2px solid white;
      box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
      z-index: 1; position: relative;
    }

    .timeline-content {
      flex: 1; padding-bottom: 20px;
      border-bottom: 1px solid var(--c-border);
    }
    .timeline-item:last-child .timeline-content { border-bottom: none; }

    .timeline-year {
      font-size: 0.72rem; font-weight: 700; color: var(--c-text-3);
      letter-spacing: 0.05em; margin-bottom: 4px;
    }

    .timeline-title {
      font-size: 0.95rem; font-weight: 700; margin-bottom: 5px;
    }

    .timeline-desc {
      font-size: 0.82rem; color: var(--c-text-2); line-height: 1.55;
    }

    /* CTA Bottom */
    .cta-section {
      background: var(--c-surface-2); border: 1px solid var(--c-border);
      border-radius: var(--radius-xl); padding: 40px;
      text-align: center;
    }

    .cta-title {
      font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px;
    }

    .cta-desc { font-size: 0.9rem; color: var(--c-text-2); margin-bottom: 24px; line-height: 1.6; }

    .cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

    @media (max-width: 900px) {
      .stats-banner { grid-template-columns: repeat(2, 1fr); }
      .values-grid { grid-template-columns: 1fr; }
      .team-grid { grid-template-columns: repeat(2, 1fr); }
      .mission-card { padding: 32px 28px; }
    }

    @media (max-width: 640px) {
      .stats-banner { grid-template-columns: repeat(2, 1fr); }
      .team-grid { grid-template-columns: repeat(2, 1fr); }
      .cta-section { padding: 28px 20px; }
    }



/* ════════════════════════════════════
   DARK MODE
════════════════════════════════════ */

[data-theme="dark"] {
  --c-bg:            #0d1117;
  --c-surface:       #161b22;
  --c-surface-2:     #1c2128;
  --c-surface-3:     #22272e;
  --c-primary:       #58a6ff;
  --c-primary-dark:  #388bfd;
  --c-primary-light: #79c0ff;
  --c-primary-glow:  rgba(88,166,255,0.18);
  --c-accent:        #a78bfa;
  --c-accent-light:  #c4b5fd;
  --c-text:          #e6edf3;
  --c-text-2:        #8b949e;
  --c-text-3:        #6e7681;
  --c-border:        rgba(255,255,255,0.07);
  --c-border-strong: rgba(255,255,255,0.13);
  --c-success:       #3fb950;
  --c-error:         #f85149;
  --c-warning:       #d29922;
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.35);
  --shadow:     0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.55);
  --shadow-pri: 0 8px 24px rgba(88,166,255,0.22);
}

/* Navbar in dark mode */
[data-theme="dark"] .nav {
  background: rgba(13,17,23,0.88);
}

[data-theme="dark"] .hero {
  background: var(--c-bg);
}

/* Orbs — boost opacity a touch for dark bg */
[data-theme="dark"] .hero-orb-a {
  background: radial-gradient(circle, rgba(88,166,255,0.22) 0%, transparent 70%);
}
[data-theme="dark"] .hero-orb-b {
  background: radial-gradient(circle, rgba(167,139,250,0.18) 0%, transparent 70%);
}
[data-theme="dark"] .hero-orb-c {
  background: radial-gradient(circle, rgba(56,189,248,0.14) 0%, transparent 70%);
}

/* Cat-nav fade on right */
[data-theme="dark"] .cat-nav-wrap::after {
  background: linear-gradient(to right, transparent, var(--c-bg));
}

/* Icon color variants — darker gradient for dark bg */
[data-theme="dark"] .ic-blue   { background: linear-gradient(135deg,#1e3a5f,#1e3a8a); color:#93c5fd; }
[data-theme="dark"] .ic-purple { background: linear-gradient(135deg,#2e1065,#3b0764); color:#c4b5fd; }
[data-theme="dark"] .ic-green  { background: linear-gradient(135deg,#052e16,#14532d); color:#86efac; }
[data-theme="dark"] .ic-orange { background: linear-gradient(135deg,#431407,#7c2d12); color:#fdba74; }
[data-theme="dark"] .ic-pink   { background: linear-gradient(135deg,#500724,#831843); color:#f9a8d4; }
[data-theme="dark"] .ic-cyan   { background: linear-gradient(135deg,#082f49,#0c4a6e); color:#67e8f9; }
[data-theme="dark"] .ic-yellow { background: linear-gradient(135deg,#3d2200,#713f12); color:#fde68a; }
[data-theme="dark"] .ic-red    { background: linear-gradient(135deg,#450a0a,#7f1d1d); color:#fca5a5; }
[data-theme="dark"] .ic-indigo { background: linear-gradient(135deg,#1e1b4b,#312e81); color:#a5b4fc; }
[data-theme="dark"] .ic-teal   { background: linear-gradient(135deg,#042f2e,#134e4a); color:#5eead4; }
[data-theme="dark"] .ic-rose   { background: linear-gradient(135deg,#4c0519,#881337); color:#fda4af; }
[data-theme="dark"] .ic-lime   { background: linear-gradient(135deg,#1a2e05,#365314); color:#bef264; }

/* Syntax highlight for dark mode */
[data-theme="dark"] .json-key  { color: #79c0ff; }
[data-theme="dark"] .json-str  { color: #a5d6a7; }
[data-theme="dark"] .json-num  { color: #ffa657; }
[data-theme="dark"] .json-bool { color: #d2a8ff; }
[data-theme="dark"] .json-null { color: var(--c-text-3); }

/* Section count pill */
[data-theme="dark"] .section-count { background: var(--c-surface-3); }

/* Tool/hot tag */
[data-theme="dark"] .tool-tag { background: var(--c-surface-3); }
[data-theme="dark"] .tool-hot { background: rgba(248,81,73,0.12); color: #f85149; }
[data-theme="dark"] .hot-badge-fire { background: rgba(248,81,73,0.12); color: #f85149; }
[data-theme="dark"] .hot-badge-star { background: rgba(210,153,34,0.12); color: #d29922; }
[data-theme="dark"] .hot-badge-new  { background: rgba(88,166,255,0.12); color: var(--c-primary); }

[data-theme="dark"] .tool-favorites-collection .favorite-drag-handle:hover {
  color: var(--c-primary-light);
}

[data-theme="dark"] .tool-favorites-collection .favorite-sort-placeholder {
  border-color: rgba(88, 166, 255, 0.38);
  background: rgba(88, 166, 255, 0.07);
}

[data-theme="dark"] .tool-favorites-collection .favorite-sort-outline {
  border-color: rgba(88, 166, 255, 0.35);
  background: rgba(88, 166, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(88, 166, 255, 0.15);
}

/* Article code block (keep dark in dark mode — already dark, just tweak) */
[data-theme="dark"] .article-content code {
  background: rgba(88,166,255,0.1);
  color: var(--c-primary);
}

/* 知識文章內表格：暗黑模式下表頭與儲存格文字對齊 body 變數（避免 Bootstrap 淺色主題字色殘留） */
[data-theme="dark"] .article-content th,
[data-theme="dark"] .article-content thead th,
[data-theme="dark"] .article-content .table > :not(caption) > * > th {
  color: var(--c-text);
  background-color: var(--c-surface-3);
  border-color: var(--c-border-strong);
}

[data-theme="dark"] .article-content td,
[data-theme="dark"] .article-content .table > :not(caption) > * > td {
  color: var(--c-text);
  border-color: var(--c-border-strong);
}

/* Noise texture — reduce in dark mode (already subtle) */
[data-theme="dark"] body::before { opacity: 0.4; }

/* Theme toggle icon — applies to both .nav-icon-btn and .nav-icon */
.nav-icon-btn#theme-btn .icon-light,
.nav-icon-btn[data-action="theme"] .icon-light,
.nav-icon[data-action="theme"] .icon-light { display: none; }
.nav-icon-btn#theme-btn .icon-dark,
.nav-icon-btn[data-action="theme"] .icon-dark,
.nav-icon[data-action="theme"] .icon-dark  { display: inline; }
[data-theme="dark"] .nav-icon-btn#theme-btn .icon-light,
[data-theme="dark"] .nav-icon-btn[data-action="theme"] .icon-light,
[data-theme="dark"] .nav-icon[data-action="theme"] .icon-light { display: inline; }
[data-theme="dark"] .nav-icon-btn#theme-btn .icon-dark,
[data-theme="dark"] .nav-icon-btn[data-action="theme"] .icon-dark,
[data-theme="dark"] .nav-icon[data-action="theme"] .icon-dark  { display: none; }


/* ════════════════════════════════════
   LANGUAGE DROPDOWN
════════════════════════════════════ */

.nav-dropdown-wrap {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--c-text-2);
  text-decoration: none;
  transition: var(--transition, 0.2s ease);
  white-space: nowrap;
}

.lang-dropdown-item:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
}

.lang-dropdown-item.active {
  background: rgba(37,99,235,0.08);
  color: var(--c-primary);
}

[data-theme="dark"] .lang-dropdown-item.active {
  background: rgba(88,166,255,0.1);
}

.lang-dropdown-item .lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-dropdown-item .lang-check {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--c-primary);
  opacity: 0;
}

.lang-dropdown-item.active .lang-check {
  opacity: 1;
}

/* Active icon button state */
.nav-icon-btn.dropdown-open,
.nav-icon.dropdown-open {
  color: var(--c-primary);
  border-color: rgba(37,99,235,0.32);
  background: rgba(37,99,235,0.06);
}

[data-theme="dark"] .nav-icon-btn.dropdown-open,
[data-theme="dark"] .nav-icon.dropdown-open {
  border-color: rgba(88,166,255,0.32);
  background: rgba(88,166,255,0.08);
}

/* ════════════════════════════════════
   Bootstrap CSS variables by palette
   (migrated from removed css/style.css — head.js sets data-theme-palette on <html>)
════════════════════════════════════ */

:root,
[data-theme-palette="light"] {
  --bs-body-bg: #f8fafc;
  --bs-body-bg-rgb: 248, 250, 252;
  --bs-primary: #0d6efd;
  --bs-primary-rgb: 13, 110, 253;
  --bs-card-bg: #ffffff;
  --bs-card-bg-rgb: 255, 255, 255;
  --navbar-bg: rgba(248, 250, 252, 0.8);
  --hero-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 247, 255, 0.95));
  --hero-badge-bg: rgba(13, 110, 253, 0.08);
  --hero-badge-border: rgba(13, 110, 253, 0.18);
  --theme-glow-a: rgba(56, 189, 248, 0.18);
  --theme-glow-b: rgba(13, 110, 253, 0.14);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 40px -28px rgba(15, 23, 42, 0.4);
  --transition: all 0.3s ease;
}

[data-theme-palette="dark"] {
  --bs-body-bg: #0f172a;
  --bs-body-bg-rgb: 15, 23, 42;
  --bs-primary: #60a5fa;
  --bs-primary-rgb: 96, 165, 250;
  --bs-card-bg: #1e293b;
  --bs-card-bg-rgb: 30, 41, 59;
  --navbar-bg: rgba(15, 23, 42, 0.8);
  --hero-surface: linear-gradient(145deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  --hero-badge-bg: rgba(96, 165, 250, 0.12);
  --hero-badge-border: rgba(147, 197, 253, 0.3);
  --theme-glow-a: rgba(56, 189, 248, 0.12);
  --theme-glow-b: rgba(59, 130, 246, 0.16);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --bs-border-color: #334155;
}

[data-theme-palette="sunrise"] {
  --bs-body-bg: #fff7ed;
  --bs-body-bg-rgb: 255, 247, 237;
  --bs-primary: #ea580c;
  --bs-primary-rgb: 234, 88, 12;
  --bs-card-bg: #fffaf2;
  --bs-card-bg-rgb: 255, 250, 242;
  --navbar-bg: rgba(255, 247, 237, 0.84);
  --hero-surface: linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(255, 237, 213, 0.96));
  --hero-badge-bg: rgba(234, 88, 12, 0.1);
  --hero-badge-border: rgba(251, 146, 60, 0.28);
  --theme-glow-a: rgba(251, 146, 60, 0.2);
  --theme-glow-b: rgba(244, 114, 182, 0.14);
  --shadow-md: 0 4px 6px -1px rgb(124 45 18 / 0.12), 0 2px 4px -2px rgb(124 45 18 / 0.12);
  --shadow-lg: 0 22px 38px -26px rgba(194, 65, 12, 0.34);
  --bs-border-color: #fdba74;
}

[data-theme-palette="mint"] {
  --bs-body-bg: #f2fbf7;
  --bs-body-bg-rgb: 242, 251, 247;
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-card-bg: #fcfffd;
  --bs-card-bg-rgb: 252, 255, 253;
  --navbar-bg: rgba(242, 251, 247, 0.82);
  --hero-surface: linear-gradient(145deg, rgba(252, 255, 253, 0.96), rgba(220, 252, 231, 0.96));
  --hero-badge-bg: rgba(15, 118, 110, 0.08);
  --hero-badge-border: rgba(16, 185, 129, 0.22);
  --theme-glow-a: rgba(52, 211, 153, 0.16);
  --theme-glow-b: rgba(45, 212, 191, 0.14);
  --shadow-md: 0 4px 6px -1px rgb(15 118 110 / 0.12), 0 2px 4px -2px rgb(15 118 110 / 0.12);
  --shadow-lg: 0 22px 38px -26px rgba(13, 148, 136, 0.28);
  --bs-border-color: #99f6e4;
}

[data-theme-palette="dusk"] {
  --bs-body-bg: #111827;
  --bs-body-bg-rgb: 17, 24, 39;
  --bs-primary: #c4b5fd;
  --bs-primary-rgb: 196, 181, 253;
  --bs-card-bg: #1f2340;
  --bs-card-bg-rgb: 31, 35, 64;
  --navbar-bg: rgba(17, 24, 39, 0.82);
  --hero-surface: linear-gradient(145deg, rgba(38, 33, 78, 0.95), rgba(17, 24, 39, 0.97));
  --hero-badge-bg: rgba(196, 181, 253, 0.12);
  --hero-badge-border: rgba(167, 139, 250, 0.28);
  --theme-glow-a: rgba(99, 102, 241, 0.16);
  --theme-glow-b: rgba(192, 132, 252, 0.14);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.54), 0 2px 4px -2px rgb(0 0 0 / 0.34);
  --shadow-lg: 0 24px 42px -30px rgba(76, 29, 149, 0.52);
  --bs-border-color: #4338ca;
}

[data-theme-palette="sepia"] {
  --bs-body-bg: #f7f1e5;
  --bs-body-bg-rgb: 247, 241, 229;
  --bs-primary: #8b5e34;
  --bs-primary-rgb: 139, 94, 52;
  --bs-card-bg: #fffaf0;
  --bs-card-bg-rgb: 255, 250, 240;
  --navbar-bg: rgba(247, 241, 229, 0.82);
  --hero-surface: linear-gradient(145deg, rgba(255, 250, 240, 0.96), rgba(231, 215, 189, 0.92));
  --hero-badge-bg: rgba(139, 94, 52, 0.08);
  --hero-badge-border: rgba(180, 140, 96, 0.2);
  --theme-glow-a: rgba(191, 161, 122, 0.18);
  --theme-glow-b: rgba(217, 119, 6, 0.12);
  --shadow-md: 0 4px 6px -1px rgb(120 53 15 / 0.12), 0 2px 4px -2px rgb(120 53 15 / 0.12);
  --shadow-lg: 0 22px 38px -28px rgba(120, 53, 15, 0.26);
  --bs-border-color: #dcc7a2;
}
