:root{
  --bg:#fbf9f6; --ink:#1f1b16; --muted:#7d7266; --line:#e8e0d5;
  --accent:#c2562b; --accent-dark:#a5461f; --ok:#1f6b57; --warn:#b07818;
  --card:#ffffff; --radius:14px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:15px; line-height:1.65; -webkit-font-smoothing:antialiased;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1000px; margin:0 auto; padding:0 18px}
.topbar{background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20}
.topbar .inner{max-width:1000px; margin:0 auto; padding:12px 18px; display:flex; align-items:center; gap:14px}
.brand{font-weight:700; font-size:18px; letter-spacing:.5px; color:var(--ink)}
.brand small{display:block; font-size:11px; font-weight:400; color:var(--muted); letter-spacing:1px}
.spacer{flex:1}
.nav a{color:var(--muted); font-size:13px; margin-left:16px}
.searchbox{display:flex; align-items:center; gap:0; margin-left:18px; max-width:280px}
.searchbox input{flex:1; padding:7px 12px; font-size:13px; border:1px solid var(--line); border-right:0;
  border-radius:8px 0 0 8px; background:#fff; font-family:inherit; color:var(--ink); min-width:0}
.searchbox input:focus{outline:none; border-color:#d8b08f}
.searchbox button{padding:7px 13px; font-size:13px; border:1px solid var(--line); border-left:0;
  border-radius:0 8px 8px 0; background:#f6f0e8; color:var(--ink); cursor:pointer; font-family:inherit}
.searchbox button:hover{background:#efe6da}
.searchbox.big{max-width:none}
.searchbox.big input{padding:11px 14px; font-size:14px}
.searchbox.big button{padding:11px 22px; font-size:14px}
.breadcrumb{font-size:12.5px; color:var(--muted); padding:14px 0 0}
.breadcrumb a{color:var(--muted)}
.breadcrumb span{margin:0 6px; color:#c9beae}
.breadcrumb b{color:var(--ink); font-weight:500}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin:16px 0 4px}
.chip{padding:6px 14px; border-radius:999px; border:1px solid var(--line); background:#fff;
  font-size:13px; color:var(--muted); text-decoration:none}
.chip:hover{background:#faf5ee; text-decoration:none}
.chip.on{background:var(--ink); color:#fff; border-color:var(--ink)}
.pagination{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:6px 0 40px}
.pg-btn{padding:6px 12px; border:1px solid var(--line); border-radius:8px; background:#fff;
  font-size:13px; color:var(--ink); text-decoration:none}
.pg-btn:hover{background:#faf5ee; text-decoration:none}
.pg-btn.on{background:var(--accent); border-color:var(--accent); color:#fff}
.pg-info{color:var(--muted); font-size:12px; margin-left:6px}
.foot-links{display:flex; gap:14px; flex-wrap:wrap; justify-content:center; padding:22px 0 6px;
  font-size:12.5px; border-top:1px solid var(--line); margin-top:34px}
.foot-links a{color:var(--muted)}
.hero{padding:38px 0 26px}
.hero h1{font-size:28px; margin:0 0 8px; letter-spacing:-.5px}
.hero p{color:var(--muted); margin:0; font-size:14px}
.hero .rule{height:1px; background:var(--line); margin:22px 0 0}
.notice{background:#fff8ec; border:1px solid #f0e2c4; color:#6b5322; padding:10px 14px; border-radius:10px; font-size:13px; margin:18px 0}
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; margin:8px 0 40px}
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:.18s ease; display:flex; flex-direction:column}
.card:hover{transform:translateY(-2px); box-shadow:0 10px 26px rgba(60,40,20,.08)}
.thumb{aspect-ratio:16/10; background:linear-gradient(135deg,#f3ece2,#e9dfd2); overflow:hidden; position:relative}
.thumb img{width:100%; height:100%; object-fit:cover; display:block}
.thumb .ph{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#b5a691; font-size:12px; letter-spacing:2px}
.card .body{padding:14px 15px 16px; flex:1; display:flex; flex-direction:column}
.card h3{margin:0 0 4px; font-size:15px; line-height:1.4}
.card .sub{color:var(--muted); font-size:12.5px; margin:0 0 10px; min-height:20px}
.card .foot{margin-top:auto; display:flex; align-items:baseline; justify-content:space-between}
.price{color:var(--accent); font-weight:700; font-size:19px}
.price small{font-size:12px; font-weight:400; margin-right:1px}
.price-old{color:#b7ac9e; text-decoration:line-through; font-size:12px; margin-left:6px}
.sales{color:var(--muted); font-size:12px}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:6px;
  background:var(--accent); color:#fff; border:0; border-radius:10px;
  padding:12px 22px; font-size:15px; font-weight:600; cursor:pointer; transition:.15s;
  font-family:inherit; text-decoration:none}
.btn:hover{background:var(--accent-dark); text-decoration:none}
.btn.block{width:100%}
.btn.ghost{background:#fff; color:var(--ink); border:1px solid var(--line)}
.btn.ghost:hover{background:#faf6f1}
.btn.sm{padding:7px 14px; font-size:13px; border-radius:8px}
.btn.danger{background:#9c3b2e}
.btn[disabled]{opacity:.55; cursor:not-allowed}
.panel{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px; margin-bottom:18px}
.panel h2{font-size:16px; margin:0 0 14px; letter-spacing:.2px}
.product-hero{display:grid; grid-template-columns:1.1fr 1fr; gap:26px; align-items:start; padding:26px 0}
.product-hero .cover{border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); background:#f2ece3}
.product-hero .cover img{width:100%; height:auto; aspect-ratio:8/5; display:block}
.product-hero h1{font-size:24px; margin:0 0 6px}
.product-hero .sub{color:var(--muted); font-size:13px; margin-bottom:16px}
.desc{white-space:pre-wrap; font-size:14px; color:#3a332b; margin:10px 0 0}
.kv{display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px dashed var(--line); font-size:13px}
.kv:last-child{border-bottom:0}
.kv span:first-child{color:var(--muted)}
.kv b{font-weight:600}
.tip{font-size:12.5px; color:var(--muted); margin-top:10px}
label.field{display:block; margin-bottom:12px; font-size:13px; color:var(--muted)}
label.field input,label.field textarea,label.field select{
  display:block; width:100%; margin-top:6px; padding:10px 12px; font-size:14px;
  border:1px solid var(--line); border-radius:9px; background:#fff; font-family:inherit; color:var(--ink)}
label.field textarea{min-height:120px; resize:vertical}
label.field input:focus,label.field textarea:focus{outline:none; border-color:#d8b08f}
.secure{display:flex; gap:14px; align-items:center; color:var(--muted); font-size:12px; margin-top:14px}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.badge{display:inline-block; padding:2px 9px; border-radius:999px; font-size:12px; line-height:1.7}
.badge.ok{background:#e6f3ee; color:var(--ok)}
.badge.warn{background:#fbf1dc; color:var(--warn)}
.badge.gray{background:#f0ece5; color:#837565}
.badge.red{background:#fbe9e5; color:#9c3b2e}
.dl-item{display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px dashed var(--line)}
.dl-item:last-child{border:0}
.dl-item .nm{flex:1; font-size:14px; word-break:break-all}
.dl-item .sz{color:var(--muted); font-size:12px}
.empty{text-align:center; color:var(--muted); padding:50px 0; font-size:14px}
table{width:100%; border-collapse:collapse; font-size:13px}
th,td{padding:10px 8px; text-align:left; border-bottom:1px solid var(--line); vertical-align:middle}
th{color:var(--muted); font-weight:500; font-size:12.5px; white-space:nowrap}
tr:hover td{background:#fcfaf7}
td.num{text-align:right; font-variant-numeric:tabular-nums}
.aside{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px}
.stat{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:20px}
.stat .box{background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 18px}
.stat .box .n{font-size:24px; font-weight:700; letter-spacing:-.5px}
.stat .box .l{font-size:12px; color:var(--muted); margin-top:2px}
.foot-note{color:var(--muted); font-size:12px; text-align:center; padding:30px 0 40px; border-top:1px solid var(--line); margin-top:30px}
.error{background:#fbe9e5; color:#9c3b2e; padding:9px 13px; border-radius:9px; font-size:13px; margin-bottom:14px}
.okbox{background:#e6f3ee; color:var(--ok); padding:9px 13px; border-radius:9px; font-size:13px; margin-bottom:14px}
.msg-page{padding:70px 0; text-align:center}
.msg-page .code{font-size:44px; font-weight:700; color:#e0d5c6; letter-spacing:2px}
.msg-page h1{font-size:22px; margin:8px 0 10px}
.msg-page p{color:var(--muted)}
@media (max-width:720px){
  .product-hero{grid-template-columns:1fr; gap:16px}
  .hero h1{font-size:24px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px}
  .panel{padding:18px 16px}
  table{font-size:12px}
  th,td{padding:8px 5px}
}
