/* ==========================================================================
   希卓科技服務有限公司 Sidro Technology —— 全站樣式
   ========================================================================== */

/* ---------- CSS 變量 ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #06b6d4;
  --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --dark: #0b1220;
  --dark-2: #111a2e;
  --text: #1e293b;
  --muted: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -15px rgba(15, 23, 42, .18);
  --shadow-sm: 0 6px 24px -8px rgba(15, 23, 42, .14);
  --transition: all .35s cubic-bezier(.4, 0, .2, 1);
  --font: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { width: min(1200px, 92%); margin-inline: auto; }
section { padding: 100px 0; }

/* ---------- 通用組件 ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(37, 99, 235, .08); padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: var(--dark); letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: #94a3b8; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 12px;
  font-weight: 700; font-size: 15px; transition: var(--transition); border: none;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 99, 235, .6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -8px rgba(37, 99, 235, .7); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 導航欄 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0; transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(15, 23, 42, .08); padding: 12px 0;
}
.navbar.solid { background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--gradient);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 20px;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .6);
}
.logo-text { font-weight: 900; font-size: 20px; color: var(--dark); letter-spacing: -.01em; line-height: 1.2; }
.logo-text span { color: var(--primary); }
.logo-sub { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .18em; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; color: #334155; position: relative; transition: var(--transition); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gradient); border-radius: 2px; transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--gradient); color: #fff !important; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px; box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .55);
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-cta::after { display: none !important; }
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 未滾動（深色 banner / hero 上）使用淺色文字 */
.navbar .logo-text { color: #fff; }
.navbar .logo-text span { color: #60a5fa; }
.navbar .logo-sub { color: #94a3b8; }
.navbar .nav-links a { color: rgba(255, 255, 255, .88); }
.navbar .nav-links a:hover { color: #fff; }
.navbar .nav-links a.active { color: #fff; }
.navbar .lang-btn { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); }
/* 滾動後（白底）恢復深色 */
.navbar.scrolled .logo-text { color: var(--dark); }
.navbar.scrolled .logo-text span { color: var(--primary); }
.navbar.scrolled .logo-sub { color: var(--muted); }
.navbar.scrolled .nav-links a { color: #334155; }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.navbar.scrolled .nav-links a.active { color: var(--primary); }
.navbar.scrolled .hamburger span { background: var(--dark); }
.navbar.scrolled .lang-btn { color: var(--primary); border-color: rgba(37, 99, 235, .35); background: rgba(37, 99, 235, .1); }

/* ---------- 內頁 Banner ---------- */
.page-banner {
  position: relative; padding: 170px 0 90px; color: #fff; overflow: hidden;
  background: radial-gradient(1000px 500px at 85% -10%, rgba(6,182,212,.22), transparent 60%),
              radial-gradient(900px 500px at -10% 30%, rgba(37,99,235,.25), transparent 55%),
              var(--dark);
}
.page-banner::before {
  content: ''; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.page-banner .container { position: relative; z-index: 2; text-align: center; }
.page-banner h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; letter-spacing: -.01em; }
.page-banner p { margin-top: 16px; color: #cbd5e1; font-size: 17px; max-width: 600px; margin-inline: auto; }
.breadcrumb { margin-top: 24px; display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 14px; color: #94a3b8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: #475569; }

/* ---------- Hero 首頁 ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(6,182,212,.18), transparent 60%),
              radial-gradient(900px 500px at -10% 20%, rgba(37,99,235,.18), transparent 55%),
              var(--dark);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding-top: 80px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6);} 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0);} 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0);} }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(120deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 22px; font-size: 18px; color: #cbd5e1; max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { margin-top: 54px; display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stat h3 { font-size: 32px; font-weight: 900; color: #fff; }
.hero-stat h3 span { color: #22d3ee; }
.hero-stat p { margin-top: 0; font-size: 13px; color: #94a3b8; }
.hero-visual { position: relative; }
.orbit {
  position: relative; width: 100%; aspect-ratio: 1; max-width: 460px; margin-inline: auto;
  border-radius: 50%; border: 1px dashed rgba(255,255,255,.16);
  display: grid; place-items: center; animation: spin 28s linear infinite;
}
.orbit::before, .orbit::after {
  content: ''; position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.1);
}
.orbit::before { inset: 18%; }
.orbit::after { inset: 36%; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core {
  width: 120px; height: 120px; border-radius: 28px; background: var(--gradient);
  display: grid; place-items: center; font-size: 44px; font-weight: 900; color: #fff;
  box-shadow: 0 20px 60px -10px rgba(6,182,212,.6); animation: spin 28s linear infinite reverse;
}
.orbit-node {
  position: absolute; width: 58px; height: 58px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 24px; backdrop-filter: blur(6px);
  animation: spin 28s linear infinite reverse; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.node-1 { top: 6%; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; right: 2%; transform: translateY(-50%); }
.node-3 { bottom: 6%; left: 50%; transform: translateX(-50%); }
.node-4 { top: 50%; left: 2%; transform: translateY(-50%); }

/* ---------- 服務卡片 ---------- */
.services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 36px 30px;
  border: 1px solid var(--border); transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px; background: rgba(37,99,235,.1);
  display: grid; place-items: center; font-size: 26px; margin-bottom: 20px;
}
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-card .more { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--primary); }
.service-card .more::after { content: ' →'; transition: var(--transition); display: inline-block; }
.service-card:hover .more::after { transform: translateX(6px); }

/* ---------- 關於 ---------- */
.about { position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual .frame {
  border-radius: 24px; padding: 40px; background: linear-gradient(160deg, #0f172a, #1e293b);
  color: #fff; position: relative; overflow: hidden;
}
.about-visual .frame::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.35), transparent 70%); top: -80px; right: -80px;
}
.frame h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.frame .en { color: #64748b; font-size: 13px; letter-spacing: .14em; margin-bottom: 24px; }
.frame-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.frame-row span { color: #94a3b8; }
.frame-row b { color: #fff; font-weight: 700; }
.about-content h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; color: var(--dark); line-height: 1.3; }
.about-content > p { margin-top: 18px; color: var(--muted); font-size: 16px; }
.about-list { margin-top: 28px; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #334155; }
.about-list .check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; background: rgba(37,99,235,.1);
  display: grid; place-items: center; color: var(--primary); font-size: 13px; font-weight: 700;
}

/* ---------- 統計條 ---------- */
.stats-strip { background: var(--gradient); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat h3 { font-size: clamp(32px, 4vw, 46px); font-weight: 900; }
.stat p { color: rgba(255,255,255,.85); font-size: 15px; margin-top: 4px; }

/* ---------- 流程 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-card { text-align: center; padding: 34px 22px; position: relative; }
.process-num {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--gradient); color: #fff; display: grid; place-items: center;
  font-size: 24px; font-weight: 900; box-shadow: 0 12px 26px -8px rgba(37,99,235,.5);
}
.process-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.process-card p { font-size: 14px; color: var(--muted); }

/* ---------- 客戶評價 ---------- */
.testimonials { background: var(--dark); color: #fff; overflow: hidden; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.t-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 32px; transition: var(--transition);
}
.t-card:hover { background: rgba(255,255,255,.07); transform: translateY(-6px); }
.t-stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 16px; }
.t-card p { color: #cbd5e1; font-size: 15px; margin-bottom: 22px; }
.t-author { display: flex; align-items: center; gap: 14px; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.t-author h4 { font-size: 15px; font-weight: 700; }
.t-author span { font-size: 13px; color: #94a3b8; }

/* ---------- 案例卡片 ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.case-thumb {
  height: 200px; position: relative; display: grid; place-items: center; font-size: 52px;
  background: linear-gradient(135deg, #e0e7ff, #cffafe);
}
.case-thumb .case-tag {
  position: absolute; top: 16px; left: 16px; background: rgba(11,18,32,.8); color: #fff;
  font-size: 12px; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.case-body { padding: 26px; }
.case-body h3 { font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.case-body p { color: var(--muted); font-size: 14px; }
.case-meta { display: flex; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.case-meta span { display: flex; align-items: center; gap: 6px; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 80px 0; }
.cta-inner {
  background: linear-gradient(135deg, #1d4ed8, #0891b2); color: #fff;
  border-radius: 28px; padding: 64px 40px; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); top: -180px; right: -100px;
}
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; }
.cta-inner p { margin-top: 14px; color: rgba(255,255,255,.9); font-size: 16px; }
.cta-inner .btn { margin-top: 30px; background: #fff; color: var(--primary-dark); }
.cta-inner .btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.25); }

/* ---------- 聯繫 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: flex-start; }
.contact-info { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ic {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: rgba(37,99,235,.1);
  display: grid; place-items: center; font-size: 22px;
}
.contact-item h4 { font-size: 16px; font-weight: 700; color: var(--dark); }
.contact-item p, .contact-item a { color: var(--muted); font-size: 15px; margin-top: 2px; }
.contact-item a:hover { color: var(--primary); }
.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 40px; box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 15px; transition: var(--transition); background: var(--light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; background: var(--gradient); color: #fff; border: none; padding: 15px;
  border-radius: 12px; font-size: 16px; font-weight: 700; transition: var(--transition);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(37,99,235,.6); }

/* ---------- 關於頁：價值觀 ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  text-align: center; padding: 36px 24px; border-radius: var(--radius);
  background: var(--light); border: 1px solid var(--border); transition: var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); background: #fff; }
.value-icon { font-size: 38px; margin-bottom: 18px; }
.value-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--muted); }

/* ---------- 時間軸 ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--primary), var(--accent)); transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding: 20px 44px; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot {
  position: absolute; top: 26px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient); border: 4px solid #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.3);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -9px; }
.timeline-item:nth-child(even) .timeline-dot { left: -9px; }
.timeline-year { font-size: 15px; font-weight: 900; color: var(--primary); letter-spacing: .05em; }
.timeline-item h4 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 6px 0; }
.timeline-item p { font-size: 14px; color: var(--muted); }

/* ---------- 團隊 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-avatar {
  width: 130px; height: 130px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--gradient); display: grid; place-items: center; color: #fff;
  font-size: 42px; font-weight: 900; box-shadow: 0 14px 30px -10px rgba(37,99,235,.5);
}
.team-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); }
.team-card .role { color: var(--primary); font-size: 13px; font-weight: 600; margin: 4px 0 10px; }
.team-card p { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 20px 24px; background: none; border: none;
  font-size: 16px; font-weight: 700; color: var(--dark); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .faq-icon { font-size: 22px; color: var(--primary); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }

/* ---------- 地圖佔位 ---------- */
.map-wrap {
  border-radius: 24px; overflow: hidden; border: 1px solid var(--border);
  height: 360px; position: relative; background: linear-gradient(135deg, #dbeafe, #cffafe);
  display: grid; place-items: center; margin-top: 48px;
}
.map-inner { text-align: center; padding: 30px; }
.map-inner .pin { font-size: 44px; }
.map-inner h4 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 10px 0 4px; }
.map-inner p { color: var(--muted); font-size: 14px; }

/* ---------- 頁腳 ---------- */
.footer { background: var(--dark); color: #94a3b8; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer .logo-text { color: #fff; }
.footer-about { margin-top: 18px; font-size: 14px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links span { font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom .reg { font-size: 12px; color: #64748b; }

/* ---------- 回到頂部 ---------- */
.back-top {
  position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; border-radius: 14px;
  background: var(--gradient); color: #fff; border: none; font-size: 20px;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: var(--transition);
  box-shadow: 0 12px 28px -8px rgba(37,99,235,.6); z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-4px); }

/* ---------- 語言切換按鈕 ---------- */
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37, 99, 235, .1); color: var(--primary);
  border: 1.5px solid rgba(37, 99, 235, .35);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: var(--transition); margin-left: 6px;
}
.lang-btn:hover { background: var(--primary); color: #fff; }
.lang-btn::after { display: none !important; }

/* ---------- Logo 圖片 ---------- */
.logo-img {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .6);
}

/* ---------- 真實圖片（案例縮圖） ---------- */
.case-thumb {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #cffafe);
}
.case-thumb .thumb-emoji {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 52px;
}
.case-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.case-card:hover .case-thumb img { transform: scale(1.06); }
.case-thumb .case-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(11, 18, 32, .82); color: #fff;
  font-size: 12px; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.case-thumb .case-tag-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(11, 18, 32, .82); color: #fff;
  font-size: 12px; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* ---------- 新聞卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.news-thumb { position: relative; height: 190px; overflow: hidden; background: linear-gradient(135deg, #e0e7ff, #cffafe); }
.news-thumb .thumb-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 48px; }
.news-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-date {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--gradient); color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px;
}
.news-body { padding: 24px; }
.news-body h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.news-body p { color: var(--muted); font-size: 14px; }
.news-body .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--primary); }
.news-body .more::after { content: ' →'; display: inline-block; transition: var(--transition); }
.news-card:hover .news-body .more::after { transform: translateX(6px); }

/* ---------- 招聘職位 ---------- */
.job-list { max-width: 860px; margin: 0 auto; display: grid; gap: 16px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 26px; transition: var(--transition); flex-wrap: wrap;
}
.job-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.job-info h3 { font-size: 17px; font-weight: 700; color: var(--dark); }
.job-meta { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.job-meta span { display: flex; align-items: center; gap: 6px; }
.job-type {
  background: rgba(37, 99, 235, .1); color: var(--primary);
  font-size: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 700;
}

/* ---------- 關於頁真實圖片 ---------- */
.about-photo {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); position: relative;
  height: 100%; min-height: 340px; background: linear-gradient(135deg, #dbeafe, #cffafe);
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 響應式 ---------- */
@media (max-width: 1024px) {
  .services-grid, .t-grid, .cases-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 24px; gap: 20px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { color: #334155 !important; }
  .nav-links.open a:hover { color: var(--primary) !important; }
  .nav-links.open .nav-cta { color: #fff !important; }
  .nav-links.open .lang-btn { color: var(--primary); border-color: rgba(37, 99, 235, .35); background: rgba(37, 99, 235, .1); }
  .hamburger { display: flex; }
  .lang-btn { margin-left: 0; }
  .services-grid, .t-grid, .cases-grid, .news-grid, .process-grid, .values-grid, .team-grid, .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  section { padding: 70px 0; }
  .timeline::before { left: 10px; }
  .timeline-item { width: 100%; padding-left: 40px; text-align: left !important; left: 0 !important; }
  .timeline-item .timeline-dot { left: 1px !important; right: auto !important; }
}
