/* 电子工程资源工作台 /tools/electronics
   变量定义在 :root：toast / 详情遮罩是 .ee 的兄弟节点，挂在 body 下 */
:root {
    color-scheme: dark;   /* 让原生滚动条 / 表单控件跟随深色主题 */
    --ee-card: #16191d;
    --ee-card-2: #1b1f24;
    --ee-card-3: #20252b;
    --ee-line: #2a3038;
    --ee-line-2: #39424d;
    --ee-fg: #e6e9ee;
    --ee-fg-2: #c2c9d2;
    --ee-sub: #9aa3af;
    --ee-faint: #8b95a2;
    --ee-accent: #4d9bff;
    --ee-accent-soft: rgba(77, 155, 255, .14);
    --ee-ok: #46c07a;
    --ee-ok-soft: rgba(70, 192, 122, .15);
    --ee-warn: #e0a445;
    --ee-warn-soft: rgba(224, 164, 69, .15);
    --ee-bad: #e5695f;
    --ee-bad-soft: rgba(229, 105, 95, .15);
    --ee-on-accent: #ffffff;
    --ee-shadow: 0 6px 22px rgba(0, 0, 0, .28);
    --ee-shadow-sm: 0 2px 8px rgba(0, 0, 0, .22);
    --ee-r: 14px;
    --ee-r-sm: 10px;
    --ee-zebra: rgba(127, 127, 127, .055);
}
[data-theme="light"] {
    color-scheme: light;
    --ee-card: #ffffff;
    --ee-card-2: #f7f9fb;
    --ee-card-3: #f1f4f8;
    --ee-line: #e3e8ee;
    --ee-line-2: #d0d8e2;
    --ee-fg: #1b2027;
    --ee-fg-2: #37404b;
    --ee-sub: #5c6672;
    --ee-faint: #6d7887;
    --ee-accent: #136ce9;
    --ee-accent-soft: rgba(19, 108, 233, .1);
    --ee-ok: #1a7f37;
    --ee-ok-soft: rgba(26, 127, 55, .12);
    --ee-warn: #9a6700;
    --ee-warn-soft: rgba(154, 103, 0, .12);
    --ee-bad: #b3261e;
    --ee-bad-soft: rgba(179, 38, 30, .1);
    --ee-shadow: 0 6px 22px rgba(15, 25, 40, .1);
    --ee-shadow-sm: 0 2px 8px rgba(15, 25, 40, .08);
    --ee-zebra: rgba(15, 20, 25, .038);
}

/* 电脑端满屏（保留左侧导航）；body overflow:visible 把滚动权交回 html，页内 sticky 才生效 */
body.page-electronics-full .app { max-width: 100%; }
body.page-electronics-full .main-content { max-width: 100%; width: 100%; border-right: 0; }
body.page-electronics-full .page-container { max-width: 100%; }
body.page-electronics-full { overflow: visible; }

.ee {
    --ee-maxw: 1720px;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--ee-maxw);
    margin: 0 auto;
    padding: 18px 22px 56px;
    color: var(--ee-fg);
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;   /* 防 iOS / 安卓横屏自动放大字号 */
}
.ee * { box-sizing: border-box; }
.ee [hidden], .ee-mask[hidden], .ee-toast[hidden], .ee-tab-badge[hidden] { display: none !important; }
body.ee-modal-open { overflow: hidden !important; }
/* 触屏：去掉点击高亮、消除点击延迟 */
.ee-btn, .ee-tab, .ee-chip, .ee-mini, .ee-seg-btn, .ee-pg, .ee-fold,
.ee-calc-nav-btn, .ee-search-clr, .ee-drawer-x, .ee-pick, .ee-about-t {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.ee-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;
}
.ee-noscript {
    margin: 0 0 14px; padding: 12px 14px; border-radius: var(--ee-r-sm);
    border: 1px solid var(--ee-line); background: var(--ee-card-2); color: var(--ee-sub); font-size: 13.4px;
}
.ee-noscript a { color: var(--ee-accent); }

/* ---------------- 头部 ---------------- */
.ee-hero {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px 16px; align-items: start;
    padding: 16px 18px; border: 1px solid var(--ee-line); border-radius: var(--ee-r);
    background: var(--ee-card);
    background-image: linear-gradient(135deg, var(--ee-accent-soft), transparent 60%);
    box-shadow: var(--ee-shadow-sm); position: relative;
}
.ee-hero-ic {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    font-size: 27px; border-radius: 14px; background: var(--ee-card-3); border: 1px solid var(--ee-line);
}
.ee-hero-tx { min-width: 0; }
.ee-hero-row { display: flex; align-items: center; gap: 8px; }
.ee-hero-t { margin: 0; font-size: 21px; line-height: 1.35; font-weight: 700; letter-spacing: .2px; }
.ee-fold {
    width: 28px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; background: transparent; color: var(--ee-sub); cursor: pointer;
}
.ee-fold:hover { background: var(--ee-card-3); color: var(--ee-fg); }
.ee-caret { transition: transform .16s ease; }
.ee-hero.is-collapsed .ee-caret { transform: rotate(-90deg); }
.ee-hero.is-collapsed .ee-hero-extra { display: none; }
.ee-hero-sub { margin: 6px 0 0; color: var(--ee-sub); font-size: 13.4px; max-width: 96ch; }
.ee-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ee-tag {
    font-size: 12px; padding: 3px 9px; border-radius: 999px;
    background: var(--ee-card-3); color: var(--ee-sub); border: 1px solid var(--ee-line);
}
.ee-stat {
    display: grid; grid-template-columns: repeat(3, minmax(64px, auto)); gap: 8px 16px;
    padding: 10px 14px; border-radius: var(--ee-r-sm); background: var(--ee-card-2);
    border: 1px solid var(--ee-line); align-self: center;
}
.ee-stat-i { font-size: 12px; color: var(--ee-sub); white-space: nowrap; }
.ee-stat-i b { display: block; font-size: 19px; line-height: 1.2; color: var(--ee-fg); font-variant-numeric: tabular-nums; }
.ee-stat-i:nth-child(2) b { color: var(--ee-accent); }
.ee-stat-i:nth-child(5) b { color: var(--ee-ok); }

/* ---------------- 页签 ---------------- */
.ee-tabs {
    display: flex; gap: 4px; margin: 14px 0 0; padding: 5px;
    border: 1px solid var(--ee-line); border-radius: 12px;
    background: var(--ee-card); overflow-x: auto; scrollbar-width: thin;
    position: sticky; top: 0; z-index: 30;
}
.ee-tab {
    flex: 0 0 auto; padding: 8px 15px; min-height: 38px;
    border: 0; border-radius: 8px; background: transparent; color: var(--ee-sub);
    font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.ee-tab:hover { background: var(--ee-card-3); color: var(--ee-fg); }
.ee-tab.is-on { background: var(--ee-accent); color: var(--ee-on-accent); }
.ee-tab-badge {
    display: inline-block; margin-left: 4px; min-width: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--ee-card-3); color: var(--ee-sub); font-size: 11px;
}
.ee-tab.is-on .ee-tab-badge { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---------------- 工具条 ---------------- */
.ee-tools {
    margin-top: 14px; padding: 12px 14px; border: 1px solid var(--ee-line);
    border-radius: var(--ee-r); background: var(--ee-card); box-shadow: var(--ee-shadow-sm);
}
.ee-tools-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ee-tools-row2 { margin-top: 10px; }
.ee-search {
    position: relative; display: flex; align-items: center; flex: 1 1 360px; min-width: 220px; max-width: 620px;
    border: 1px solid var(--ee-line-2); border-radius: 10px; background: var(--ee-card-2);
}
.ee-search:focus-within { border-color: var(--ee-accent); box-shadow: 0 0 0 3px var(--ee-accent-soft); }
.ee-search-ic { flex: 0 0 auto; margin: 0 8px 0 11px; color: var(--ee-sub); }
.ee-search-in {
    flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 8px;
    border: 0; outline: 0; background: transparent; color: var(--ee-fg); font-size: 14px;
}
.ee-search-in::-webkit-search-cancel-button { display: none; }
.ee-search-clr {
    flex: 0 0 auto; width: 28px; height: 28px; margin-right: 6px; border: 0; border-radius: 7px;
    background: transparent; color: var(--ee-sub); cursor: pointer;
}
.ee-search-clr:hover { background: var(--ee-card-3); color: var(--ee-fg); }
.ee-tools-ops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 auto; }
.ee-tools-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.ee-select, .ee-input, .ee-jump-input {
    height: 38px; padding: 0 10px; border: 1px solid var(--ee-line-2); border-radius: 9px;
    background: var(--ee-card-2); color: var(--ee-fg); font-size: 13.4px; max-width: 100%;
}
.ee-select:focus, .ee-input:focus, .ee-jump-input:focus { outline: 2px solid var(--ee-accent); outline-offset: 1px; }
.ee-select-sm { height: 36px; }
.ee-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 38px; padding: 0 12px; border: 1px solid var(--ee-line-2); border-radius: 9px;
    background: var(--ee-card-2); color: var(--ee-fg-2); font-size: 13.4px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.ee-btn:hover { background: var(--ee-card-3); color: var(--ee-fg); border-color: var(--ee-accent); }
.ee-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ee-btn.is-on { background: var(--ee-accent-soft); border-color: var(--ee-accent); color: var(--ee-accent); }
.ee-btn-pri { background: var(--ee-accent); border-color: var(--ee-accent); color: var(--ee-on-accent); text-decoration: none; }
.ee-btn-pri:hover { background: var(--ee-accent); color: var(--ee-on-accent); filter: brightness(1.08); }
.ee-btn-danger { color: var(--ee-bad); border-color: var(--ee-bad); }
.ee-btn-danger:hover { background: var(--ee-bad-soft); color: var(--ee-bad); }
.ee-seg { display: inline-flex; padding: 3px; border: 1px solid var(--ee-line); border-radius: 9px; background: var(--ee-card-2); }
.ee-seg-btn {
    min-height: 30px; padding: 0 11px; border: 0; border-radius: 6px;
    background: transparent; color: var(--ee-sub); font-size: 13px; cursor: pointer;
}
.ee-seg-btn.is-on { background: var(--ee-card-3); color: var(--ee-fg); font-weight: 600; }
.ee-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ee-chip {
    display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px;
    border: 1px solid var(--ee-line); border-radius: 999px; background: var(--ee-card-2);
    color: var(--ee-sub); font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.ee-chip:hover { border-color: var(--ee-accent); color: var(--ee-fg); }
.ee-chip.is-on { background: var(--ee-accent); border-color: var(--ee-accent); color: var(--ee-on-accent); font-weight: 600; }
.ee-chip-n { font-size: 11px; opacity: .75; }
.ee-count { margin-top: 10px; color: var(--ee-sub); font-size: 13px; }
.ee-count-inline { margin: 0; white-space: nowrap; }
.ee-tools-single { display: flex; align-items: center; gap: 12px; }
.ee-term-chips { margin: 12px 0 14px; }

/* ---------------- 卡片 / 表格 ---------------- */
.ee-grid {
    display: grid; gap: 12px; margin-top: 14px;
    grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
}
.ee-card {
    display: flex; flex-direction: column; min-width: 0; padding: 13px 14px;
    border: 1px solid var(--ee-line); border-radius: var(--ee-r); background: var(--ee-card);
    box-shadow: var(--ee-shadow-sm); transition: transform .15s ease, border-color .15s ease;
    contain: layout style;
}
.ee-card:hover { border-color: var(--ee-accent); transform: translateY(-1px); }
.ee-card.is-fav { border-left: 3px solid var(--ee-warn); }
.ee-card-top { display: flex; gap: 8px; align-items: flex-start; }
.ee-card-ic {
    flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border-radius: 9px; background: var(--ee-card-3); font-size: 17px; border: 1px solid var(--ee-line);
}
.ee-card-tx { min-width: 0; flex: 1 1 auto; }
.ee-card-name {
    margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.4; word-break: break-word;
    color: var(--ee-fg);
}
.ee-card-cat { margin: 2px 0 0; font-size: 11.5px; color: var(--ee-faint); word-break: break-word; }
.ee-card-desc {
    margin: 9px 0 0; color: var(--ee-sub); font-size: 13px; line-height: 1.62;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 62px;
}
.ee-card-desc.is-en { font-style: normal; }
.ee-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ee-pill {
    font-size: 11px; padding: 2px 7px; border-radius: 6px;
    background: var(--ee-card-3); color: var(--ee-sub); border: 1px solid var(--ee-line);
}
.ee-pill.is-gh { background: var(--ee-accent-soft); border-color: transparent; color: var(--ee-accent); }
.ee-pill.is-guide { background: var(--ee-ok-soft); border-color: transparent; color: var(--ee-ok); }
.ee-card-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 11px; }
.ee-mini {
    min-height: 30px; padding: 0 9px; border: 1px solid var(--ee-line); border-radius: 7px;
    background: var(--ee-card-2); color: var(--ee-sub); font-size: 12px; cursor: pointer;
}
.ee-mini:hover { color: var(--ee-accent); border-color: var(--ee-accent); }
.ee-mini.is-on { color: var(--ee-warn); border-color: var(--ee-warn); }
.ee-mini-a { display: inline-flex; align-items: center; text-decoration: none; }
mark.ee-hl { background: var(--ee-warn-soft); color: inherit; padding: 0 1px; border-radius: 2px; }

.ee-table-wrap {
    margin-top: 14px; border: 1px solid var(--ee-line); border-radius: var(--ee-r);
    background: var(--ee-card); overflow: auto; max-height: 78vh; scrollbar-width: thin;
    overscroll-behavior: contain;   /* 滚到边界不再带动整页滚动 */
}
.ee-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ee-table th, .ee-table td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--ee-line); vertical-align: top; }
.ee-table thead th {
    position: sticky; top: 0; z-index: 2; background: var(--ee-card);
    color: var(--ee-sub); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--ee-line-2);
}
.ee-table tbody tr:nth-child(even) { background: var(--ee-zebra); }
.ee-table tbody tr:hover { background: var(--ee-accent-soft); }
.ee-table .ee-th-name { min-width: 180px; }
.ee-table .ee-th-desc { min-width: 260px; }
.ee-t-name { color: var(--ee-fg); font-weight: 600; word-break: break-word; }
.ee-t-desc { color: var(--ee-sub); }
.ee-t-ops { white-space: nowrap; }

.ee-empty { margin: 24px 0; padding: 30px 16px; text-align: center; color: var(--ee-sub); }
.ee-empty-ic { font-size: 34px; opacity: .7; }
.ee-empty-t { margin: 8px 0 14px; font-size: 15px; }
.ee-loading { display: flex; align-items: center; gap: 10px; padding: 26px 4px; color: var(--ee-sub); }
.ee-spin {
    width: 17px; height: 17px; border: 2px solid var(--ee-line-2); border-top-color: var(--ee-accent);
    border-radius: 50%; animation: ee-spin .8s linear infinite;
}
@keyframes ee-spin { to { transform: rotate(360deg); } }
.ee-pager {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px;
    padding: 10px 12px; border: 1px solid var(--ee-line); border-radius: var(--ee-r-sm); background: var(--ee-card);
}
.ee-pg { min-height: 34px; padding: 0 11px; border: 1px solid var(--ee-line-2); border-radius: 8px; background: var(--ee-card-2); color: var(--ee-fg-2); cursor: pointer; }
.ee-pg:hover:not([disabled]) { border-color: var(--ee-accent); }
.ee-pg[disabled] { opacity: .45; cursor: not-allowed; }
.ee-pager-info { color: var(--ee-sub); font-size: 13px; }
.ee-jump { margin-left: auto; color: var(--ee-sub); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.ee-jump-input { width: 56px; height: 34px; text-align: center; }

/* ---------------- 通用页内标题 ---------------- */
.ee-pane { margin-top: 14px; }
.ee-pane-head {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
    padding: 14px 16px; border: 1px solid var(--ee-line); border-radius: var(--ee-r);
    background: var(--ee-card); box-shadow: var(--ee-shadow-sm);
}
.ee-pane-head h2, .ee-guide-head h2, .ee-cmp h3, .ee-mine-h {
    margin: 0; font-size: 17px; font-weight: 700;
}
.ee-pane-head p, .ee-guide-head p { margin: 4px 0 0; color: var(--ee-sub); font-size: 13px; }
.ee-guide-head { margin: 22px 0 12px; }
.ee-mine-h { margin: 22px 0 10px; font-size: 15px; }

/* ---------------- 学习路线 ---------------- */
.ee-progress { display: flex; align-items: center; gap: 10px; color: var(--ee-sub); font-size: 13px; }
.ee-progress-bar { width: 150px; height: 8px; border-radius: 999px; background: var(--ee-card-3); overflow: hidden; }
.ee-progress-bar span { display: block; height: 100%; width: 0; background: var(--ee-ok); transition: width .2s ease; }
.ee-path-grid { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ee-path {
    padding: 14px; border: 1px solid var(--ee-line); border-radius: var(--ee-r);
    background: var(--ee-card); box-shadow: var(--ee-shadow-sm); min-width: 0;
}
.ee-path.is-done { border-color: var(--ee-ok); background: var(--ee-ok-soft); }
.ee-path-h { display: flex; gap: 10px; align-items: flex-start; }
.ee-path-ic { font-size: 24px; }
.ee-path-t { margin: 0; font-size: 15.5px; font-weight: 700; }
.ee-path-lv { font-size: 11.5px; color: var(--ee-faint); }
.ee-path-goal { margin: 9px 0 0; font-size: 13px; color: var(--ee-fg-2); }
.ee-path-desc { margin: 6px 0 0; font-size: 12.6px; color: var(--ee-sub); }
.ee-path-tips { margin: 9px 0 0; padding-left: 18px; color: var(--ee-sub); font-size: 12.4px; }
.ee-path-picks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ee-pick {
    padding: 3px 8px; border: 1px solid var(--ee-line); border-radius: 7px; background: var(--ee-card-2);
    color: var(--ee-accent); font-size: 11.8px; cursor: pointer; max-width: 100%; overflow-wrap: anywhere;
}
.ee-pick:hover { border-color: var(--ee-accent); }
.ee-path-foot { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.ee-guide-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ee-guide { padding: 13px 14px; border: 1px solid var(--ee-line); border-radius: var(--ee-r-sm); background: var(--ee-card); min-width: 0; }
.ee-guide-t { margin: 0; font-size: 14px; font-weight: 700; }
.ee-guide-role { margin: 3px 0 0; font-size: 12px; color: var(--ee-accent); }
.ee-guide-fit { margin: 5px 0 0; font-size: 12px; color: var(--ee-faint); }
.ee-guide ul { margin: 8px 0 0; padding-left: 17px; color: var(--ee-sub); font-size: 12.4px; }
.ee-guide-foot { margin-top: 10px; }

/* ---------------- 术语速查 ---------------- */
.ee-term-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.ee-term {
    padding: 11px 13px; border: 1px solid var(--ee-line); border-radius: var(--ee-r-sm);
    background: var(--ee-card); min-width: 0;
}
.ee-term-en { font-size: 14px; font-weight: 700; color: var(--ee-fg); overflow-wrap: anywhere; }
.ee-term-zh { display: inline-block; margin-left: 7px; font-size: 12.5px; color: var(--ee-accent); }
.ee-term-g { float: right; font-size: 11px; color: var(--ee-faint); }
.ee-term-d { margin: 6px 0 0; font-size: 12.6px; color: var(--ee-sub); }
.ee-term-acts { margin-top: 8px; }

/* ---------------- 工程计算 ---------------- */
.ee-calc-layout { display: grid; grid-template-columns: minmax(0, 218px) minmax(0, 1fr); gap: 14px; align-items: start; }
.ee-calc-nav {
    display: flex; flex-direction: column; gap: 5px; padding: 10px;
    border: 1px solid var(--ee-line); border-radius: var(--ee-r); background: var(--ee-card);
    position: sticky; top: 58px;
}
.ee-calc-nav-btn {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 10px;
    border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ee-fg-2);
    font-size: 13.2px; text-align: left; cursor: pointer;
}
.ee-calc-nav-btn:hover { background: var(--ee-card-3); }
.ee-calc-nav-btn.is-on { background: var(--ee-accent-soft); border-color: var(--ee-accent); color: var(--ee-accent); font-weight: 600; }
.ee-calc-main { padding: 16px; border: 1px solid var(--ee-line); border-radius: var(--ee-r); background: var(--ee-card); min-width: 0; }
.ee-calc-head h2 { margin: 0; font-size: 18px; }
.ee-calc-head p { margin: 5px 0 0; color: var(--ee-sub); font-size: 13px; }
.ee-calc-form { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ee-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ee-field label { font-size: 12.6px; color: var(--ee-sub); }
.ee-field .ee-input, .ee-field select { width: 100%; height: 40px; }
.ee-field .ee-input { padding: 0 11px; }
.ee-field-hint { font-size: 11px; color: var(--ee-faint); }
.ee-calc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ee-calc-out {
    margin-top: 16px; padding: 13px 14px; border: 1px solid var(--ee-ok); border-radius: var(--ee-r-sm);
    background: var(--ee-ok-soft);
}
.ee-calc-out.is-err { border-color: var(--ee-bad); background: var(--ee-bad-soft); }
.ee-calc-res { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ee-calc-res-i { min-width: 120px; }
.ee-calc-res-i span { display: block; font-size: 11.5px; color: var(--ee-sub); }
.ee-calc-res-i b { font-size: 18px; color: var(--ee-fg); font-variant-numeric: tabular-nums; }
.ee-calc-note { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--ee-line); border-radius: var(--ee-r-sm); background: var(--ee-card-2); }
.ee-calc-note p { margin: 0 0 6px; color: var(--ee-sub); font-size: 12.6px; }
.ee-calc-note b { color: var(--ee-fg-2); }
.ee-calc-warn { color: var(--ee-warn) !important; }

/* ---------------- 我的工具箱 ---------------- */
.ee-mine-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.ee-mine-stat { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--ee-line); border-radius: var(--ee-r-sm); background: var(--ee-card); color: var(--ee-sub); font-size: 13px; }
.ee-mine-stat b { color: var(--ee-fg); }
.ee-cmp { margin-top: 18px; padding: 14px; border: 1px solid var(--ee-accent); border-radius: var(--ee-r); background: var(--ee-card); }
.ee-cmp h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ee-cmp h3 .ee-btn { margin-left: auto; }
.ee-cmp-scroll { overflow-x: auto; margin-top: 12px; }
.ee-cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.8px; min-width: 520px; }
.ee-cmp-table th, .ee-cmp-table td { padding: 8px 10px; border-bottom: 1px solid var(--ee-line); border-right: 1px solid var(--ee-line); vertical-align: top; text-align: left; }
.ee-cmp-table th:first-child { width: 108px; color: var(--ee-sub); background: var(--ee-card-2); white-space: nowrap; }
.ee-mine-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ee-mine-item { display: flex; gap: 9px; align-items: center; padding: 10px 12px; border: 1px solid var(--ee-line); border-radius: var(--ee-r-sm); background: var(--ee-card); min-width: 0; }
.ee-mine-item .ee-mine-n { flex: 1 1 auto; min-width: 0; font-size: 13.4px; font-weight: 600; overflow-wrap: anywhere; cursor: pointer; }
.ee-mine-item .ee-mine-n:hover { color: var(--ee-accent); }
.ee-mine-time { font-size: 11.5px; color: var(--ee-faint); white-space: nowrap; }

/* ---------------- 关于 ---------------- */
.ee-about { margin-top: 20px; border: 1px solid var(--ee-line); border-radius: var(--ee-r); background: var(--ee-card); overflow: hidden; }
.ee-about-t {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 44px; padding: 10px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px;
}
.ee-about-t::-webkit-details-marker, .ee-about-t::marker { display: none; content: ''; }
.ee-about-t:hover { background: var(--ee-accent-soft); }
.ee-about-caret { transition: transform .16s ease; }
.ee-about[open] .ee-about-caret { transform: rotate(180deg); }
.ee-about[open] .ee-about-t { border-bottom: 1px solid var(--ee-line); }
.ee-about-body { padding: 12px 16px 16px; color: var(--ee-sub); font-size: 13px; }
.ee-about-body p { margin: 0 0 9px; }
.ee-about-body b { color: var(--ee-fg-2); }
.ee-about-body a { color: var(--ee-accent); }

/* ---------------- 详情抽屉 ---------------- */
.ee-mask { position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, .55); }
.ee-drawer {
    width: min(520px, 100%); height: 100%; display: flex; flex-direction: column;
    background: var(--ee-card); border-left: 1px solid var(--ee-line); box-shadow: var(--ee-shadow);
}
.ee-drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ee-line); }
.ee-drawer-title { margin: 0; font-size: 17px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.ee-drawer-x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--ee-card-2); color: var(--ee-sub); cursor: pointer; flex: 0 0 auto; }
.ee-drawer-x:hover { color: var(--ee-fg); background: var(--ee-card-3); }
.ee-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.ee-drawer-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ee-drawer-desc { margin: 0 0 12px; color: var(--ee-fg-2); font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.ee-drawer-en { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--ee-r-sm); background: var(--ee-card-2); color: var(--ee-sub); font-size: 12.8px; line-height: 1.7; overflow-wrap: anywhere; }
.ee-drawer-kv { display: grid; gap: 8px; margin: 0; }
.ee-drawer-kv > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
.ee-drawer-kv dt { color: var(--ee-faint); font-size: 12.5px; }
.ee-drawer-kv dd { margin: 0; color: var(--ee-fg-2); font-size: 12.8px; overflow-wrap: anywhere; }
.ee-drawer-kv a { color: var(--ee-accent); }
.ee-drawer-guide { margin-top: 16px; padding: 12px; border: 1px solid var(--ee-ok); border-radius: var(--ee-r-sm); background: var(--ee-ok-soft); }
.ee-drawer-guide h3 { margin: 0 0 6px; font-size: 13.5px; }
.ee-drawer-guide p { margin: 0 0 6px; color: var(--ee-sub); font-size: 12.5px; }
.ee-drawer-guide ul { margin: 0; padding-left: 17px; color: var(--ee-fg-2); font-size: 12.5px; }
.ee-drawer-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--ee-line); }
.ee-spacer { flex: 1 1 auto; }
.ee-toast {
    position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    z-index: 110000; max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 10px;
    background: var(--ee-card-3); border: 1px solid var(--ee-line-2); color: var(--ee-fg);
    box-shadow: var(--ee-shadow); font-size: 13.4px; text-align: center;
}
.ee-toast.is-err { border-color: var(--ee-bad); color: var(--ee-bad); }

/* ---------------- 无障碍与动效 ---------------- */
.ee :focus-visible, .ee-mask :focus-visible { outline: 2px solid var(--ee-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .ee *, .ee-mask * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .ee-spin { animation-duration: 1.6s !important; }
}
@media (hover: none) {
    .ee-card:hover { transform: none; }
    .ee-tab:hover { background: transparent; }
    .ee-tab.is-on:hover { background: var(--ee-accent); }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1400px) {
    .ee-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
    .ee-stat { grid-template-columns: repeat(3, minmax(58px, auto)); }
}
@media (max-width: 1100px) {
    .ee-hero { grid-template-columns: 46px minmax(0, 1fr); }
    .ee-hero-ic { width: 46px; height: 46px; font-size: 24px; }
    .ee-stat { grid-column: 1 / -1; grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .ee-stat-i b { font-size: 17px; }
    .ee-calc-layout { grid-template-columns: minmax(0, 186px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .ee { padding: 14px 14px 48px; }
    .ee-tools-right { margin-left: 0; }
    .ee-tabs { -webkit-overflow-scrolling: touch; }
    .ee-hero-sub { max-width: none; }
    .ee-calc-layout { grid-template-columns: minmax(0, 1fr); }
    .ee-calc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .ee-calc-nav-btn { width: auto; flex: 0 0 auto; }
    .ee-about-body { font-size: 12.8px; }
}
@media (max-width: 767px) {
    .ee { padding: 12px 12px calc(46px + env(safe-area-inset-bottom, 0px)); }
    .ee-hero { padding: 12px; gap: 10px; grid-template-columns: 40px minmax(0, 1fr); }
    .ee-hero-ic { width: 40px; height: 40px; font-size: 21px; border-radius: 11px; }
    .ee-hero-t { font-size: 18.5px; }
    .ee-hero-sub { font-size: 12.6px; }
    .ee-stat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 9px 11px; }
    .ee-stat-i { font-size: 11.5px; }
    .ee-stat-i b { font-size: 16px; }
    .ee-tabs { top: 0; margin-top: 10px; }
    .ee-tab { min-height: 40px; padding: 8px 12px; font-size: 13.4px; }
    .ee-tools { padding: 10px; }
    .ee-tools-row { gap: 8px; }
    .ee-search { flex: 1 1 100%; max-width: none; }
    .ee-search-in, .ee-select, .ee-input, .ee-field .ee-input, .ee-field select { font-size: 16px; }
    .ee-select, .ee-select-sm, .ee-btn { min-height: 40px; height: 40px; }
    .ee-btn { padding: 0 11px; font-size: 13px; }
    .ee-tools-ops > .ee-select { flex: 1 1 calc(50% - 4px); }
    .ee-tools-right { width: 100%; }
    .ee-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .ee-chip { min-height: 36px; }
    .ee-grid, .ee-path-grid, .ee-guide-grid, .ee-term-grid, .ee-mine-list { grid-template-columns: minmax(0, 1fr); }
    .ee-card-desc { min-height: 0; }
    .ee-jump { width: 100%; justify-content: center; margin-left: 0; }
    .ee-mask { padding: 0; align-items: flex-end; }
    .ee-drawer { width: 100%; height: min(88vh, 720px); border-left: 0; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .ee-drawer-foot .ee-btn { flex: 1 1 calc(50% - 4px); }
    .ee-drawer-foot .ee-btn-pri { flex: 1 1 100%; }
    .ee-calc-form { grid-template-columns: minmax(0, 1fr); }
    .ee-calc-acts .ee-btn { flex: 1 1 calc(33% - 6px); }
    .ee-pane-head { padding: 12px; }
    .ee-mine-ops { width: 100%; }
}
@media (max-width: 420px) {
    .ee-hero-tags { gap: 4px; }
    .ee-tag { font-size: 11px; padding: 2px 7px; }
    .ee-stat { gap: 6px 8px; }
    .ee-stat-i b { font-size: 15px; }
    .ee-tools-ops > .ee-select { flex: 1 1 100%; }
    .ee-pager-info { width: 100%; text-align: center; }
    .ee-toast { font-size: 12.6px; }
}
@media print {
    .ee-tools, .ee-tabs, .ee-pager, .ee-drawer-foot, .ee-toast, .ee-about-t, .ee-noscript { display: none !important; }
    .ee-card { break-inside: avoid; box-shadow: none; }
    body.page-electronics-full .app { max-width: 100%; }
}
