/*
 * SOLE Workbench 2.0
 * 面向得物卖家的日常货盘工作台：去渐变、去玻璃拟态、去悬浮模板卡。
 * 保留原业务 DOM 与功能，只重建视觉层级、交互反馈和响应式节奏。
 */
:root{
  --primary:#26684f;
  --primary-light:#e8f1ed;
  --primary-dark:#194b38;
  --sidebar-bg:#151a17;
  --sidebar-text:#aeb7b1;
  --sidebar-active:#c5ed69;
  --bg:#f3f3ef;
  --card:#fbfbf8;
  --border:#d9dcd6;
  --text:#191d1a;
  --text-2:#59625d;
  --text-3:#8a928d;
  --blue:#26684f;
  --green:#1f7755;
  --teal:#3e7765;
  --purple:#596961;
  --orange:#a36526;
  --radius:9px;
  --shadow:0 1px 0 rgba(20,28,23,.04);
  --sidebar-w:220px;
}

html,body{background:var(--bg);color:var(--text);font-family:"Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
body{letter-spacing:0}
*{scrollbar-color:#bbc1bc transparent}
::selection{color:#102219;background:#cfe6d9}

/* 框架：像专业后台，而不是展示型落地页 */
@media(min-width:721px){
  .sidebar{background:var(--sidebar-bg);box-shadow:none;border-right:1px solid #29302c}
  .sidebar .brand{padding:21px 17px 17px;border-color:#2a302d}
  .sidebar .brand .logo{color:#d9ef8a}
  .sidebar .brand em{border:0;border-radius:3px;padding:3px 5px;color:#d9ef8a;background:#273126;font-size:9px;letter-spacing:.6px}
  .sidebar .brand h2{margin-top:14px;font-size:17px;letter-spacing:0}
  .sidebar .brand span{color:#76817a;letter-spacing:.25px}
  .sidebar .brand-kicker{color:#6e7a72!important;letter-spacing:.7px!important}
  .sidebar nav{padding:11px 8px}
  .sidebar nav .nav-group{padding:15px 10px 5px;color:#667169;font-size:10px;letter-spacing:.4px}
  .sidebar nav a{margin:2px 0;padding:10px 11px;border:1px solid transparent;border-left:0;border-radius:6px;font-size:13px;transition:color .14s ease,background .14s ease,border-color .14s ease}
  .sidebar nav a:hover{color:#eef4ef;background:#202622;border-color:#303832}
  .sidebar nav a.active{padding-left:11px;color:#101612;background:#c5ed69;border-color:#c5ed69;box-shadow:none}
  .sidebar nav a.active .ic{color:#182019}
  .sidebar .side-foot{border-color:#2a302d;color:#747e77}
  .content{max-width:1560px;padding:19px 22px 34px}
}
.topbar{height:58px;padding:0 18px;border-color:#d8dbd5;background:rgba(247,247,243,.96);backdrop-filter:blur(10px)}
.topbar .page-title{font-size:15px;font-weight:720;letter-spacing:.05px}
.topbar .user{border:1px solid transparent;border-radius:6px}
.topbar .user:hover{border-color:var(--border);background:#fff}
.topbar .avatar{border-radius:6px;background:#28312c}
.topbar .license-chip{border-radius:6px!important;box-shadow:none!important}

/* 通用界面：减少装饰，强化信息边界 */
.card,.stat-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}
.card{margin-bottom:13px;padding:16px}
.card h3{margin-bottom:12px;font-size:14px;font-weight:720}
.stat-card{padding:14px 15px}
.stat-card .label{font-size:11px;font-weight:620}
.stat-card .value{margin-top:7px;font-size:22px;letter-spacing:-.35px}
.stat-card .extra{font-size:10.5px}
.section-kicker,.dashboard-eyebrow,.eyebrow{color:#5f7067!important;font-size:9.5px!important;letter-spacing:.45px!important}
.grid{gap:12px}

.btn{min-height:36px;padding:7px 13px;border-color:#cfd4cf;border-radius:6px;background:#fafbf8;color:#2c342f;font-size:12px;font-weight:650;box-shadow:none;transition:background .13s ease,border-color .13s ease,color .13s ease,transform .08s ease}
.btn:hover{color:#174b36;border-color:#789b89;background:#eef4f0;transform:none;box-shadow:none}
.btn:active{transform:translateY(1px);background:#e4ece7}
.btn.primary,.inventory-actions .stock-add{color:#fff;border-color:#235b45;background:#235b45;box-shadow:none}
.btn.primary:hover,.inventory-actions .stock-add:hover{color:#fff;border-color:#194b38;background:#194b38;transform:none;box-shadow:none}
.btn.success{border-color:#326e56;background:#326e56}
.btn.danger{color:#9a4138;border-color:#dec2bd;background:#fff9f7}
.btn.danger:hover{color:#8b332b;border-color:#cc9f98;background:#f8ebe8}
.btn.sm{border-radius:5px;font-size:11px}

.input,select.input,textarea.input,.form-item input,.form-item select{min-height:38px;border-color:#cfd4cf;border-radius:6px;background:#fff;color:var(--text);box-shadow:none}
.input:hover,select.input:hover,textarea.input:hover{border-color:#9da9a2}
.input:focus,select.input:focus,textarea.input:focus,.form-item input:focus,.form-item select:focus{border-color:#39745c;background:#fff;box-shadow:0 0 0 3px rgba(38,104,79,.10)}

.chip{padding:5px 10px;border-color:#d2d7d2;border-radius:6px;background:#f9faf7;color:#626b65;font-size:11.5px;transition:background .12s ease,border-color .12s ease,color .12s ease}
.chip:hover{color:#22553f;border-color:#91a99c;background:#f0f5f2}
.chip.active{color:#fff;border-color:#28332d;background:#28332d;box-shadow:none}
.tag{border-radius:4px}.tag.blue{color:#245e47;background:#e6f0eb}.tag.gray{color:#5e6862;background:#ecefeb}.tag.purple{color:#58675f;background:#ebeeec}

.table-wrap{border:1px solid #dce0db;border-radius:7px;background:#fff}
.table thead th{padding:9px 11px;color:#68716b;border-color:#d9ddd8;background:#eef0ec;font-size:11px;font-weight:700;letter-spacing:.05px}
.table td{padding:10px 11px;border-color:#e7e9e5;font-size:12px}
.table tbody tr{transition:background .1s ease}
.table tbody tr:hover td,.table tr:hover td{background:#f0f5f2}

/* 首页：从宣传页收回到经营操作台 */
.dashboard-rhythm-card,.mobile-rhythm-card{display:none!important}
.dashboard-hero{min-height:148px;margin-bottom:14px;padding:22px 25px;border:1px solid #27342d;border-radius:9px;background:#1b241f;box-shadow:none}
.dashboard-hero:before{width:230px;height:230px;right:17%;top:-145px;border:1px solid rgba(197,237,105,.22)}
.dashboard-hero:after{right:-35px;bottom:-100px;width:180px;height:180px;border:1px solid rgba(197,237,105,.12);background:transparent}
.dashboard-eyebrow{color:#afc2b7!important}.dashboard-eyebrow span{width:5px;height:5px;background:#c5ed69;box-shadow:none}
.dashboard-hero h1{margin:11px 0 6px;font-size:26px;font-weight:760;letter-spacing:-.5px}
.dashboard-hero p{color:#aab7af;font-size:12px}
.dashboard-hero-focus{margin-top:14px;color:#aab7af}.dashboard-hero-focus b{color:#eff4f0}
.dashboard-hero-side{width:285px;padding:16px;border-color:#3a4740;border-radius:7px;background:#202b25;backdrop-filter:none}
.hero-side-label,.hero-goal-value span,.hero-progress-meta{color:#9eafa5}.hero-progress{height:4px;border-radius:0;background:#344139}.hero-progress i{border-radius:0;background:#c5ed69}
.dashboard-operating{margin:14px 0 18px;padding:15px 16px;border-color:#d6dbd6;border-radius:9px;background:#fafbf8;box-shadow:none}
.dashboard-operating h2{font-size:18px}.dashboard-period-tabs,.sales-period-tabs{padding:3px;border-radius:6px;background:#eef0ec}.dashboard-period-tabs button,.sales-period-tabs button{border-radius:4px}.dashboard-period-tabs button.active,.sales-period-tabs button.active{background:#27322c;box-shadow:none}
.dashboard-operating-grid{margin-top:14px;border-color:#dfe3de;border-radius:7px;background:#dfe3de}
.operating-kpi{min-height:98px;padding:14px 15px}.operating-kpi:after{display:none}.operating-kpi b{font-size:25px}.operating-kpi.revenue,.operating-kpi.cost,.operating-kpi.profit,.operating-kpi.margin{border-top:2px solid #6d7d74}
.dashboard-section-head{align-items:center;margin-top:2px}.dashboard-section-head h2{font-size:16px}.section-note{font-size:10.5px}
.dashboard-actions{gap:10px!important}.dashboard-actions .action-card{min-height:116px;padding:15px;border-color:#d5dad5;border-radius:8px;background:#fafbf8;box-shadow:none;transition:background .13s ease,border-color .13s ease}
.dashboard-actions .action-card:hover{transform:none;border-color:#81998c;background:#f0f5f2;box-shadow:none}
.dashboard-actions .action-card:active{background:#e8efea}
.dashboard-actions .action-card-major,.dashboard-actions .action-card-major:nth-child(2){border-top:1px solid #d5dad5;background:#fafbf8}
.dashboard-actions .action-card .ic,.dashboard-actions .action-card:nth-child(2) .ic,.dashboard-actions .action-card:nth-child(3) .ic,.dashboard-actions .action-card:nth-child(4) .ic,.dashboard-actions .action-card-major:first-child .ic{width:38px;height:38px;margin-bottom:12px;border-radius:6px;color:#244f3d;background:#e3ece7}
.dashboard-actions .action-card .t{font-size:15px}.dashboard-actions .action-card::after{color:#84938a}.dashboard-actions .action-card:hover::after{color:#285d46;transform:translateX(2px)}
.business-trend-card,.sales-trend-card,.dashboard-activity-card,.dashboard-allocation-card{box-shadow:none}

/* 库存、列表与弹窗 */
.stock-row,.inventory-list-card,.m-stock-card{border-color:#d7dcd7!important;border-radius:8px!important;box-shadow:none!important}
.stock-row:hover{border-color:#aab8af!important;box-shadow:none!important}
.size-cell,.stock-filter-row,.inventory-filter-bar{border-radius:6px!important}
.modal-mask{background:rgba(21,27,23,.58);backdrop-filter:blur(2px)}
.modal{border:1px solid #cfd5cf;border-radius:10px;box-shadow:0 24px 70px rgba(20,27,23,.18)}
.m-head{border-color:#d9ddd8}.m-close{border-radius:5px!important}.m-foot{border-color:#d9ddd8;background:#f4f5f1}

/* 登录页：从“AI 发布会”收回到店铺工作台 */
.login-page,.login-shell,.login-wrap{background:#eff0eb!important}
.login-stage,.login-intro{background:#18201c!important}
.login-card,.login-panel{border-radius:10px!important;box-shadow:none!important}
.login-brand em,.login-stage-chip,.login-intro-foot,.login-panel-top small{letter-spacing:.5px!important}
.login-submit,.login-card .btn.primary{border-radius:6px!important;background:#235b45!important;box-shadow:none!important}

/* 深色模式：同一套工作台，而不是霓虹科技皮肤 */
html.eye-mode{--bg:#111512;--card:#181d19;--border:#303731;--text:#edf1ed;--text-2:#a8b0aa;--text-3:#778079;--primary:#9ec95a;--primary-light:#26321f;--primary-dark:#b8df72}
html.eye-mode body{background:#111512}
html.eye-mode .topbar{border-color:#2d342f;background:rgba(20,25,21,.96)}
html.eye-mode .card,html.eye-mode .stat-card{border-color:#303731;background:#181d19;box-shadow:none}
html.eye-mode .btn{color:#dce2dd;border-color:#3a433c;background:#1c221e}
html.eye-mode .btn:hover{color:#dff0c5;border-color:#647d69;background:#232b25}
html.eye-mode .btn.primary{color:#152017;border-color:#9ec95a;background:#9ec95a}
html.eye-mode .input,html.eye-mode select.input,html.eye-mode textarea.input{color:#eef2ee;border-color:#39413b;background:#151a17}
html.eye-mode .chip{color:#aab2ac;border-color:#384039;background:#1b201c}html.eye-mode .chip.active{color:#162018;border-color:#a8d063;background:#a8d063}
html.eye-mode .table-wrap{border-color:#313832;background:#171c18}html.eye-mode .table thead th{color:#aab2ac;border-color:#353d36;background:#202621}html.eye-mode .table td{color:#dfe4df;border-color:#29302a}html.eye-mode .table tbody tr:hover td{background:#222a24}
html.eye-mode .dashboard-operating{border-color:#303831;background:#171c18;box-shadow:none}html.eye-mode .dashboard-operating-grid{border-color:#303831;background:#303831}html.eye-mode .operating-kpi{background:#1b211c}html.eye-mode .dashboard-period-tabs,html.eye-mode .sales-period-tabs{border-color:#374039;background:#202620}html.eye-mode .dashboard-period-tabs button.active,html.eye-mode .sales-period-tabs button.active{color:#142016;background:#a8d063;box-shadow:none}
html.eye-mode .dashboard-actions .action-card,html.eye-mode .dashboard-actions .action-card-major{border-color:#313932;background:#181e19;box-shadow:none}html.eye-mode .dashboard-actions .action-card:hover{border-color:#647c68;background:#202820;box-shadow:none}html.eye-mode .dashboard-actions .action-card .ic,html.eye-mode .dashboard-actions .action-card-major:first-child .ic{color:#c8e79a;background:#263224}

/* 移动端：卡片密度和点击反馈统一 */
@media(max-width:720px){
  .content{padding:10px 10px 88px}
  .topbar{height:51px;padding:0 11px;background:#f7f7f3}
  .card{padding:13px;border-radius:8px}.stat-card{padding:12px;border-radius:8px}
  .btn{min-height:40px}.chip{min-height:32px}
  .mobile-workspace-hero,.m-stock-overview-hero{border-radius:9px!important;background:#1b241f!important;box-shadow:none!important}
  .mobile-workspace-hero:before,.mobile-workspace-hero:after{opacity:.35}
  .m-hero-eyebrow span:first-child,.m-stock-overview-eyebrow{color:#aebbb3!important}
  .mobile-quick-grid .mobile-quick-item,.m-home-quick-grid>*{border-radius:8px!important;box-shadow:none!important}
  .mobile-quick-grid .mobile-quick-item:active,.m-home-quick-grid>*:active,.m-stock-card:active{transform:scale(.985);background:#edf3ef}
  .m-tabs,.m-tab-bar{border-radius:7px!important;background:#e9ece8!important}.m-tab{border-radius:5px!important}.m-tab.active{color:#fff!important;background:#28332d!important;box-shadow:none!important}
  .m-tcard,.m-inrow,.m-in-summary{border:1px solid #d8ddd8;border-radius:8px;background:#fbfbf8;box-shadow:none}
  .bottom-nav{border-color:#d0d5d0;background:rgba(247,247,243,.97);box-shadow:0 -5px 18px rgba(20,27,23,.06);backdrop-filter:blur(10px)}
  .bottom-nav a.active,.bottom-nav button.active{color:#205941!important}
  .modal{width:calc(100vw - 16px)!important;max-width:none!important;border-radius:10px 10px 0 0!important}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* 二阶段：高频业务页面统一为“库存工作台”，覆盖旧版高权重科技渐变 */
html.light-mode .inventory-workbench,
html.light-mode .module-hero,
html.light-mode .report-hero{
  color:var(--text)!important;
  border:1px solid var(--border)!important;
  border-left:3px solid #6e8779!important;
  border-radius:9px!important;
  background:#fafbf8!important;
  box-shadow:none!important;
}
html.light-mode .inventory-workbench:before,
html.light-mode .module-hero:before,
html.light-mode .report-hero:before{display:none!important}
html.light-mode .inventory-workbench h2,
html.light-mode .module-hero h2,
html.light-mode .report-hero h2{color:#1b211d!important;text-shadow:none!important}
html.light-mode .inventory-workbench p,
html.light-mode .module-hero p,
html.light-mode .report-hero p,
html.light-mode .inventory-workbench .section-kicker,
html.light-mode .module-hero .section-kicker{color:#657169!important}
html.light-mode .inventory-workbench{padding:17px 18px!important;gap:13px 18px!important}
.inventory-command{gap:12px}
.inventory-tech-signal{min-height:58px;padding:9px 12px!important;border:1px solid #dce1dc!important;border-radius:7px!important;background:#f1f3ef!important;box-shadow:none!important}
.inventory-tech-signal .pulse,.m-stock-tech-signal .pulse{background:#648573!important;box-shadow:none!important}
.inventory-actions{gap:7px!important}
.inventory-actions .stock-out{color:#32423a!important;border-color:#bdc8c1!important;background:#f4f6f3!important}
.inventory-actions .stock-out:hover{border-color:#81988b!important;background:#eaf0ec!important}
html.light-mode .inventory-workbench .inventory-metrics.inventory-metrics-prominent{gap:8px!important}
html.light-mode .inventory-workbench .inventory-metrics.inventory-metrics-prominent>div{
  padding:12px 13px!important;border:1px solid #dce1dc!important;border-top:2px solid #758c80!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important
}
html.light-mode .inventory-workbench .inventory-metrics.inventory-metrics-prominent b{color:#18211c!important;font-size:23px!important;text-shadow:none!important}
html.light-mode .inventory-workbench .inventory-metrics.inventory-metrics-prominent span,
html.light-mode .inventory-workbench .inventory-metrics.inventory-metrics-prominent small,
html.light-mode .inventory-workbench .inventory-metrics.inventory-metrics-prominent b em{color:#6d7771!important}

.inventory-filter-toolbar,.stock-filter-row,.report-control{border-color:#d8ddd8!important;background:#f3f5f1!important;box-shadow:none!important}
.stock-dense-row .stock-head{transition:background .12s ease}
.stock-dense-row .stock-head:hover{background:#f2f5f1}
.stock-expand-mark{border-radius:5px!important}
.stock-action-workspace .stock-actions{gap:6px!important}
.stock-asset-body{background:#f8f9f6!important}

html.light-mode .report-hero .module-hero-side{border:1px solid #dce1dc!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important}
html.light-mode .report-hero .module-hero-side span,
html.light-mode .report-hero .module-hero-side small{color:#6b756f!important}
html.light-mode .report-hero .module-hero-side b{color:#18201b!important}
html.light-mode .report-hero-kpi em{color:#4e5b54!important;border-radius:4px!important;background:#edf0ec!important}
html.light-mode .report-hero-kpi em.positive{color:#286247!important;background:#e5efe9!important}
.report-summary-card,.report-control{border-radius:8px!important;box-shadow:none!important}
.report-summary-head span{letter-spacing:.2px!important}

/* 所有可点击模块使用短反馈，不浮起、不发光 */
[data-act],button,a,.link{-webkit-tap-highlight-color:rgba(38,104,79,.10)}
.action-card,[data-act].card,.me-desktop-tool{transition:background .13s ease,border-color .13s ease,opacity .13s ease!important}
.action-card:active,[data-act].card:active,.me-desktop-tool:active{transform:none!important;opacity:.82}

@media(max-width:720px){
  .m-stock-overview-hero,.m-today-hero{border:1px solid #26352d!important;border-radius:9px!important;background:#1b241f!important;box-shadow:none!important}
  .m-stock-overview-hero:before,.m-stock-overview-hero:after,.m-today-hero:before,.m-today-hero:after{opacity:.14!important}
  .m-stock-tech-signal{border-color:#3a4840!important;border-radius:6px!important;background:#222d27!important;box-shadow:none!important}
  html.light-mode .m-stock-tech-signal{border-color:#d5e2dd!important;background:rgba(255,255,255,.82)!important}
  html.light-mode .m-stock-tech-signal small{color:#72827d!important}
  html.light-mode .m-stock-tech-signal b{color:#203b33!important}
  html.light-mode .m-stock-tech-signal b.good{color:#327360!important}
  html.light-mode .m-stock-tech-signal b.warning{color:#9a682e!important}
  html.light-mode .m-stock-tech-signal em{color:#6f807b!important}
  html.light-mode .m-stock-overview-metrics b.pos{color:#315f50!important}
  html.light-mode .m-stock-overview-metrics b.neg{color:#9f4d55!important}
  .m-stock-catalog-card,.m-today-control-card,.m-today-ledger{border-radius:8px!important;box-shadow:none!important}
  .m-stock-filter-line{gap:8px!important}
  .m-stock-search{border-radius:6px!important;background:#fff!important}
  .m-today-hero-top,.m-stock-overview-top{letter-spacing:.15px!important}
  .m-today-section-head small{color:#68746d!important;letter-spacing:.2px!important}
}
