@charset "utf-8";
/* ==========================================================================
   apple.css — 站長工具箱 · 淺白蘋果科技風設計系統
   --------------------------------------------------------------------------
   設計取向：精煉極簡（refined minimalism）
     · 淺白底 #FBFBFD，純白卡片，髮絲級描邊
     · Apple 藍 #0071E3 作為唯一強調色，科技青 #32ADE6 作漸變副色
     · 毛玻璃吸頂導航（backdrop-filter）
     · 大圓角（18/24px）、雙層柔和投影、剋制的負字距
   載入順序：bootstrap.min.css → tool.css → apple.css（本檔案最後載入，故可覆蓋前兩者）
   注意：本檔案為「覆蓋層」，不改動 163 個工具頁的 DOM，僅靠選擇器權重取勝。
   ========================================================================== */

/* 頭部導航（吸頂毛玻璃 + 下拉）樣式的唯一來源：主站第 4、5 節已整體遷入該檔案，
   兩個子應用只載入它。顏色都寫成 var(--at-x, 兜底)，故主站仍跟隨本檔案的 :root token。
   ?v= 是手工版本號：改了 site-nav.css 就把它加一，否則回訪使用者拿舊快取看到的是舊佈局。 */
@import url("site-nav.css?v=3");

/* --------------------------------------------------------------------------
   1. 設計令牌
   -------------------------------------------------------------------------- */
:root {
    /* 底色 / 面 */
    --at-bg: #fbfbfd;
    --at-bg-alt: #f5f5f7;
    --at-surface: #ffffff;
    --at-surface-2: #f5f5f7;
    --at-glass: rgba(255, 255, 255, .72);
    --at-glass-solid: rgba(251, 251, 253, .86);

    /* 文字 */
    --at-text: #1d1d1f;
    --at-text-2: #6e6e73;
    --at-text-3: #86868b;
    --at-text-4: #aeaeb2;

    /* 線 */
    --at-line: rgba(0, 0, 0, .08);
    --at-line-soft: rgba(0, 0, 0, .055);
    --at-line-strong: rgba(0, 0, 0, .14);

    /* 強調色 */
    --at-accent: #0071e3;
    --at-accent-hi: #0077ed;
    --at-accent-lo: #0062c4;
    --at-cyan: #32ade6;
    --at-accent-soft: rgba(0, 113, 227, .08);
    --at-accent-ring: rgba(0, 113, 227, .28);
    --at-grad: linear-gradient(135deg, #0071e3 0%, #2f8ff5 45%, #32ade6 100%);

    /* 語義色（低飽和，貼合蘋果調性） */
    --at-green: #248a3d;
    --at-green-soft: rgba(36, 138, 61, .09);
    --at-orange: #c93400;
    --at-red: #d70015;
    --at-red-soft: rgba(215, 0, 21, .08);
    --at-teal: #0f7b8a;

    /* 圓角 */
    --at-r-xs: 8px;
    --at-r-sm: 10px;
    --at-r: 14px;
    --at-r-md: 18px;
    --at-r-lg: 24px;
    --at-r-pill: 980px;

    /* 投影：雙層，近距離髮絲 + 遠距離擴散 */
    --at-sh-1: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .045);
    --at-sh-2: 0 1px 3px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .07);
    --at-sh-3: 0 2px 6px rgba(0, 0, 0, .06), 0 22px 60px rgba(0, 0, 0, .11);
    --at-sh-nav: 0 1px 0 rgba(0, 0, 0, .05), 0 6px 24px rgba(0, 0, 0, .045);

    /* 排版 */
    --at-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro SC",
        "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB",
        "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
        system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --at-font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono",
        Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

    /* 動效 */
    --at-ease: cubic-bezier(.32, .72, 0, 1);
    --at-ease-out: cubic-bezier(.25, .8, .25, 1);
    --at-dur: .42s;

    /* 佈局 */
    --at-nav-h: 58px;
    --at-maxw: 1200px;
}

/* --------------------------------------------------------------------------
   2. 基礎與排版
   -------------------------------------------------------------------------- */
html {
    /* 桌面檔頭部是「品牌行 + 分類行」兩行，留白取 --at-nav-total（抽屜檔該 token 自動收成一行） */
    padding-top: var(--at-nav-total);
    /* 吸頂導航會蓋住 #hot / #guide 這類錨點的標題 */
    scroll-padding-top: calc(var(--at-nav-total) + 14px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--at-font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--at-text);
    background-color: var(--at-bg);
    /* 極淡的兩團色霧，製造縱深，不引入噪點 */
    background-image:
        radial-gradient(900px 420px at 12% -6%, rgba(0, 113, 227, .055), transparent 62%),
        radial-gradient(760px 380px at 92% 2%, rgba(50, 173, 230, .05), transparent 60%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -.005em;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--at-font);
    color: var(--at-text);
    letter-spacing: -.022em;
    font-weight: 700;
    margin-top: 0;
}

h1 { font-size: 40px; line-height: 1.12; }
h2 { font-size: 26px; line-height: 1.22; }
h3 { font-size: 19px; line-height: 1.3; }

/* 工具頁裡大量使用 <h4> 作小節標題（原為綠色） */
h4 {
    font-size: 17px;
    font-weight: 650;
    color: var(--at-text);
    line-height: 1.5;
    margin: 0 0 14px;
    padding-left: 0;
    letter-spacing: -.015em;
}

p { line-height: 1.72; color: var(--at-text-2); margin: 0 0 12px; }

a {
    color: var(--at-accent);
    text-decoration: none;
    transition: color .18s var(--at-ease-out), opacity .18s var(--at-ease-out);
}
a:hover, a:focus { color: var(--at-accent-hi); text-decoration: none; }

::selection { background: rgba(0, 113, 227, .16); color: var(--at-text); }

/* 焦點可見性（鍵盤可達） */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--at-accent-ring);
    outline-offset: 2px;
    border-radius: 6px;
}

/* 細捲軸 */
* { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .22) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .18);
    border-radius: 99px;
    border: 3px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .3); background-clip: content-box; }

/* --------------------------------------------------------------------------
   3. 柵格 / 佈局
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--at-maxw);
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}
.container::after, .row::after { content: ""; display: table; clear: both; }

@media (min-width: 768px) {
    .container { padding-left: 28px; padding-right: 28px; }
}

/* 頭部容器與全站正文共用同一檔側邊距：site-nav.css 的 .container.jz 讀這個變數，
   子應用沒有主站容器時用 24px 兜底，主站這裡保持 22/28px，與遷移前一致。 */
:root { --at-nav-pad: 22px; }
@media (min-width: 768px) {
    :root { --at-nav-pad: 28px; }
}

/* 工具頁主內容區：白卡 */
.col10main {
    background: var(--at-surface);
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r-lg);
    box-shadow: var(--at-sh-1);
    padding: 26px 26px 30px;
    margin-top: 22px;
    margin-bottom: 30px;
    min-height: 420px;
    max-height: none;
    height: auto;
}

@media (max-width: 767px) {
    .col10main { padding: 18px 15px 22px; border-radius: var(--at-r-md); margin-top: 14px; }
}

/* 空的廣告佔位塊不再露出灰色邊框 */
.centertop:empty, .mdtop4:empty, .mdban4:empty, .centerbottom:empty,
.mdtop4, .mdban4 { display: none; }
.centertop, .centerbottom, .centercen { border: 0; height: auto; max-height: none; }

/* 清掉舊主題殘留的硬邊框 */
.boddiv, .divtblist, .bs-docs-example, .bs-docs-demoexample {
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r);
    background: var(--at-surface);
}

/* --------------------------------------------------------------------------
   6. 工具頁頂部：分組標籤（.nav-tabs.hbflag）
   -------------------------------------------------------------------------- */
.nav.nav-tabs.hbflag,
.nav-tabs.hbflag {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0 0 22px;
    padding: 5px;
    border: 0;
    border-radius: var(--at-r-pill);
    background: var(--at-surface-2);
    background-image: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-tabs.hbflag::-webkit-scrollbar { display: none; }
.nav-tabs.hbflag > li {
    flex: 0 0 auto;
    float: none;
    margin: 0;
    list-style: none;
}
.nav-tabs.hbflag > li > a,
.nav-tabs.hbflag > li > a:focus {
    display: block;
    margin: 0;
    padding: 7px 16px;
    border: 0 !important;
    border-radius: var(--at-r-pill);
    background: transparent;
    background-image: none;
    color: var(--at-text-2);
    font-size: 13.5px;
    font-weight: 550;
    line-height: 1.5;
    white-space: nowrap;
    transition: background .2s var(--at-ease-out), color .2s var(--at-ease-out),
        box-shadow .2s var(--at-ease-out);
}
.nav-tabs.hbflag > li > a:hover {
    background: rgba(0, 0, 0, .05);
    color: var(--at-text);
}
.nav-tabs.hbflag > li.active > a,
.nav-tabs.hbflag > li.active > a:hover,
.nav-tabs.hbflag > li.active > a:focus {
    background: var(--at-surface);
    color: var(--at-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .04);
}
/* 標籤裡的「更多工具」下拉 */
.nav-tabs.hbflag .dropdown-menu {
    top: 100%;
    left: 0;
    transform: translateY(6px);
    opacity: 0;
    visibility: hidden;
    display: block;
    min-width: 220px;
}
.nav-tabs.hbflag > li:hover .dropdown-menu,
.nav-tabs.hbflag > li.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   7. 面板 / 卡片
   -------------------------------------------------------------------------- */
.panel,
.panel.panel-default,
.panel.panel-defaul {
    margin-bottom: 22px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r-md);
    background: var(--at-surface);
    box-shadow: none;
}
.panel > .panel-heading {
    padding: 14px 20px;
    border-bottom: 1px solid var(--at-line-soft);
    border-radius: var(--at-r-md) var(--at-r-md) 0 0;
    background: var(--at-surface-2);
    color: var(--at-text);
    font-weight: 600;
    font-size: 14px;
}
.panel > .panel-body { padding: 20px; word-wrap: break-word; }
.panel > .panel-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--at-line-soft);
    border-radius: 0 0 var(--at-r-md) var(--at-r-md);
    background: var(--at-surface-2);
}

/* 工具頁裡常見：<div class="panel"><form>...</form></div> 直接塞內容 */
.panel > form { padding: 20px; margin: 0; }
.panel > form > .form-group:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. 表單控制元件
   -------------------------------------------------------------------------- */
.form-control,
input.form-control,
textarea.form-control,
select.form-control {
    height: auto;
    padding: 11px 14px;
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-sm);
    background-color: var(--at-surface-2);
    color: var(--at-text);
    font-family: var(--at-font);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color .18s var(--at-ease-out), background-color .18s var(--at-ease-out),
        box-shadow .18s var(--at-ease-out);
}
textarea.form-control { min-height: 120px; resize: vertical; padding: 13px 14px; }
.form-control::placeholder { color: var(--at-text-4); }
.form-control:hover { background-color: #f0f0f2; }
.form-control:focus {
    border-color: var(--at-accent);
    background-color: var(--at-surface);
    box-shadow: 0 0 0 4px var(--at-accent-ring);
    outline: none;
}
.form-control[disabled], .form-control[readonly] {
    background: var(--at-surface-2);
    color: var(--at-text-3);
}
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}
.form-group { margin-bottom: 16px; }
.form-horizontal .control-label { padding-top: 12px; font-weight: 550; color: var(--at-text-2); font-size: 14px; }
.help-block { color: var(--at-text-3); font-size: 12.5px; }

/* 輸入框 + 按鈕組（遠端獲取 Json 之類）
   ⚠️ Bootstrap 3 用 display:table / table-cell 排布，這裡整體改為 flex，
   否則 .input-group-btn 的 width:1% 會把按鈕擠成一條豎縫。 */
.input-group {
    display: flex;
    width: 100%;
    border-collapse: separate;
}
.input-group > .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    float: none;
    border-radius: var(--at-r-sm) 0 0 var(--at-r-sm);
}
.input-group-addon,
.input-group-btn {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    width: auto;
    font-size: inherit;
    white-space: nowrap;
    vertical-align: middle;
}
.input-group-btn > .btn,
.input-group > .btn {
    margin: 0 0 0 -1px;
    padding-top: 11px;
    padding-bottom: 11px;
    border-radius: 0 var(--at-r-sm) var(--at-r-sm) 0;
    white-space: nowrap;
}
.input-group-btn:first-child > .btn,
.input-group > .btn:first-child {
    margin: 0 -1px 0 0;
    border-radius: var(--at-r-sm) 0 0 var(--at-r-sm);
}
/* 只有按鈕時（無輸入框）恢復全圓角 */
.input-group > .input-group-btn:only-child > .btn { border-radius: var(--at-r-sm); margin: 0; }

.form-di { display: inline-block; }
.form-dib { display: inline-block; }
.input-encrypt-txt { width: 150px; font-size: 13px; margin: 0 6px; }

/* 複選 / 單選 */
input[type="checkbox"], input[type="radio"] { accent-color: var(--at-accent); }

/* --------------------------------------------------------------------------
   9. 按鈕
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    margin: 2px 3px;
    border: 1px solid transparent;
    border-radius: var(--at-r-pill);
    font-family: var(--at-font);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.5;
    letter-spacing: -.01em;
    text-shadow: none;
    box-shadow: none;
    background-image: none;
    transition: background-color .18s var(--at-ease-out), color .18s var(--at-ease-out),
        border-color .18s var(--at-ease-out), box-shadow .22s var(--at-ease-out),
        transform .14s var(--at-ease-out);
    -webkit-user-select: none;
    user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:focus, .btn:focus-visible { outline: 3px solid var(--at-accent-ring); outline-offset: 2px; }

/* 主按鈕（模板裡最常用 btn-success 作「執行」） */
.btn-success,
.btn-primary {
    color: #fff;
    background-color: var(--at-accent);
    border-color: var(--at-accent);
}
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
    color: #fff;
    background-color: var(--at-accent-hi);
    border-color: var(--at-accent-hi);
    box-shadow: 0 6px 18px rgba(0, 113, 227, .28);
}
.btn-success:active, .btn-primary:active { background-color: var(--at-accent-lo); }

/* 次按鈕 */
.btn-default {
    color: var(--at-text);
    background-color: var(--at-surface);
    border-color: var(--at-line);
}
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active {
    color: var(--at-text);
    background-color: var(--at-surface-2);
    border-color: var(--at-line-strong);
}
.btn-default:active { background-color: #eaeaec; }

/* 資訊按鈕（加密類工具大量使用 btn-info） */
.btn-info {
    color: #fff;
    background-color: var(--at-teal);
    border-color: var(--at-teal);
}
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active {
    color: #fff;
    background-color: #128d9e;
    border-color: #128d9e;
    box-shadow: 0 6px 18px rgba(15, 123, 138, .24);
}

.btn-danger {
    color: #fff;
    background-color: var(--at-red);
    border-color: var(--at-red);
}
.btn-danger:hover, .btn-danger:focus { background-color: #ec1c30; border-color: #ec1c30; }

.btn-warning {
    color: #fff;
    background-color: #b25000;
    border-color: #b25000;
}
.btn-warning:hover, .btn-warning:focus { background-color: var(--at-orange); border-color: var(--at-orange); }

.btn-link { color: var(--at-accent); background: none; border: 0; padding: 6px 8px; }
.btn-link:hover { color: var(--at-accent-hi); background: none; }

/* 尺寸 */
.btn-xs { padding: 4px 12px; font-size: 12px; margin: 2px 2px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; margin-left: 0; margin-right: 0; }

/* 工具頁的「複製」按鈕（原為右上角小方塊） */
.btn-clipboardcode {
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-pill);
    background: rgba(255, 255, 255, .9);
    color: var(--at-text-2);
    font-size: 12px;
    font-weight: 550;
    box-shadow: var(--at-sh-1);
}
.zeroclipboard-is-hover { color: #fff; background: var(--at-accent); border-color: var(--at-accent); }

/* --------------------------------------------------------------------------
   10. 程式碼塊 / 結果區
   -------------------------------------------------------------------------- */
pre {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r);
    background: #f7f7f9;
    color: var(--at-text);
    font-family: var(--at-font-mono);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
    position: relative;
}
pre code,
.code {
    display: block;
    padding: 16px 18px;
    max-height: 520px;
    overflow: auto;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--at-text);
    font-family: var(--at-font-mono);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--at-surface-2);
    color: #b3005e;
    font-family: var(--at-font-mono);
    font-size: .92em;
}
pre code { background: none; color: inherit; padding: 16px 18px; }

/* 帶行號的程式碼區 */
.pre { position: relative; margin-bottom: 18px; border-radius: var(--at-r); border: 1px solid var(--at-line-soft); background: #f7f7f9; overflow: hidden; }
.pre-numbering {
    position: absolute; top: 0; left: 0;
    width: 40px; padding: 16px 8px 16px 0;
    border-right: 1px solid var(--at-line-soft);
    background: #f0f0f3;
    text-align: right;
    color: var(--at-text-4);
    font-family: var(--at-font-mono);
    font-size: 12px;
    line-height: 1.7;
    -webkit-user-select: none;
    user-select: none;
}
.code .has-numbering { margin-left: 42px; }

/* 高亮庫（hightout.js）注入的類做淺色適配 */
.hljs { background: transparent; color: var(--at-text); }
.hljs-keyword, .hljs-selector-tag { color: #9b2393; }
.hljs-string, .hljs-attr { color: #c41a16; }
.hljs-number, .hljs-literal { color: #1c00cf; }
.hljs-comment { color: var(--at-text-4); font-style: italic; }
.hljs-function, .hljs-title { color: #0b4f79; }
.hljs-built_in, .hljs-type { color: #0f68a0; }

/* --------------------------------------------------------------------------
   11. 表格
   -------------------------------------------------------------------------- */
.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
    background: var(--at-surface);
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r);
    overflow: hidden;
}
.table > thead > tr > th {
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid var(--at-line);
    background: var(--at-surface-2);
    color: var(--at-text-2);
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: .02em;
    text-transform: none;
    vertical-align: middle;
    white-space: nowrap;
}
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 10px 14px;
    border: 0;
    border-top: 1px solid var(--at-line-soft);
    line-height: 1.6;
    vertical-align: top;
    color: var(--at-text);
}
.table > tbody > tr:first-child > td { border-top: 0; }
.table > tbody > tr:hover > td { background: rgba(0, 113, 227, .035); }
/* 覆蓋 tool.css 給 #Clientid 表格加的 line-height:2 大行高 */
#Clientid .table > thead > tr > th, #Clientid .table > tbody > tr > td,
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > td {
    border-left: 0;
    border-right: 0;
    line-height: 1.6;
    padding: 10px 14px;
}
.table-bordered { border: 1px solid var(--at-line-soft); }
.table-striped > tbody > tr:nth-of-type(odd) > td { background: rgba(0, 0, 0, .016); }
.table-striped > tbody > tr:nth-of-type(odd):hover > td { background: rgba(0, 113, 227, .045); }
/* 表格裡作為「鍵」的第一列 */
.table > tbody > tr > td:first-child { color: var(--at-text-2); }

/* 大表格（對照表類工具）加個包裹捲軸 */
.table-responsive { border-radius: var(--at-r); }

/* --------------------------------------------------------------------------
   12. 說明塊（.alert.alert-success 作工具簡介）
   -------------------------------------------------------------------------- */
.alert,
.alert.alert-success,
.alert.alert-info {
    position: relative;
    margin: 0 0 20px;
    padding: 18px 20px;
    border: 1px solid var(--at-line-soft);
    border-left: 3px solid var(--at-accent);
    border-radius: var(--at-r);
    background: linear-gradient(180deg, rgba(0, 113, 227, .035), rgba(0, 113, 227, .012));
    color: var(--at-text-2);
    font-size: 13.5px;
    line-height: 1.75;
    box-shadow: none;
}
.alert > h4,
.alert h4 {
    margin: 0 0 8px;
    padding: 0;
    color: var(--at-text);
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.5;
}
.alert p { margin: 0; color: var(--at-text-2); font-size: 13.5px; line-height: 1.75; }
.alert a { color: var(--at-accent); }
.alert h2, .alert h3, .alert h4 { color: var(--at-text); }
.alert h2 { margin: 0 0 8px; font-size: 16.5px; font-weight: 650; line-height: 1.5; }
.alert h3 { margin: 0 0 8px; font-size: 15px; font-weight: 650; }
.alert-dismissible .close { position: absolute; top: 10px; right: 12px; opacity: .4; }
.alert-dismissible .close:hover { opacity: .8; }
.alert-danger { border-left-color: var(--at-red); background: var(--at-red-soft); color: #8b0010; }
.alert-warning { border-left-color: #b25000; background: rgba(178, 80, 0, .055); color: #7a3700; }

/* 輸出/結果面板：不少工具用 .alert-warning 當結果框（如 json 的 #results），
   這裡統一改成中性等寬程式碼面板，避免被誤讀成「報錯」。 */
#results,
#result,
.alert-warning[role="alert"][id] {
    border: 1px solid var(--at-line-soft);
    border-left: 1px solid var(--at-line-soft);
    border-radius: var(--at-r);
    background: #f7f7f9;
    color: var(--at-text);
    font-family: var(--at-font-mono);
    font-size: 13px;
    line-height: 1.75;
    min-height: 48px;
    white-space: pre-wrap;
    word-break: break-word;
}
#results { margin: 0; padding: 14px 16px; }
#results > span { color: var(--at-text-3); font-family: var(--at-font); }
#results:empty::before { content: "結果將顯示在這裡"; color: var(--at-text-4); }

/* --------------------------------------------------------------------------
   13. 摺疊面板（.accordion）
   -------------------------------------------------------------------------- */
.accordion { margin: 0; }
.accordion-group { margin-bottom: 16px; }
.accordion-group:empty { display: none; margin: 0; }
.accordion-inner { padding: 0; border-top: 0; }

/* --------------------------------------------------------------------------
   14. 標籤 / 徽章 / 雜項
   -------------------------------------------------------------------------- */
.badge {
    display: inline-block;
    min-width: 20px;
    padding: 3px 8px;
    border-radius: var(--at-r-pill);
    background: var(--at-accent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.5;
}
.label { padding: .3em .7em; border-radius: var(--at-r-pill); font-weight: 550; font-size: 11.5px; }
.label-success { background: var(--at-green); }
.label-info { background: var(--at-teal); }
.label-danger { background: var(--at-red); }

/* 舊主題的彩色小字：降飽和，避免花哨 */
.hottag, .red, .greentag { font-weight: 550; }
.hottag { color: var(--at-orange); }
.red { color: var(--at-red); }
.greentag { color: var(--at-green); }

/* 廣告位（.homead 等）——保留但收斂為中性膠囊 */
.homead {
    width: auto;
    height: auto;
    margin: 0 0 0 14px;
    padding: 6px 16px;
    border-radius: var(--at-r-pill);
    background: var(--at-surface-2);
    color: var(--at-text-2);
    font-family: var(--at-font);
    font-size: 13px;
    line-height: 1.6;
}
.had-1, .had-2 { float: none; margin-left: 8px; background: none; }

/* 鍵值行（IcpMainInfo / lx_name） */
.IcpMainInfo li {
    border-bottom: 1px solid var(--at-line-soft);
    line-height: 44px;
    font-size: 14px;
    overflow: hidden;
}
.IcpMainInfo li:last-child { border-bottom: 0; }
.IcpMainInfo li span {
    width: 160px;
    padding-right: 12px;
    text-align: right;
    color: var(--at-text-3);
}
.IcpMainInfo li p { color: var(--at-text); padding-top: 10px; }
.lx_name { width: 160px; padding-right: 12px; text-align: right; color: var(--at-text-3); }
.lx_value { color: var(--at-text); }
.mathunit { color: var(--at-accent); font-size: 12px; margin: 0 5px; }

/* 分頁 */
.pagination { display: inline-flex; gap: 4px; margin: 22px 0; padding: 0; }
.pagination > li > a, .pagination > li > span {
    padding: 7px 13px;
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-sm);
    background: var(--at-surface);
    color: var(--at-text-2);
    font-size: 13.5px;
    margin: 0;
}
.pagination > li > a:hover { background: var(--at-surface-2); color: var(--at-accent); border-color: var(--at-line-strong); }
.pagination > .active > a, .pagination > .active > a:hover {
    background: var(--at-accent);
    border-color: var(--at-accent);
    color: #fff;
}

/* 模態框 */
.modal-content {
    border: 0;
    border-radius: var(--at-r-lg);
    box-shadow: var(--at-sh-3);
    overflow: hidden;
}
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--at-line-soft); }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--at-line-soft); }
.modal-title { font-size: 17px; font-weight: 650; }

/* 提示氣泡 */
.tooltip-inner {
    padding: 7px 12px;
    border-radius: var(--at-r-sm);
    background: rgba(29, 29, 31, .92);
    font-size: 12.5px;
    box-shadow: var(--at-sh-2);
}
.tooltip.top .tooltip-arrow { border-top-color: rgba(29, 29, 31, .92); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: rgba(29, 29, 31, .92); }

/* 縮圖 */
.img-rounded, .img-thumbnail { border-radius: var(--at-r); border-color: var(--at-line-soft); }

/* --------------------------------------------------------------------------
   15. 底部工具目錄（nav.html / 首頁尾部的全站導航）
   -------------------------------------------------------------------------- */
/* 這裡的 .row 帶 bootstrap 的 -15px 外邊距，橫向內邊距一旦歸零就會頂出視口，
   所以側邊距跟全站容器共用同一檔變數。 */
#foot-history {
    margin-top: 8px;
    padding: 14px var(--at-nav-pad, 22px);
    border-top: 1px solid var(--at-line-soft);
    color: var(--at-text-3);
    font-size: 13px;
}
#foot-history > .row { margin-left: 0; margin-right: 0; }
#foot-history > .row > div { color: var(--at-text-3); }
#visit_history .btn-success,
#visit_history .btn {
    margin: 3px 4px 3px 0;
    padding: 4px 12px;
    border-radius: var(--at-r-pill);
    background: var(--at-surface);
    border: 1px solid var(--at-line);
    color: var(--at-text-2);
    font-size: 12px;
    font-weight: 500;
    box-shadow: none;
}
#visit_history .btn:hover { background: var(--at-accent-soft); color: var(--at-accent); border-color: var(--at-accent-ring); }

.footer-nav {
    margin-top: 30px;
    padding: 34px 30px 24px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r-lg);
    background: var(--at-surface);
    box-shadow: var(--at-sh-1);
}
.footer-nav h2 {
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--at-line-soft);
    font-size: 17px;
    font-weight: 650;
    color: var(--at-text);
    line-height: 1.4;
    letter-spacing: -.02em;
}
.footer-nav h3 {
    margin: 26px 0 12px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    color: var(--at-text);
}
.footer-nav h3 em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: var(--at-r-pill);
    background: var(--at-surface-2);
    color: var(--at-text-3);
    font-size: 10.5px;
    font-style: normal;
    font-weight: 650;
    line-height: 1;
    vertical-align: 2px;
}
.at-dir__group { margin-bottom: 4px; }
.at-dir__group:first-child h3 { margin-top: 6px; }
.footer-nav h3 span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
    border-left: 0;
    line-height: 1.5;
    font-weight: 650;
    color: var(--at-text);
}
.footer-nav h3 span::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--at-grad);
}
.footer-nav .list-inline,
.footer-nav .list-inline-bg {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 10px;
    margin: 0;
    padding: 0;
    background: none;
    line-height: 1.5;
    list-style: none;
}
.footer-nav .list-inline-bg li {
    display: flex;
    align-items: center;
    gap: 7px;
    width: auto;
    float: none;
    margin: 0;
    padding: 0;
    line-height: 30px;
    min-width: 0;
}
.footer-nav .list-inline-bg li > span {
    flex: 0 0 auto;
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0;
    border-radius: 50%;
    background: var(--at-text-4);
}
.footer-nav .list-inline-bg li > a {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--at-text-2);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .16s var(--at-ease-out);
}
.footer-nav .list-inline-bg li:hover > a { color: var(--at-accent); }
.footer-nav .list-inline-bg li:hover > span { background: var(--at-accent); }
.footer-nav .list-inline-bg li > a[style] { color: var(--at-text-2) !important; }
.footer-nav .list-inline-bg li > a[style]:hover { color: var(--at-accent) !important; }

@media (max-width: 991px) {
    .footer-nav .list-inline, .footer-nav .list-inline-bg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .footer-nav { padding: 24px 18px 16px; border-radius: var(--at-r-md); }
    .footer-nav .list-inline, .footer-nav .list-inline-bg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-nav .list-inline-bg li { line-height: 28px; }
}

/* 友情連結小條（link.html） */
.at-links {
    margin: 22px 0 0;
    padding: 14px 20px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r);
    background: var(--at-surface);
    color: var(--at-text-3);
    font-size: 13px;
    box-shadow: var(--at-sh-1);
}
.at-links a { font-weight: 550; }

/* --------------------------------------------------------------------------
   16. 頁尾
   -------------------------------------------------------------------------- */
.at-footer {
    margin-top: 44px;
    padding: 34px 0 30px;
    border-top: 1px solid var(--at-line-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75));
    color: var(--at-text-3);
    font-size: 13px;
}
.at-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 26px;
}
.at-footer__brand { display: flex; align-items: center; gap: 10px; color: var(--at-text); font-weight: 650; }
.at-footer__brand .logo_ico { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.at-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.at-footer__nav a { color: var(--at-text-2); font-size: 13px; }
.at-footer__nav a:hover { color: var(--at-accent); }
.at-footer__copy { color: var(--at-text-4); font-size: 12.5px; line-height: 1.7; }
.at-footer__copy a { color: var(--at-text-3); }
.at-footer__copy a:hover { color: var(--at-accent); }

/* 舊版權條的相容樣式 */
.copyright {
    margin: 0;
    padding: 0;
    color: var(--at-text-4);
    font-size: 12.5px;
    text-align: left;
}
.copyright span { margin: 0 .35em; }
.copyright a { color: var(--at-text-3); }

/* --------------------------------------------------------------------------
   17. 返回頂部
   -------------------------------------------------------------------------- */
.gotop {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 900;
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--at-line);
    box-shadow: var(--at-sh-2);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    transition: transform .22s var(--at-ease), box-shadow .22s var(--at-ease-out),
        background .22s var(--at-ease-out);
}
.gotop:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--at-sh-3); }
.gotop .arrow {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    margin: -3px 0 0 -6px;
    border-width: 0 6px 8px;
    border-style: dashed dashed solid;
    border-color: transparent transparent var(--at-accent);
    display: block;
    border-radius: 0;
}
.gotop .arrow.lit { display: none; }

/* --------------------------------------------------------------------------
   18. 工具類
   -------------------------------------------------------------------------- */
.text-muted { color: var(--at-text-3); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.fl { display: inline-block; float: left; }
.fr { display: inline-block; float: right !important; }
.clearfix::after { content: ""; display: table; clear: both; }
.mt5, .mt-5 { margin-top: 5px; } .mb5, .mb-5 { margin-bottom: 5px; }
.mt10, .mt-10 { margin-top: 10px; } .mb10, .mb-10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; } .ptb10 { padding: 10px 0 !important; }
.f12 { font-size: 12px; } .f14 { font-size: 14px; } .f20, .f30 { font-size: 20px; }
.line-24 { line-height: 24px; }
.bg-gray { background-color: var(--at-surface-2); border-radius: var(--at-r); }
.titcolor { background-color: var(--at-surface-2); }
.mulu { margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* 隱藏舊主題殘留的裝飾元素 */
.ds-powered-by, .ds-dialog-footer { display: none; }

/* 漢字的拼音標註工具（py-tran-result）保持原邏輯，僅換字型 */
.py-tran-result { font-family: var(--at-font); color: var(--at-text); font-size: 15px; line-height: 26px; }
.py-tran-result em { border-bottom: 1px dashed var(--at-accent); font-style: normal; }
.py-tran-result i { color: var(--at-accent); font-style: normal; }

/* 文字豎排 / 特效等工具的字色 */
.zifu-line35 { line-height: 35px; letter-spacing: 3px; word-break: break-all; white-space: normal; }
.py-star-fuhao { color: var(--at-text); font-size: 25px; }
.py-star-text { color: var(--at-text-2); font-size: 15px; }

/* --------------------------------------------------------------------------
   19. 滾動漸入動畫
   -------------------------------------------------------------------------- */
/* 僅在 JS 可用時啟用隱藏態，保證無 JS / 爬蟲仍能讀到全部內容 */
.js .at-reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .72s var(--at-ease-out), transform .72s var(--at-ease-out);
    will-change: opacity, transform;
}
.js .at-reveal.is-in {
    opacity: 1;
    transform: none;
}
/* 漸入完成後回收 will-change，避免長列表記憶體壓力 */
.js .at-reveal.is-done { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .at-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .btn:active { transform: none; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   20. 首頁：Hero + 搜尋 + 工具卡片
   -------------------------------------------------------------------------- */
.at-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 46px;
    text-align: center;
}
/* 網格紋理，營造「科技」質感但不喧賓奪主 */
.at-hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 150%;
    background-image:
        linear-gradient(to right, rgba(0, 113, 227, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 113, 227, .055) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(680px 340px at 50% 12%, #000 0%, transparent 78%);
    mask-image: radial-gradient(680px 340px at 50% 12%, #000 0%, transparent 78%);
    pointer-events: none;
}
.at-hero__inner { position: relative; z-index: 1; }

.at-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 15px 6px 12px;
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-pill);
    background: rgba(255, 255, 255, .8);
    color: var(--at-text-2);
    font-size: 12.5px;
    font-weight: 550;
    letter-spacing: .01em;
    box-shadow: var(--at-sh-1);
}
.at-hero__eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--at-green);
    box-shadow: 0 0 0 3px rgba(36, 138, 61, .16);
}

.at-hero__title {
    margin: 0 0 16px;
    font-size: clamp(34px, 5.4vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
    color: var(--at-text);
}
.at-hero__title .grad {
    background: var(--at-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.at-hero__sub {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--at-text-2);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.68;
    letter-spacing: -.01em;
}

/* 大搜尋框 */
.at-search {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
}
.at-search__field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 8px 0 20px;
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-pill);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--at-sh-2);
    transition: border-color .2s var(--at-ease-out), box-shadow .28s var(--at-ease-out),
        transform .28s var(--at-ease);
}
.at-search__field:focus-within {
    border-color: var(--at-accent);
    box-shadow: 0 0 0 5px var(--at-accent-ring), var(--at-sh-2);
    transform: translateY(-1px);
}
.at-search__ico { flex: 0 0 auto; display: flex; color: var(--at-text-3); }
.at-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: none;
    color: var(--at-text);
    font-family: var(--at-font);
    font-size: 16px;
    letter-spacing: -.01em;
}
.at-search__input::placeholder { color: var(--at-text-4); }
.at-search__clear {
    flex: 0 0 auto;
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    color: var(--at-text-2);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
.at-search__clear:hover { background: rgba(0, 0, 0, .1); }
.at-search__clear.is-on { display: flex; }
.at-search__hint {
    margin: 16px 0 0;
    color: var(--at-text-4);
    font-size: 12.5px;
}
.at-search__hint b { color: var(--at-text-2); font-weight: 600; }
.at-search__hint button {
    border: 0;
    background: none;
    padding: 0 6px;
    color: var(--at-accent);
    font-size: 12.5px;
    font-family: var(--at-font);
    cursor: pointer;
}
.at-search__hint button:hover { text-decoration: underline; }

/* 分類快捷入口（Hero 下方） */
.at-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 760px;
    margin: 28px auto 0;
}
.at-cats > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-pill);
    background: rgba(255, 255, 255, .82);
    color: var(--at-text-2);
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -.008em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .025);
    transition: color .18s var(--at-ease-out), border-color .18s var(--at-ease-out),
        background .18s var(--at-ease-out), transform .2s var(--at-ease), box-shadow .24s var(--at-ease-out);
}
.at-cats > a:hover {
    color: var(--at-accent);
    border-color: var(--at-accent-ring);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--at-sh-2);
}
.at-cats__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--at-r-pill);
    background: var(--at-surface-2);
    color: var(--at-text-3);
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1;
    transition: background .18s var(--at-ease-out), color .18s var(--at-ease-out);
}
.at-cats > a:hover .at-cats__n { background: var(--at-accent-soft); color: var(--at-accent); }

/* 區塊 */
.at-sec { margin-top: 56px; }
.at-sec:first-of-type { margin-top: 48px; }
.at-sec__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--at-line-soft);
}
.at-sec__title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.028em;
    color: var(--at-text);
    line-height: 1.3;
}
.at-sec__title .at-sec__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--at-accent-soft);
    color: var(--at-accent);
    flex: 0 0 auto;
}
.at-sec__count {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 9px;
    border-radius: var(--at-r-pill);
    background: var(--at-surface-2);
    color: var(--at-text-3);
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: .02em;
}
.at-sec__more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--at-accent);
    font-size: 13.5px;
    font-weight: 550;
    white-space: nowrap;
}
.at-sec__more:hover { gap: 9px; }
.at-sec__more svg { transition: transform .2s var(--at-ease-out); }
.at-sec__more:hover svg { transform: translateX(2px); }

/* 卡片網格 */
.at-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.at-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 工具卡片 */
.at-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 17px 16px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r-md);
    background: var(--at-surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    color: var(--at-text);
    overflow: hidden;
    transition: transform .3s var(--at-ease), box-shadow .3s var(--at-ease-out),
        border-color .3s var(--at-ease-out);
}
.at-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 113, 227, .05), rgba(50, 173, 230, .02) 45%, transparent 70%);
    opacity: 0;
    transition: opacity .3s var(--at-ease-out);
    pointer-events: none;
}
.at-card:hover,
.at-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(0, 113, 227, .26);
    box-shadow: var(--at-sh-3);
    color: var(--at-text);
}
.at-card:hover::after { opacity: 1; }

.at-card__ico {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--at-surface-2);
    color: var(--at-text-2);
    transition: background .3s var(--at-ease-out), color .3s var(--at-ease-out),
        transform .3s var(--at-ease);
}
.at-card:hover .at-card__ico {
    background: var(--at-grad);
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 113, 227, .26);
}
.at-card__body { position: relative; z-index: 1; min-width: 0; flex: 1 1 auto; }
.at-card__name {
    display: block;
    margin: 1px 0 3px;
    font-size: 14.5px;
    font-weight: 650;
    letter-spacing: -.018em;
    color: var(--at-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.at-card__desc {
    display: block;
    color: var(--at-text-3);
    font-size: 12.5px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.at-card__hot {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: var(--at-r-pill);
    background: linear-gradient(135deg, #ff9500, #ff6b00);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.6;
    box-shadow: 0 3px 8px rgba(255, 107, 0, .28);
}

/* 熱門區卡片：更強調 */
.at-grid--hot .at-card { padding: 19px; }

/* 搜尋結果為空 */
.at-empty {
    display: none;
    padding: 60px 20px;
    text-align: center;
    color: var(--at-text-3);
}
.at-empty.is-on { display: block; }
.at-empty__ico { margin-bottom: 14px; color: var(--at-text-4); }
.at-empty__t { font-size: 16px; font-weight: 650; color: var(--at-text); margin-bottom: 6px; }
.at-empty__s { font-size: 13.5px; }

/* 頁尾上方的大區塊（首頁底部的全站導航） */
.at-sec--nav .footer-nav { margin-top: 0; }

/* 首頁底部 CTA */
.at-cta {
    margin-top: 56px;
    padding: 40px 34px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r-lg);
    background:
        radial-gradient(600px 260px at 15% 0%, rgba(0, 113, 227, .07), transparent 65%),
        radial-gradient(520px 240px at 88% 100%, rgba(50, 173, 230, .07), transparent 62%),
        var(--at-surface);
    box-shadow: var(--at-sh-1);
    text-align: center;
}
.at-cta h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.028em; }
.at-cta p { margin: 0 0 20px; color: var(--at-text-2); font-size: 14px; }
.at-cta .btn { margin: 0 5px; }

/* --------------------------------------------------------------------------
   20b. 內容塊：工具頁教程 + FAQ、首頁指南、關於/聯絡/隱私說明頁
   -------------------------------------------------------------------------- */
.at-anchor { display: block; height: 0; }

/* 工具頁教程 + FAQ 兩塊（.at-doc / .at-steps / .at-faq__i）已遷到 site-nav.css 第 8 節，
   兩個子應用只載入 site-nav.css，主站的這份經第 1 行 @import 生效。
   這裡只留首頁 FAQ 的兩列排布，它不出現在子應用。 */
.at-faq--cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
}

/* 首頁教程 / 提示 */
.at-sec__lead {
    margin: -10px 0 22px;
    max-width: 74ch;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--at-text-2);
}
.at-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.at-guide__i {
    padding: 20px 22px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r);
    background: var(--at-surface);
    box-shadow: var(--at-sh-1);
}
.at-guide__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--at-grad);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.at-guide__h { margin: 0 0 7px; font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; color: var(--at-text); }
.at-guide__p { margin: 0; font-size: 13.5px; line-height: 1.72; color: var(--at-text-2); }

.at-tips {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.at-tips > li,
.at-tips__i {
    position: relative;
    padding-left: 22px;
    font-size: 13.5px;
    line-height: 1.72;
    color: var(--at-text-2);
}
.at-tips > li::before,
.at-tips__i::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--at-accent);
    opacity: .55;
}

/* 關於 / 聯絡 / 隱私 */
.at-page { margin: 34px 0 44px; }
.at-page__body {
    max-width: 830px;
    margin: 0 auto;
    padding: 38px 42px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r-lg);
    background: var(--at-surface);
    box-shadow: var(--at-sh-1);
}
.at-page__body p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.85; color: var(--at-text-2); }
.at-page__h1 { margin: 0 0 12px; font-size: 28px; font-weight: 700; letter-spacing: -.032em; color: var(--at-text); }
.at-page__updated { margin: -4px 0 16px; font-size: 12.5px; color: var(--at-text-3); }
.at-page__lead { font-size: 16px !important; line-height: 1.75 !important; color: var(--at-text) !important; font-weight: 500; }
.at-page__h2 {
    margin: 26px 0 12px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.022em;
    color: var(--at-text);
}
.at-page__closing {
    margin-top: 22px !important;
    padding: 14px 16px;
    border-radius: var(--at-r-sm);
    background: var(--at-surface-2);
}
.at-page__note {
    margin-top: 18px !important;
    padding: 12px 14px;
    border-left: 3px solid var(--at-accent);
    border-radius: 0 var(--at-r-xs) var(--at-r-xs) 0;
    background: var(--at-accent-soft);
    font-size: 13px !important;
    color: var(--at-text-2) !important;
}
.at-page__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--at-line-soft);
}
.at-page__links a {
    padding: 7px 16px;
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-pill);
    font-size: 13px;
    color: var(--at-text-2);
}
.at-page__links a:hover {
    border-color: var(--at-accent-ring);
    background: var(--at-accent-soft);
    color: var(--at-accent);
    text-decoration: none;
}

.at-facts {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--at-line-soft);
}
.at-facts__row {
    display: flex;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--at-line-soft);
}
.at-facts dt { flex: 0 0 172px; font-size: 13px; color: var(--at-text-3); }
.at-facts dd { flex: 1 1 auto; margin: 0; font-size: 13.5px; font-weight: 550; color: var(--at-text); }

.at-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.at-contact__card {
    padding: 18px 20px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r);
    background: var(--at-surface-2);
}
.at-contact__card .at-page__h2 { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--at-text-3); }
.at-contact__mail { margin: 0 !important; }
.at-contact__mail a {
    font-size: 16px;
    font-weight: 600;
    color: var(--at-accent);
    word-break: break-all;
}
.at-contact__copy {
    margin-left: 8px;
    padding: 4px 12px;
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-pill);
    background: var(--at-surface);
    color: var(--at-text-2);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    transition: color .18s var(--at-ease-out), border-color .18s var(--at-ease-out);
}
.at-contact__copy:hover { border-color: var(--at-accent-ring); color: var(--at-accent); }
.at-contact__reply,
.at-contact__value { margin: 6px 0 0; font-size: 13px; color: var(--at-text-2); }

.at-toc {
    margin: 0 0 26px;
    padding: 16px 20px 16px 40px;
    border-radius: var(--at-r);
    background: var(--at-surface-2);
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--at-text-2);
}
.at-toc a { color: var(--at-accent); }
.at-policy__sec { padding-top: 2px; }

@media (max-width: 991px) {
    .at-guide, .at-faq--cols { grid-template-columns: minmax(0, 1fr); }
    .at-page__body { padding: 28px 22px; }
    .at-facts dt { flex-basis: 130px; }
}
.at-policy__sec > .at-page__h2 { margin-top: 30px; }

@media (max-width: 900px) {
    .at-faq--cols,
    .at-guide { grid-template-columns: minmax(0, 1fr); }
    .at-page__body { padding: 26px 22px; }
    .at-facts dt { flex-basis: 130px; }
}

/* --------------------------------------------------------------------------
   21. 響應式
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .at-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .at-grid, .at-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dropdown-menu.ul-list,
    .navbar-default .navbar-nav > li > .dropdown-menu.ul-list { min-width: 520px; }
}

/* 移動端：導航摺疊為抽屜 */
@media (max-width: 767px) {
    html { padding-top: 54px; }
    :root { --at-nav-h: 54px; }

    .navbar-default .navbar-brand { height: var(--at-nav-h); line-height: var(--at-nav-h); font-size: 16px; margin-right: 0; }
    .navbar-toggle { margin-top: 11px; }

    /* 摺疊面板：白底卡片，逐項列出分類 */
    .navbar-default .navbar-collapse {
        position: absolute;
        top: var(--at-nav-h);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--at-nav-h));
        margin: 0;
        padding: 8px 10px 16px;
        border: 0;
        border-top: 1px solid var(--at-line-soft);
        /* 用實色而非半透明：抽屜裡必須保證文字始終清晰（不依賴 backdrop-filter 是否生效） */
        background: #fbfbfd;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .navbar-default .navbar-nav { margin: 0; }
    .navbar-default .navbar-nav > li > a,
    .navbar-default .navbar-nav > li > a.dropdown-toggle {
        height: auto;
        line-height: 1.5;
        padding: 13px 14px;
        border-radius: var(--at-r-sm);
        font-size: 15px;
        font-weight: 600;
    }
    .navbar-default .navbar-nav > li > a::after { display: none; }
    .navbar-default .navbar-nav > li > a:hover,
    .navbar-default .navbar-nav > li > a.dropdown-toggle:hover { background: var(--at-surface-2) !important; }

    /* 移動端下拉：改為內聯展開，不使用絕對定位 */
    .navbar-default .navbar-nav > li > .dropdown-menu,
    .dropdown-menu.ul-list,
    .navbar-default .navbar-nav > li > .dropdown-menu.ul-list {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0 0 6px;
        padding: 4px 6px 8px;
        columns: 1;
        border: 0;
        border-radius: var(--at-r);
        background: rgba(0, 0, 0, .022);
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    /* ⚠️ 這裡只能出現 `.open` 變體：漏寫 .open 會讓所有大選單在抽屜裡預設展開 */
    .navbar-default .navbar-nav > li.open > .dropdown-menu,
    .navbar-default .navbar-nav > li.open > .dropdown-menu.ul-list { display: block; }
    .dropdown-menu.ul-list > li { width: 100% !important; }
    .dropdown-menu > li > a { padding: 9px 12px; font-size: 13.5px; white-space: normal; }

    /* Hero */
    .at-hero { padding: 40px 0 30px; }
    .at-hero__eyebrow { margin-bottom: 16px; font-size: 11.5px; }
    .at-hero__sub { margin-bottom: 24px; }
    .at-search__field { height: 50px; padding-left: 16px; }
    .at-search__input { font-size: 15px; }
    .at-search__hint { font-size: 12px; }

    /* 區塊 */
    .at-sec { margin-top: 40px; }
    .at-sec__head { margin-bottom: 16px; }
    .at-sec__title { font-size: 18px; }
    .at-sec__title .at-sec__ico { width: 28px; height: 28px; border-radius: 9px; }

    .at-grid, .at-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .at-card { padding: 14px; gap: 10px; border-radius: var(--at-r); }
    .at-card__ico { width: 32px; height: 32px; border-radius: 9px; }
    .at-card__name { font-size: 13.5px; }
    .at-card__desc { font-size: 11.5px; -webkit-line-clamp: 2; }
    .at-card__hot { top: 9px; right: 9px; font-size: 9px; padding: 1px 6px; }
    .at-cta { padding: 28px 20px; margin-top: 40px; }

    .gotop { right: 14px; bottom: 18px; width: 40px; height: 40px; }

    /* 工具頁標籤：橫向滾動 */
    .nav.nav-tabs.hbflag { margin-bottom: 16px; }
    .nav-tabs.hbflag > li > a { padding: 6px 13px; font-size: 13px; }

    .at-footer { margin-top: 32px; padding: 24px 0; }
    .at-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    /* 手機上保持雙列，便於快速掃讀；名稱允許折兩行，儘量不截斷 */
    .at-grid, .at-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .at-card { padding: 11px; gap: 8px; }
    .at-card__ico { width: 26px; height: 26px; border-radius: 8px; }
    .at-card__ico svg { width: 15px; height: 15px; }
    .at-card__name {
        font-size: 12.5px;
        line-height: 1.35;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .at-card__desc { font-size: 11px; -webkit-line-clamp: 1; }
    .at-card__hot { top: 7px; right: 7px; font-size: 8.5px; padding: 1px 5px; }
    .at-sec__title { font-size: 16.5px; }
    .at-sec__count { height: 18px; font-size: 10.5px; }
    .at-hero { padding: 30px 0 24px; }
    .at-cats > a { padding: 6px 12px; font-size: 12.5px; }
}
@media (max-width: 340px) {
    .at-grid, .at-grid--3 { grid-template-columns: 1fr; }
    .at-card__desc { -webkit-line-clamp: 2; }
}

/* --------------------------------------------------------------------------
   21. 工具頁內容：移動端橫向溢位治理
   原站遺留樣式（tool.css / subnetmask.css / kindeditor）裡有若干「寫死畫素寬」
   的元件和寬表格，在 390px 視口下會把檔案整體撐寬 → 出現整頁橫向滾動。
   這裡統一收口：寬內容改為「自身可橫向滾動」，檔案寬度始終等於視口。
   -------------------------------------------------------------------------- */
/* 內容區圖片一律不超出容器（如 barcode 頁引了一張無約束的外鏈大圖） */
.col10main img,
#results img,
#result img,
.panel img { max-width: 100%; height: auto; }

/* 長英文/長串必須在容器內斷行。
   ⚠️ 這類溢位「沒有元素超寬」——是文位元組點撐大了父級 scrollWidth，
   用「找溢位元素」的思路排查會一無所獲（barcode 頁的
   「ean8,ean13,std25,...,datamatrix」就是一例：CSS 預設不在逗號處斷行）。 */
.col10main p,
.col10main li,
.col10main label,
.col10main td,
.col10main th,
.col10main div,
.col10main span,
.col10main h1, .col10main h2, .col10main h3,
.col10main h4, .col10main h5, .col10main h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 767px) {
    /* 寬表格：表格自身橫向滾動。display:block 不會破壞列對齊
       —— thead/tbody 仍按匿名錶格盒佈局，只是外層多了滾動能力。 */
    .col10main .table,
    .panel > .table,
    .accordion-group > .table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* 表格不再受「單元格 white-space:nowrap」牽連，允許長內容折行 */
    .col10main .table > thead > tr > th,
    .col10main .table > tbody > tr > td { white-space: normal; word-break: break-word; }

    /* 科學計算器：subnetmask.css 裡 .CalculTable 寫死 width:880px。
       保持其內部按鈕佈局不變，改由外層容器橫向滾動。 */
    .col10main .CalculatorWrap {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .col10main .CalculatorWrap .CalculTable {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* KindEditor 富文字編輯器：JS 內聯寫死 650px，收斂到容器寬度 */
    .col10main .ke-container,
    .col10main .ke-edit,
    .col10main .ke-edit-iframe,
    .col10main .ke-toolbar { max-width: 100% !important; box-sizing: border-box; }

    /* 通用兜底：任何可能帶定寬的塊級內容 */
    .col10main iframe,
    .col10main canvas,
    .col10main video,
    .col10main pre,
    .col10main textarea,
    .col10main input,
    .col10main select { max-width: 100%; box-sizing: border-box; }
}

.at-sec__sub {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 12px;
    font-size: 15px;
    font-weight: 650;
    color: var(--at-text);
}
.at-sec__sub > a {
    color: var(--at-text);
}
.at-sec__sub > a:hover {
    color: var(--at-accent);
    text-decoration: none;
}
.at-sec__sub > span {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--at-text-3);
}
.at-sec__sub > span a {
    color: var(--at-accent);
    font-weight: 500;
}
@media (max-width: 768px) {
    .at-sec__sub { margin: 18px 0 10px; }
}

/* 整合模組入口頁（網路檢測 / PDF 工具箱） */
.at-sec__sub {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 22px 0 12px;
    font-size: 15px;
    font-weight: 650;
    color: var(--at-text);
}
.at-sec__sub a {
    color: var(--at-text);
}
.at-sec__sub a:hover {
    color: var(--at-accent);
    text-decoration: none;
}
.at-sec__sub span {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--at-text-3);
}
.at-sec__sub span a {
    color: var(--at-accent);
    font-weight: 500;
}
.merge-entry .merge-head {
    padding: 8px 0 4px;
}
.merge-entry .merge-head h1 {
    display: flex;
    align-items: center;
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.02em;
    color: var(--at-text);
}
.merge-entry .merge-head h1 em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 10px;
    padding: 0 7px;
    border-radius: var(--at-r-pill);
    background: var(--at-surface-2);
    color: var(--at-text-3);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}
.merge-entry .merge-head p {
    max-width: 720px;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--at-text-2);
}
.merge-entry .merge-group {
    margin-top: 26px;
}
.merge-entry .merge-group h2 {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 650;
    color: var(--at-text);
}
.merge-entry .merge-group h2 span::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--at-grad);
    vertical-align: -2px;
}
.merge-entry .merge-group h2 em {
    margin-left: 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    color: var(--at-text-4);
}
.merge-entry .merge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.merge-entry .merge-grid a {
    display: block;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r);
    background: var(--at-surface);
    box-shadow: var(--at-sh-1);
    transition: transform .18s var(--at-ease-out), box-shadow .18s var(--at-ease-out);
}
.merge-entry .merge-grid a:hover {
    transform: translateY(-2px);
    box-shadow: var(--at-sh-2);
    border-color: var(--at-line);
}
.merge-entry .merge-grid b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--at-text);
}
.merge-entry .merge-grid a:hover b {
    color: var(--at-accent);
}
.merge-entry .merge-grid span {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--at-text-3);
}
.merge-entry .merge-off {
    padding: 48px 24px;
    border: 1px solid var(--at-line-soft);
    border-radius: var(--at-r-md);
    background: var(--at-surface);
    text-align: center;
}
.merge-entry .merge-off h1 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 650;
    color: var(--at-text);
}
.merge-entry .merge-off p {
    margin: 0;
    font-size: 14px;
    color: var(--at-text-2);
}
.merge-entry .merge-off__back {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 20px;
    border-radius: var(--at-r-pill);
    background: var(--at-accent);
    color: #fff;
    font-size: 14px;
}
.merge-entry .merge-off__back:hover {
    background: var(--at-accent-hi);
    color: #fff;
    text-decoration: none;
}
@media (max-width: 992px) {
    .merge-entry .merge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .merge-entry .merge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .merge-entry .merge-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* 列印 */
@media print {
    .navbar, .gotop, .at-footer, .footer-nav { display: none !important; }
    html { padding-top: 0; }
    body { background: #fff; }
}
