/* ─────────────────────────────────────────────────────────────
   base.css — rules shared by every page (header, nav, buttons,
   footer, dark mode, …). Generated from the pages; edit here.
   ───────────────────────────────────────────────────────────── */

:root {
      --primary: #ff6b35;
      --primary-light: #fff0e8;
      --primary-dark: #e55a2b;
      --tech: #6366f1;
      --tech-light: #eef2ff;
      --accent: #10b981;
      --accent-light: #ecfdf5;
      --text: #1f2937;
      --text-muted: #6b7280;
      --bg: #faf9f7;
      --bg-card: #ffffff;
      --bg-warm: #fef7f0;
      --border: #e5e7eb;
      --radius: 24px;
      --shadow: 0 4px 20px rgba(0,0,0,0.06);
      --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    }

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

html { scroll-behavior: smooth; }

body {
      font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      color: var(--text);
      line-height: 1.7;
      background: var(--bg);
    }

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

header {
      background: rgba(255,255,255,0.9);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      padding: 16px 0;
      position: sticky;
      top: 0;
      z-index: 100;
    }

.header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

.logo {
      display: flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      color: var(--text);
    }

.logo-text {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.3;
    }

.logo-text span {
      display: block;
      font-size: 11px;
      font-weight: 400;
      color: var(--text-muted);
      letter-spacing: 0.5px;
    }

.nav-links {
      display: flex;
      gap: 4px;
      align-items: center;
    }

.nav-links a {
      text-decoration: none;
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 500;
      padding: 10px 18px;
      border-radius: 12px;
      transition: all 0.3s;
    }

@keyframes float {
      0%, 100% { transform: translate(0, 0); }
      50% { transform: translate(2%, 2%); }
    }

.hero-content { position: relative; z-index: 1; }

footer {
      padding: 48px 0;
      background: #111827;
      border-top: 1px solid rgba(255,255,255,0.1);
      text-align: center;
    }

.footer-links {
      display: flex;
      gap: 32px;
      justify-content: center;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

.footer-links a {
      color: rgba(255,255,255,0.6);
      text-decoration: none;
      font-size: 14px;
      transition: color 0.3s;
    }

.footer-copy {
      font-size: 13px;
      color: rgba(255,255,255,0.4);
    }

.menu-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      width: 44px;
      height: 44px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
      padding: 0;
      flex-shrink: 0;
    }

.menu-toggle span {
      display: block;
      width: 20px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: transform 0.3s, opacity 0.3s;
    }

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

.menu-toggle.open span:nth-child(2) { opacity: 0; }

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

@media (max-width: 768px) {
      .menu-toggle { display: flex; }
      header { position: sticky; }
      .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--bg-card, #fff);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        padding: 12px 16px 16px;
        margin: 0;
      }
      .nav-links.open { display: flex; }
      .nav-links a {
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 15px;
        width: 100%;
        text-align: left;
      }
    }

/* 標題自動平衡斷行，避免行動裝置留下孤字（例如「有限公司」的「司」）。 */
h1,
.slogan,
.tagline { text-wrap: balance; }
