/* ============================================================
   JM SPACE1 官網樣式 — 品牌色系：海軍藍 + 脈動金
   ============================================================ */
:root {
  --navy-900: #0A1628;
  --navy-700: #132D4E;
  --navy-500: #1E4976;
  --gold: #D4A017;
  --gold-soft: #E8C563;
  --ink: #1b2430;
  --ink-soft: #4a5768;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(10, 22, 40, .10);
  --shadow-lg: 0 18px 48px rgba(10, 22, 40, .18);
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
section { padding: 72px 0; }
.alt { background: var(--bg); }

/* ---------- 導覽 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,22,40,.92); backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-logo { height: 38px; width: auto; object-fit: contain; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--navy-500), var(--navy-900)); border: 1.5px solid var(--gold); display: grid; place-items: center; font-weight: 900; color: var(--gold); font-size: 15px; letter-spacing: .5px; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 1px; }
.brand-name small { display: block; font-size: 10px; font-weight: 500; color: #9fb2cc; letter-spacing: 3px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { color: #d7e1ee; font-size: 14.5px; padding: 8px 14px; border-radius: 8px; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); background: rgba(212,160,23,.12); }
.nav-cta { background: var(--gold); color: var(--navy-900) !important; font-weight: 700; }
.nav-cta:hover { background: var(--gold-soft); color: var(--navy-900) !important; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-toggle { display: block !important; } }
.nav-toggle { display: none; color: #fff; font-size: 22px; background: none; border: 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-500) 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(720px 340px at 82% 18%, rgba(212,160,23,.16), transparent 60%),
  repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.028) 46px 48px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 88px 0 72px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.25; font-weight: 900; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .slogan { margin: 18px 0 8px; font-size: clamp(16px, 2vw, 21px); color: #c8d6e8; letter-spacing: 2px; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.hero .tags span { border: 1px solid rgba(212,160,23,.55); color: var(--gold-soft); font-size: 13px; padding: 5px 14px; border-radius: 999px; letter-spacing: 1px; }
.btn { display: inline-block; padding: 13px 30px; border-radius: 10px; font-weight: 800; font-size: 15.5px; letter-spacing: 1px; transition: .2s; cursor: pointer; border: 0; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212,160,23,.35); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.4); color: #fff; margin-left: 12px; }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.hero-video { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(212,160,23,.35); aspect-ratio: 16/9; background: #060d18; }
.hero-video iframe { width: 100%; height: 100%; border: 0; }
.hero-video video.hero-inline { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.hero-video .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #7e93b0; font-size: 14px; text-align: center; padding: 20px; }
@media (max-width: 920px) { .hero-inner { grid-template-columns: 1fr; } }

/* ---------- 章節標題 ---------- */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: 4px; font-size: 13px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--navy-900); margin: 8px 0 12px; letter-spacing: 1px; }
.sec-head p { color: var(--ink-soft); font-size: 16px; }

/* ---------- 卡片 / 網格 ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: .25s; cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(212,160,23,.5); }
.card .ico { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; background: linear-gradient(135deg, var(--navy-500), var(--navy-900)); color: var(--gold-soft); margin-bottom: 14px; }
.card h3 { color: var(--navy-900); font-size: 18.5px; font-weight: 800; margin-bottom: 8px; letter-spacing: .5px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 影片卡 ---------- */
.vcard { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.vcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.vthumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-900), var(--navy-500)); display: grid; place-items: center; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb img.broken { display: none; }
.vthumb .fallback { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #b9c8dd; text-align: center; padding: 16px; font-size: 13px; }
.vthumb .fallback strong { color: #e9eff7; font-size: 15px; }
.vthumb .play { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: rgba(10,22,40,.65); border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold-soft); font-size: 15px; }
.vthumb video.lv { width: 100%; height: 100%; object-fit: cover; display: block; background: #060d18; }
.vbadge { position: absolute; top: 12px; left: 12px; background: rgba(212,160,23,.92); color: var(--navy-900); font-size: 12px; font-weight: 800; padding: 3px 11px; border-radius: 999px; letter-spacing: 1px; }
.vbody { padding: 18px 20px 20px; }
.vbody h4 { color: var(--navy-900); font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.vbody p { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 10px; min-height: 46px; }
.vmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vmeta .pf { font-size: 11.5px; font-weight: 700; color: var(--navy-500); background: #edf2f8; padding: 2px 9px; border-radius: 5px; }
.vmeta .go { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--gold); }

/* ---------- 產品頁 ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 64px 0 56px; }
.page-hero .kicker { color: var(--gold-soft); }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; margin: 6px 0 10px; }
.page-hero p { color: #c3d2e5; max-width: 720px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.spec-table caption { caption-side: top; text-align: left; font-weight: 800; color: var(--navy-900); font-size: 17px; padding: 0 0 12px; }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--navy-900); color: #fff; font-weight: 700; letter-spacing: 1px; }
.spec-table tbody tr:nth-child(even) { background: #f8fafc; }
.spec-note { font-size: 13px; color: #8a94a5; margin-top: 10px; }
.steps { counter-reset: s; }
.step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: 0; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-size: 26px; font-weight: 900; color: transparent; -webkit-text-stroke: 1.3px var(--gold); line-height: 1.1; }

/* ---------- 案例頁 ---------- */
.case { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: stretch; }
@media (max-width: 880px) { .case { grid-template-columns: 1fr; } }
.case .vthumb { height: 100%; border-radius: var(--radius); }

/* ---------- 下載 / QR ---------- */
.dl-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.dl-item .ico { flex: none; }
.dl-item h4 { font-size: 16px; color: var(--navy-900); font-weight: 800; }
.dl-item p { font-size: 13px; color: var(--ink-soft); }
.dl-item .btn { margin-left: auto; padding: 9px 20px; font-size: 14px; }
.qr { width: 116px; height: 116px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: #94a3b8; font-size: 11px; text-align: center; padding: 8px; }

/* ---------- 表單 ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-size: 13.5px; font-weight: 700; color: var(--navy-900); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; font-family: var(--font); font-size: 14.5px; transition: .2s; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,160,23,.15); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form-ok { display: none; background: #ecf9f0; border: 1px solid #b5e2c3; color: #1c7c3d; padding: 14px 18px; border-radius: 10px; font-size: 14.5px; font-weight: 700; }

/* ---------- 經銷商專區 ---------- */
.dealer-box { max-width: 720px; margin: 0 auto; }
.dealer-form { display: flex; gap: 10px; margin: 22px 0; }
.dealer-form input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; font-family: var(--font); font-size: 14.5px; }
.dealer-result { border-radius: var(--radius); padding: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.dealer-result.ok { border-left: 5px solid var(--gold); }
.dealer-result.empty { border-left: 5px solid #cbd5e1; background: #f8fafc; }
.dealer-result h3 { color: var(--navy-900); font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.dealer-result .sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 16px; }
.mat-list { display: grid; gap: 12px; }
.mat { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; }
.mat .ico { width: 38px; height: 38px; border-radius: 9px; background: #edf2f8; display: grid; place-items: center; font-size: 17px; flex: none; }
.mat b { font-size: 14.5px; color: var(--navy-900); display: block; }
.mat span { font-size: 12.5px; color: var(--ink-soft); word-break: break-all; }
.mat .btn { margin-left: auto; padding: 7px 16px; font-size: 13px; flex: none; }
.api-note { font-size: 12.5px; color: #8a94a5; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ---------- 頁尾 ---------- */
.footer { background: var(--navy-900); color: #9fb2cc; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 1px; }
.footer a { display: block; font-size: 13.5px; padding: 4px 0; color: #9fb2cc; }
.footer a:hover { color: var(--gold-soft); }
.footer .brand-name { color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; padding-top: 22px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #cdd8e8; }
.footer-contact span { white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 12.5px; color: #6c7f99; }

/* ---------- 播客節目 ---------- */
.podcast-list { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }
.podcast-item { background: rgba(255,255,255,.03); border: 1px solid rgba(212,160,23,.28); border-radius: 12px; padding: 16px 18px; }
.pod-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pod-title { font-weight: 700; font-size: 15.5px; color: #fff; }
.pod-dur { font-size: 12.5px; color: var(--gold-soft); white-space: nowrap; }
.pod-desc { font-size: 13.5px; color: #b8c2d4; margin: 8px 0 12px; line-height: 1.6; }
.podcast-item audio { width: 100%; height: 40px; }
.pod-dl { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--gold-soft); text-decoration: none; }
.pod-dl:hover { text-decoration: underline; }
