/* 多搜搜 图片工具页 —— 沿用 /assets/style.css 的变量与组件，只补充工具页需要的部分 */
.gj-tool{margin-top:6px}
.gj-tool .drop{padding:22px 18px}
.gj-tool .drop.gj-has{padding:14px 18px;border-style:solid;border-color:#cfe0f5;background:#fbfdff}
.gj-tool .drop.gj-has>p:first-child{display:none}
.gj-dropstat{font-size:14px;color:var(--ok);margin-top:8px;word-break:break-all}
.gj-dropstat:empty{display:none}
.gj-formats{font-size:13px;color:var(--muted);margin-top:6px}
.gj-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:6px 18px 18px;margin-top:14px}
.gj-form{border-bottom:1px solid #eef0f5;padding-bottom:6px}
.gj-row{display:flex;gap:14px;padding:11px 0;border-bottom:1px dashed #eef0f5;align-items:flex-start}
.gj-row:last-child{border-bottom:0}
.gj-row[hidden]{display:none}
.gj-k{flex:0 0 92px;font-weight:700;font-size:14.5px;padding-top:8px;color:#26324a}
.gj-v{flex:1;display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;min-width:0;font-size:14.5px;color:#3a465c}
.gj-v input[type=number],.gj-v input[type=text],.gj-v select{min-height:40px;border:1px solid #c8cfe0;border-radius:8px;padding:0 10px;font:15px var(--font);background:#fff;color:var(--ink)}
.gj-v input:focus,.gj-v select:focus{outline:2px solid rgba(23,105,210,.25);border-color:var(--primary)}
.gj-v input[type=color]{width:42px;height:36px;padding:2px;border:1px solid #c8cfe0;border-radius:8px;background:#fff;cursor:pointer}
.gj-v input[type=range]{width:150px;accent-color:var(--primary)}
.gj-v output{min-width:34px;font:600 13.5px var(--mono);color:var(--primary)}
.gj-text{flex:1 1 260px;min-width:0}
.gj-chk,.gj-radio{display:inline-flex;align-items:center;gap:6px;font-weight:500;cursor:pointer;white-space:nowrap}
.gj-chk input,.gj-radio input[type=radio]{width:17px;height:17px;accent-color:var(--primary)}
.gj-radio{padding:5px 10px;border:1px solid #d5dbea;border-radius:8px;background:#f7f9ff}
.gj-radio:has(input:checked){border-color:var(--primary);background:var(--primary-soft)}
.gj-radio i,.gj-sw i{display:inline-block;width:16px;height:16px;border-radius:4px;border:1px solid rgba(0,0,0,.18)}
.gj-radio input[type=color]{width:26px;height:22px;padding:0;border:0}
.gj-sw{gap:6px;min-height:36px;padding:0 10px}
.gj-or{color:var(--muted);margin-left:6px}
.gj-q{margin-left:8px}
.gj-sub{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13.5px;color:var(--muted)}
.gj-sub input[type=range]{width:110px}
.gj-tip{font-size:13px;color:var(--muted)}
.gj-more{padding:8px 0}
.gj-more summary{cursor:pointer;font-weight:650;font-size:14px;color:var(--primary);padding:6px 0}
.gj-empty{margin:14px 0 4px;color:var(--muted);font-size:14.5px}
.gj-stage{margin-top:14px}
.gj-crop{margin-bottom:14px}
.gj-crophead{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;color:var(--muted);margin-bottom:8px}
.gj-crophead b{color:var(--ink)}
.gj-crophead .op{min-height:34px;margin-left:auto}
.gj-cropbox,.gj-paint{width:100%;min-width:0}
.gj-cropcv{display:block;max-width:100%;margin:0 auto;border-radius:10px;touch-action:none;cursor:move;background:#eef1f6}
.gj-paint .gj-cropcv{cursor:crosshair}
.gj-out{margin-top:14px}
.gj-out:empty{display:none}
.gj-res{display:flex;flex-wrap:wrap;gap:14px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:10px;background:#fcfdff}
.gj-thumb{flex:0 0 auto;display:grid;place-items:center;width:120px;height:120px;border-radius:10px;overflow:hidden;border:1px solid #e4e8f0}
.gj-thumb img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.chk{background-color:#fff;background-image:linear-gradient(45deg,#e8ebf1 25%,transparent 25%),linear-gradient(-45deg,#e8ebf1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8ebf1 75%),linear-gradient(-45deg,transparent 75%,#e8ebf1 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.gj-file{background:#eef3fb;color:var(--primary);font-weight:800;font-size:20px}
.gj-rinfo{flex:1 1 240px;min-width:0;font-size:14px}
.gj-rinfo b{font-size:15px;word-break:break-all}
.gj-meta{color:var(--muted);margin-top:2px}
.gj-cmp{color:var(--ok)}
.gj-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.gj-chip{font-size:12.5px;padding:2px 8px;border-radius:999px;font-weight:650}
.gj-chip.ok{background:#e7f6ef;color:var(--ok)}
.gj-chip.bad{background:#fde8e6;color:#b42318}
.gj-note{font-size:13.5px;color:var(--warn);margin:6px 0 0}
.gj-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:14.5px;color:var(--muted)}
.gj-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:12px}
.gj-list{margin-top:14px;border:1px solid var(--line);border-radius:12px;padding:8px 12px;background:#fbfcff}
.gj-listhead{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:14px;padding:4px 0 8px}
.gj-listhead .op{min-height:32px}
.gj-li{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid #eef0f5;font-size:14px}
.gj-li .op{min-height:32px;padding:0 10px;font-size:13px}
.gj-li .op[disabled]{opacity:.4;cursor:default}
.gj-n{flex:0 0 26px;height:26px;display:grid;place-items:center;border-radius:7px;background:var(--primary-soft);color:var(--primary);font-weight:800;font-size:13px}
.gj-fn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gj-tiles{display:grid;gap:4px;max-width:520px;margin:0 auto}
.gj-tile{position:relative;padding:0;border:0;background:#eef1f6;cursor:pointer;border-radius:4px;overflow:hidden}
.gj-tile img{display:block;width:100%;height:auto}
.gj-tile span{position:absolute;left:6px;top:6px;min-width:22px;height:22px;padding:0 5px;border-radius:6px;background:rgba(23,32,51,.72);color:#fff;font:700 12.5px/22px var(--font);text-align:center}
.gj-tile:hover{outline:3px solid var(--primary)}
.gj-info{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:12px}
.gj-info .kv{flex:1 1 300px}
.gj-pickwrap{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start}
.gj-pickwrap .gj-paint{flex:999 1 360px}
.gj-pickside{flex:1 1 240px;min-width:0}
.gj-live{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:10px}
.gj-live i{width:48px;height:48px;border-radius:9px;border:1px solid rgba(0,0,0,.12);background:#fff;flex:none}
.gj-live b{display:block;font:700 16px var(--mono)}
.gj-live small{color:var(--muted);font:13px var(--mono)}
.gj-picked{display:flex;flex-direction:column;gap:6px}
.gj-pc{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px;border:1px solid #eef0f5;border-radius:9px}
.gj-pc i{width:28px;height:28px;border-radius:6px;border:1px solid rgba(0,0,0,.12)}
.gj-pc button{border:0;background:#f3f6fb;border-radius:6px;padding:4px 7px;font:12.5px var(--mono);cursor:pointer;color:var(--ink)}
.gj-pc button:hover{background:var(--primary-soft);color:var(--primary)}
.gj-pc .gj-x{margin-left:auto;background:transparent;color:var(--muted);font-size:16px}
.gj-pickcv{cursor:crosshair}
/* 规格卡 / 场景导航 */
.gj-spec{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0;list-style:none}
.gj-spec li{padding:6px 12px;border:1px solid #d9e6ef;border-radius:999px;background:#fff;font-size:14px;color:#33415a}
.gj-spec li b{color:var(--primary);font-weight:750}
.gj-warn{background:#fff8ec;border:1px solid #f4dfb8;border-radius:10px;padding:10px 14px;font-size:14px;color:#7a4a08;margin:0 0 16px}
.gj-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-top:8px}
.gj-cat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.gj-cat h3{margin:0 0 4px;font-size:16.5px}
.gj-cat h3 a{color:var(--ink);text-decoration:none}
.gj-cat h3 a:hover{color:var(--primary)}
.gj-cat p{margin:0 0 8px;font-size:13.5px;color:var(--muted);line-height:1.55}
.gj-links{display:flex;flex-wrap:wrap;gap:6px}
.gj-links a{display:inline-block;padding:4px 10px;border:1px solid #dfe5ef;border-radius:8px;background:#f8faff;font-size:13.5px;color:#2b3850;text-decoration:none;line-height:1.5}
.gj-links a:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}
.gj-links a.gj-all{border-style:dashed;color:var(--primary);font-weight:650}
.gj-scenes{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin:10px 0 6px}
.gj-scene{display:block;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;text-decoration:none;color:var(--ink)}
.prose a.gj-scene{text-decoration:none;font-weight:400}
.gj-scene:hover{border-color:var(--primary);background:var(--primary-soft)}
.gj-scene b{display:block;font-size:15px;line-height:1.4}
.gj-scene span{display:block;font-size:13px;color:var(--muted);margin-top:3px;line-height:1.5}
.gj-home{margin-top:26px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px 22px;box-shadow:0 8px 26px rgba(38,64,102,.045)}
.gj-home h2{margin:0 0 4px}
.gj-home>p{margin:0 0 12px;color:var(--muted);font-size:15px}
.gj-home .gj-cat{background:#fbfcff}
.gj-home-more{margin:14px 0 0;text-align:center}
@media (max-width:600px){
  .gj-panel{padding:4px 12px 14px}
  .gj-row{flex-direction:column;gap:6px}
  .gj-k{flex:none;padding-top:0}
  .gj-v input[type=range]{width:120px}
  .gj-thumb{width:84px;height:84px}
  .gj-res .btn{width:100%}
  .gj-home{padding:16px 14px}
}
/* ===== 首页区块：与首页识图工作台“分类 + 功能”行同一套视觉 ===== */
.gjh{margin-top:26px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px 22px 8px;box-shadow:0 8px 26px rgba(38,64,102,.045)}
.gjh-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:6px}
.gjh-head h2{margin:0 0 2px}
.gjh-head p{margin:0;color:var(--muted);font-size:15px}
.gjh-all{flex:none;font-size:14.5px;font-weight:650;color:var(--primary);text-decoration:none;white-space:nowrap}
.gjh-row{display:flex;gap:18px;padding:14px 0;border-top:1px solid #eef0f5;align-items:flex-start}
.gjh-cat{flex:0 0 196px;display:flex;align-items:center;gap:10px;min-width:0;color:#26324a;text-decoration:none}
.gjh-cat i{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eaf3ff;color:#1769d2;font-style:normal;font-size:15px;font-weight:800}
.gjh-row:nth-of-type(3n+2) .gjh-cat i{background:#e9f8f4;color:#087f70}
.gjh-row:nth-of-type(3n) .gjh-cat i{background:#fff2e4;color:#a85b09}
.gjh-cat span{display:flex;flex-direction:column;min-width:0}
.gjh-cat b{font-size:15px;line-height:1.35;white-space:nowrap}
.gjh-cat small{font-size:12px;color:var(--muted)}
.gjh-cat:hover b{color:var(--primary)}
.gjh-links{flex:1;min-width:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:6px 8px}
.gjh-links a{display:block;min-width:0;padding:7px 11px;border:1px solid transparent;border-radius:8px;background:#f6f8fc;color:#33415a;font-size:14px;line-height:1.5;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:border-color .15s ease,background .15s ease,color .15s ease}
.gjh-links a:hover{border-color:#b8d3f3;background:var(--primary-soft);color:var(--primary)}
@media (max-width:760px){
  .gjh{padding:16px 14px 4px}
  .gjh-head{flex-direction:column;align-items:flex-start;gap:4px}.gjh-head p{font-size:14px}
  .gjh-row{flex-direction:column;gap:10px}
  .gjh-cat{flex:none}
  .gjh-links{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
  .gjh-links a{font-size:13px;padding:7px 5px 7px 7px;white-space:normal;overflow:visible;line-height:1.45;letter-spacing:-.01em}
  .gjh-links{gap:6px}
}
/* ===== 首页顶部综合图片搜索 ===== */
.gjs{max-width:760px;margin:0 auto 22px;text-align:left}
.gjs-sr{position:absolute;left:-9999px}
.gjs-tabs{display:flex;gap:4px;padding-left:4px}
.gjs-tabs button{position:relative;display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:0 14px;border:0;border-radius:10px 10px 0 0;background:transparent;color:#5d687b;font:600 14.5px var(--font);cursor:pointer}
.gjs-tabs button small{font-size:11.5px;font-weight:600;color:#97a1b3}
.gjs-tabs button:hover{color:var(--primary)}
.gjs-tabs button[aria-selected=true]{background:var(--primary);color:#fff}
.gjs-tabs button[aria-selected=true] small{color:rgba(255,255,255,.75)}
.gjs-bar{display:flex;gap:0;border:2px solid var(--primary);border-radius:0 12px 12px 12px;background:#fff;box-shadow:0 8px 22px rgba(23,105,210,.1);overflow:hidden}
.gjs-bar input{flex:1;min-width:0;min-height:52px;border:0;padding:0 16px;font:16px var(--font);color:var(--ink);background:transparent;outline:0}
.gjs-go{flex:none;min-width:112px;padding:0 20px;border:0;background:var(--primary);color:#fff;font:700 16px var(--font);cursor:pointer;white-space:nowrap}
.gjs-go:hover{background:var(--primary-dark)}
.gjs-engines{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.gjs-engines[hidden]{display:none}
.gjs-engines label{position:relative;cursor:pointer}
.gjs-engines input{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
.gjs-engines span{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid #dce4ef;border-radius:999px;background:rgba(255,255,255,.9);color:#3a465c;font-size:13.5px;transition:border-color .15s,background .15s,color .15s}
.gjs-engines label:hover span{border-color:#9dc4f0;color:var(--primary)}
.gjs-engines input:checked+span{border-color:var(--primary);background:var(--primary-soft);color:var(--primary);font-weight:650}
.gjs-engines input:focus-visible+span{outline:3px solid rgba(23,105,210,.25);outline-offset:1px}
.gjs-desc{margin:8px 2px 0;font-size:13px;color:var(--muted);min-height:1.5em}
@media (max-width:600px){
  .gjs{margin-bottom:18px}
  .gjs-tabs{padding-left:0;gap:2px}
  .gjs-tabs button{padding:0 10px;font-size:13.5px;min-height:36px}
  .gjs-bar input{min-height:48px;padding:0 12px;font-size:15px}
  .gjs-go{min-width:0;padding:0 14px;font-size:15px}
  .gjs-go span{display:none}
  .gjs-engines{flex-wrap:nowrap;overflow-x:auto;margin-right:-16px;padding:0 16px 4px 0;scrollbar-width:thin}
  .gjs-engines label{flex:none}
}
