@charset "utf-8";
/* ============================================================
   tools/css/pic.css —— 图片格式转换与压缩工具（手机版）
   单招升学网 · 工具箱
   配色与主站 mxiangzhe.css 保持一致，改主题只动下面这段
   ============================================================ */

:root {
    --ink: #0E2A47;
    --ink2: #173E63;
    --org: #F2600C;
    --org2: #FF7A18;
    --orgbg: #FFF3E9;
    --orgln: #FFD9BC;
    --green: #0E8F5B;
    --greenbg: #EAF7F1;
    --blue: #2B6CB0;
    --bluebg: #EDF4FC;
    --red: #D64545;
    --txt: #1B2430;
    --sub: #7A8592;
    --line: #EEF1F5;
    --bg: #F5F7FA;
    --r: 12px;
    --dock: 128px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
    font: 14.5px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--txt);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}
h1, h2, h3 { margin: 0; font-weight: 700; }
p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: 15px; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ 顶栏 ============ */
.hd {
    position: sticky; top: 0; z-index: 50; background: #fff;
    box-shadow: 0 1px 0 #E6EAF0; padding: 9px 12px;
    display: flex; align-items: center; gap: 10px;
    padding-top: calc(9px + env(safe-area-inset-top));
}
.hd-back {
    flex: none; width: 34px; height: 34px; border-radius: 50%; background: #F4F6F9;
    display: flex; align-items: center; justify-content: center; color: #40505F;
}
.hd-back svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hd-t { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-pc { flex: none; font-size: 12.5px; color: var(--blue); background: var(--bluebg); border-radius: 13px; padding: 5px 11px; }

/* ============ 首屏 ============ */
.hero { background: linear-gradient(180deg, #fff, #F7FAFD); border-bottom: 1px solid var(--line); padding: 16px 12px 14px; }
.hero h1 { font-size: 21px; color: var(--ink); line-height: 1.4; }
.hero .hot { margin-top: 7px; font-size: 14px; font-weight: 700; color: var(--org); letter-spacing: .5px; }
.hero .sub { margin-top: 8px; font-size: 13px; color: #5B6672; line-height: 1.75; }
.tags { margin-top: 10px; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tags::-webkit-scrollbar { display: none; }
.tags span {
    flex: none; font-size: 12px; color: #40505F; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 4px 10px; white-space: nowrap;
}
.tags span.g { color: var(--green); background: var(--greenbg); border-color: #CFE9DE; }

/* ============ 卡片 ============ */
main { padding: 12px; }
.card { background: #fff; border-radius: var(--r); box-shadow: 0 1px 2px rgba(14, 42, 71, .05); margin-bottom: 12px; overflow: hidden; }
.card-hd { display: flex; align-items: center; gap: 8px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.card-hd h2 { font-size: 15.5px; color: var(--ink); }
.card-hd .step {
    flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--org); color: #fff;
    font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.card-hd .tip { margin-left: auto; font-size: 11.5px; color: var(--sub); }
.card-bd { padding: 14px; }

/* ============ 上传 ============ */
.drop {
    border: 2px dashed #CBD6E2; border-radius: 12px; background: #FAFCFE;
    padding: 22px 14px; text-align: center;
}
.drop.over { border-color: var(--org); background: var(--orgbg); }
.drop-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--orgbg); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.drop-ico svg { width: 27px; height: 27px; stroke: var(--org); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop h3 { font-size: 15.5px; color: var(--ink); }
.drop p { margin-top: 6px; font-size: 12.5px; color: var(--sub); line-height: 1.7; }
.drop-btns { margin-top: 14px; display: grid; gap: 9px; }
.privacy {
    margin-top: 12px; display: flex; gap: 8px; align-items: flex-start;
    background: var(--greenbg); border-radius: 9px; padding: 10px 12px;
    font-size: 12px; color: #1F6E4C; line-height: 1.65;
}
.privacy svg { flex: none; width: 14px; height: 14px; margin-top: 3px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 46px; padding: 0 16px; border-radius: 10px; font-size: 15.5px; font-weight: 700;
    border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: linear-gradient(180deg, var(--org2), var(--org)); color: #fff; box-shadow: 0 3px 10px rgba(242, 96, 12, .24); }
.btn-primary:disabled { background: #E4E9EF; color: #A2ACB8; box-shadow: none; }
.btn-line { background: #fff; border-color: #D3DDE8; color: #33465A; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:disabled { background: #DCE5E1; color: #A2ACB8; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; font-weight: 400; }
.btn-mini { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-icon {
    width: 34px; height: 34px; padding: 0; border-radius: 9px; border: 1px solid var(--line);
    background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--sub);
}
.btn-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 预设 ============ */
.presets { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px; background: #FBFDFF; border-bottom: 1px solid var(--line); }
.presets::-webkit-scrollbar { display: none; }
.chip {
    flex: none; height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid #D3DDE8; background: #fff;
    font-size: 13px; color: #40505F;
}
.chip.on { background: var(--orgbg); border-color: var(--orgln); color: var(--org); font-weight: 700; }

/* ============ 折叠面板 ============ */
.acc { border-bottom: 1px solid var(--line); }
.acc:last-child { border-bottom: 0; }
.acc > summary {
    list-style: none; cursor: pointer; padding: 14px; font-size: 15px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; gap: 8px;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after {
    content: ""; margin-left: 10px; width: 8px; height: 8px; flex: none;
    border-right: 2px solid #B0B9C4; border-bottom: 2px solid #B0B9C4;
    transform: rotate(45deg); transition: .2s; margin-top: -3px;
}
.acc[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.acc > summary .cnt { margin-left: auto; font-size: 12px; color: var(--sub); font-weight: 400; }
.acc-bd { padding: 0 14px 16px; }
.acc-bd .hint { font-size: 12px; color: var(--sub); line-height: 1.7; margin-top: 6px; }

/* ============ 表单 ============ */
.fld { margin-bottom: 16px; }
.fld:last-child { margin-bottom: 0; }
/* 注意：这里要排除 .sw，否则 display:block 会把开关的 flex 布局顶掉，文字会被挡在滑块下面 */
.fld > label:not(.sw), .fld .lb { display: block; font-size: 13px; color: #5B6672; margin-bottom: 7px; }
.sel, .num {
    width: 100%; height: 44px; padding: 0 12px; border: 1px solid #D3DDE8; border-radius: 9px; background: #fff;
}
.sel {
    padding-right: 34px; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5l4-4' fill='none' stroke='%237A8592' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
.sel:focus, .num:focus { outline: 0; border-color: var(--org); }
.num:disabled, .sel:disabled { background: #F4F6F9; color: #9AA4B1; }

.slider-row { display: flex; align-items: center; gap: 12px; }
input[type=range] {
    -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 3px; outline: 0;
    background: linear-gradient(90deg, var(--org) var(--p, 82%), #E3E9EF var(--p, 82%));
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff;
    border: 4px solid var(--org); box-shadow: 0 1px 5px rgba(14, 42, 71, .28);
}
.slider-val { width: 44px; text-align: right; font-size: 15px; font-weight: 700; color: var(--org); }
.slider-val.off { color: #9AA4B1; }

.sw { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: #5B6672; line-height: 1.55; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw .track { flex: none; margin-top: 1px; width: 46px; height: 26px; border-radius: 13px; background: #D3DDE8; position: relative; transition: .18s; }
.sw .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw input:checked + .track { background: var(--org); }
.sw input:checked + .track::after { left: 23px; }
.sw b { color: var(--ink); font-weight: 700; display: block; }
.sw small { display: block; color: #9AA4B1; font-size: 11.5px; line-height: 1.55; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt10 { margin-top: 10px; }
.color-row { display: flex; align-items: center; gap: 10px; }
input[type=color] { width: 46px; height: 40px; padding: 2px; border: 1px solid #D3DDE8; border-radius: 9px; background: #fff; }

/* ============ 结果列表 ============ */
.res-ops { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #FCFDFE; }
.res-ops .cnt { font-size: 12.5px; color: var(--sub); flex: 1; }
.res-ops .cnt b { color: var(--ink); }

.list { padding: 6px 0; }
.ri { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.ri:last-child { border-bottom: 0; }
.ri.bad { background: #FFFBFB; }
.ri-pick { flex: none; }
.ri-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.ri-pick span {
    display: block; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #CBD6E2; background: #fff; position: relative;
}
.ri-pick input:checked + span { background: var(--org); border-color: var(--org); }
.ri-pick input:checked + span::after {
    content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.ri-thumb {
    flex: none; width: 54px; height: 54px; border-radius: 9px; overflow: hidden; position: relative;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #EEF2F6 25%, transparent 25%, transparent 75%, #EEF2F6 75%),
        linear-gradient(45deg, #EEF2F6 25%, transparent 25%, transparent 75%, #EEF2F6 75%);
    background-size: 14px 14px; background-position: 0 0, 7px 7px;
    border: 1px solid var(--line);
}
.ri-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ri-thumb .ft {
    position: absolute; left: 0; bottom: 0; right: 0; text-align: center; font-size: 9.5px;
    background: rgba(14, 42, 71, .72); color: #fff; line-height: 15px; letter-spacing: .3px;
}
.ri-info { flex: 1; min-width: 0; }
.ri-name { font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-meta { margin-top: 3px; font-size: 11.5px; color: var(--sub); line-height: 1.6; }
.ri-meta em { font-style: normal; color: var(--ink2); font-weight: 700; }
.ri-meta .pct { color: var(--green); font-weight: 700; }
.ri-meta .pct.up { color: var(--red); }
.ri-note { margin-top: 4px; font-size: 11px; color: #B25300; background: #FFF7E8; border-radius: 5px; padding: 3px 6px; display: inline-block; }
.ri-note.err { color: var(--red); background: #FDF1F1; }
.ri-act { flex: none; display: flex; flex-direction: column; gap: 6px; }

.empty { padding: 34px 14px; text-align: center; color: var(--sub); font-size: 13px; }
.empty svg { width: 46px; height: 46px; stroke: #C9D4E0; fill: none; stroke-width: 1.4; margin: 0 auto 10px; }

/* ============ 底部操作条 ============ */
.dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .97); box-shadow: 0 -2px 14px rgba(14, 42, 71, .09);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    backdrop-filter: blur(8px);
}
.dock-stat { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--sub); margin-bottom: 8px; }
.dock-stat b { color: var(--ink); font-size: 13px; }
.dock-stat s { color: #9AA4B1; }
.dock-stat .save { margin-left: auto; color: var(--green); font-weight: 700; font-size: 12.5px; }
.dock-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dock-bar { height: 4px; border-radius: 2px; background: #E9EEF4; overflow: hidden; margin-bottom: 8px; }
.dock-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--org2), var(--org)); transition: width .2s; }
.dock-txt { font-size: 11.5px; color: var(--sub); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-txt b { color: var(--ink2); }

/* ============ 对比弹层 ============ */
.sheet { position: fixed; inset: 0; z-index: 200; background: rgba(9, 20, 33, .9); display: flex; flex-direction: column; }
.sheet-hd { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; color: #fff; }
.sheet-hd .t { flex: 1; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-hd .x { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 16px; }
.sheet-bd { flex: 1; overflow: auto; padding: 0 12px; -webkit-overflow-scrolling: touch; }
.cmp { margin-bottom: 12px; }
.cmp .cap { color: #C7D3DF; font-size: 12px; margin-bottom: 6px; display: flex; gap: 8px; }
.cmp .cap b { color: #fff; }
.cmp .imgbox { background: #16232F; border-radius: 10px; padding: 6px; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.cmp .imgbox img { max-height: 40vh; object-fit: contain; margin: 0 auto; }
.sheet-info { color: #C7D3DF; font-size: 12.5px; line-height: 1.9; padding: 4px 0 12px; }
.sheet-info b { color: #fff; }
.sheet-info em { font-style: normal; color: #46D89B; font-weight: 700; }
.sheet-ft { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.sheet-ft .full { grid-column: 1 / -1; }

/* ============ 提示 ============ */
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock) + 16px + env(safe-area-inset-bottom)); z-index: 300; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
    background: #16232F; color: #fff; font-size: 13px; padding: 10px 14px; border-radius: 9px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: tin .2s ease-out; line-height: 1.6;
}
.toast.ok { background: var(--green); }
.toast.warn { background: #C77A0A; }
.toast.err { background: #C0392B; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ 正文（SEO 区） ============ */
.sec { background: #fff; border-radius: var(--r); padding: 16px 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(14, 42, 71, .05); }
.sec h2 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.sec h2 em { font-style: normal; color: var(--org); }
.sec h3 { font-size: 14.5px; color: var(--ink2); margin: 14px 0 6px; }
.sec p { font-size: 13.5px; color: #3E4A57; line-height: 1.9; margin-bottom: 10px; }
.sec p:last-child { margin-bottom: 0; }
.sec a.inl { color: var(--blue); }

.feat { display: grid; gap: 10px; margin-top: 4px; }
.feat-i { border: 1px solid var(--line); border-left: 3px solid var(--org); border-radius: 9px; padding: 12px 13px; background: #FCFDFF; }
.feat-i.g { border-left-color: var(--green); }
.feat-i.b { border-left-color: var(--blue); }
.feat-i h3 { margin: 0 0 5px; font-size: 14px; color: var(--ink); }
.feat-i p { font-size: 12.5px; color: #5B6672; line-height: 1.8; margin: 0; }

.ol { counter-reset: s; }
.ol li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px dashed var(--line); font-size: 13px; color: #4A5764; line-height: 1.8; }
.ol li:last-child { border-bottom: 0; }
.ol li::before {
    counter-increment: s; content: counter(s);
    position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--orgbg); color: var(--org); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}
.ol li b { color: var(--ink); }

.faq dt { font-size: 14px; font-weight: 700; color: var(--ink); padding: 12px 0 6px; border-top: 1px dashed var(--line); }
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dt::before { content: "Q "; color: var(--org); }
.faq dd { font-size: 13px; color: #4A5764; line-height: 1.9; padding-bottom: 4px; }
.faq dd b { color: var(--ink2); }

.priv { display: flex; gap: 10px; background: var(--greenbg); border-radius: 10px; padding: 13px 14px; margin-top: 6px; }
.priv svg { flex: none; width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.priv p { font-size: 12.5px; color: #235C45; line-height: 1.85; margin: 0 0 8px; }
.priv p:last-child { margin-bottom: 0; }
.priv code { background: #fff; border-radius: 4px; padding: 1px 5px; font-size: 12px; }

.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { font-size: 12.5px; color: #40505F; background: #F5F7FA; border-radius: 15px; padding: 7px 13px; }

.foot { padding: 18px 14px 26px; text-align: center; font-size: 12px; color: var(--sub); line-height: 1.9; }
.foot a { color: var(--blue); }
