:root{--navy:#0b1b31;--navy2:#102843;--blue:#3974e8;--blue2:#245bc7;--bg:#f4f6fa;--card:#fff;--text:#1a2940;--muted:#7e8ba0;--line:#e8edf4;--green:#15966b;--shadow:0 8px 26px rgba(17,38,70,.055)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:"DM Sans","Noto Sans SC",Arial,sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.app-shell{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:linear-gradient(180deg,#09192d,#102944);color:#d8e4f2;padding:22px 15px 18px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;padding:2px 8px 24px;color:inherit;text-decoration:none}
.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(140deg,#4b82f0,#19a89a);font-size:14px;font-weight:900;color:#fff;box-shadow:0 9px 25px #2465d24d}
.brand-text strong{display:block;font-size:15px;color:#fff;letter-spacing:.2px}
.brand-text small{display:block;margin-top:4px;color:#8198b3;font-size:9px;letter-spacing:1.7px}
.side-caption{display:flex;align-items:center;justify-content:space-between;padding:10px 10px 8px;color:#6f89a5;font-size:9px;font-weight:800;letter-spacing:1.5px}
.back-link{display:flex;align-items:center;gap:10px;margin:2px 3px 13px;padding:10px 11px;border:1px solid #29435e;border-radius:10px;color:#c7d7e8;text-decoration:none;font-size:11px;transition:.18s}
.back-link:hover{background:#183550;border-color:#3e6387;color:#fff}
.back-icon{font-size:16px;color:#7fa9f6}
.category-caption{margin-top:4px}
.category-list{display:grid;gap:3px}
.category-group-label{padding:13px 10px 5px;color:#6d89a5;font-size:9px;letter-spacing:1.2px;font-weight:800}
.category-btn{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#aec1d5;text-align:left;font-size:11px;transition:.16s}
.category-btn:hover{background:#ffffff0c;color:#fff}
.category-btn.active{background:linear-gradient(90deg,#2865d8b8,#2355a45c);border-color:#6896dd35;color:#fff}
.category-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#ffffff12;color:#a8c6fa;font-size:12px;flex:0 0 auto}
.category-btn.active .category-icon{background:#ffffff25;color:#fff}
.category-name{min-width:0;flex:1}
.category-count{font-size:9px;color:#6f89a5}
.category-btn.active .category-count{color:#c7d9f4}
.sidebar-foot{margin-top:auto;width:100%;padding:13px 12px;border:1px solid #ffffff22;border-radius:12px;background:#ffffff0b;color:inherit;text-align:left;display:block;transition:.18s}.sidebar-foot:hover{background:#ffffff15;border-color:#5b8fe0;transform:translateY(-2px)}.sidebar-foot:focus-visible{outline:2px solid #80aaff;outline-offset:2px}.sidebar-foot .foot-action{display:block;margin-top:8px;color:#9fc0ff;font-size:9px;font-weight:700}
.foot-symbol{display:block;color:#f3c36a;font-size:16px;margin-bottom:6px}
.sidebar-foot .foot-title{display:block;font-size:11px;color:#dce8f5;font-weight:700}.sidebar-foot .foot-description{display:block;margin:5px 0 0;color:#849db7;font-size:10px;line-height:1.7}
.main-area{min-width:0}
.topbar{height:66px;padding:0 34px;background:#ffffffed;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}
.breadcrumb{display:flex;align-items:center;gap:10px;font-size:11px;color:#9aa5b5}
.breadcrumb b{font-weight:400;color:#c5ccd6}
.breadcrumb strong{color:#34445e;font-weight:700}
.top-actions{display:flex;align-items:center;gap:9px}
.top-status{display:flex;align-items:center;gap:7px;margin-right:8px;color:#7e8da2;font-size:10px}
.top-status i{width:6px;height:6px;border-radius:50%;background:#20ad7a;box-shadow:0 0 0 4px #20ad7a18}
.top-btn{border:1px solid #e4e9f1;background:#fff;border-radius:9px;padding:8px 12px;color:#66758b;font-size:10px;transition:.18s}
.top-btn:hover{border-color:#cbd9f4;color:var(--blue);background:#f8faff}
.manage-btn{background:#eef4ff;border-color:#dce7ff;color:#3569d5;font-weight:700}
.hero{min-height:280px;position:relative;overflow:hidden;padding:47px 5.3% 34px;background:linear-gradient(110deg,#edf3ff 0%,#f6f8fd 57%,#eef4fb 100%);border-bottom:1px solid #e7edf6}
.hero-copy{position:relative;z-index:2;max-width:690px}
.hero-eyebrow,.eyebrow-small{font-size:9px;letter-spacing:1.8px;font-weight:800;color:#4b78d7}
.hero-eyebrow{display:flex;align-items:center;gap:8px}
.hero-eyebrow span{width:6px;height:6px;border-radius:50%;background:#4b78d7;box-shadow:0 0 0 4px #4b78d719}
.hero h1{margin:14px 0 8px;font-size:34px;letter-spacing:-1.2px;color:#172b48}
.hero p{margin:0 0 20px;color:#78879d;font-size:12px;line-height:1.7}
.search-box{height:51px;max-width:630px;display:flex;align-items:center;gap:10px;padding:0 13px;background:#fff;border:1px solid #e1e8f3;border-radius:12px;box-shadow:0 9px 25px #244b8b0b}
.search-symbol{font-size:24px;color:#8fa0b8;transform:rotate(-15deg)}
.search-box input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#263a58;font-size:11px}
.search-box input::placeholder{color:#a3adbc}
.search-box kbd{padding:4px 6px;border:1px solid #e9edf3;border-radius:5px;color:#a2acba;font-size:8px;white-space:nowrap}
.search-box button{display:none;border:0;background:transparent;color:#9ba6b5;font-size:20px}
.hero-counts{display:flex;align-items:center;gap:12px;margin-top:15px;color:#95a1b2;font-size:9px}
.hero-counts b{color:#465b7b;font-size:12px}
.hero-counts i{width:3px;height:3px;border-radius:50%;background:#bbc5d1}
.hero-art{position:absolute;right:8%;top:0;width:340px;height:100%;opacity:.9}
.art-ring{position:absolute;border:1px solid #8aa9e41f;border-radius:50%}
.ring-a{width:310px;height:310px;right:0;top:-15px}
.ring-b{width:230px;height:230px;right:40px;top:25px}
.art-tile{position:absolute;display:grid;place-items:center;border:1px solid #ffffffc9;border-radius:19px;background:linear-gradient(145deg,#fff,#e5edff);box-shadow:0 17px 40px #426cb51a;color:#5c83d9;font-weight:800}
.tile-a{width:75px;height:75px;right:110px;top:75px;font-size:23px;transform:rotate(-9deg)}
.tile-b{width:53px;height:53px;right:36px;top:154px;font-size:25px;transform:rotate(11deg)}
.tile-c{width:48px;height:48px;right:207px;top:178px;font-size:23px;transform:rotate(12deg)}
.toolbar-row{max-width:1500px;margin:22px auto 0;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.filter-group{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.filter-chip{border:1px solid #e5eaf1;border-radius:20px;background:#fff;padding:8px 13px;color:#7c899d;font-size:10px;transition:.18s}
.filter-chip:hover,.filter-chip.active{background:#edf3ff;border-color:#d8e5ff;color:#356bd9}
.filter-chip span{display:inline-grid;place-items:center;min-width:16px;height:16px;margin-left:3px;padding:0 4px;border-radius:8px;background:#dce8ff;color:#376bd2;font-size:8px}
.sort-box{display:flex;align-items:center;gap:8px;color:#9aa5b5;font-size:9px;white-space:nowrap}
.sort-box select{border:1px solid #e6ebf2;border-radius:8px;background:#fff;padding:8px 10px;color:#66748a;font-size:10px;outline:0}
.content-wrap{max-width:1500px;margin:0 auto;padding:25px 34px 38px}
.content-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:15px}
.eyebrow-small{font-size:8px;letter-spacing:1.7px}
.content-heading h2{font-size:20px;letter-spacing:-.4px;margin:5px 0}
.content-heading p{margin:0;color:#9aa5b5;font-size:10px}
.result-count{padding:6px 9px;border:1px solid #e9edf3;border-radius:7px;background:#fff;color:#91a0b3;font-size:9px}
.tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tool-card{min-width:0;min-height:184px;padding:14px 14px 12px;border:1px solid #e8edf3;border-radius:13px;background:#fff;box-shadow:0 3px 13px #1a345608;display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s,border-color .18s}
.tool-card:hover{transform:translateY(-3px);border-color:#d6e2f8;box-shadow:0 12px 28px #1a345611}
.card-head{display:flex;align-items:center;gap:9px;min-width:0}
.tool-icon{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:linear-gradient(145deg,#fff,#f1f5fb);border:1px solid #e9eef6;color:#fff;font-size:12px;font-weight:800;letter-spacing:-.4px;box-shadow:0 5px 12px rgba(30,55,95,.07)}.tool-icon img{display:block;width:27px;height:27px;object-fit:contain}.tool-icon.logo-fallback{background:var(--accent,#3974e8);color:#fff}.tool-icon.logo-holder{background:#fff}
.card-name-wrap{min-width:0;flex:1}
.card-name{font-size:11px;font-weight:800;color:#26364f;line-height:1.45;overflow-wrap:anywhere}
.card-category{margin-top:3px;color:#a0aabc;font-size:8px}
.favorite-btn{border:0;background:transparent;color:#bdc5d0;font-size:19px;padding:2px;line-height:1}
.favorite-btn.active{color:#e8a43c}
.card-desc{margin:12px 0 10px;color:#7e8ba0;font-size:9px;line-height:1.75;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:47px}
.card-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:auto}
.tag{padding:4px 6px;border-radius:5px;background:#f3f5f8;color:#8995a7;font-size:8px}
.tag.free{background:#e9f7f1;color:#16835d}
.tag.ai{background:#edf3ff;color:#5076c7}
.tag.recommend{background:#fff5e8;color:#b47c2e}
.card-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:11px;padding-top:9px;border-top:1px solid #f0f2f5}
.rating{font-size:9px;color:#dfa143;letter-spacing:.5px;white-space:nowrap}
.card-actions{display:flex;gap:5px}
.card-actions button,.card-actions a{border-radius:6px;padding:6px 8px;font-size:8px;text-decoration:none}
.detail-btn{border:1px solid #e7ebf1;background:#fff;color:#6f7e92}
.visit-btn{border:1px solid #3b73e5;background:#3b73e5;color:#fff}
.visit-btn:hover{background:#285fcf;border-color:#285fcf}
.empty-state{text-align:center;padding:58px 20px;background:#fff;border:1px dashed #dce4ef;border-radius:14px}
.empty-icon{font-size:35px;color:#9bb0d7}
.empty-state h3{font-size:14px;margin:9px 0 4px}
.empty-state p{font-size:10px;color:#96a1b1}
.primary-btn{border:0;border-radius:7px;background:#3974e8;color:#fff;padding:9px 14px;font-size:10px}
.bottom-note{max-width:1432px;margin:0 auto 26px;padding:13px 16px;border:1px solid #e7edf4;border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:15px}
.note-left{display:flex;align-items:center;gap:10px}
.note-mark{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#eef4ff;color:#4d7bd7;font-weight:800;font-size:11px}
.note-left strong{font-size:9px;color:#50617a}
.note-left p{margin:3px 0 0;color:#9aa5b5;font-size:8px;line-height:1.6}
.note-right{font-size:8px;color:#a5afbc;white-space:nowrap}
footer{border-top:1px solid #e7ecf2;background:#fff;padding:17px 34px;display:flex;justify-content:space-between;color:#a2acba;font-size:9px}
.modal-backdrop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:20px;background:#0b1b3175;backdrop-filter:blur(4px)}
.modal{position:relative;width:min(760px,100%);max-height:90vh;overflow:auto;border-radius:17px;background:#fff;padding:26px;box-shadow:0 25px 80px #07172c44}
.modal-x{position:absolute;right:15px;top:13px;width:30px;height:30px;border:0;border-radius:50%;background:#f1f4f8;color:#7e8ba0;font-size:20px;line-height:1}
.detail-head{display:flex;align-items:center;gap:13px;padding-right:35px;margin-bottom:16px}
.detail-head .tool-icon{width:50px;height:50px;flex-basis:50px;font-size:14px}.detail-head .tool-icon img{width:34px;height:34px}
.detail-head h2{font-size:18px;margin:0 0 4px}
.detail-head p{font-size:9px;color:#9aa5b5;margin:0}
.detail-actions{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0 18px}
.detail-actions a,.detail-actions button{display:inline-block;padding:8px 11px;border-radius:7px;font-size:9px;text-decoration:none}
.detail-block{padding:12px 0;border-top:1px solid #edf0f4}
.detail-block h3{font-size:10px;color:#46556c;margin:0 0 6px}
.detail-block p{font-size:10px;line-height:1.8;color:#78869b;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.detail-block a{color:#3974e8}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}
.admin-modal{width:min(920px,100%);padding:25px}
.admin-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-right:32px}
.admin-header h2{font-size:20px;margin:5px 0}
.admin-header p{font-size:10px;color:#8c99ac;margin:0}
.local-save-badge{border:1px solid #d9e9e2;border-radius:20px;background:#eff9f4;color:#25805e;padding:7px 10px;font-size:9px;white-space:nowrap}
.local-warning{margin:16px 0 13px;padding:10px 12px;border:1px solid #f1e4c9;border-radius:8px;background:#fff9ed;color:#98713a;font-size:9px;line-height:1.7}
.admin-tabs{display:flex;gap:5px;border-bottom:1px solid #e9edf3}
.admin-tab{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 13px;color:#8995a7;font-size:10px}
.admin-tab.active{border-bottom-color:#3974e8;color:#3269d9;font-weight:800}
.admin-body{padding-top:15px}
.admin-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.admin-toolbar input{flex:1;min-width:170px}
.form-input,.form-select,.form-textarea,.admin-toolbar input{width:100%;border:1px solid #e0e6ef;border-radius:7px;background:#fff;padding:9px 10px;color:#33445d;font-size:10px;outline:0}
.form-input:focus,.form-select:focus,.form-textarea:focus,.admin-toolbar input:focus{border-color:#9db9ef;box-shadow:0 0 0 3px #3974e814}
.form-textarea{min-height:66px;resize:vertical;line-height:1.6}
.admin-action{border:1px solid #e1e7ef;border-radius:7px;background:#fff;color:#63728a;padding:8px 10px;font-size:9px}
.admin-action.primary{background:#3974e8;border-color:#3974e8;color:#fff}
.admin-action.danger{color:#c15b5b;border-color:#f0dada;background:#fffafa}
.admin-list{display:grid;gap:6px;max-height:48vh;overflow:auto;padding-right:3px}
.admin-row{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #edf0f4;border-radius:8px}
.admin-row .tool-icon{width:30px;height:30px;flex-basis:30px;border-radius:8px;font-size:9px}
.admin-row-main{min-width:0;flex:1}
.admin-row-main strong{display:block;font-size:10px;overflow-wrap:anywhere}
.admin-row-main small{display:block;margin-top:3px;color:#9aa5b5;font-size:8px}
.admin-row-actions{display:flex;gap:5px}
.admin-row-actions button{border:1px solid #e7ebf1;border-radius:6px;background:#fff;color:#6e7b90;padding:5px 7px;font-size:8px}
.admin-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.form-field{min-width:0;display:flex;flex-direction:column;gap:5px}
.form-field.full{grid-column:1/-1}
.form-field label{font-size:9px;color:#69778d;font-weight:700}
.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:7px;margin-top:5px;padding-top:12px;border-top:1px solid #edf0f4}
.category-admin-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #edf0f4;border-radius:8px;margin-bottom:7px}
.category-admin-row strong{font-size:10px;flex:1}
.category-admin-row small{font-size:8px;color:#9aa5b5}
.data-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.data-card{padding:14px;border:1px solid #e9edf3;border-radius:10px;background:#fbfcfe}
.data-card h3{font-size:11px;margin:0 0 6px}
.data-card p{font-size:9px;color:#8b97a9;line-height:1.7;margin:0 0 10px}
.data-card .admin-action{margin-right:5px;margin-bottom:5px}
.toast{position:fixed;left:50%;bottom:25px;z-index:100;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#182940;color:#fff;padding:10px 15px;border-radius:8px;font-size:9px;box-shadow:0 8px 24px #0b1b3133;transition:.22s}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1250px){.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-art{right:3%}}
@media(max-width:980px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{padding-left:10px;padding-right:10px}.topbar{padding:0 20px}.toolbar-row,.content-wrap{padding-left:20px;padding-right:20px}.hero{padding-left:5%;padding-right:5%}.hero-art{opacity:.45}}
@media(max-width:700px){.app-shell{display:block}.sidebar{position:relative;height:auto;max-height:none;padding:13px 14px 10px}.brand{padding:0 4px 12px}.back-link{display:none}.side-caption{display:none}.category-list{display:flex;overflow:auto;gap:5px;padding:6px 0 2px}.category-group-label{display:none}.category-btn{width:auto;flex:0 0 auto;white-space:nowrap;padding:7px 9px}.category-icon{width:22px;height:22px}.category-count{display:none}.sidebar-foot{display:none}.topbar{height:53px;padding:0 14px}.top-status{display:none}.breadcrumb{font-size:9px}.top-btn{padding:7px 9px;font-size:9px}.hero{padding:32px 18px 25px;min-height:245px}.hero h1{font-size:27px}.hero p{font-size:10px;max-width:450px}.hero-art{right:-100px;opacity:.22}.search-box{height:46px}.search-box kbd{display:none}.toolbar-row{padding:0 14px;margin-top:15px;display:block}.filter-group{gap:5px}.filter-chip{padding:7px 10px;font-size:9px}.sort-box{margin-top:10px;justify-content:flex-end}.content-wrap{padding:20px 14px 28px}.content-heading h2{font-size:17px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tool-card{padding:11px;min-height:174px}.tool-icon{width:34px;height:34px;flex-basis:34px}.card-name{font-size:10px}.card-desc{font-size:8px;min-height:43px}.card-actions button,.card-actions a{padding:5px 6px;font-size:8px}.bottom-note{margin:0 14px 18px;align-items:flex-start}.note-right{display:none}footer{padding:14px}.modal{padding:20px 16px}.admin-modal{max-height:94vh}.admin-form,.detail-grid,.data-tools{grid-template-columns:1fr}.form-field.full{grid-column:auto}.admin-row{align-items:flex-start}.admin-row-actions{flex-direction:column}}
@media(max-width:420px){.tool-grid{grid-template-columns:1fr}.tool-card{min-height:0}.card-desc{min-height:0}.top-actions{gap:5px}.top-btn{padding:6px 7px}.manage-btn{font-size:8px}}

.toolbar-hint{margin-left:auto;margin-right:10px;color:#8b97a9;font-size:9px;white-space:nowrap}
@media(max-width:980px){.toolbar-hint{display:none}}
.admin-row .tool-icon img{width:21px;height:21px}


/* V3.6.2：提升导航卡片与管理后台的可读性 */
.tool-grid{gap:16px}
.tool-card{min-height:210px;padding:17px 17px 14px;border-radius:15px}
.card-head{gap:12px}
.tool-icon{width:50px;height:50px;flex:0 0 50px;border-radius:13px;font-size:14px}
.tool-icon img{width:36px;height:36px}
.card-name{font-size:13px;line-height:1.5}
.card-category{font-size:10px;margin-top:4px}
.card-desc{font-size:11px;line-height:1.75;min-height:58px;margin:13px 0 12px}
.tag{font-size:9px;padding:5px 7px}
.rating{font-size:10px}
.card-actions button,.card-actions a{font-size:10px;padding:7px 10px;border-radius:7px}
.category-btn{font-size:12px;padding:10px}
.category-icon{width:28px;height:28px;font-size:13px}
.category-count{font-size:10px}
.content-heading h2{font-size:22px}
.content-heading p{font-size:11px}
.filter-chip{font-size:10px;padding:8px 12px}
.result-count{font-size:10px}
.sidebar-foot .foot-title{font-size:12px}
.sidebar-foot .foot-description{font-size:10px;line-height:1.65}
.top-btn{font-size:11px}
.admin-header h2{font-size:22px}
.admin-header p{font-size:12px}
.local-save-badge{font-size:10px}
.local-warning{font-size:11px}
.admin-tab{font-size:12px}
.form-input,.form-select,.form-textarea,.admin-toolbar input{font-size:12px;padding:10px 11px}
.form-field label{font-size:11px}
.admin-action{font-size:11px;padding:9px 12px}
.admin-row{gap:11px;padding:11px}
.admin-row .tool-icon{width:40px;height:40px;flex-basis:40px;font-size:12px}
.admin-row .tool-icon img{width:30px;height:30px}
.admin-row-main strong{font-size:12px}
.admin-row-main small{font-size:10px}
.admin-row-actions button{font-size:10px;padding:7px 9px}
.category-admin-row strong{font-size:12px}
.category-admin-row small{font-size:10px}
.data-card h3{font-size:13px}
.data-card p{font-size:11px}
.toast{font-size:11px}

/* LOGO 上传预览 */
.icon-upload-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.icon-file-input{max-width:380px}
.icon-upload-preview{display:flex;align-items:center;gap:9px;min-height:48px;padding:7px 10px;border:1px dashed #d9e1ec;border-radius:9px;background:#fbfcfe}
.icon-upload-preview img{width:42px;height:42px;object-fit:contain;border-radius:8px;background:#fff;border:1px solid #edf0f5}
.icon-upload-preview span{font-size:10px;color:#7b879a}
.form-help{font-size:10px;color:#8b97a9;line-height:1.65}

/* 与京东运营工具箱共用授权入口 */
.nav-license-wrap{min-height:100vh;display:grid;place-items:center;padding:34px 16px;background:radial-gradient(circle at 15% 10%,#e9f1ff 0,transparent 34%),linear-gradient(135deg,#f4f7fb,#eef3fa)}
.nav-license-card{width:min(500px,100%);padding:34px;background:#fff;border:1px solid #e1e7f0;border-radius:22px;box-shadow:0 20px 55px rgba(34,59,109,.13)}
.nav-license-mark{width:48px;height:48px;border-radius:15px;background:linear-gradient(140deg,#4b82f0,#19a89a);display:grid;place-items:center;color:#fff;font-weight:900;font-size:16px;box-shadow:0 9px 25px #2465d24d;margin-bottom:18px}
.nav-license-eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#3974e8}
.nav-license-card h1{font-size:27px;margin:8px 0}
.nav-license-sub{font-size:12px;color:#7e8ba0;line-height:1.7;margin:0 0 18px}
.nav-license-card input{width:100%;border:1px solid #ced7e6;border-radius:11px;padding:14px 15px;font:15px "Microsoft YaHei",sans-serif;text-transform:uppercase;outline:none}
.nav-license-card input:focus{border-color:#3974e8;box-shadow:0 0 0 3px #3974e81a}
.nav-license-actions{display:flex;gap:12px;margin-top:13px}
.nav-license-actions button{width:100%;border:0;border-radius:10px;background:#3974e8;color:#fff;font-weight:800;padding:13px 16px;font-size:13px}
.nav-license-actions button:hover{background:#285fcf}
.nav-license-actions button:disabled{opacity:.65;cursor:wait}
.nav-license-msg{min-height:24px;margin-top:13px;line-height:1.7;font-size:12px;color:#718096}
.nav-license-msg.ok{color:#08704d}
.nav-license-msg.err{color:#a12626}
.nav-license-info{margin-top:8px;color:#08704d;font-size:11px}
.nav-login-card{color:#1c2c44}
.nav-login-card form{display:grid;gap:8px}
.nav-login-card label{font-size:14px;font-weight:650}
.nav-login-card input{min-width:0;text-transform:none}
.nav-login-card .nav-license-msg{margin:0;color:#9b3232}
.nav-login-card .nav-license-msg:empty{display:none}
.nav-license-tip{margin-top:17px;padding:12px 14px;border-radius:10px;background:#f4f7fb;color:#657087;font-size:11px;line-height:1.75}
.nav-license-back{display:inline-block;margin-top:17px;color:#3974e8;text-decoration:none;font-size:11px}
.nav-license-back:hover{text-decoration:underline}

@media(max-width:700px){
  .tool-grid{gap:10px}
  .tool-card{padding:13px;min-height:194px}
  .tool-icon{width:44px;height:44px;flex-basis:44px}
  .tool-icon img{width:32px;height:32px}
  .card-name{font-size:12px}
  .card-category{font-size:9px}
  .card-desc{font-size:10px;min-height:51px}
  .card-actions button,.card-actions a{font-size:9px;padding:6px 8px}
  .category-btn{font-size:11px}
  .category-icon{width:25px;height:25px}
  .form-input,.form-select,.form-textarea,.admin-toolbar input{font-size:12px}
  .form-field label{font-size:11px}
  .admin-tab{font-size:11px}
  .nav-license-card{padding:26px 22px}
}
@media(max-width:420px){
  .tool-card{min-height:0}
  .card-desc{min-height:0}
}

/* Private workspace appearance */
body[data-theme] {
  --theme-side-a:#101e3a; --theme-side-b:#233e69;
  --theme-hero-a:#dcecff; --theme-hero-b:#f5f9ff;
  --theme-accent:#285fc1; --theme-accent-deep:#194da8;
  --theme-surface:#eef4fb;
  background:var(--theme-surface);
}
body[data-theme="forest"] {
  --theme-side-a:#12302d; --theme-side-b:#225449;
  --theme-hero-a:#d8efe4; --theme-hero-b:#f6fbf8;
  --theme-accent:#20715b; --theme-accent-deep:#165947;
  --theme-surface:#edf6f1;
}
body[data-theme="sunset"] {
  --theme-side-a:#492920; --theme-side-b:#704134;
  --theme-hero-a:#ffe4d0; --theme-hero-b:#fff9f2;
  --theme-accent:#a64526; --theme-accent-deep:#87341a;
  --theme-surface:#fcf2eb;
}
body[data-theme="lavender"] {
  --theme-side-a:#2e214a; --theme-side-b:#4e3a72;
  --theme-hero-a:#ece2ff; --theme-hero-b:#faf7ff;
  --theme-accent:#6b47ad; --theme-accent-deep:#583595;
  --theme-surface:#f4effc;
}
body[data-theme] .sidebar { background:linear-gradient(155deg,var(--theme-side-a),var(--theme-side-b)); }
body[data-theme] .hero { background:linear-gradient(112deg,var(--theme-hero-a),var(--theme-hero-b)); }
body[data-theme] .hero h1 { font-size:clamp(26px,3vw,42px); letter-spacing:-.055em; }
body[data-theme] .hero p { color:#455671; }
body[data-theme] :is(.hero-eyebrow,.eyebrow-small) { color:var(--theme-accent); }
body[data-theme] :is(.manage-btn,.primary-btn,.admin-action.primary) {
  background:var(--theme-accent); border-color:var(--theme-accent); color:white;
}
body[data-theme] :is(.manage-btn,.primary-btn,.admin-action.primary):hover {
  background:var(--theme-accent-deep); border-color:var(--theme-accent-deep);
}
body[data-theme] .tool-card { border-radius:16px; }
.theme-wallpaper {
  position:fixed; inset:0; width:100%; height:100%; object-fit:cover;
  pointer-events:none; transform:scale(1.08); filter:blur(var(--photo-blur,14px));
}
body[data-theme="photo"] .app-shell { position:relative; background:#eff5fd9c; }
body[data-theme="photo"] .hero { background:linear-gradient(112deg,#edf6ffeb,#f6faff9e); }
body[data-theme="photo"] .tool-card { background:#ffffffec; }
.theme-dialog {
  width:min(430px,calc(100% - 32px)); max-height:calc(100% - 32px); padding:24px;
  border:1px solid var(--line); border-radius:18px; color:var(--text); background:#fff;
  box-shadow:0 20px 70px #0b1b3140;
}
.theme-dialog::backdrop { background:#13274775; backdrop-filter:blur(4px); }
.theme-dialog form { display:grid; gap:10px; }
.theme-dialog h2 { margin:0 0 6px; font-size:22px; }
.theme-dialog label,.theme-dialog p { font-size:13px; }
.theme-dialog :is(.form-input,.form-select,.admin-action) { font-size:13px; }
.theme-dialog p { min-height:1.4em; margin:0; color:#52627a; }
.theme-clear { display:flex; align-items:center; gap:6px; }
.theme-actions { display:flex; justify-content:flex-end; gap:8px; }
@media(max-width:600px) {
  body[data-theme] .topbar { height:auto; min-height:66px; padding-block:8px; }
  body[data-theme] .top-actions { flex-wrap:wrap; justify-content:flex-end; }
}

/* Personal launcher layout */
body[data-theme] {
  --launcher-ink:#19243a;
  --launcher-muted:#526278;
  --launcher-line:#dbe4ef;
  --launcher-paper:#fff;
  color:var(--launcher-ink);
}
body[data-theme] .app-shell { grid-template-columns:248px minmax(0,1fr); }
body[data-theme] .sidebar {
  background:color-mix(in srgb,var(--theme-hero-b) 82%,white);
  color:var(--launcher-ink); border-right:1px solid var(--launcher-line);
  padding:24px 14px 16px;
}
body[data-theme] .brand { padding:2px 8px 20px; }
body[data-theme] .brand-mark { background:linear-gradient(140deg,var(--theme-accent),var(--theme-accent-deep)); }
body[data-theme] .brand-text strong { color:var(--launcher-ink); font-size:17px; }
body[data-theme] .brand-text small { color:var(--launcher-muted); font-size:11px; letter-spacing:.09em; }
body[data-theme] .category-list { display:block; overflow:visible; padding:0; }
body[data-theme] .category-btn {
  display:flex; width:100%; min-height:40px; align-items:center; gap:8px;
  margin:2px 0; padding:6px 8px; border-radius:8px; color:#34445d;
  font-size:16px; text-align:left; white-space:normal;
}
body[data-theme] .category-btn:hover,
body[data-theme] .category-btn.active {
  color:var(--theme-accent-deep); background:var(--theme-hero-a);
}
body[data-theme] .category-btn.active { font-weight:750; }
body[data-theme] .category-icon { background:#e8eef7; color:var(--theme-accent-deep); width:26px; height:26px; flex:0 0 26px; }
body[data-theme] .category-name { min-width:0; overflow-wrap:anywhere; }
body[data-theme] .category-count { display:inline; margin-left:auto; color:var(--launcher-muted); font-size:12px; }
body[data-theme] .category-btn.active .category-count { color:var(--theme-accent-deep); }
body[data-theme] .all-tools { margin-bottom:10px; }
.category-disclosure { border-top:1px solid var(--launcher-line); padding-top:6px; }
body[data-theme] .disclosure-heading {
  display:flex; align-items:center; gap:9px; min-height:38px; padding:6px 8px; margin:0;
  border-radius:8px; cursor:pointer; list-style:none; color:var(--launcher-ink);
  font-size:16px; font-weight:750; letter-spacing:0; text-transform:none;
}
.disclosure-heading::-webkit-details-marker { display:none; }
.disclosure-heading:hover { background:var(--theme-hero-a); }
.disclosure-arrow { width:7px; height:7px; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(-45deg); margin:0 4px 0 2px; flex:0 0 auto; }
details[open] > .disclosure-heading .disclosure-arrow { transform:rotate(45deg) translateY(-2px); }
.disclosure-name { min-width:0; overflow-wrap:anywhere; }
.disclosure-count { margin-left:auto; color:var(--launcher-muted); font-size:12px; font-weight:600; }
.category-group { margin-left:6px; }
.category-group.has-active > .disclosure-heading { color:var(--theme-accent-deep); }
.category-group-items { border-left:1px solid var(--launcher-line); margin:0 0 4px 12px; padding-left:6px; }
body[data-theme] .sidebar-foot { margin-top:20px; background:#fff; border-color:var(--launcher-line); box-shadow:none; }
body[data-theme] .sidebar-foot .foot-title { color:var(--launcher-ink); font-size:14px; }
body[data-theme] .sidebar-foot :is(.foot-description,.foot-action,.foot-symbol) { color:var(--theme-accent-deep); }
body[data-theme] .sidebar-foot .foot-description { font-size:13px; }
body[data-theme] .topbar { height:auto; min-height:60px; padding:10px 28px; }
body[data-theme] .breadcrumb,body[data-theme] .top-btn { font-size:14px; }
body[data-theme] .hero {
  margin:18px 28px 0; min-height:0; border:1px solid var(--launcher-line); border-radius:16px;
  padding:17px 22px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.launcher-heading { flex:0 0 auto; }
body[data-theme] .hero h1 { margin:0 0 5px; font-size:clamp(22px,2.1vw,30px); letter-spacing:-.025em; }
body[data-theme] .hero-counts { margin:0; gap:8px; color:var(--launcher-muted); font-size:13px; }
body[data-theme] .hero-counts b { font-size:14px; }
body[data-theme] .search-box { margin:0; max-width:650px; width:100%; height:48px; box-shadow:none; }
body[data-theme] .search-box input { font-size:16px; }
body[data-theme] .search-box input::placeholder { color:#617186; }
body[data-theme] .toolbar-row { max-width:none; margin:15px auto 0; padding:0 28px; }
body[data-theme] .content-wrap { max-width:none; padding:19px 28px 32px; }
body[data-theme] .content-heading h2 { font-size:24px; }
body[data-theme] :is(.content-heading p,.result-count,.sort-box,.sort-box select,.filter-chip) { font-size:14px; color:var(--launcher-muted); }
body[data-theme] .filter-chip.active { color:var(--theme-accent-deep); background:var(--theme-hero-a); }
body[data-theme] .tool-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,238px),1fr)); gap:13px; }
body[data-theme] .tool-card {
  min-height:0; min-width:0; padding:14px; border-radius:12px; border-color:var(--launcher-line);
  box-shadow:0 2px 8px #192b4610;
}
body[data-theme] .tool-card:hover { border-color:var(--theme-accent); transform:translateY(-1px); }
body[data-theme] .tool-card .tool-icon { width:42px; height:42px; flex:0 0 42px; border-radius:10px; }
body[data-theme] .tool-card .tool-icon img { width:30px; height:30px; }
body[data-theme] .card-name { font-size:18px; line-height:1.35; color:var(--launcher-ink); overflow-wrap:anywhere; }
body[data-theme] .card-category { font-size:13px; color:var(--launcher-muted); }
body[data-theme] .card-desc {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  min-height:0; margin:10px 0; font-size:15px; line-height:1.5; color:#465870;
}
body[data-theme] .card-tags { margin-bottom:8px; }
body[data-theme] :is(.card-tags .tag,.rating) { font-size:12px; }
body[data-theme] :is(.card-actions button,.card-actions a) { font-size:14px; padding:6px 9px; }
body[data-theme] .visit-btn { background:var(--theme-accent-deep); color:white; }
body[data-theme] .favorite-btn { font-size:22px; }
body[data-theme] :is(.admin-tab,.form-field label,.form-input,.form-select,.form-textarea,.admin-toolbar input,.admin-action,.admin-row-main strong,.category-admin-row strong,.category-admin-row small,.admin-row-actions button,.detail-block p) { font-size:14px; }
body[data-theme] :is(.admin-row-main small,.form-help,.local-warning,.bottom-note p) { font-size:13px; color:var(--launcher-muted); }
body[data-theme] :is(button,summary,a,select,input,textarea):focus-visible { outline:2px solid var(--theme-accent); outline-offset:2px; }
@media(max-width:950px) {
  body[data-theme] .app-shell { grid-template-columns:215px minmax(0,1fr); }
}
@media(max-width:700px) {
  body[data-theme] .sidebar { padding:12px 14px; border-right:0; border-bottom:1px solid var(--launcher-line); }
  body[data-theme] .brand { padding:0 4px 10px; }
  body[data-theme] .topbar { padding:8px 14px; }
  body[data-theme] .hero { display:grid; margin:12px 14px 0; padding:14px; gap:10px; }
  body[data-theme] .toolbar-row,body[data-theme] .content-wrap { padding-left:14px; padding-right:14px; }
  body[data-theme] .tool-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,215px),1fr)); }
}

/* Keep card actions readable at any zoom and cap the grid at six columns. */
body[data-theme] .content-wrap, body[data-theme] .toolbar-row { max-width:1860px; }
body[data-theme] .tool-grid {
  grid-template-columns:repeat(auto-fill,minmax(min(100%,max(272px,calc((100% - 70px) / 6))),1fr));
  gap:14px;
}
body[data-theme] .card-name { color:#303e53; font-weight:650; }
body[data-theme] .card-desc { color:#526075; }
body[data-theme] .card-bottom { gap:8px; }
body[data-theme] .card-bottom .rating { min-width:0; overflow:hidden; text-overflow:ellipsis; color:#956523; }
body[data-theme] .card-bottom .card-actions { flex:none; }
body[data-theme] .card-actions :is(button,a) { white-space:nowrap; }
body[data-theme] .card-actions .visit-btn { background:var(--theme-accent); border-color:var(--theme-accent); }
body[data-theme] .card-actions .visit-btn:hover { background:var(--theme-accent-deep); }
body[data-theme] .admin-row { min-width:0; }
body[data-theme] .admin-row-main small {
  display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body[data-theme] .admin-row-actions { flex:none; }
body[data-theme] .admin-row-actions button { white-space:nowrap; }

@media(max-width:700px) { body[data-theme] .tool-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,254px),1fr)); } }

/* Full-page themes for the personal launcher */
body[data-theme="oat"] {
  --theme-hero-a:#eadcc7; --theme-hero-b:#f8f0e4; --theme-surface:#f4ede3;
  --theme-accent:#8c5938; --theme-accent-deep:#734428;
  --launcher-paper:#fffaf1; --launcher-ink:#493b31; --launcher-muted:#6b584a;
  --launcher-line:#e5d6c5; --launcher-control:#fbf3e7; --launcher-detail:#625145;
}
body[data-theme="slate"] {
  --theme-hero-a:#d9e1ec; --theme-hero-b:#eef2f7; --theme-surface:#e7ecf2;
  --theme-accent:#4d6079; --theme-accent-deep:#394c64;
  --launcher-paper:#f8fafc; --launcher-ink:#27374c; --launcher-muted:#4c5d71;
  --launcher-line:#d4dde8; --launcher-control:#eef2f7; --launcher-detail:#435469;
}
body[data-theme="rose"] {
  --theme-hero-a:#efdde2; --theme-hero-b:#faf0f3; --theme-surface:#f6ecef;
  --theme-accent:#8e5268; --theme-accent-deep:#703c50;
  --launcher-paper:#fff9fb; --launcher-ink:#483641; --launcher-muted:#695461;
  --launcher-line:#e9d9df; --launcher-control:#f8ecf1; --launcher-detail:#624a58;
}
body:is([data-theme="oat"],[data-theme="slate"],[data-theme="rose"]) :is(.topbar,.tool-card,.sidebar-foot,.bottom-note,footer,.modal,.theme-dialog) {
  background:var(--launcher-paper); border-color:var(--launcher-line); color:var(--launcher-ink);
}
body:is([data-theme="oat"],[data-theme="slate"],[data-theme="rose"]) :is(.search-box,.filter-chip,.top-btn:not(.manage-btn),.result-count,.detail-btn,.sort-box select) {
  background:var(--launcher-control); border-color:var(--launcher-line);
}
body:is([data-theme="oat"],[data-theme="slate"],[data-theme="rose"]) :is(.category-btn.active,.filter-chip.active) {
  background:var(--theme-hero-a);
}
body:is([data-theme="oat"],[data-theme="slate"],[data-theme="rose"]) :is(.card-name,.hero h1,.category-btn:not(.active)) {
  color:var(--launcher-ink);
}
body:is([data-theme="oat"],[data-theme="slate"],[data-theme="rose"]) .card-desc { color:var(--launcher-detail); }
body:is([data-theme="oat"],[data-theme="slate"],[data-theme="rose"]) .tool-card .tag:not(.free):not(.recommend) {
  background:var(--launcher-control); color:var(--launcher-muted);
}

/* Independently editable surfaces in the custom preset. */
body[data-theme="custom"] { background:var(--custom-page); background-attachment:fixed; }
body[data-theme="custom"] .sidebar { background:var(--custom-sidebar); color:var(--custom-sidebar-ink); }
body[data-theme="custom"] .topbar { background:var(--custom-topbar); color:var(--custom-topbar-ink); }
body[data-theme="custom"] .sidebar :is(.brand-text strong,.brand-text small,.category-btn:not(.active),.disclosure-heading,.disclosure-count,.category-btn:not(.active) .category-count) {
  color:var(--custom-sidebar-ink);
}
body[data-theme="custom"] .sidebar :is(.category-btn:hover,.disclosure-heading:hover) { color:var(--theme-accent-deep); }
body[data-theme="custom"] .sidebar .category-btn:hover .category-count { color:var(--theme-accent-deep); }
body[data-theme="custom"] .topbar :is(.breadcrumb,.breadcrumb strong,.breadcrumb b) { color:var(--custom-topbar-ink); }
body[data-theme="custom"] .main-area :is(.content-heading h2,.content-heading p,.content-heading .eyebrow-small,.toolbar-hint,.sort-box label) { color:var(--custom-page-ink); }
body[data-theme="custom"] .hero { background:var(--custom-page); }
body[data-theme="custom"] .hero :is(h1,.hero-counts,.hero-counts b) { color:var(--custom-page-ink); }
.custom-theme-colors,#photoThemeFields { display:grid; gap:9px; min-width:0; }
.custom-region { min-width:0; margin:0; padding:8px 10px 10px; border:1px solid var(--launcher-line); border-radius:10px; }
.custom-region legend { padding:0 4px; font-size:13px; font-weight:700; }
.custom-region-controls { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; gap:8px; align-items:end; }
.custom-region-controls label { display:grid; min-width:0; gap:4px; font-size:12px; }
.custom-region-controls input[type="color"] { width:44px; height:34px; padding:3px; border:1px solid var(--launcher-line); border-radius:6px; background:#fff; }
.custom-region-controls input:disabled { opacity:.45; }
.custom-color-swatch { width:36px; height:33px; border:1px solid var(--launcher-line); border-radius:6px; }
@media(max-width:360px){ .custom-region-controls { gap:5px; } .custom-color-swatch { display:none; } }
