:root{
  --page:#f5f7fb;
  --panel:#ffffff;
  --ink:#111827;
  --muted:#64748b;
  --line:#e5eaf2;
  --brand:#2563eb;
  --brand-strong:#1d4ed8;
  --good:#16a34a;
  --warn:#d97706;
  --bad:#dc2626;
  --soft-blue:#eef5ff;
  --shadow:0 18px 45px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
body{font-family:Inter,"Segoe UI",Arial,"Microsoft YaHei",sans-serif;background:var(--page);color:var(--ink);letter-spacing:0}
a{text-decoration:none}.text-break{word-break:break-word}
.card{border:1px solid var(--line);border-radius:14px;box-shadow:none}.card-header{border-bottom-color:var(--line);border-top-left-radius:14px!important;border-top-right-radius:14px!important}.card-body{padding:1.25rem}.form-control,.form-select,.btn{border-radius:10px}.table>thead th{font-weight:700;color:#475569;white-space:nowrap;background:#f8fafc}.table td{vertical-align:middle}

.public-home{background:linear-gradient(180deg,#f7fbff 0,#f4f7fb 42%,#ffffff 100%)}
.site-shell{max-width:1180px;margin:0 auto;padding:24px 20px 0}.site-nav{height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand-mark{display:inline-flex;align-items:center;gap:12px;color:var(--ink)}.brand-mark span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--brand);color:#fff;font-weight:800}.brand-mark strong{font-size:18px}.nav-actions{display:flex;align-items:center;gap:10px}.nav-actions a{color:#475569;font-weight:700;font-size:14px;padding:9px 12px;border-radius:999px}.nav-actions a:hover{background:#eaf1ff;color:var(--brand-strong)}.admin-link{border:1px solid var(--line);background:#fff}
.hero-panel{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(380px,.9fr);gap:28px;align-items:stretch;padding:52px 0 42px}.hero-copy{padding:34px 0}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:800;color:var(--brand);margin:0 0 12px}.hero-copy h1{font-size:clamp(38px,5vw,66px);line-height:1.02;margin:0 0 20px;font-weight:850;color:#0f172a}.hero-copy p{font-size:18px;line-height:1.7;color:#475569;max-width:720px;margin:0 0 28px}.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;color:#64748b;font-size:14px}.primary-action{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:12px;background:var(--brand);color:#fff;font-weight:800;box-shadow:0 12px 28px rgba(37,99,235,.22)}.primary-action:hover{background:var(--brand-strong);color:#fff}
.status-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-content:center}.status-card{min-height:150px;padding:22px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);position:relative;overflow:hidden}.status-card:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:#cbd5e1}.status-card span{display:block;color:#64748b;font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.08em}.status-card strong{display:block;margin-top:18px;font-size:46px;line-height:1;font-weight:850}.status-card small{display:block;margin-top:8px;color:#94a3b8;font-weight:700}.status-card.good:before{background:var(--good)}.status-card.warn:before{background:var(--warn)}.status-card.bad:before{background:var(--bad)}.status-card.total:before{background:var(--brand)}
.content-shell{max-width:1180px;margin:0 auto;padding:18px 20px 46px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px}.section-heading h2{font-size:30px;margin:0;font-weight:850}.section-heading>p{max-width:560px;margin:0;color:#64748b;line-height:1.6}.section-heading code{background:#eef2ff;color:#1d4ed8;border-radius:6px;padding:2px 6px}.inventory-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.inventory-table{margin:0}.inventory-table th{padding:16px 20px}.inventory-table td{padding:18px 20px;border-color:#eef2f7}.product-name{font-weight:800;color:#0f172a}.product-meta,.checked-at{font-size:13px;color:#94a3b8;margin-top:4px}.stock-pill{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;font-size:13px;font-weight:800}.stock-in_stock{background:#dcfce7;color:#15803d}.stock-out_of_stock{background:#fee2e2;color:#b91c1c}.stock-low_stock{background:#fef3c7;color:#b45309}.stock-unlimited,.stock-unknown{background:#f1f5f9;color:#475569}.row-action{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:10px;background:#eef5ff;color:#1d4ed8;font-weight:800}.row-action:hover{background:#dbeafe;color:#1e40af}.empty-state{text-align:center;padding:70px 22px}.empty-state h3{font-size:24px;font-weight:850}.empty-state p{color:#64748b;margin:8px 0 0}.site-footer{max-width:1180px;margin:0 auto;padding:24px 20px 42px;color:#64748b;font-size:14px}

.navbar-brand{letter-spacing:.1px}.stat-card{min-height:124px;overflow:hidden}.stat-card:before{content:"";display:block;height:4px;background:var(--brand)}.input-group .form-control{border-top-left-radius:10px;border-bottom-left-radius:10px}.input-group .btn{border-top-right-radius:10px;border-bottom-right-radius:10px}
.login-page{min-height:100vh;background:linear-gradient(135deg,#f8fafc 0,#eef5ff 100%)}.login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:440px;border-radius:18px}.login-logo{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;color:#fff;font-weight:850;background:var(--brand)}
.table-tools{border-color:var(--line)!important}.table-tools .form-control-sm,.table-tools .form-select-sm{border-radius:8px}.sortable{cursor:pointer;user-select:none;position:relative;padding-right:1.35rem!important}.sortable:after{content:"↕";position:absolute;right:.45rem;color:#94a3b8;font-size:.8rem}.table-pager .btn[disabled]{opacity:.45;cursor:not-allowed}.align-self-center{align-self:center!important}
@media (min-width:768px){.text-md-end{text-align:right!important}}
@media (max-width:900px){.hero-panel{grid-template-columns:1fr;padding-top:26px}.hero-copy{padding:20px 0 0}.status-board{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading{display:block}.section-heading>p{margin-top:8px}.inventory-table th,.inventory-table td{padding:14px 12px}}
@media (max-width:575.98px){.site-shell,.content-shell,.site-footer{padding-left:14px;padding-right:14px}.site-nav{height:auto;align-items:flex-start}.brand-mark strong{font-size:16px}.nav-actions{gap:4px}.hero-copy h1{font-size:36px}.hero-copy p{font-size:16px}.status-board{grid-template-columns:1fr}.status-card{min-height:118px}.status-card strong{font-size:36px}.display-6{font-size:1.8rem}.card-body{padding:1rem}.table{font-size:.875rem}}
.admin-tabs{background:#fff;border:1px solid var(--line);border-radius:14px 14px 0 0;padding:10px 10px 0}.admin-tabs .nav-link{font-weight:800;color:#64748b;border-radius:10px 10px 0 0}.admin-tab-content{background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 14px 14px;padding:18px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:20px;display:flex;flex-direction:column;gap:18px}.product-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.product-card h3{font-size:19px;font-weight:850;margin:0;color:#0f172a}.product-card p{margin:6px 0 0;color:#64748b;font-size:13px}.spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.spec-grid div{background:#f8fafc;border:1px solid #edf2f7;border-radius:12px;padding:10px}.spec-grid span{display:block;color:#94a3b8;font-size:12px;font-weight:800}.spec-grid strong{display:block;margin-top:4px;color:#0f172a;font-size:15px}.product-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;color:#94a3b8;font-size:13px}.buy-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 15px;border-radius:12px;background:var(--brand);color:#fff;font-weight:850;white-space:nowrap}.buy-button:hover{background:var(--brand-strong);color:#fff}@media(max-width:1040px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.product-grid{grid-template-columns:1fr}.admin-tab-content{padding:12px}.product-card-foot{align-items:flex-start;flex-direction:column}.buy-button{width:100%}}
