:root {
  --ink: #14202b;
  --muted: #5f6d78;
  --line: #dbe4e9;
  --paper: #f7faf9;
  --surface: #ffffff;
  --teal: #0e7c78;
  --teal-dark: #075b5a;
  --coral: #dc6b4f;
  --gold: #d89b45;
  --navy: #0f2c3a;
  --shadow: 0 18px 50px rgba(15, 44, 58, 0.10);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
 :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 12px; top: -50px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,250,249,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); white-space: nowrap; }
.brand strong { font-size: 1.2rem; letter-spacing: .04em; }
.brand span { color: var(--muted); font-size: .72rem; }
.primary-nav { display: flex; gap: 18px; align-items: center; margin-left: auto; font-size: .9rem; }
.primary-nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding-inline: 8px; color: var(--muted); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--teal-dark); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 44px; height: 44px; cursor: pointer; border-radius: 6px; }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 700; font-size: .88rem; }
.header-cta:hover { color: #fff; background: var(--teal-dark); }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.breadcrumb { color: var(--muted); font-size: .82rem; padding: 24px 0 0; }
.breadcrumb a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; margin-inline: -9px; padding-inline: 9px; text-decoration: underline; text-underline-offset: 3px; }
.hero { padding: 72px 0 86px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 64px; align-items: center; }
.hero--compact { padding-top: 52px; padding-bottom: 56px; }
.eyebrow { color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: 0; }
h1 { font-size: 4.2rem; margin: 16px 0 20px; max-width: 12ch; }
h2 { font-size: 2.35rem; margin: 0 0 16px; }
h3 { font-size: 1.16rem; margin: 0 0 8px; }
.lead { font-size: 1.18rem; color: #30414d; max-width: 60ch; }
.hero-copy p { max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border-radius: 6px; border: 1px solid transparent; font-weight: 800; font-size: .94rem; cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { color: #fff; background: var(--teal-dark); }
.btn-secondary { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn-secondary:hover { color: var(--teal-dark); background: #e5f3f1; }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { color: #fff; background: rgba(255,255,255,.12); }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .88rem; }
.workflow-visual { position: relative; min-height: 390px; padding: 26px; border-left: 1px solid var(--line); }
.workflow-visual::before { content: ""; position: absolute; inset: 14px 0 14px 18px; border: 1px dashed #b7d5d2; border-radius: 50% 12px 12px 50%; transform: skewY(-5deg); }
.workflow-caption { position: relative; color: var(--muted); font-size: .8rem; margin-bottom: 18px; }
.workflow-map { position: relative; display: grid; gap: 12px; }
.workflow-step { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: 13px 15px; box-shadow: 0 8px 24px rgba(15,44,58,.06); }
.workflow-step:nth-child(2), .workflow-step:nth-child(4) { margin-left: 36px; border-left-color: var(--gold); }
.workflow-step:nth-child(3) { margin-left: 72px; border-left-color: var(--coral); }
.workflow-step strong { display: block; color: var(--navy); }
.workflow-step span { display: block; color: var(--muted); font-size: .82rem; }
.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section--tint { background: #eef6f4; }
.section--navy { background: var(--navy); color: #d9e8e8; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--muted); max-width: 54ch; }
.section--navy .section-head p { color: #b9cbcf; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { max-width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card--accent { border-top: 4px solid var(--teal); }
.card--coral { border-top-color: var(--coral); }
.card--gold { border-top-color: var(--gold); }
.card-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #dff0ed; color: var(--teal-dark); font-weight: 900; margin-bottom: 16px; }
.problem-list, .check-list, .plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.problem-list li, .check-list li { position: relative; padding-left: 25px; }
.problem-list li::before { content: "?"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #e4b4a5; color: var(--coral); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--teal); font-weight: 900; }
.module-card { min-height: 176px; }
.module-meta { color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.module-card ul { color: var(--muted); padding-left: 18px; margin: 12px 0 0; font-size: .9rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 46px; align-items: start; }
.grid > *, .split > *, .member-grid > *, .member-auth-grid > *, .form-grid, .form-grid > * { min-width: 0; }
.flow-list { display: grid; gap: 0; }
.flow-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.flow-item:last-child { border-bottom: 0; }
.flow-number { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 900; }
.flow-item p { color: var(--muted); margin: 0; }
.signal { display: inline-block; padding: 5px 9px; background: #f9efe7; color: #8c4e39; font-size: .78rem; font-weight: 800; border-radius: 4px; }
.quote-box { border-left: 4px solid var(--coral); padding: 4px 0 4px 20px; font-size: 1.2rem; color: var(--navy); }
.comparison { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.comparison th, .comparison td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison th { background: #edf5f3; color: var(--navy); font-size: .9rem; }
.comparison td { color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.faq p { color: var(--muted); margin: 10px 0 0; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; background: var(--teal-dark); color: #e9f7f6; }
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: 1.75rem; }
.cta-band p { margin: 0; max-width: 58ch; }
.cta-band .hero-actions { margin: 0; flex-shrink: 0; }
.article-list { display: grid; gap: 12px; }
.article-card { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.article-card .eyebrow { font-size: .72rem; }
.article-card h3 { margin-top: 10px; }
.article-card h2 a, .article-card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.article-card p { color: var(--muted); margin-bottom: 10px; }
.article-meta { color: var(--muted); font-size: .8rem; }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 44px; font-size: 1.9rem; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: #42525c; }
.prose ul { padding-left: 22px; }
.site-footer { margin-top: 70px; background: #0b202a; color: #c5d5d8; }
.footer-inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; padding: 36px 0; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.footer-inner h2, .footer-inner h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-inner p, .footer-inner a { color: #b4c7ca; font-size: .9rem; }
.footer-links { display: grid; gap: 5px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding: 13px 0; font-size: .78rem; color: #99b0b4; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 15px; }
.form-grid { display: grid; width: 100%; max-width: 720px; gap: 14px; }
.form-grid label { display: grid; gap: 6px; color: var(--navy); font-weight: 700; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; font: inherit; border: 1px solid var(--line); padding: 11px 12px; border-radius: 4px; background: #fff; }
.form-grid input[type="file"] { overflow: hidden; }
.form-grid textarea { min-height: 140px; resize: vertical; }
.notice { padding: 16px 18px; background: #fff8eb; border-left: 4px solid var(--gold); color: #6c5731; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.section--navy .link-row .btn-light, .section--navy .link-row .btn-light:hover { color: #fff; }
.small { color: var(--muted); font-size: .86rem; }
.header-tools { display: flex; align-items: center; gap: 12px; font-size: .82rem; margin-left: auto; }
.header-tools a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); }
.header-tools a:hover { color: var(--teal-dark); }
.section--compact { padding-top: 48px; padding-bottom: 56px; }
.narrow { max-width: 760px; }
.task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.task-item { min-height: 126px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; }
.task-item:hover, .task-item:focus-visible { border-color: var(--teal); transform: translateY(-2px); }
.task-item span { color: var(--teal); font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
.task-item strong { color: var(--navy); }
.task-item small { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.product-media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #eaf2f3; color: var(--navy); font-weight: 900; letter-spacing: .12em; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px; }
.product-body h2 { font-size: 1.28rem; margin: 0; }
.product-body p { margin: 0; color: var(--muted); }
.product-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: auto; padding-top: 10px; color: var(--muted); font-size: .84rem; }
.product-meta strong { color: var(--navy); font-size: 1.15rem; }
.toolbar { display: flex; gap: 14px; align-items: end; margin-bottom: 22px; }
.toolbar label { display: grid; gap: 5px; color: var(--navy); font-weight: 700; }
.toolbar input, .toolbar select { min-height: 44px; min-width: 200px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: var(--surface); }
.empty-state { padding: 24px; border: 1px dashed var(--line); background: var(--surface); color: var(--muted); }
.cart-list { display: grid; gap: 10px; }
.cart-row { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 18px; border: 1px solid var(--line); background: var(--surface); padding: 14px; }
.cart-row .product-media { aspect-ratio: 4/3; }
.cart-row-body { display: flex; flex-direction: column; gap: 8px; }
.cart-row-body h2 { margin: 0; font-size: 1.15rem; }
.cart-controls { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.cart-controls input { width: 80px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.cart-summary { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.cart-summary p { margin: 0; }
.is-disabled { opacity: .55; pointer-events: none; }
.mode-switch { display: flex; gap: 8px; margin: 20px 0; }
.mode-switch .btn { width: auto; }
.compatibility-panel { padding: 18px; background: #eef6f4; border: 1px solid var(--line); }
.compatibility-panel h2 { font-size: 1.2rem; }
.check-row { grid-template-columns: auto minmax(0, 1fr) !important; grid-template-rows: auto; align-items: start; min-height: 44px; }
.form-grid .check-row input { width: 20px; height: 20px; min-height: 20px; margin-top: 4px; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.timeline > div { padding: 16px; border-top: 4px solid var(--teal); background: var(--surface); border: 1px solid var(--line); }
.timeline strong, .timeline span { display: block; }
.timeline span { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.member-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.case-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.case-strip > div { padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.case-strip strong, .case-strip span { display: block; }
.case-strip span { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.details-list { display: grid; gap: 12px; margin: 22px 0; }
.details-list div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.details-list dt { color: var(--navy); font-weight: 800; }
.details-list dd { margin: 0; color: var(--muted); }
.mobile-bottom-nav { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

@media (max-width: 900px) {
  .header-inner { padding: 12px 18px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 66px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 18px 14px; }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav a { padding: 9px 8px; border-bottom: 1px solid #e7eeee; }
  .header-cta { display: none; }
  .header-tools { margin-left: 0; }
  .header-tools a { font-size: .78rem; }
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.1rem; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 52px; }
  .workflow-visual { border-left: 0; padding: 0; min-height: 330px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-head, .cta-band { align-items: start; flex-direction: column; }
  .cta-band .hero-actions { margin-top: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .container, .footer-inner { width: min(100% - 32px, 1160px); }
  .header-inner { gap: 2px; padding: 8px; }
  .nav-toggle { order: -1; flex: 0 0 44px; margin-left: 0; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand strong { font-size: 1.05rem; }
  .brand span { display: none; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.85rem; }
  .hero { padding-bottom: 62px; }
  .section { padding: 56px 0; }
  .grid--2, .grid--3, .grid--4, .split { grid-template-columns: 1fr; }
  .workflow-step:nth-child(2), .workflow-step:nth-child(3), .workflow-step:nth-child(4) { margin-left: 0; }
  .workflow-visual::before { inset: 8px 0; border-radius: 12px; transform: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-bottom .container { flex-direction: column; }
  .cta-band { padding: 24px; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .header-tools { gap: 0; margin-left: auto; }
  .header-tools a { width: 44px; flex: 0 0 44px; justify-content: center; font-size: 0; white-space: nowrap; }
  .header-tools a:nth-child(1)::before { content: "⌕"; font-size: 1.1rem; }
  .header-tools a:nth-child(2)::before { content: "◎"; font-size: 1.05rem; }
  .header-tools a:nth-child(3)::before { content: "▣"; font-size: 1rem; }
  .header-tools a:last-child { width: 44px; }
  .header-tools a:last-child span { font-size: .68rem; margin-left: 2px; }
  .task-grid, .product-grid, .member-grid, .member-auth-grid, .timeline { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar input, .toolbar select { min-width: 0; width: 100%; }
  .cart-row { grid-template-columns: 92px minmax(0,1fr); gap: 12px; }
  .cart-row .product-media { aspect-ratio: 1; }
  .cart-summary { align-items: start; flex-direction: column; }
  .case-strip { grid-template-columns: 1fr; }
  .details-list div { grid-template-columns: 1fr; gap: 2px; }
  .mobile-bottom-nav { position: static; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
  .mobile-bottom-nav a { min-height: 44px; display: grid; place-items: center; color: var(--navy); font-size: .78rem; }
}
.ai-hero { padding: 78px 0 82px; background: linear-gradient(135deg,#f7faf9 0%,#e8f3f4 100%); border-bottom: 1px solid var(--line); }
.ai-hero-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr); gap:54px; align-items:center; }
.ai-hero h1 { margin-bottom:8px; }
.ai-hero-panel { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:20px; background:rgba(255,255,255,.72); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); }
.ai-hero-panel > div { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; }
.ai-hero-panel .card-icon { margin:0; }
.ai-hero-panel small { color:var(--muted); font-size:.78rem; }
.ai-hero-panel strong { color:var(--navy); font-size:.92rem; }
#services .card .btn { margin-top:18px; width:100%; }
.onsite-grid { margin-top:24px; }
.onsite-grid .card h3 { color:var(--teal-dark); margin-bottom:6px; }
@media (max-width:900px) { .ai-hero-grid { grid-template-columns:1fr; gap:30px; } }
@media (max-width:620px) { .ai-hero { padding:54px 0 60px; } .ai-hero-panel { grid-template-columns:1fr; } }
