:root{--green:#668b45;--green-dark:#41622e;--pale:#edf4e7;--ink:#20251e;--muted:#7c8477;--line:#e2e8dc;--bg:#f4f6f1;--danger:#ca584f;--orange:#de9b31}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}.hidden{display:none!important}button,input{font:inherit}button{border:0;cursor:pointer}a{text-decoration:none;color:inherit}.merchant-login{min-height:100vh;padding:12vh 24px 40px;display:flex;flex-direction:column;align-items:center;background:linear-gradient(180deg,#eaf2e3,#fff 48%)}.merchant-logo{width:76px;height:76px;display:grid;place-items:center;border-radius:24px;background:linear-gradient(145deg,#7da356,#527438);color:#fff;font-size:42px;font-weight:800;box-shadow:0 14px 30px rgba(68,100,45,.2)}.merchant-login h1{margin:24px 0 6px}.merchant-login>p{margin:0;color:var(--muted)}.merchant-login form{width:min(420px,100%);margin-top:36px;padding:24px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 15px 45px rgba(47,66,34,.08)}.merchant-login label{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;font-size:14px;font-weight:700}.merchant-login input{padding:14px;border:1px solid var(--line);border-radius:12px;background:#fafbf8}.merchant-login form button{width:100%;height:48px;border-radius:14px;background:var(--green);color:#fff;font-weight:800}.merchant-login small{margin-top:20px;color:var(--muted)}.merchant-login>a{margin-top:22px;color:var(--green-dark)}
.merchant-app{max-width:680px;min-height:100vh;margin:0 auto;padding-bottom:92px;background:var(--bg);box-shadow:0 0 40px rgba(33,46,25,.08)}.merchant-head{position:sticky;z-index:20;top:0;padding:calc(16px + env(safe-area-inset-top)) 18px 16px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(145deg,#6f954d,#4e7136);color:#fff}.merchant-head small{color:rgba(255,255,255,.72)}.merchant-head h1{margin:5px 0 0;font-size:22px}.merchant-head button{padding:9px 14px;border-radius:10px;background:rgba(255,255,255,.16);color:#fff}.merchant-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:16px}.summary-card{padding:17px 8px;border-radius:16px;background:#fff;text-align:center;box-shadow:0 8px 24px rgba(44,62,32,.06)}.summary-card strong,.summary-card span{display:block}.summary-card strong{font-size:24px}.summary-card span{margin-top:6px;color:var(--muted);font-size:11px}.order-filter{display:flex;gap:8px;padding:0 16px 14px;overflow:auto}.order-filter button{flex:none;padding:9px 14px;border-radius:999px;background:#e8ece5;color:#657060}.order-filter button.active{background:var(--green);color:#fff}.merchant-orders{padding:0 14px}.merchant-order{margin-bottom:14px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(44,62,32,.06)}.order-head,.order-pay,.order-buttons{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-head strong{font-size:14px}.order-status{padding:6px 10px;border-radius:999px;background:var(--pale);color:var(--green-dark);font-size:11px;font-weight:800}.order-status.orange{background:#fff3dd;color:#936315}.order-status.gray{background:#eff1ee;color:#70766d}.merchant-order h3{margin:16px 0 7px;font-size:17px}.order-meta{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.order-items{margin-top:14px;padding:13px;border-radius:12px;background:#f6f8f3;font-size:13px;line-height:1.6}.order-pay{margin-top:14px}.order-pay strong{font-size:19px;color:var(--green-dark)}.order-buttons{margin-top:14px;justify-content:flex-end}.order-buttons button{padding:11px 17px;border-radius:11px;background:var(--pale);color:var(--green-dark);font-weight:750}.order-buttons button.primary{background:var(--green);color:#fff}.order-buttons button.danger{background:#fff0ef;color:var(--danger)}
.merchant-section{padding:18px 16px}.merchant-section h2{margin:0 0 7px}.merchant-section>p{margin:0 0 20px;color:var(--muted);font-size:13px;line-height:1.6}.verify-panel{padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff}.scan-box{width:100px;height:100px;margin:4px auto 20px;display:grid;place-items:center;border:2px dashed #a9bd98;border-radius:22px;background:var(--pale);color:var(--green-dark);font-size:46px}.verify-input{display:flex;gap:8px}.verify-input input{flex:1;min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;text-transform:uppercase}.verify-input button{padding:0 20px;border-radius:12px;background:var(--green);color:#fff;font-weight:800}.demo-code{margin-top:14px;color:var(--muted);font-size:12px;text-align:center}.demo-code span{color:var(--green-dark);text-decoration:underline}.verify-history{margin-top:18px}.history-row{padding:15px 0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.history-row div span{display:block}.history-row div span:first-child{font-weight:750}.history-row div span:last-child{margin-top:5px;color:var(--muted);font-size:11px}.history-row>span{color:var(--green-dark);font-size:12px;font-weight:800}
.stock-list{display:flex;flex-direction:column;gap:10px}.stock-item{padding:13px;display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:15px;background:#fff}.stock-item img{width:66px;height:60px;border-radius:11px;object-fit:cover}.stock-info{flex:1;min-width:0}.stock-info strong,.stock-info small{display:block}.stock-info small{margin-top:5px;color:var(--muted)}.stock-step{display:flex;align-items:center;gap:7px}.stock-step button{width:34px;height:34px;border-radius:50%;background:var(--pale);color:var(--green-dark);font-size:18px}.stock-step input{width:48px;padding:8px 4px;border:1px solid var(--line);border-radius:8px;text-align:center}.stock-save{width:100%;height:48px;margin-top:18px;border-radius:14px;background:var(--green);color:#fff;font-weight:800}.mine-card{padding:20px;border-radius:18px;background:linear-gradient(145deg,#6f954d,#4e7136);color:#fff}.mine-card h2{margin:0}.mine-card p{margin:8px 0 0;color:rgba(255,255,255,.75)}.mine-menu{margin-top:16px;overflow:hidden;border-radius:16px;background:#fff}.mine-row{padding:17px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.mine-row:last-child{border-bottom:0}.logout-merchant{width:100%;height:48px;margin-top:18px;border-radius:14px;background:#fff0ef;color:var(--danger);font-weight:800}
.merchant-nav{position:fixed;z-index:30;left:50%;bottom:0;width:min(680px,100%);transform:translateX(-50%);display:flex;padding:9px 8px calc(9px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}.merchant-nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;color:#899085;font-size:11px}.merchant-nav button span{font-size:21px}.merchant-nav button.active{color:var(--green-dark);font-weight:800}.merchant-toast{position:fixed;z-index:100;left:50%;bottom:110px;transform:translateX(-50%);padding:11px 16px;border-radius:11px;background:#20271d;color:#fff;white-space:nowrap;box-shadow:0 10px 30px rgba(0,0,0,.2)}.empty{padding:80px 20px;text-align:center;color:var(--muted)}
@media(min-width:681px){body{background:#e9ede6}.merchant-app{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
.merchant-login form{width:min(420px,calc(100vw - 32px));overflow:hidden}
.merchant-login input{width:100%;min-width:0}
.merchant-product-list{display:flex;flex-direction:column;gap:14px}.merchant-product-form,.merchant-profile-form{padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(44,62,32,.05)}.merchant-product-head{display:flex;align-items:center;gap:13px;margin-bottom:15px}.merchant-product-head img{width:76px;height:68px;border-radius:12px;object-fit:cover}.merchant-product-head strong,.merchant-product-head small{display:block}.merchant-product-head small{margin-top:5px;color:var(--muted)}.merchant-form-grid,.merchant-profile-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.merchant-form-grid label,.merchant-profile-form label{display:flex;flex-direction:column;gap:7px;color:#596153;font-size:12px;font-weight:700}.merchant-form-grid .wide,.merchant-profile-form .wide{grid-column:1/-1}.merchant-form-grid input,.merchant-form-grid select,.merchant-profile-form input,.merchant-profile-form select{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafbf8;color:var(--ink)}.merchant-save{width:100%;height:44px;margin-top:14px;border-radius:12px;background:var(--green);color:#fff;font-weight:800}.merchant-save:disabled{opacity:.55}.merchant-profile-form{margin-top:16px}.merchant-profile-form .merchant-save{margin-top:2px}.mine-card{background-position:center}
.merchant-form-grid .catalog-inherit{flex-direction:row;align-items:flex-start;margin:10px 0;line-height:1.6}.merchant-form-grid .catalog-inherit input{width:18px;height:18px;padding:0;flex:0 0 18px;margin:2px 0 0;accent-color:var(--green)}.catalog-inherit small{display:block;color:var(--muted);font-weight:400}.catalog-template-list{padding:2px 12px;background:var(--bg);border-radius:10px}.catalog-note{font-size:12px;line-height:1.7;color:var(--muted)}
.merchant-toast{max-width:calc(100vw - 32px);width:max-content;white-space:normal;line-height:1.5;overflow-wrap:anywhere}
