/* ==========================================================================
   其達科技官網 - 共用樣式
   定案風格:淺色商務風(白底 + 單一藍色系),乾淨明亮,偏傳統企業官網
   ========================================================================== */

:root{
  --font-latin: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', 'Space Grotesk', sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --container-w: 1180px;
  --header-h: 76px;

  --bg: #f6f8fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: rgba(15,23,42,0.09);
  --border-strong: rgba(15,23,42,0.17);
  --text: #101a33;
  --text-dim: #4b5468;
  --text-faint: #838aa0;
  --accent: #1d4fd1;
  --accent-2: #4b78e0;
  --accent-3: #123a9c;
  --accent-grad: linear-gradient(120deg, #123a9c 0%, #1d4fd1 55%, #4b86e8 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(29,79,209,0.10), rgba(75,120,224,0.07));
  --shadow: 0 16px 40px -18px rgba(20,40,100,0.18);
  --header-bg: rgba(255,255,255,0.88);
  --card-bg: #ffffff;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ font-family: var(--font-latin), var(--font-body); margin: 0 0 .5em; line-height: 1.25; }
p{ margin: 0 0 1em; color: var(--text-dim); }
.container{ max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

/* ---------- 背景特效 (深色主題較明顯,淺色主題自動轉為柔和光斑) ---------- */
.bg-fx{
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--bg);
}
.bg-fx::before, .bg-fx::after{
  content:""; position:absolute; width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(90px); opacity: .35;
}
.bg-fx::before{ background: var(--accent); top: -20vw; right: -15vw; opacity: .10; }
.bg-fx::after{ background: var(--accent-2); bottom: -25vw; left: -10vw; opacity: .08; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; justify-content: space-between; width:100%; gap: 24px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-logo{ width:40px; height:40px; object-fit: contain; border-radius: 10px; flex-shrink:0; }
.brand-mark{
  width:40px; height:40px; border-radius: 11px; display:grid; place-items:center;
  background: var(--accent-grad); color:#fff; font-weight:700; font-family: var(--font-latin);
  letter-spacing: .5px; box-shadow: var(--shadow); flex-shrink:0;
}
.brand-mark.sm{ width:28px; height:28px; border-radius:8px; font-size:12px; }
.brand-mark.inline{ display:inline-grid; vertical-align: middle; margin-right:8px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-text strong{ font-size: 16px; letter-spacing:.5px; }
.brand-text small{ font-size: 11px; color: var(--text-faint); letter-spacing: 1px; }

.main-nav{ display:flex; gap: 28px; }
.main-nav a{ font-size: 14.5px; color: var(--text-dim); position: relative; padding: 6px 0; transition:.2s; }
.main-nav a:hover{ color: var(--text); }
.main-nav a.active{ color: var(--text); }
.main-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px; border-radius:2px;
  background: var(--accent-grad);
}

.header-actions{ display:flex; align-items:center; gap: 14px; }

.nav-burger{ display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; padding: 6px; }
.nav-burger span{ width: 20px; height: 2px; background: var(--text); display:block; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor:pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--accent-grad); color:#fff; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-ghost{ background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-sm{ padding: 9px 18px; font-size: 13.5px; }
.btn-lg{ padding: 16px 32px; font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero{ padding: 88px 0 64px; }
.hero-inner{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; letter-spacing:.5px;
  color: var(--accent); background: var(--accent-grad-soft); border:1px solid var(--border);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1{ font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.5px; }
.hero h1 .grad{
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede{ font-size: 17px; max-width: 520px; margin-bottom: 32px; }
.hero-cta{ display:flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats{ display:flex; gap: 36px; flex-wrap: wrap; }
.hero-stat b{ font-family: var(--font-latin); font-size: 26px; display:block; }
.hero-stat span{ font-size: 12.5px; color: var(--text-faint); }

.hero-panel{
  border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid var(--border);
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.hero-panel-row{ display:flex; align-items:center; gap:14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.hero-panel-row:last-child{ border-bottom:none; }
.hero-panel-icon{
  width: 42px; height:42px; border-radius: 12px; flex-shrink:0; display:grid; place-items:center;
  background: var(--accent-grad-soft); color: var(--accent); font-size: 18px;
}
.hero-panel-row strong{ display:block; font-size: 14.5px; }
.hero-panel-row p{ margin:0; font-size: 12.5px; color: var(--text-faint); }

/* ---------- Section ---------- */
section{ padding: 84px 0; }
.section-head{ max-width: 640px; margin: 0 auto 48px; text-align:center; }
.section-head h2{ font-size: clamp(26px, 3.2vw, 38px); }
.section-head p{ font-size: 15.5px; }
.section-head.left{ margin: 0 0 44px; text-align:left; }

/* ---------- Grid / Cards ---------- */
.grid{ display:grid; gap: 24px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 30px 26px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-icon{
  width: 50px; height:50px; border-radius: 14px; display:grid; place-items:center; margin-bottom: 18px;
  background: var(--accent-grad-soft); color: var(--accent);
}
.card h3{ font-size: 18px; margin-bottom:10px; }
.card p{ font-size: 14.5px; margin-bottom: 0; }
.card .tag{
  display:inline-block; font-size:11.5px; font-weight:600; color: var(--accent);
  background: var(--accent-grad-soft); padding: 3px 10px; border-radius:999px; margin-bottom:14px;
}

.pillars{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.pillar{
  border-radius: var(--radius-lg); padding: 32px 26px; border:1px solid var(--border);
  background: var(--card-bg); position:relative; overflow:hidden;
}
.pillar::before{
  content:""; position:absolute; inset:0; opacity:.08; background: var(--accent-grad);
}
.pillar .num{ font-family: var(--font-latin); font-size:13px; color: var(--text-faint); letter-spacing:2px; }
.pillar h3{ font-size:21px; margin: 10px 0 12px; }

/* ---------- Logic strip / process ---------- */
.process{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.process-step{ position:relative; padding: 26px 20px; border-radius: var(--radius-md); background: var(--surface); border:1px solid var(--border); }
.process-step .step-no{
  width:34px; height:34px; border-radius:50%; background: var(--accent-grad); color:#fff; font-weight:700;
  display:grid; place-items:center; font-family: var(--font-latin); font-size:14px; margin-bottom: 14px;
}
.process-step h4{ font-size:15.5px; margin-bottom:6px; }
.process-step p{ font-size:13px; margin-bottom:0; }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius: var(--radius-lg); padding: 56px; text-align:center; background: var(--accent-grad-soft);
  border: 1px solid var(--border);
}
.cta-band h2{ font-size: clamp(24px,3vw,34px); margin-bottom: 14px; }
.cta-band p{ max-width: 520px; margin: 0 auto 28px; }

/* ---------- Table-ish list ---------- */
.check-list{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.check-list li{ display:flex; gap:10px; font-size:14.5px; color: var(--text-dim); align-items:flex-start; }
.check-list li::before{
  content:"✓"; flex-shrink:0; width:20px; height:20px; border-radius:50%; background: var(--accent-grad);
  color:#fff; font-size:11px; display:grid; place-items:center; margin-top:2px;
}

/* ---------- Timeline (about page) ---------- */
.timeline{ display:grid; gap: 0; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline-item{ position:relative; padding: 0 0 34px 28px; }
.timeline-item::before{
  content:""; position:absolute; left:-7px; top:2px; width:12px; height:12px; border-radius:50%;
  background: var(--accent-grad); box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item b{ font-family: var(--font-latin); color: var(--accent); font-size:13px; letter-spacing:1px; }
.timeline-item h4{ font-size:16px; margin: 4px 0 6px; }
.timeline-item p{ font-size:14px; margin:0; }

/* ---------- Stat band ---------- */
.stat-band{ display:grid; grid-template-columns: repeat(4,1fr); gap:24px; text-align:center; }
.stat-band b{ font-family: var(--font-latin); font-size: 34px; display:block; background: var(--accent-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-band span{ font-size:13px; color: var(--text-faint); }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.form-field{ display:flex; flex-direction:column; gap:8px; margin-bottom: 18px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size:13.5px; font-weight:600; color: var(--text-dim); }
.form-field input, .form-field textarea, .form-field select{
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size:14.5px; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus{ outline: 2px solid var(--accent); outline-offset: 1px; }

.flash-wrap{ margin-top: 20px; }
.flash{ padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size:14px; border:1px solid var(--border); }
.flash-success{ color: #0f9d78; background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.35); }
.flash-error{ color: #ef4444; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); }

.contact-info-card{ border-radius: var(--radius-md); border:1px solid var(--border); background: var(--card-bg); padding: 26px; margin-bottom: 16px; }
.contact-info-card h4{ font-size:14px; color: var(--text-faint); margin-bottom:6px; font-weight:600; letter-spacing:.5px; }
.contact-info-card p{ font-size:16px; margin:0; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--border); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand{ display:flex; gap:12px; align-items:flex-start; }
.footer-brand p{ font-size:12.5px; color: var(--text-faint); margin:2px 0 0; }
.footer-col h4{ font-size: 13.5px; margin-bottom: 14px; color: var(--text-faint); letter-spacing:.5px; }
.footer-col a, .footer-col p{ display:block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 9px; }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top: 22px;
  border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-faint);
}

/* ---------- Page header (sub pages) ---------- */
.page-header{ padding: 64px 0 20px; }
.page-header h1{ font-size: clamp(28px, 3.6vw, 44px); }
.page-header p{ font-size: 15.5px; max-width: 620px; }
.crumb{ font-size:13px; color: var(--text-faint); margin-bottom: 14px; }
.crumb a{ color: var(--text-faint); }
.crumb a:hover{ color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid-3, .pillars, .process, .stat-band{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .main-nav{
    position:absolute; top: var(--header-h); left:0; right:0; background: var(--header-bg);
    backdrop-filter: blur(14px); flex-direction:column; padding: 10px 24px 20px; gap: 6px;
    border-bottom: 1px solid var(--border); display:none;
  }
  .main-nav.open{ display:flex; }
  .nav-burger{ display:flex; }
  .header-actions .btn-sm{ display:none; }
  .grid-3, .grid-2, .pillars, .process, .stat-band, .form-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .hero{ padding: 56px 0 40px; }
  section{ padding: 56px 0; }
  .cta-band{ padding: 36px 22px; }
}
