/* ISODIARY ISO 9001:2026 線上檢核表 — 樣式 */
*,*::before,*::after{box-sizing:border-box}
html{font-size:17px;scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;color:#1a2b3c;background:#f5f8fc;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0 0 .4em;line-height:1.3;color:#0A2540}
p{margin:0 0 .6em}
i{font-style:normal;color:#e11d48}
.container{max-width:1180px;margin:0 auto;padding:0 24px}
.container.narrow{max-width:860px}

/* Nav */
.nav{position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid #e4eaf2;box-shadow:0 1px 6px rgba(10,37,64,.06)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;color:#0A2540}
.logo-img{height:22px;width:auto}
.logo small{font-size:.72rem;font-weight:500;color:#6b7b8d}
.nav-cta{display:flex;gap:10px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 20px;border-radius:10px;font-size:.9rem;font-weight:700;cursor:pointer;border:2px solid transparent;transition:.18s;white-space:nowrap;font-family:inherit}
.btn-primary{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.btn-primary:hover{background:#1e40af;border-color:#1e40af;transform:translateY(-1px)}
.btn-line{background:#fff;color:#1d4ed8;border-color:#c7d7f0}
.btn-line:hover{background:#eff6ff}
.btn-ghost{background:transparent;color:#546b85;border-color:#d5dfeb}
.btn-ghost:hover{background:#eef3f9}
.btn-lg{padding:14px 30px;font-size:1rem;border-radius:12px}
.btn[disabled]{opacity:.55;cursor:not-allowed;transform:none}

/* Stepper */
.stepper{background:#fff;border-bottom:1px solid #e4eaf2;position:sticky;top:64px;z-index:50}
.stepper-inner{display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 24px}
.step{display:flex;align-items:center;gap:9px;color:#8a9aab;font-size:.84rem;font-weight:600}
.step .dot{width:28px;height:28px;border-radius:50%;background:#e8eef5;color:#7b8b9d;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.82rem;transition:.25s}
.step.active{color:#1d4ed8}
.step.active .dot{background:#1d4ed8;color:#fff;box-shadow:0 0 0 4px #dbe6fb}
.step.done{color:#15803d}
.step.done .dot{background:#15803d;color:#fff}
.step-line{flex:1;max-width:90px;height:2px;background:#e4eaf2}
.progress-track{height:3px;background:#eef2f7}
.progress-bar{height:100%;background:linear-gradient(90deg,#1d4ed8,#38bdf8);width:0;transition:width .35s ease}

/* Panels */
.panel{padding:34px 0 60px;animation:fade .35s ease}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.panel-head{margin-bottom:22px}
.panel-head.compact h1{font-size:1.7rem}
.eyebrow{display:inline-block;font-size:.76rem;font-weight:700;letter-spacing:.08em;color:#1d4ed8;background:#e8f0fe;padding:4px 12px;border-radius:999px;margin-bottom:10px}
.lead{color:#42536a;font-size:1rem}
.qprog{margin-top:8px;color:#42536a;font-weight:600}
.q-hint{color:#b45309}

/* Cards */
.card{background:#fff;border:1px solid #e4eaf2;border-radius:16px;padding:24px;margin-bottom:20px;box-shadow:0 2px 10px rgba(10,37,64,.04)}
.card-title{font-size:1.05rem;margin-bottom:14px}
.sub-title{font-size:.98rem;margin:22px 0 4px}
.hint{color:#6b7b8d;font-size:.85rem;margin-bottom:12px}

/* Fields */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#2d4058;font-size:.86rem}
.field span{display:block}
.field small{font-weight:500;color:#8894a4;font-size:.76rem}
.field input,.field select,.field textarea{font-family:inherit;font-size:.95rem;padding:11px 13px;border:1.5px solid #d5dfeb;border-radius:10px;background:#fbfdff;color:#1a2b3c;transition:.15s;width:100%}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:#1d4ed8;background:#fff;box-shadow:0 0 0 3px #e0ebff}
.field input.err,.field select.err,.field textarea.err{border-color:#e11d48;box-shadow:0 0 0 3px #ffe4ea}
.field textarea{resize:vertical;line-height:1.6}

/* Company type cards */
.type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.type-card{border:2px solid #e4eaf2;border-radius:14px;padding:16px;cursor:pointer;transition:.18s;background:#fbfdff}
.type-card:hover{border-color:#b9cdf0;background:#f4f8ff}
.type-card.sel{border-color:#1d4ed8;background:#eff5ff;box-shadow:0 4px 16px rgba(29,78,216,.14)}
.type-card .tname{font-weight:700;color:#0A2540;font-size:.95rem;margin-bottom:4px}
.type-card .tdesc{font-size:.78rem;color:#6b7b8d;line-height:1.5}

/* Check grids */
.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.check-item{display:flex;gap:10px;align-items:flex-start;border:1.5px solid #e4eaf2;border-radius:11px;padding:12px 14px;cursor:pointer;transition:.15s;background:#fbfdff}
.check-item:hover{border-color:#b9cdf0}
.check-item.sel{border-color:#1d4ed8;background:#eff5ff}
.check-item input{margin-top:4px;width:17px;height:17px;accent-color:#1d4ed8;flex-shrink:0}
.check-item .cname{font-weight:600;font-size:.88rem;color:#22354b}
.check-item .csup{font-size:.75rem;color:#7b8b9d;margin-top:2px}
.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.help-grid .check-item{flex-direction:column;gap:4px}
.help-grid .check-item .csup{margin:0}

.consent{display:flex;gap:10px;align-items:flex-start;font-size:.86rem;color:#42536a;margin-top:16px;line-height:1.55}
.consent input{margin-top:4px;width:17px;height:17px;accent-color:#1d4ed8}
.consent a{color:#1d4ed8;text-decoration:underline}
.hp{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}

.panel-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:8px}
.foot-btns{display:flex;gap:12px}
.form-msg{color:#e11d48;font-weight:600;font-size:.88rem;margin:0}

/* Quiz */
.theme-block{margin-bottom:26px}
.theme-head{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding-bottom:8px;border-bottom:2px solid #e4eaf2}
.theme-head h3{margin:0;font-size:1.12rem}
.theme-count{font-size:.78rem;color:#7b8b9d;font-weight:600}
.qcard{background:#fff;border:1px solid #e4eaf2;border-radius:14px;padding:18px 20px;margin-bottom:14px;box-shadow:0 1px 6px rgba(10,37,64,.04);transition:.2s}
.qcard.answered{border-left:4px solid #15803d}
.qcard.answered-warn{border-left:4px solid #f59e0b}
.qcard.answered-bad{border-left:4px solid #e11d48}
.qhead{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-bottom:8px}
.qno{font-weight:800;color:#1d4ed8;font-size:.95rem}
.qclause{font-size:.78rem;font-weight:700;color:#42536a;background:#eef3f9;padding:2px 9px;border-radius:6px}
.badge{font-size:.72rem;font-weight:700;padding:2px 9px;border-radius:999px}
.badge.new{background:#fee2e2;color:#b91c1c}
.badge.chg{background:#fef3c7;color:#b45309}
.badge.pre{background:#dbeafe;color:#1d4ed8}
.badge.cont{background:#e7edf3;color:#5b6b7d}
.qstar{color:#f59e0b;font-size:.8rem;font-weight:700}
.qtitle{font-size:1rem;font-weight:700;color:#0A2540;margin-bottom:6px}
.qprobe{font-size:.9rem;color:#42536a;background:#f7fafd;border-left:3px solid #bcd2f0;padding:8px 12px;border-radius:0 8px 8px 0;white-space:pre-line;margin-bottom:10px}
details.qmore{margin:8px 0 12px}
details.qmore>summary{cursor:pointer;font-size:.84rem;font-weight:700;color:#1d4ed8;padding:4px 0;list-style:none}
details.qmore>summary::-webkit-details-marker{display:none}
details.qmore>summary:before{content:"▸ ";}
details.qmore[open]>summary:before{content:"▾ ";}
.qmore-body{font-size:.87rem;color:#4a5b70;background:#fbfdff;border:1px dashed #d5dfeb;border-radius:10px;padding:12px 14px;margin-top:6px;white-space:pre-line}
.qmore-body b{color:#22354b}
.ans-row{display:flex;gap:8px;flex-wrap:wrap}
.ans-btn{border:1.5px solid #d5dfeb;background:#fff;border-radius:9px;padding:8px 18px;font-weight:700;font-size:.88rem;color:#546b85;cursor:pointer;transition:.15s;font-family:inherit}
.ans-btn:hover{border-color:#9bb8e4;background:#f4f8ff}
.ans-btn.sel[data-v="是"]{background:#15803d;border-color:#15803d;color:#fff}
.ans-btn.sel[data-v="部分"]{background:#f59e0b;border-color:#f59e0b;color:#fff}
.ans-btn.sel[data-v="否"]{background:#e11d48;border-color:#e11d48;color:#fff}
.ans-btn.sel[data-v="不適用"]{background:#64748b;border-color:#64748b;color:#fff}
.feedback{margin-top:10px;font-size:.86rem;padding:10px 13px;border-radius:9px;white-space:pre-line;display:none}
.feedback.show{display:block}
.feedback.ok{background:#f0fdf4;color:#166534;border-left:3px solid #15803d}
.feedback.warn{background:#fffbeb;color:#92400e;border-left:3px solid #f59e0b}
.feedback.bad{background:#fef2f2;color:#991b1b;border-left:3px solid #e11d48}
.feedback.na{background:#f1f5f9;color:#475569;border-left:3px solid #94a3b8}

/* Report */
.report-top{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:18px}
.report-actions{display:flex;gap:10px}
.send-status{background:#eff6ff;border:1px solid #c7d7f0;border-radius:12px;padding:12px 16px;margin-bottom:18px;font-weight:600;color:#1e40af;font-size:.9rem}
.send-status.ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.send-status.warn{background:#fffbeb;border-color:#fde68a;color:#92400e}

.gauge-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}
.kpi{background:#fff;border:1px solid #e4eaf2;border-radius:16px;padding:22px;text-align:center;box-shadow:0 2px 10px rgba(10,37,64,.04)}
.gauge{--p:0;width:150px;height:150px;border-radius:50%;margin:0 auto 12px;background:conic-gradient(var(--gc,#1d4ed8) calc(var(--p)*1%),#e8eef5 0);display:flex;align-items:center;justify-content:center;position:relative;transition:.6s}
.gauge:before{content:"";position:absolute;inset:11px;background:#fff;border-radius:50%}
.gauge .gv{position:relative;font-size:1.9rem;font-weight:800;color:#0A2540}
.gauge .gv small{font-size:1rem;font-weight:700}
.kpi .klabel{font-weight:700;color:#22354b}
.kpi .kdesc{font-size:.8rem;color:#7b8b9d;margin-top:4px}
.kpi .kbig{font-size:2rem;font-weight:800;color:#0A2540}
.kpi.kpi-mini{padding:20px}
.verdict{font-weight:800;font-size:1.5rem;color:#1d4ed8}

.rpt-card{background:#fff;border:1px solid #e4eaf2;border-radius:16px;padding:24px;margin-bottom:18px;box-shadow:0 2px 10px rgba(10,37,64,.04)}
.rpt-card h3{font-size:1.08rem;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.rpt-card h3 .ic{font-size:1.2rem}
.summary-text{color:#33475e;line-height:1.75}
.summary-text .hl{font-weight:700;color:#1d4ed8}

.tbl{width:100%;border-collapse:collapse;font-size:.88rem}
.tbl th,.tbl td{padding:10px 12px;text-align:left;border-bottom:1px solid #edf2f8;vertical-align:top}
.tbl th{background:#f7fafd;color:#42536a;font-weight:700;font-size:.82rem}
.tbl tr:last-child td{border-bottom:none}
.bar-cell{min-width:150px}
.bar{height:11px;border-radius:6px;background:#e8eef5;overflow:hidden;position:relative}
.bar>span{display:block;height:100%;border-radius:6px}
.bar-val{font-size:.78rem;font-weight:700;color:#42536a;margin-top:3px;display:block}
.pill{display:inline-block;font-size:.76rem;font-weight:700;padding:2px 10px;border-radius:999px}
.pill.good{background:#dcfce7;color:#166534}
.pill.mid{background:#fef9c3;color:#854d0e}
.pill.weak{background:#ffedd5;color:#9a3412}
.pill.bad{background:#fee2e2;color:#991b1b}
.pill.na{background:#e9eef4;color:#5b6b7d}

.top5{counter-reset:t;display:flex;flex-direction:column;gap:12px}
.top-item{display:flex;gap:14px;border:1px solid #e4eaf2;border-radius:12px;padding:14px 16px;background:#fbfdff}
.top-item .rank{flex-shrink:0;width:30px;height:30px;border-radius:50%;background:#1d4ed8;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.9rem}
.top-item .tmain{flex:1}
.top-item .ttitle{font-weight:700;color:#0A2540;margin-bottom:3px}
.top-item .tmeta{font-size:.78rem;color:#7b8b9d;margin-bottom:6px}
.top-item .tadv{font-size:.85rem;color:#4a5b70;white-space:pre-line}

.evidence-list{display:flex;flex-direction:column;gap:8px}
.ev{display:flex;gap:12px;padding:11px 14px;border-radius:11px;background:#f7fafd;border:1px solid #e8eef5}
.ev.on{background:#f0fdf4;border-color:#bbf7d0}
.ev .evm{font-weight:700;color:#22354b;font-size:.88rem;flex:1}
.ev .evt{font-size:.78rem;color:#7b8b9d;margin-top:2px}
.ev .evs{font-size:.76rem;color:#15803d;font-weight:700;white-space:nowrap}

.timeline{border-left:2px solid #d5dfeb;margin-left:8px;padding-left:0}
.tl-item{position:relative;padding:0 0 16px 22px}
.tl-item:before{content:"";position:absolute;left:-7px;top:5px;width:12px;height:12px;border-radius:50%;background:#1d4ed8;border:2px solid #fff;box-shadow:0 0 0 2px #d5dfeb}
.tl-item .tld{font-weight:800;color:#1d4ed8;font-size:.85rem}
.tl-item .tlt{font-size:.9rem;color:#33475e}

.tiny{font-size:.74rem;color:#8894a4}
.site-foot{background:#0A2540;color:#c7d3e0;padding:30px 0;font-size:.82rem}
.site-foot .tiny{color:#7e8fa3;margin-top:8px}
.privacy-block{margin-bottom:40px}
.privacy-block summary{cursor:pointer;font-weight:700;color:#42536a;font-size:.88rem}
.privacy-block ul{font-size:.82rem;color:#546b85;line-height:1.7;padding-left:18px;margin-top:10px}

/* PDF mode */
.pdf-mode .no-pdf{display:none!important}
.pdf-doc{background:#fff;padding:0}

@media(max-width:900px){
  .grid-2,.check-grid,.help-grid,.type-grid{grid-template-columns:1fr}
  .gauge-row{grid-template-columns:1fr}
  .stepper-inner{gap:4px}
  .step .lbl{display:none}
  .report-top{flex-direction:column;align-items:flex-start}
}
@media print{
  .nav,.stepper,.panel-foot,.report-actions,.send-status,.privacy-block,.site-foot{display:none!important}
  body{background:#fff}
  .panel[data-panel="4"]{padding:0}
}

/* ===== 說明卡 / 分段導覽 ===== */
.intro-note{background:linear-gradient(135deg,#eff6ff,#f7fbff);border:1px solid #c7d7f0;border-left:5px solid #1d4ed8;border-radius:14px;padding:20px 24px;margin-bottom:20px}
.intro-note h3{font-size:1.05rem;margin:0 0 10px;color:#0A2540}
.intro-note ul{margin:0 0 10px;padding-left:20px;display:flex;flex-direction:column;gap:7px}
.intro-note li{font-size:.9rem;color:#33475e;line-height:1.6}
.intro-note li b{color:#1d4ed8}
.intro-cta{margin:0;font-size:.88rem;font-weight:700;color:#0A2540}

.secnav{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.secnav .chip{display:flex;align-items:center;gap:6px;padding:6px 13px;border-radius:999px;border:1.5px solid #d5dfeb;background:#fff;font-size:.8rem;font-weight:600;color:#546b85;cursor:pointer;transition:.15s;font-family:inherit}
.secnav .chip:hover{border-color:#9bb8e4;background:#f4f8ff}
.secnav .chip .n{display:inline-flex;width:18px;height:18px;border-radius:50%;background:#e8eef5;color:#64748b;font-size:.68rem;align-items:center;justify-content:center;font-weight:700}
.secnav .chip.cur{border-color:#1d4ed8;background:#1d4ed8;color:#fff}
.secnav .chip.cur .n{background:rgba(255,255,255,.25);color:#fff}
.secnav .chip.done{border-color:#86efac;background:#f0fdf4;color:#166534}
.secnav .chip.done .n{background:#15803d;color:#fff}
.secnav .chip.done.cur{border-color:#1d4ed8;background:#1d4ed8;color:#fff}

.part-head{margin-bottom:16px}
.part-head .pt{font-size:1.15rem;font-weight:800;color:#0A2540;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.part-head .pc{font-size:.78rem;font-weight:700;color:#7b8b9d;background:#eef3f9;padding:2px 10px;border-radius:999px}
.part-head .pbar{height:7px;border-radius:5px;background:#e8eef5;overflow:hidden;margin-top:9px}
.part-head .pbar>span{display:block;height:100%;background:linear-gradient(90deg,#1d4ed8,#38bdf8);transition:width .35s}

.autosave-note{font-size:.76rem;color:#15803d;font-weight:600}

/* ===== LINE 優先 CTA / 訂閱卡 ===== */
.btn-line-green{background:#06C755;color:#fff;border-color:#06C755}
.btn-line-green:hover{background:#05b34c;border-color:#05b34c;transform:translateY(-1px)}
.line-cta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:linear-gradient(135deg,#f0fdf4,#ecfdf5);border:1px solid #bbf7d0;border-left:5px solid #06C755;border-radius:14px;padding:18px 22px;margin:18px 0 10px}
.line-cta .lc-ic{font-size:2rem;line-height:1}
.line-cta .lc-txt{flex:1;min-width:240px}
.line-cta .lc-txt b{display:block;color:#0A2540;font-size:1rem;margin-bottom:4px}
.line-cta .lc-txt span{color:#42536a;font-size:.87rem;line-height:1.6}
.line-alt{font-size:.85rem;color:#546b85;margin:0 0 6px}
.line-alt a{color:#1d4ed8;font-weight:700}
.subscribe-card{background:linear-gradient(135deg,#fffdf5,#fffaf0);border-color:#fde68a}
.subscribe-card .card-title{color:#92400e}

/* ===== 題目三欄表格（問題／新版重點解讀／稽核員會確認） ===== */
.qtable{margin-top:8px}
.qtr{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:16px;padding:14px;border-top:1px solid #e8eef5}
.qtr-head{background:#f4f8fc;border:none;border-radius:10px;font-size:.8rem;font-weight:800;color:#42536a;padding:10px 14px;letter-spacing:.02em}
.qtr.answered{background:#f7fdf9}
.qtr.answered-warn{background:#fffdf5}
.qtr.answered-bad{background:#fffafa}
.qtd{min-width:0}
.qcol-b{font-size:.84rem;color:#4a5b70;line-height:1.62}
.qans-read{margin:7px 0 9px}
@media(max-width:1000px){
  .qtr{grid-template-columns:1fr;gap:10px;padding:13px 12px}
  .qtr-head{display:none}
  .qtd[data-h]:before{content:attr(data-h);display:block;font-size:.75rem;font-weight:800;color:#1d4ed8;margin:0 0 5px}
  .qtd:not(.qmain){border-top:1px dashed #e2eaf3;padding-top:9px}
}

/* ===== v3 精簡題目卡 ===== */
.qcard{border:1px solid #e4eaf2;border-radius:12px;padding:14px 16px;margin:0 0 10px;background:#fff;transition:border-color .15s,background .15s}
.qcard .qhead{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.qcard .qno{font-size:.8rem;font-weight:800;color:#1d4ed8;background:#eef4ff;border-radius:6px;padding:2px 7px}
.qcard .qclause{font-size:.75rem;color:#8a9aaa}
.qcard .qtitle{font-size:1rem;font-weight:700;color:#0A2540;line-height:1.55;margin-bottom:3px}
.qcard .qprobe{font-size:.87rem;color:#5B6B7B;background:none;border:0;padding:0;margin-bottom:10px;line-height:1.6}
.qcard.answered{border-color:#cfe0f5;background:#fbfdff}
.qcard .feedback{margin-top:10px}
