/* =========================================================
   力鼎物流機械 2026 介面
   設計方向：企業識別紅、黃、黑三色，帶工業安全標誌感
   長者友善：基準字級 18px、按鈕至少 56px、高對比、可調字級
   要換品牌色只要改下面 :root 的變數
   ========================================================= */

:root {
    /* 企業識別（CIS）三色：紅 #E00010（Logo 拖板車、英文名）、黃 #F0B000（Logo 貨箱）、黑 */
    --ink: #1A1A1A;          /* CIS 黑：主要文字、頁首頁尾（白底對比 17:1） */
    --ink-2: #555555;        /* 次要文字（灰底上 6.8:1） */
    --ink-soft: #333333;
    --concrete: #F4F4F4;     /* 淺灰：區塊底色 */
    --line: #DDDDDD;
    --white: #FFFFFF;
    --brand: #E00010;        /* Logo 紅：大面積色塊、圖形 */
    --brand-btn: #D0000F;    /* 按鈕底色（白字對比 5.7:1） */
    --brand-btn-hover: #B0000C;
    --brand-text: #C4000E;   /* 連結文字（白底對比 6.3:1） */
    --brand-soft: #FFF4D6;   /* 淺黃（CIS 黃的淡色）：標籤、圖示底、提示區 */
    --amber: #F2B000;        /* CIS 黃：焦點框、強調、警示斜紋 */
    --amber-soft: #FFF4D6;
    --line-green: #067D40;   /* LINE 綠（加深以符合白字對比） */
    --line-green-dark: #05652F;
    --ok: #1E7F4F;
    --error: #B42318;

    --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
    --font-num: "Barlow Condensed", "Noto Sans TC", sans-serif;

    --wrap: 1180px;
    --gutter: 1rem;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 18px;
    --tap: 3.25rem;          /* 最小點擊高度，約 58px */
    --bar-h: 4.5rem;         /* 手機底部快捷列高度 */
}

/* 字級切換：標準 18px / 大 20px / 特大 22px */
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-fs="l"] { font-size: 125%; }
html[data-fs="xl"] { font-size: 137.5%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--white);
    padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 960px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { color: var(--brand-btn-hover); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; font-weight: 900; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* 明顯的鍵盤焦點框 */
:focus-visible { outline: 4px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--amber); color: var(--ink); padding: .75rem 1.25rem; font-weight: 700; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 1.5rem; } }

.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.ico-lg { width: 2.25rem; height: 2.25rem; }
.ico-xl { width: 3rem; height: 3rem; }
.num { font-family: var(--font-num); font-weight: 700; letter-spacing: .02em; }

/* ---------------- 按鈕 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: var(--tap); padding: .6rem 1.4rem;
    border: 2px solid transparent; border-radius: var(--r-sm);
    font-size: 1rem; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 3.75rem; font-size: 1.1rem; padding: .7rem 1.6rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--brand-btn); color: var(--white); }
.btn-primary:hover { background: var(--brand-btn-hover); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); color: var(--white); }
.btn-line { background: var(--line-green); color: var(--white); }
.btn-line:hover { background: var(--line-green-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--concrete); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row-center { justify-content: center; }

/* ---------------- 標籤、篩選 ---------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-scroll { flex-wrap: nowrap; overflow-x: auto; padding: .25rem 0 .75rem; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.chip {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem 1.1rem;
    border: 2px solid var(--line); border-radius: 999px; background: var(--white);
    color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; font-size: .95rem;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tag {
    display: inline-block; padding: .15rem .75rem; margin-bottom: .75rem;
    background: var(--brand-soft); color: var(--brand-text); border-radius: var(--r-sm);
    font-size: .9rem; font-weight: 700; text-decoration: none;
}

/* ---------------- 頂部資訊列 ---------------- */
.topbar { background: var(--ink); color: #DDDDDD; font-size: .85rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
.topbar-phones { margin: 0; display: none; gap: 1.5rem; }
@media (min-width: 720px) { .topbar-phones { display: flex; } }
.fs-switch { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.fs-label { display: inline-flex; align-items: center; gap: .3rem; margin-right: .25rem; }
.fs-switch button {
    min-height: 2.25rem; min-width: 2.75rem; padding: 0 .7rem;
    border: 1px solid #666666; border-radius: 6px; background: transparent; color: var(--white); font-size: .85rem;
}
.fs-switch button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 700; }

/* ---------------- 頁首 ---------------- */
.site-header { background: var(--white); border-bottom: 4px solid var(--amber); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { height: 2.6rem; width: auto; max-width: 62vw; }
.brand.has-logo .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 720px) { .brand-logo { height: 3rem; } }
.brand-name { font-weight: 900; font-size: 1.05rem; line-height: 1.25; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a {
    display: flex; align-items: center; min-height: var(--tap); padding: 0 .8rem;
    color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 4px solid transparent;
}
.main-nav a:hover { color: var(--brand-text); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--brand); }
.header-call { display: none; }
.menu-toggle {
    margin-left: auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    min-width: var(--tap); min-height: var(--tap); padding: .25rem .5rem;
    border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--white); color: var(--ink);
    font-size: .8rem; font-weight: 700; line-height: 1.2;
}
.menu-toggle .ico { width: 1.5rem; height: 1.5rem; }
@media (min-width: 1080px) {
    .main-nav { display: block; }
    .header-call { display: inline-flex; }
    .menu-toggle { display: none; }
}

/* 手機選單（全螢幕） */
.mobile-menu { position: fixed; inset: 0; z-index: 120; background: var(--white); overflow-y: auto; padding: 0 var(--gutter) 2rem; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.mobile-menu-title { font-weight: 900; font-size: 1.2rem; }
.menu-close { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: 0 1rem; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--white); font-weight: 700; }
.mobile-links { margin: 1rem 0 1.5rem; border-top: 1px solid var(--line); }
.mobile-links a {
    display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; padding: 0 .25rem;
    border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.15rem; font-weight: 700; text-decoration: none;
}
.mobile-links a[aria-current="page"] { color: var(--brand-text); }
.mobile-sub { font-weight: 700; color: var(--ink-2); margin-bottom: .5rem; }
.mobile-menu-foot { margin-top: 2rem; font-size: .95rem; }
body.menu-open { overflow: hidden; }

/* ---------------- 智慧搜尋 ---------------- */
.smart-search { position: relative; margin-bottom: 1.25rem; }
.smart-search-label { display: flex; align-items: center; gap: .4rem; font-weight: 700; margin-bottom: .5rem; }
.smart-search-label .ico { color: var(--brand); }
.smart-search-box {
    display: flex; align-items: center; gap: .5rem;
    background: var(--white); border: 3px solid var(--ink); border-radius: var(--r);
    padding: .3rem .3rem .3rem .9rem;
}
.smart-search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(224, 0, 16, .18); }
.smart-search-box > .ico { color: var(--ink-2); }
.smart-search-box input {
    flex: 1; min-width: 0; min-height: 3rem; border: 0; outline: 0; background: transparent; font-size: 1.05rem;
}
.smart-search-box input::placeholder { color: #6E6E6E; }
.smart-search-box .btn { min-height: 3rem; padding: 0 1.2rem; flex: none; }
.smart-search-compact { margin-bottom: 0; }

.suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 60;
    background: var(--white); border: 2px solid var(--ink); border-radius: var(--r);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18); overflow: hidden;
}
.suggest-note { display: flex; align-items: center; gap: .4rem; margin: 0; padding: .6rem 1rem; background: var(--concrete); font-size: .9rem; color: var(--ink-2); }
.suggest-note .ico { color: var(--brand); }
.suggest a {
    display: flex; align-items: center; gap: .9rem; min-height: 4rem; padding: .5rem 1rem;
    border-top: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.suggest a:hover, .suggest a.is-active { background: var(--brand-soft); }
.suggest img { width: 3.5rem; height: 2.75rem; object-fit: contain; background: var(--concrete); border-radius: 6px; flex: none; }
.suggest-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.suggest-text b { font-weight: 700; }
.suggest-text small { color: var(--ink-2); font-size: .85rem; }
.suggest-repair { background: var(--amber-soft); font-weight: 700; }
.suggest-repair .ico { color: var(--brand-text); width: 1.75rem; height: 1.75rem; }
.suggest-all { justify-content: center; font-weight: 700; color: var(--brand-text) !important; }

/* ---------------- 首屏 ---------------- */
.hero {
    position: relative; overflow: hidden;
    background:
        linear-gradient(180deg, rgba(242, 244, 245, 0) 70%, var(--white) 100%),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(0, 0, 0, .05) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(0, 0, 0, .05) 39px 40px),
        var(--concrete);
    padding: 2rem 0 2.5rem;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.hero-in > * { min-width: 0; }
.br-m { display: inline; }
.hero h1 { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.9rem); font-weight: 900; letter-spacing: .02em; margin-bottom: .5em; }
.hero-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: none; flex-wrap: wrap; gap: .75rem; }   /* 手機上由底部快捷列負責打電話、LINE */
.hero-actions .btn { flex: 1 1 auto; white-space: nowrap; }
.hero .smart-search { margin-bottom: 0; }
@media (min-width: 960px) {
    .hero { padding: 3.5rem 0 4rem; }
    .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; }
    .hero-actions { display: flex; margin-top: 1.25rem; }

}

/* ---------------- 智慧選機助手 ---------------- */
.assistant {
    position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); overflow: hidden;
}
/* 頂部的警示斜紋：整個網站唯一的裝飾，呼應工業安全標誌 */
.assistant::before {
    content: ""; display: block; height: 10px;
    background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--ink-soft) 14px 28px);
}
.assist-head { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem .5rem; }
.assist-avatar {
    display: grid; place-items: center; width: 3rem; height: 3rem; flex: none;
    border-radius: 50%; background: var(--ink); color: var(--amber);
}
.assist-avatar .ico { width: 1.6rem; height: 1.6rem; }
.assist-title { font-weight: 900; font-size: 1.15rem; margin: 0; line-height: 1.3; }
.assist-sub { margin: 0; font-size: .9rem; color: var(--ink-2); }
.assist-progress { padding: 0 1.25rem; }
.assist-step { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); margin-bottom: .35rem; }
.assist-step b { font-family: var(--font-num); font-size: 1.15rem; color: var(--ink); }
.assist-bar { height: 8px; background: var(--concrete); border-radius: 99px; overflow: hidden; }
.assist-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s ease; }
.assist-body { padding: 1rem 1.25rem 1.25rem; }
.assist-q { font-size: 1.3rem; font-weight: 900; margin: 0 0 1rem; }
.assist-options { display: grid; gap: .65rem; }
.assist-opt {
    display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 4rem; padding: .75rem 1rem;
    border: 2px solid var(--line); border-radius: var(--r); background: var(--white);
    text-align: left; font-size: 1.05rem; font-weight: 700; color: var(--ink);
    transition: border-color .15s, background-color .15s;
}
.assist-opt:hover { border-color: var(--ink); background: var(--concrete); }
.assist-opt .opt-icon {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none;
    border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-text);
    font-family: var(--font-num); font-size: 1.1rem; font-weight: 700;
}
.assist-opt small { display: block; font-weight: 400; color: var(--ink-2); font-size: .88rem; line-height: 1.4; }
.assist-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; min-height: var(--tap); }
.assist-back {
    display: inline-flex; align-items: center; gap: .3rem; min-height: var(--tap); padding: 0 .75rem;
    border: 0; background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px;
}
.assist-thinking { display: flex; align-items: center; gap: .75rem; padding: 2rem 0; font-weight: 700; color: var(--ink-2); }
.assist-dots { display: inline-flex; gap: .3rem; }
.assist-dots i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); animation: dot 1s infinite ease-in-out; }
.assist-dots i:nth-child(2) { animation-delay: .15s; }
.assist-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.assist-result-label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--ok); margin-bottom: .25rem; }
.assist-result-name { font-size: 1.6rem; font-weight: 900; margin: 0 0 .75rem; line-height: 1.25; }
.assist-reasons { margin: 0 0 1rem; display: grid; gap: .4rem; }
.assist-reasons li { display: flex; gap: .5rem; align-items: flex-start; }
.assist-reasons .ico { color: var(--ok); margin-top: .3em; }
.assist-warn { padding: .75rem 1rem; border-left: 5px solid var(--amber); background: var(--amber-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .95rem; }
.assist-ctas { display: grid; gap: .6rem; }
.assist-small { font-size: .85rem; color: var(--ink-2); margin: .75rem 0 0; }
.assist-fallback { padding: 1.25rem; margin: 0; }

/* 內頁的助手對話框 */
.assist-dialog { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
.assist-dialog-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.assist-dialog-panel { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: .75rem; }
.assist-dialog-close {
    position: absolute; right: 1.25rem; top: 1.6rem; z-index: 2;
    display: grid; place-items: center; width: var(--tap); height: var(--tap);
    border: 2px solid var(--ink); border-radius: 50%; background: var(--white);
}
@media (min-width: 720px) { .assist-dialog { align-items: center; } }

/* ---------------- 服務保證帶 ---------------- */
.promise { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.promise-in { display: grid; }
.promise-item { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.promise-item:last-child { border-bottom: 0; }
.promise-item > .ico { width: 2.25rem; height: 2.25rem; color: var(--brand); }
.promise-item strong { display: block; font-size: 1.1rem; font-weight: 900; }
.promise-item span { color: var(--ink-2); font-size: .95rem; }
@media (min-width: 820px) {
    .promise-in { grid-template-columns: repeat(3, 1fr); }
    .promise-item { border-bottom: 0; border-right: 1px solid var(--line); padding: 1.4rem 1.5rem; }
    .promise-item:first-child { padding-left: 0; }
    .promise-item:last-child { border-right: 0; }
}

/* ---------------- 區塊共用 ---------------- */
.section { padding: 3rem 0; }
.section-tight { padding: 1.75rem 0 3rem; }
.section-alt { background: var(--concrete); }
.section-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .5rem; }
.section-head .section-title { margin-bottom: .4em; }
.link-more { display: inline-flex; align-items: center; gap: .2rem; min-height: var(--tap); font-weight: 700; }
.empty { color: var(--ink-2); padding: 1.5rem 0; }
@media (min-width: 960px) { .section { padding: 4.5rem 0; } }

/* 服務：買新機 / 維修 */
.service-split { display: grid; gap: 1rem; }
.service { padding: 1.75rem 1.5rem; border-radius: var(--r-lg); }
.service h3 { font-size: 1.6rem; margin: .5rem 0 .4rem; }
.service p { max-width: 30em; }
.service-buy { background: var(--amber-soft); }
.service-buy > .ico { color: var(--brand-text); }
.service-fix { background: var(--ink); color: #E6E6E6; }
.service-fix h3 { color: var(--white); }
.service-fix > .ico { color: var(--amber); }
.service-fix .btn-dark { background: var(--amber); color: var(--ink); }
.service-fix .btn-dark:hover { background: #FFD266; color: var(--ink); }
.service-fix .btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.service-fix .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 820px) { .service-split { grid-template-columns: 1fr 1fr; gap: 1.5rem; } .service { padding: 2.25rem; } }

/* 最新主打：規格表 */
.feature { display: grid; gap: 2rem; align-items: center; }
.feature-media { background: var(--white); border-radius: var(--r-lg); padding: 1.5rem; border: 1px solid var(--line); }
.feature-media img { margin: 0 auto; max-height: 420px; object-fit: contain; }
.feature-lead { font-size: 1.1rem; }
.spec { margin: 0 0 1.5rem; border-top: 2px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 4.5em 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; color: var(--ink-2); }
.spec dd { margin: 0; }
.spec .num { font-size: 1.2rem; color: var(--ink); }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; } }

/* ---------------- 產品卡片 ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: .5rem; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--white); border: 2px solid var(--line); border-radius: var(--r);
    color: var(--ink); text-decoration: none; overflow: hidden;
    transition: border-color .15s;
}
.product-card:hover { border-color: var(--ink); color: var(--ink); }
.product-img { display: block; aspect-ratio: 4 / 3; background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-cat { display: block; padding: .7rem .9rem 0; font-size: .85rem; color: var(--ink-2); line-height: 1.4; }
.product-name { display: block; padding: .15rem .9rem .5rem; font-size: 1.1rem; font-weight: 900; line-height: 1.35; flex: 1; word-break: break-word; }
.product-more {
    display: flex; align-items: center; justify-content: space-between; min-height: 3rem; padding: 0 .9rem;
    border-top: 1px solid var(--line); font-weight: 700; color: var(--brand-text); font-size: .95rem;
}
.product-card:hover .product-more { background: var(--brand-soft); }

/* ---------------- 影片 + 消息 ---------------- */
.media-news { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .media-news { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r); overflow: hidden; margin-bottom: 1.5rem; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.news-list { border-top: 2px solid var(--ink); }
.news-list a {
    display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: baseline;
    padding: 1rem .25rem; min-height: var(--tap); border-bottom: 1px solid var(--line);
    color: var(--ink); text-decoration: none;
}
.news-list a:hover span { color: var(--brand-text); text-decoration: underline; }
.news-list a[aria-current="page"] span { color: var(--brand-text); }
.news-list time { font-family: var(--font-num); font-size: 1.1rem; font-weight: 700; color: var(--ink-2); }
.news-list span { font-weight: 700; }
.news-list-compact a { grid-template-columns: 1fr; gap: 0; }

/* ---------------- 聯絡表單 ---------------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 3rem; } }
.contact-lead { color: var(--ink-2); }
.contact-form { display: grid; gap: 1.1rem; }
.type-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.type-field legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.type-field input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg label {
    display: flex; align-items: center; justify-content: center; min-height: var(--tap); padding: .4rem;
    font-weight: 700; text-align: center; cursor: pointer; border-right: 2px solid var(--ink); line-height: 1.3;
}
.seg label:last-child { border-right: 0; }
#t-1:checked ~ .seg label[for="t-1"],
#t-2:checked ~ .seg label[for="t-2"],
#t-3:checked ~ .seg label[for="t-3"] { background: var(--ink); color: var(--white); }
#t-1:focus-visible ~ .seg label[for="t-1"],
#t-2:focus-visible ~ .seg label[for="t-2"],
#t-3:focus-visible ~ .seg label[for="t-3"] { outline: 4px solid var(--amber); outline-offset: -4px; }
.symptoms { display: none; margin-top: 1rem; padding: 1rem; background: var(--amber-soft); border-radius: var(--r); }
.symptoms p { margin: 0 0 .6rem; font-weight: 700; }
#t-2:checked ~ .symptoms { display: block; }
.symptoms .chip { border-color: #E8C25A; }
.symptoms .chip.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }

.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.req { display: inline-block; margin-left: .35rem; padding: 0 .45rem; font-size: .78rem; font-weight: 700; color: var(--white); background: var(--brand-btn); border-radius: 4px; vertical-align: .1em; }
.field input, .field textarea {
    width: 100%; min-height: var(--tap); padding: .7rem .9rem;
    border: 2px solid #8C8C8C; border-radius: var(--r-sm); background: var(--white); font-size: 1.05rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(224, 0, 16, .2); }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hint { margin: -.5rem 0 0; font-size: .9rem; color: var(--ink-2); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.25rem; border-radius: var(--r); margin-bottom: 1.25rem; }
.alert-error { background: #FDECEA; border-left: 6px solid var(--error); color: #5C1610; }
.alert ul { list-style: disc; padding-left: 1.25rem; margin-top: .25rem; }

.contact-info { display: grid; gap: 1.25rem; align-content: start; }
.call-card { background: var(--ink); color: #DDDDDD; border-radius: var(--r-lg); padding: 1.5rem; display: grid; gap: .5rem; }
.call-label { margin: 0; font-size: .95rem; }
.call-number {
    display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem;
    color: var(--white); font-family: var(--font-num); font-size: 2rem; font-weight: 700; text-decoration: none; line-height: 1.2;
}
.call-number:hover { color: var(--amber); }
.call-number .ico { color: var(--amber); width: 1.6rem; height: 1.6rem; }
.call-card-sm { margin-top: 1.5rem; }
.call-card-sm .call-number { font-size: 1.6rem; margin: 0; }
.map-card { display: grid; gap: .75rem; }
.map-addr { display: flex; gap: .5rem; margin: 0; font-weight: 700; }
.map-addr .ico { color: var(--brand); margin-top: .3em; }
.map-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--concrete); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- 內頁 ---------------- */
.page-head { background: var(--concrete); border-bottom: 1px solid var(--line); padding: 1rem 0 .5rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: .92rem; margin-bottom: .5rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.5rem; color: var(--ink-2); font-weight: 500; }
.crumbs span { color: #8C8C8C; }
.page-title { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); margin: 0 0 .75rem; }
.smart-search-inline { max-width: 720px; }
.result-count { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: .5rem 0 1rem; font-weight: 700; }
.result-count .num { font-size: 1.4rem; color: var(--brand-text); }
.smart-terms { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; font-size: .92rem; color: var(--ink-2); }
.smart-terms .ico { color: var(--brand); }
.smart-note { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; margin: .5rem 0 1rem; border-radius: var(--r-lg); background: var(--amber-soft); border: 2px solid #E8C25A; }
.smart-note > .ico { color: var(--brand-text); }
.smart-note p { margin-bottom: .75rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; border: 2px dashed var(--line); border-radius: var(--r-lg); margin: 1rem 0; }
.empty-state > .ico { color: var(--ink-2); margin: 0 auto .5rem; display: block; }
.empty-state h2 { font-size: 1.4rem; }
.empty-state p { max-width: 28em; margin: 0 auto 1.25rem; }
.help-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--r-lg); background: var(--brand-soft);
}
.help-band p { margin: 0; display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.05rem; }
.help-band .ico { color: var(--brand-text); }

/* 產品明細 */
.product-detail { display: grid; gap: 2rem; }
@media (min-width: 960px) { .product-detail { grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; } }
.gallery-main {
    position: relative; aspect-ratio: 4 / 3; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; touch-action: pan-y;
}
.gallery-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; opacity: 0; transition: opacity .25s; }
.gallery-slide.is-on { opacity: 1; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
    border: 2px solid var(--ink); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink);
}
.gallery-nav .ico { width: 1.75rem; height: 1.75rem; }
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
.gallery-count { position: absolute; right: .75rem; bottom: .75rem; margin: 0; padding: .1rem .7rem; background: var(--ink); color: var(--white); border-radius: 99px; font-family: var(--font-num); font-size: 1.05rem; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; }
.gallery-thumb { flex: 0 0 5.5rem; height: 4.25rem; padding: .25rem; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-on { border-color: var(--brand); border-width: 3px; }
.gallery-empty { display: grid; place-items: center; align-content: center; color: var(--ink-2); }
.product-title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 1.25rem; word-break: break-word; }
.cta-stack { display: grid; gap: .75rem; }
.mini-promise { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0; font-weight: 700; }
.mini-promise li { display: flex; align-items: center; gap: .4rem; }
.mini-promise .ico { color: var(--ok); }
.siblings { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.siblings-h { font-weight: 700; margin-bottom: .6rem; }
.product-desc { max-width: 900px; }

/* 後台編輯器內容 */
.prose { font-size: 1.05rem; line-height: 1.85; max-width: 46em; overflow-wrap: anywhere; }
.prose img { height: auto !important; max-width: 100% !important; border-radius: var(--r-sm); margin: 1rem 0; }
.prose table { width: 100% !important; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .75rem; }
.prose iframe { max-width: 100%; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { list-style: revert; padding-left: 1.5em; margin-bottom: 1em; }

/* 消息 */
.news-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .news-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; } }
.news-date { display: flex; align-items: center; gap: .4rem; color: var(--ink-2); font-weight: 500; }
.side-h { font-size: 1.2rem; }

/* 狀態頁 */
.status-page { max-width: 640px; text-align: center; }
.status-icon { display: inline-grid; place-items: center; width: 6rem; height: 6rem; border-radius: 50%; background: var(--concrete); color: var(--ink-2); margin-bottom: 1rem; }
.status-ok { background: #E3F4EA; color: var(--ok); }
.status-lead { font-size: 1.25rem; font-weight: 700; }
.status-page .smart-search { text-align: left; margin: 1.5rem 0; }

/* ---------------- 頁尾 ---------------- */
.site-footer { background: var(--ink); color: #CCCCCC; padding: 3rem 0 0; margin-top: 0; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; } }
.footer-brand { font-size: 1.3rem; font-weight: 900; color: var(--white); margin-bottom: .25rem; }
.footer-slogan { font-size: .95rem; }
.footer-h { font-size: 1.1rem; color: var(--amber); margin-bottom: .75rem; }
.footer-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; }
.footer-list .ico { color: var(--amber); margin-top: .3em; }
.footer-bottom { border-top: 1px solid #333333; padding-top: 1rem; padding-bottom: 1rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------------- 手機底部快捷列 ---------------- */
.action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--white); border-top: 2px solid var(--ink);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
}
.action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    min-height: var(--bar-h); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 700; line-height: 1.2;
    border-right: 1px solid var(--line);
}
.action-bar a:last-child { border-right: 0; }
.action-bar .ico { width: 1.6rem; height: 1.6rem; }
.action-bar .action-call { background: var(--brand-btn); color: var(--white); }
.action-bar .action-line .ico { color: var(--line-green); }
html[data-fs="xl"] .action-bar a { font-size: .75rem; }
@media (min-width: 960px) { .action-bar { display: none; } }

.to-top {
    position: fixed; right: 1rem; bottom: calc(var(--bar-h) + 1rem + env(safe-area-inset-bottom, 0px)); z-index: 80;
    display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
    border-radius: 50%; background: var(--ink); color: var(--white); box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.to-top:hover { color: var(--amber); }
@media (min-width: 960px) { .to-top { bottom: 1.5rem; } }

/* ---------------- 分享列 ---------------- */
.share {
    margin: 1.5rem 0 0; padding: 1.1rem 1.25rem 1.25rem;
    border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--white);
}
.share-h { display: flex; align-items: center; gap: .45rem; font-weight: 700; margin: 0 0 .75rem; }
.share-h .ico { color: var(--brand); }
.share-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .75rem; }
.share-btns .btn { flex: 1 1 12rem; }
.share-copy { display: flex; gap: .5rem; }
.share-copy input {
    flex: 1; min-width: 0; min-height: var(--tap); padding: 0 .8rem;
    border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--concrete);
    font-family: var(--font-num); font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.share-copy .btn { flex: none; padding: 0 1rem; }
.share-done { margin: .5rem 0 0; min-height: 1.5em; font-weight: 700; color: var(--ok); }
.share-done:empty { margin: 0; min-height: 0; }
.contact-info .share { margin-top: 0; }
.news-article .share { margin-top: 2.5rem; }
.page-series .share { margin-top: 2rem; max-width: 640px; }

/* 所有單欄格線：欄寬不被內容撐開（避免手機出現左右捲動） */
.service-split, .feature, .media-news, .contact-grid, .contact-info,
.product-detail, .news-layout, .footer-grid, .promise-in { grid-template-columns: minmax(0, 1fr); }
.service-split > *, .feature > *, .media-news > *, .contact-grid > *, .contact-info > *,
.product-detail > *, .news-layout > *, .footer-grid > *, .promise-in > * { min-width: 0; }
@media (min-width: 820px) {
    .service-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .promise-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
@media (min-width: 960px) {
    .media-news { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .product-detail { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .news-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ---------------- 照片載入 ---------------- */
.product-img { background: linear-gradient(110deg, #F4F4F4 30%, #FAFAFA 50%, #F4F4F4 70%); background-size: 200% 100%; }
.img-fade .product-img img { opacity: 0; transition: opacity .3s ease; }
.img-fade .product-img img.is-loaded { opacity: 1; }
.product-img:has(img.is-loaded) { background: var(--white); }
@media (prefers-reduced-motion: no-preference) {
    .product-img { animation: shimmer 1.4s linear infinite; }
    .product-img:has(img.is-loaded) { animation: none; }
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- 分享列（不顯示網址） ---------------- */
.share-btns { margin-bottom: 0; }
.share-btns .btn { flex: 1 1 10rem; }
.share-btns .share-line { flex-basis: 100%; }
@media (min-width: 560px) { .share-btns .share-line { flex-basis: 12rem; } }
.share-done:not(:empty) { margin-top: .6rem; }

/* =========================================================
   工業風強化（2026-10 第三版）
   方角、粗黑框、警示斜紋、鉚釘銘牌、鋼板深色首屏
   ========================================================= */
:root {
    --r-sm: 4px;
    --r: 4px;
    --r-lg: 6px;
    --steel: #1A1A1A;
    --steel-2: #262626;
    --hazard: repeating-linear-gradient(-45deg, var(--amber) 0 12px, #1A1A1A 12px 24px);
    --rivet: radial-gradient(circle at 35% 35%, #BDBDBD 0 1.5px, #7A7A7A 2.5px, #3A3A3A 3.5px, transparent 4px);
}

/* 按鈕：方角＋底部壓邊，像機台上的實體按鍵 */
.btn { border-radius: var(--r-sm); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22); letter-spacing: .02em; }
.btn:active { box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25); transform: translateY(1px); }
.btn-ghost { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.chip { border-radius: var(--r-sm); }

/* 區塊標題：下方一段警示斜紋 */
.section-title::after {
    content: ""; display: block; width: 72px; height: 10px; margin-top: .55rem;
    background: var(--hazard); border-radius: 1px;
}
.section-head { align-items: flex-end; }
.section-head .link-more { margin-bottom: .6rem; }

/* ---------- 首屏：深色鋼板＋黃色藍圖格線 ---------- */
.hero {
    background:
        radial-gradient(ellipse at 80% 0%, rgba(242, 176, 0, .10), transparent 55%),
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(242, 176, 0, .07) 47px 48px),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(242, 176, 0, .07) 47px 48px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 6px),
        var(--steel);
    color: #E8E8E8;
    border-bottom: 10px solid transparent;
    border-image: var(--hazard) 10;
}
.hero h1 { color: var(--white); }
.hero-lead { color: #CFCFCF; }
.hero .smart-search-label { color: var(--white); }
.hero .smart-search-label .ico { color: var(--amber); }
.hero .smart-search-box { border-color: var(--amber); }
.hero .smart-search-box:focus-within { border-color: var(--white); box-shadow: 0 0 0 4px rgba(242, 176, 0, .35); }
.hero .assistant { border: 3px solid var(--amber); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }

/* ---------- 服務保證帶：黑底 ---------- */
.promise { background: var(--steel-2); border: 0; color: #DDD; }
.promise-item { border-color: #3A3A3A !important; }
.promise-item strong { color: var(--white); }
.promise-item span { color: #BDBDBD; }
.promise-item > .ico { color: var(--amber); }

/* ---------- 服務項目 ---------- */
.service { border-radius: var(--r-lg); border: 3px solid var(--ink); position: relative; }
.service-fix { border-color: var(--ink); }
.service-fix::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--hazard);
}
.service-buy > .ico, .service-fix > .ico { width: 2.75rem; height: 2.75rem; }

/* ---------- 銘牌（鉚釘金屬板）：規格表、電話卡 ---------- */
.spec, .call-card {
    position: relative;
    background: linear-gradient(180deg, #2A2A2A, #1C1C1C);
    color: #E6E6E6; border: 2px solid #000; border-radius: var(--r-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.spec::before, .call-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        var(--rivet) left 8px top 8px / 10px 10px no-repeat,
        var(--rivet) right 8px top 8px / 10px 10px no-repeat,
        var(--rivet) left 8px bottom 8px / 10px 10px no-repeat,
        var(--rivet) right 8px bottom 8px / 10px 10px no-repeat;
}
.spec { padding: 1.1rem 1.5rem; border-top: 2px solid #000; }
.spec > div { border-bottom: 1px dashed #444; }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--amber); }
.spec .num { color: var(--white); }
.call-card { padding: 1.6rem 1.6rem 1.4rem; }
.call-label { color: #BDBDBD; }

.feature-media { border: 3px solid var(--ink); border-radius: var(--r-lg); padding: 0; overflow: hidden; background: var(--white); }
.feature-img { display: block; aspect-ratio: 4 / 3; padding: 1rem; }
.feature-img img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 產品卡：像機台銘牌 ---------- */
.product-card { border: 2px solid var(--line); border-radius: var(--r); }
.product-card:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--amber); }
.product-cat {
    align-self: flex-start; margin: .75rem .9rem 0; padding: .05rem .5rem;
    background: var(--ink); color: var(--amber); font-size: .78rem; font-weight: 700; border-radius: 2px;
}
.product-name { font-family: var(--font-num); font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; padding-top: .4rem; }
.product-more { border-top: 2px solid var(--line); }
.product-card:hover .product-more { background: var(--amber); color: var(--ink); }

/* ---------- 內頁標題：深色鋼板＋斜紋 ---------- */
.page-head {
    background:
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(242, 176, 0, .07) 47px 48px),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(242, 176, 0, .07) 47px 48px),
        var(--steel);
    color: var(--white); border: 0; padding: 1rem 0 1.25rem;
    border-bottom: 10px solid transparent; border-image: var(--hazard) 10;
}
.page-head .crumbs a { color: #D0D0D0; }
.page-head .crumbs span { color: #777; }
.page-title { color: var(--white); margin-bottom: 0; }

/* ---------- 其他元件 ---------- */
.assistant { border-radius: var(--r-lg); }
.assist-opt { border-radius: var(--r); border-width: 2px; }
.assist-opt:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--amber); background: var(--white); }
.assist-avatar { border-radius: var(--r); }
.assist-step b, .result-count .num { font-family: var(--font-num); }
.seg, .smart-search-box, .field input, .field textarea { border-radius: var(--r); }
.help-band { border: 2px solid var(--ink); border-left: 12px solid var(--amber); border-radius: var(--r); background: var(--white); }
.share { border-radius: var(--r-lg); border-color: var(--ink); }
.news-list { border-top: 3px solid var(--ink); }
.news-list time { color: var(--brand-text); }
.video-frame, .map-frame, .gallery-main { border-radius: var(--r-lg); }
.gallery-main { border: 2px solid var(--ink); }
.gallery-nav { border-radius: var(--r); }
.gallery-thumb { border-radius: var(--r-sm); }
.status-icon { border-radius: var(--r-lg); }
.empty-state { border-radius: var(--r-lg); }

/* 頁尾上緣斜紋 */
.site-footer { position: relative; padding-top: calc(3rem + 10px); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--hazard); }
.footer-brand { font-size: 1.4rem; }

/* 手機底部列：黑底，像控制面板 */
.action-bar { background: var(--steel); border-top: 4px solid var(--amber); }
.action-bar a { color: var(--white); border-right-color: #333; }
.action-bar .action-line .ico { color: #3BD47A; }
.action-bar a:not(.action-call) .ico { color: var(--amber); }
.action-bar .action-line .ico { color: #3BD47A; }

/* ---------- 照片讀不到時：灰底＋圖示，不出現破圖 ---------- */
.img-missing { visibility: hidden; }
.product-img:empty, .has-missing { position: relative; background: #EFEFEF repeating-linear-gradient(-45deg, transparent 0 10px, rgba(0, 0, 0, .025) 10px 20px) !important; animation: none !important; }
.product-img:empty::after, .has-missing::after {
    content: "照片準備中"; position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    color: #8C8C8C; font-size: .85rem; font-weight: 700;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4a2 2 0 0 0 1-1.7z'/><path d='M3.3 7L12 12l8.7-5M12 22V12'/></svg>") center calc(50% - .9rem) / 2.5rem no-repeat;
    padding-top: 2.6rem;
}
.gallery-main.has-missing .gallery-slide { display: none; }
.gallery-thumb.has-missing::after { content: ""; padding: 0; background-size: 1.5rem; }
.feature-img.has-missing { min-height: 260px; }
.suggest .img-missing { visibility: hidden; }
.hero .assistant { color: var(--ink); }
/* 跳到區塊時，不被固定的頁首擋住標題 */
section[id], #main { scroll-margin-top: 6rem; }

/* =========================================================
   產品頁 v2：主要規格銘牌、規格表、產品特色
   ========================================================= */

/* 主要規格：鉚釘銘牌，2×2 大字 */
.key-specs {
    position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 .6rem; padding: .9rem 1rem; gap: 0;
    background: linear-gradient(180deg, #2A2A2A, #1C1C1C); border: 2px solid #000; border-radius: var(--r-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.key-specs::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        var(--rivet) left 6px top 6px / 10px 10px no-repeat,
        var(--rivet) right 6px top 6px / 10px 10px no-repeat,
        var(--rivet) left 6px bottom 6px / 10px 10px no-repeat,
        var(--rivet) right 6px bottom 6px / 10px 10px no-repeat;
}
.key-specs > div { padding: .55rem .75rem; border-bottom: 1px dashed #444; }
.key-specs > div:nth-child(odd) { border-right: 1px dashed #444; }
.key-specs > div:nth-last-child(-n+2):nth-child(odd),
.key-specs > div:last-child { border-bottom: 0; }
.key-specs dt { color: var(--amber); font-size: .85rem; font-weight: 700; }
.key-specs dd { margin: 0; color: var(--white); line-height: 1.2; }
.key-specs .num { font-size: 1.7rem; }
.key-specs .unit { color: #BDBDBD; font-size: .85rem; font-weight: 700; margin-left: .15rem; }
.link-specs { margin-bottom: .75rem; font-size: .95rem; }
.product-title { margin-bottom: 1rem; }

/* 產品特色＋規格表：桌機左右兩欄，規格表跟著捲動 */
.desc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.desc-grid > * { min-width: 0; }
@media (min-width: 960px) {
    .desc-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; }
    .desc-grid-single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
    .desc-specs { position: sticky; top: 6.5rem; }
}

/* 規格表：重新排版，字放大 */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 3px solid var(--ink); margin-bottom: 1rem; }
.spec-table caption {
    caption-side: top; text-align: left; padding: .6rem 1rem;
    background: var(--ink); color: var(--amber); font-family: var(--font-num); font-size: 1.15rem; font-weight: 700; letter-spacing: .03em;
}
.spec-table th, .spec-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.spec-table tr:nth-child(even) { background: #FAFAFA; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 45%; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.spec-table .num { font-size: 1.25rem; color: var(--ink); }
.spec-table .unit { color: var(--ink-2); font-size: .85rem; font-weight: 700; }

/* 後台編輯器內容：去掉固定字級、字型，保留重點標示 */
.desc-features { max-width: none; }
.prose span, .prose font, .prose p, .prose div, .prose li { font-size: inherit !important; font-family: inherit !important; line-height: inherit !important; }
.prose p { margin: 0 0 .55em; }
.prose span[style*="background"] { background: var(--amber-soft) !important; box-shadow: inset 0 -.45em 0 rgba(242, 176, 0, .55); color: var(--ink) !important; padding: 0 .1em; }
/* 「●」項目符號改成 CIS 紅色方塊 */
.desc-features .dot {
    display: inline-block; width: .55em; height: .55em; margin-right: .55em; vertical-align: .12em;
    background: var(--brand); border-radius: 1px; box-shadow: 2px 2px 0 var(--amber);
}
/* 讀不出規格列時的原始表格 */
.prose-table table { display: table; width: 100% !important; border: 3px solid var(--ink); background: var(--white); }
.prose-table td, .prose-table th { font-size: 1rem !important; color: var(--ink) !important; background: none !important; padding: .6rem .8rem !important; width: auto !important; height: auto !important; }
.prose-table tr:nth-child(even) td { background: #FAFAFA !important; }
@media (max-width: 480px) {
    .key-specs { padding: .75rem .6rem; }
    .key-specs > div { padding: .5rem .6rem; }
    .key-specs .num { font-size: 1.4rem; }
    .key-specs dd { white-space: nowrap; }
}

/* 搜尋框文字：不繼承深色首屏的淺色字（修正輸入文字看不見） */
.smart-search-box input { color: var(--ink); caret-color: var(--brand); }
.smart-search-box input::placeholder { color: #6E6E6E; opacity: 1; }
.hero .suggest, .page-head .suggest { color: var(--ink); }

/* ---------------- 常見問題 ---------------- */
.faq-in { max-width: 920px; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); }
.faq-item[open] { box-shadow: 6px 6px 0 var(--amber); }
.faq-item summary {
    display: flex; align-items: center; gap: .9rem; min-height: 3.75rem; padding: .75rem 1rem;
    cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
    display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
    background: var(--ink); color: var(--amber); border-radius: var(--r-sm);
    font-family: var(--font-num); font-size: 1.2rem; font-weight: 700;
}
.faq-text { flex: 1; }
.faq-arrow { flex: none; transition: transform .2s; color: var(--brand); }
.faq-item[open] .faq-arrow { transform: rotate(90deg); }
.faq-a { padding: 0 1rem 1rem calc(1rem + 2.25rem + .9rem); }
.faq-a p { margin: 0; color: var(--ink-soft); }
@media (max-width: 480px) { .faq-a { padding-left: 1rem; } }
.footer-addr { font-style: normal; }
.smart-search-box input::-webkit-search-cancel-button { filter: grayscale(1) brightness(.4); cursor: pointer; }
