:root {
  --bg: #060a14;
  --bg-2: #0b1222;
  --bg-3: #111c33;
  --line: #1c2a47;
  --text: #e8eef9;
  --muted: #93a3bf;
  --accent: #2f9bff;
  --accent-2: #38d6ff;
  --line-green: #06c755;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 20, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 34px; width: auto; }
nav ul { display: flex; gap: 6px; list-style: none; }
nav a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: .95rem; transition: .2s; }
nav a:hover, nav a.active { color: var(--text); background: var(--bg-3); }
nav a.cta { background: var(--accent); color: #fff; font-weight: 600; }
nav a.cta:hover { background: #55adff; }

.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 6px 12px; border-radius: 8px; font-size: 1rem; cursor: pointer; font-family: inherit; }

/* Hero */
.hero {
  padding: 88px 0 80px;
  background:
    radial-gradient(900px 480px at 90% -10%, rgba(47,155,255,.22), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(56,214,255,.10), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent-2); font-size: .85rem; letter-spacing: 2px; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 20px; color: var(--muted); max-width: 560px; font-size: 1.06rem; }
.hero-photo {
  background: #fff; border-radius: 22px; padding: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(47,155,255,.25);
}
.hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }

.btns { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px; font-weight: 600;
  border: 1px solid var(--line); transition: .2s; cursor: pointer; font-size: 1rem; font-family: inherit; color: var(--text); background: transparent;
}
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: #55adff; border-color: #55adff; }
.btn.ghost:hover { background: var(--bg-3); }
.btn.line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn.line:hover { filter: brightness(1.1); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.sec-head p { color: var(--muted); margin-top: 8px; max-width: 640px; }

.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .25s;
}
section.alt .card { background: var(--bg); }
.card:hover { border-color: #2b4472; transform: translateY(-3px); }
.card .ico { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Product cards */
.product { padding: 18px; display: flex; flex-direction: column; }
.product .photo {
  aspect-ratio: 4/3; border-radius: 10px; margin-bottom: 16px; background: #fff; overflow: hidden;
}
.product .photo img { width: 100%; height: 100%; object-fit: contain; }
.product h3 { font-size: 1.25rem; letter-spacing: .5px; }
.product .ref { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.chip { font-size: .78rem; padding: 2px 10px; border-radius: 99px; background: rgba(47,155,255,.14); color: var(--accent-2); font-weight: 600; }
.chip.warm { background: rgba(6,199,85,.14); color: #3be58a; }
.spec { list-style: none; margin-top: 10px; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.spec li span:first-child { color: var(--muted); }
.product details { margin-top: 12px; background: var(--bg-3); border: none; padding: 10px 14px; }
.product details summary { font-size: .88rem; }
.product details p { font-size: .83rem; line-height: 1.7; }
.product .more { margin-top: auto; padding-top: 14px; }
.product .more a { color: var(--accent); font-size: .9rem; font-weight: 600; }

/* Product search */
.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.search {
  width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 1.02rem; font-family: inherit;
}
.search:focus { outline: 2px solid var(--accent); border-color: transparent; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  padding: 7px 16px; border-radius: 99px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; font-size: .9rem; font-family: inherit; transition: .2s;
}
.filters button:hover { color: var(--text); background: var(--bg-3); }
.filters button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.result-info { color: var(--muted); font-size: .9rem; }
.empty { display: none; text-align: center; padding: 40px 0; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 2.3rem; color: var(--accent); line-height: 1.3; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Steps */
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 18px; left: 24px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.steps .card h3 { margin-top: 6px; }

/* FAQ */
details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
section.alt details { background: var(--bg); }

/* Page title */
.page-title { padding: 60px 0 44px; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 300px at 90% -20%, rgba(47,155,255,.20), transparent 60%); }
.page-title h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-title p { color: var(--muted); margin-top: 10px; max-width: 640px; }

/* Info / contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.info-list { list-style: none; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.info-list li b { min-width: 72px; color: var(--accent-2); font-weight: 600; }
.info-list a:hover { color: var(--accent); }
.qr { margin-top: 22px; display: flex; gap: 18px; align-items: center; }
.qr img { width: 132px; height: 132px; border-radius: 10px; background: #fff; padding: 6px; }
.qr p { color: var(--muted); font-size: .9rem; }
form label { display: block; font-size: .9rem; color: var(--muted); margin: 14px 0 6px; }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 1rem;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
form textarea { min-height: 130px; resize: vertical; }
form .btn { margin-top: 20px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* Brand block (about) */
.brand-block { display: grid; place-items: center; text-align: center; gap: 18px; padding: 40px 24px; border-radius: 20px;
  background: radial-gradient(500px 260px at 50% 0, rgba(47,155,255,.22), transparent 70%), var(--bg-2); border: 1px solid var(--line); }
.brand-block img { width: min(360px, 80%); }
.brand-block p { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 90px; color: var(--muted); font-size: .9rem; background: var(--bg-2); }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer img { height: 30px; width: auto; margin-bottom: 10px; }
footer a:hover { color: var(--accent); }

/* Floating LINE */
.line-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--line-green); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 99px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); font-size: .95rem; transition: .2s;
}
.line-float:hover { transform: translateY(-2px); filter: brightness(1.08); }

@media (max-width: 800px) {
  .menu-btn { display: block; }
  nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
  nav ul.open { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 52px 0; }
}

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--bg-3); color: var(--muted); font-weight: 600; font-size: .85rem; letter-spacing: .5px; }
tr:last-child td { border-bottom: none; }
section.alt .table-wrap { background: var(--bg); }

/* Finder */
.fgroup { margin-bottom: 30px; }
.fb { font-size: 1.15rem; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: flex; align-items: baseline; gap: 10px; }
.fb small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.fnote { margin-top: 10px; padding: 8px 14px; border-radius: 8px; background: rgba(56,214,255,.08); color: var(--accent-2); font-size: .85rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.frow .nm { font-weight: 700; font-size: 1.02rem; }
.frow .sub { color: var(--muted); font-size: .85rem; }
.frow .kv { font-size: .9rem; }
.frow .kv span { color: var(--muted); margin-right: 8px; }
.mchip { display: inline-block; margin: 0 8px 8px 0; padding: 6px 12px; border-radius: 10px; background: rgba(47,155,255,.12); border: 1px solid rgba(47,155,255,.35); transition: .2s; }
.mchip:hover { background: rgba(47,155,255,.25); }
.mchip b { color: var(--accent-2); }
.mchip small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.4; }
@media (max-width: 800px) { .frow { grid-template-columns: 1fr; gap: 8px; } }

/* Finder dropdowns */
.selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.selects select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 1rem; font-family: inherit;
}
.selects select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.selects select:disabled { opacity: .45; }
@media (max-width: 800px) { .selects { grid-template-columns: 1fr; } }

/* Spec finder */
.qchips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qchips span { color: var(--muted); font-size: .85rem; }
.qchips button { padding: 5px 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-family: inherit; font-size: .9rem; transition: .2s; }
.qchips button:hover { background: var(--bg-3); border-color: var(--accent); }
.codes { display: flex; flex-wrap: wrap; gap: 6px; }
.code { font-size: .82rem; padding: 2px 9px; border-radius: 6px; background: var(--bg-3); color: var(--muted); }
.code.hit { background: rgba(47,155,255,.2); color: var(--accent-2); font-weight: 600; }

/* 依車款查詢 */
.ftabs { margin-bottom: 22px; }
.carsel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.carsel label span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.carsel select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 1rem; font-family: inherit; }
.carsel select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.carsel select:disabled { opacity: .5; }
.cgen { margin-top: 22px; }
.cgen h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cgen h3 span { color: var(--muted); font-weight: 400; font-size: .92rem; }
.mchip.none { color: var(--muted); }
@media (max-width: 720px) { .carsel { grid-template-columns: 1fr; } }
