:root{--green:#245c40;--green-dark:#193f2d;--sage:#eaf0e6;--bg:#fafaf6;--ink:#25382c;--muted:#788176;--line:#e4e8de;--orange:#b97436;--red:#b53b35;--white:#fff;--radius:18px;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.65}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #d5a55b;outline-offset:4px}input,select,textarea{width:100%;padding:12px 14px;border:1px solid #dbe1d6;border-radius:9px;background:#fff;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #a9c0a9;outline-offset:1px}textarea{resize:vertical;min-height:100px}h1,h2,h3,p{margin:0}h1{font-size:36px;letter-spacing:-1px;line-height:1.35}h2{font-size:24px;letter-spacing:-.5px}h3{font-size:17px}small,.muted{color:var(--muted)}.container{max-width:1200px;margin:0 auto;padding:0 32px}.site-header{height:88px;background:#fffefaee;backdrop-filter:blur(12px);position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;height:100%}.brand{display:flex;gap:12px;align-items:center;font-size:24px;letter-spacing:2px;font-weight:800}.brand-sub{font-size:12px;letter-spacing:2px;color:var(--muted);font-weight:400;margin-left:14px}.header-inner nav{display:flex;align-items:center;gap:38px}.nav-home{color:var(--green);font-weight:600}.cart-link{display:flex;align-items:center;gap:8px}.cart-link b{background:var(--green);color:#fff;border-radius:20px;min-width:24px;font-size:11px;text-align:center;line-height:24px}.hero{display:grid;grid-template-columns:1.05fr 1fr;background:#e9eee1;border-radius:24px;margin-top:32px;min-height:345px;overflow:hidden;position:relative}.hero-copy{padding:42px 46px;z-index:1}.eyebrow{font-size:11px;letter-spacing:3px;font-weight:700;color:var(--green);display:block;margin-bottom:16px}.hero h1{font-size:43px;line-height:1.4;margin-bottom:16px}.hero p{color:#67735e;max-width:380px;font-size:14px}.hero-art{display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#f9f8db 0%,transparent 68%)}.hero-art img{width:100%;height:340px;object-fit:contain}.hero-tags{display:flex;gap:20px;margin-top:26px;color:#50634b;font-size:12px}.hero-tags span:before{content:'✓';margin-right:6px}.status-bar{margin:24px 0 34px;padding:16px 22px;border:1px solid #d9e2cf;border-radius:12px;background:#f0f4e9;display:flex;justify-content:space-between;align-items:center;gap:14px}.status-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.state-dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:#59804c;margin-right:7px}.status-bar.closed{background:#f7f1e7;border-color:#e8ddc7}.closed .state-dot{background:#b78b49}.status-label{font-weight:700;color:var(--green)}.closed .status-label{color:#967138}.status-detail{color:#6d7c64;font-size:12px}.status-end{font-size:12px;color:#647459}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.section-heading p{color:var(--muted);margin-top:5px;font-size:12px}.search{width:260px;padding:10px 15px;border-radius:25px;background:transparent}.category-tabs{display:flex;gap:12px;overflow:auto;padding-bottom:6px;margin-bottom:24px;scrollbar-width:thin}.chip{flex-shrink:0;border:1px solid var(--line);background:#fff;padding:9px 22px;border-radius:24px;color:#687361}.chip.active{background:var(--green);color:#fff;border-color:var(--green)}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.product-card{border:1px solid #e7e9e1;background:#fff;border-radius:16px;overflow:hidden;transition:transform .2s,box-shadow .2s}.product-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px #294c2910}.product-cover{height:205px;position:relative;display:block;background:#f0f1e9;overflow:hidden}.product-cover img{height:100%;width:100%;object-fit:cover;transition:transform .3s}.product-card:hover img{transform:scale(1.03)}.product-category{position:absolute;left:14px;top:14px;padding:3px 9px;background:#ffffffdd;border-radius:5px;font-size:10px;color:#5e7159}.product-body{padding:18px}.product-body h3{font-size:16px;margin-bottom:6px}.product-desc{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-bottom{display:flex;align-items:end;justify-content:space-between;margin-top:18px}.price{font-size:25px;font-weight:700;letter-spacing:-.8px;color:var(--green);font-variant-numeric:tabular-nums}.price i{font-size:13px;font-weight:500;font-style:normal;margin-right:2px}.price small{font-size:11px;font-weight:400;letter-spacing:0;margin-left:4px}.stock{display:block;color:var(--muted);font-size:10px;margin-top:4px}.add-btn{width:36px;height:36px;border-radius:50%;border:1px solid #d8e1d0;background:#edf2e7;color:var(--green);font-size:24px;line-height:1}.add-btn:hover{background:var(--green);color:white}.sold{color:#ad7360}.btn{border:0;display:inline-flex;gap:8px;align-items:center;justify-content:center;border-radius:9px;padding:13px 24px;background:var(--green);color:#fff;font-weight:600}.btn:hover{background:var(--green-dark)}.btn.secondary{background:white;color:var(--green);border:1px solid #ccd8c7}.btn.danger{background:#fff4f1;color:#af3e30;border:1px solid #f0d4ce}.btn.small{padding:7px 14px;font-size:12px}.btn.full{width:100%}.text-btn{background:none;border:0;color:var(--green);padding:4px 0}.text-btn.danger{color:var(--red)}.pager{display:flex;justify-content:center;gap:20px;align-items:center;margin:32px 0}.trust-row{display:grid;grid-template-columns:repeat(3,1fr);margin:54px 0 30px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:28px 0;gap:25px}.trust-row article{display:flex;gap:14px;align-items:center;justify-content:center}.trust-icon{font-size:25px;color:#65805d}.trust-row h3{font-size:13px}.trust-row p{font-size:11px;color:var(--muted);margin-top:3px}.site-footer{padding-top:38px;padding-bottom:24px;color:var(--muted);margin-top:44px}.brand.small{font-size:20px;color:var(--green)}.brand.small span{font-size:11px;letter-spacing:1px;color:var(--muted);font-weight:400}.site-footer p{font-size:11px;margin:12px 0 30px}.footer-bottom{border-top:1px solid var(--line);padding-top:18px;display:flex;gap:20px;font-size:10px}.footer-bottom a{margin-left:auto}.loading,.empty{padding:70px 24px;text-align:center;color:var(--muted)}.empty h2{color:var(--ink);margin-bottom:10px}.empty .btn{margin-top:24px}.toast{position:fixed;left:50%;bottom:32px;transform:translateX(-50%);background:#213f2e;color:#fff;padding:13px 24px;border-radius:12px;box-shadow:0 6px 30px #0002;z-index:100;max-width:90vw}.breadcrumb{margin:28px 0 24px;color:var(--muted);font-size:12px}.breadcrumb a{color:var(--green)}.page-title{margin-bottom:28px}.page-title p{color:var(--muted);margin-top:10px}.detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:50px}.detail-image{width:100%;aspect-ratio:1;object-fit:cover;border-radius:22px;background:#f0f1e9}.thumbs{display:flex;gap:10px;margin-top:14px}.thumbs button{background:none;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}.thumbs img{width:65px;height:65px;object-fit:cover;display:block}.detail-copy{padding:26px 0}.detail-copy h1{margin:16px 0}.detail-copy .price{font-size:36px;margin:22px 0}.detail-description{white-space:pre-wrap;color:#6a7665;line-height:2;margin:20px 0 28px}.qty{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;align-items:center;background:#fff}.qty button{width:34px;height:36px;border:0;background:#f5f7f0;color:var(--green);font-size:18px}.qty input{width:58px;text-align:center;border:0;padding:6px;border-radius:0;-moz-appearance:textfield}.qty input::-webkit-inner-spin-button{appearance:none}.detail-actions{display:flex;gap:16px;margin:20px 0}.cart-layout,.checkout-layout{display:grid;grid-template-columns:1fr 320px;gap:26px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px}.panel h2{font-size:18px;margin-bottom:20px}.cart-row{display:grid;grid-template-columns:76px 1fr auto;gap:18px;padding:22px 0;border-bottom:1px solid var(--line);align-items:center}.cart-row:first-child{padding-top:0}.cart-row:last-child{border-bottom:0}.cart-row img{width:76px;height:76px;object-fit:cover;border-radius:10px;background:var(--sage)}.cart-row h3{font-size:14px}.cart-row .price{font-size:17px;margin:7px 0}.cart-row-actions{text-align:right}.cart-row .qty{margin:8px 0}.summary-line{display:flex;justify-content:space-between;gap:12px;margin:12px 0;font-size:13px}.summary-total{border-top:1px solid var(--line);padding-top:16px;margin:20px 0}.summary-total b{font-size:25px;color:var(--green)}.notice{padding:13px 16px;background:#f5f1e6;color:#8c703c;border-radius:8px;font-size:12px;margin:16px 0}.notice.error,.field-error{color:var(--red)}.notice.error{background:#fff0ed}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px}.field label{font-weight:600}.field.full{grid-column:1/-1}.required{color:var(--red)}.field-error{font-size:11px;min-height:16px}.steps{display:flex;gap:15px;margin:25px 0 32px;color:var(--muted);font-size:12px}.steps .active{color:var(--green);font-weight:700}.checkout-items{font-size:12px}.checkout-items .summary-line{margin:18px 0}.success{max-width:660px;margin:65px auto;text-align:center;padding:46px 30px}.success-icon{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;background:var(--sage);border-radius:50%;color:var(--green);font-size:35px;margin-bottom:24px}.success h1{font-size:30px;margin-bottom:18px}.success p{color:var(--muted);margin:8px 0}.order-number{font-family:monospace;font-size:18px;padding:18px 10px;background:var(--bg);border-radius:10px;word-break:break-all;margin:25px 0}.success .btn{margin-top:22px}[hidden]{display:none!important}
/* 管理后台 */
.admin-body{background:#f4f6f1}.admin-shell{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:30px 20px;position:sticky;top:0;height:100vh}.sidebar .brand{font-size:22px;margin:0 8px 36px}.sidebar-caption{font-size:10px;letter-spacing:2px;color:var(--muted);padding:0 14px;margin-bottom:12px}.admin-nav{display:flex;flex-direction:column;gap:6px}.admin-nav a{padding:12px 15px;border-radius:9px;color:#687263}.admin-nav a.active{background:#e9f0e4;color:var(--green);font-weight:700}.sidebar-bottom{position:absolute;bottom:26px;left:34px;font-size:12px}.admin-main{min-width:0;padding:0 38px 40px}.admin-top{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:32px}.admin-top small{letter-spacing:2px;font-size:10px}.admin-user{display:flex;gap:20px;align-items:center;font-size:12px}.admin-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}.admin-heading h1{font-size:27px}.admin-heading p{color:var(--muted);font-size:12px;margin-top:6px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:26px}.stat-card{background:#fff;border:1px solid var(--line);padding:22px;border-radius:14px}.stat-card p{color:var(--muted);font-size:12px}.stat-card strong{font-size:32px;font-weight:600;display:block;margin:12px 0 0}.stat-card.highlight{background:var(--green);color:#fff}.stat-card.highlight p{color:#d1dfc9}.stat-card strong.state-value{font-size:24px}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}.data-table th{text-align:left;font-weight:500;color:var(--muted);padding:14px 16px;background:#f7f9f4;border-bottom:1px solid var(--line)}.data-table td{padding:17px 16px;border-bottom:1px solid #eef0e9}.data-table tr:last-child td{border-bottom:0}.table-product{display:flex;align-items:center;gap:12px}.table-product img{width:44px;height:44px;object-fit:cover;border-radius:8px;background:var(--sage)}.badge{display:inline-block;padding:3px 9px;border-radius:6px;background:var(--sage);color:var(--green);font-size:11px}.badge.pending{background:#faf0d9;color:#9a752c}.badge.cancelled,.badge.disabled{background:#f2ece7;color:#978573}.badge.completed{background:#e8edf5;color:#5f7598}.table-actions{display:flex;gap:14px;align-items:center}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.toolbar input{width:250px}.toolbar select{width:150px}.toolbar input[type=date]{width:165px}.admin-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px}.admin-panel .panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.admin-panel .panel-head h2{font-size:17px}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 20% 20%,#e4ecdb,transparent 60%)}.login-card{width:min(420px,calc(100% - 32px));background:white;border:1px solid var(--line);border-radius:22px;padding:40px;box-shadow:0 20px 70px #2c4c2810}.login-card .brand{margin-bottom:30px}.login-card h1{font-size:25px;margin-bottom:8px}.login-card p{font-size:12px;color:var(--muted);margin-bottom:24px}.login-card .field{margin-bottom:18px}.login-card>a{display:block;text-align:center;font-size:12px;color:var(--muted);margin-top:22px}.modal-overlay{position:fixed;inset:0;background:#17291c70;z-index:50;display:flex;align-items:center;justify-content:center;padding:24px}.modal{background:white;border-radius:18px;width:640px;max-width:100%;max-height:90vh;overflow:auto;padding:28px}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.modal-header h2{font-size:22px}.close-btn{border:0;background:none;font-size:24px;color:var(--muted)}.modal-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.settings-panel{max-width:780px}.settings-panel .field{margin-bottom:20px}.settings-panel .form-grid .field{margin:0}.settings-help{font-size:12px;color:var(--muted);margin:14px 0 26px}.order-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.info-line{margin:10px 0;font-size:13px;overflow-wrap:anywhere}.info-line span{color:var(--muted);display:inline-block;min-width:82px}.admin-mobile-brand{display:none}.image-manager{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.image-manager img{width:70px;height:70px;object-fit:cover;border-radius:8px}.image-manager>div{text-align:center}.image-manager button{display:block;font-size:11px}.inline-feedback{font-size:12px;color:var(--red);margin:15px 0}.admin-main .pager{margin-bottom:0}.privacy-note{font-size:11px;color:var(--muted);margin-top:15px}
@media(min-width:1600px){.container{max-width:1280px}.product-cover{height:225px}}@media(max-width:1100px){.product-grid{grid-template-columns:repeat(3,1fr)}.hero-copy{padding:36px 30px}.hero h1{font-size:36px}.admin-main{padding:0 22px 30px}.admin-shell{grid-template-columns:190px 1fr}.stat-grid{gap:12px}.stat-card{padding:16px}.brand-sub{display:none}}@media(max-width:800px){.container{padding-left:20px;padding-right:20px}.site-header{height:72px}.header-inner nav{gap:20px}.hero{min-height:290px}.hero h1{font-size:30px}.hero-art img{height:290px}.hero-copy{padding:30px 24px}.hero-tags{gap:10px;font-size:10px}.status-bar{align-items:flex-start}.status-end{display:none}.product-grid{grid-template-columns:repeat(2,1fr);gap:16px}.product-cover{height:210px}.cart-layout,.checkout-layout{grid-template-columns:1fr}.detail-layout{gap:28px}.detail-copy h1{font-size:27px}.admin-shell{display:block}.sidebar{height:auto;position:sticky;padding:12px 20px;z-index:20;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand,.sidebar-caption,.sidebar-bottom{display:none}.admin-nav{flex-direction:row;overflow:auto;gap:5px}.admin-nav a{white-space:nowrap;padding:8px 12px;font-size:12px}.admin-top{height:65px;margin-bottom:24px}.stat-grid{grid-template-columns:repeat(2,1fr)}.admin-heading{flex-wrap:wrap}.order-detail-grid{grid-template-columns:1fr}.trust-row article{gap:8px}.trust-icon{font-size:20px}.trust-row p{font-size:10px}}@media(max-width:520px){.container{padding-left:16px;padding-right:16px}.brand{font-size:21px;gap:8px}.brand img{width:32px;height:32px}.nav-home{display:none}.hero{margin-top:20px;grid-template-columns:1fr;min-height:0}.hero-copy{padding:28px 26px 0}.hero h1{font-size:34px}.hero p{font-size:12px}.hero-art{height:170px;margin-top:-15px;justify-content:flex-end}.hero-art img{width:85%;height:220px;transform:translate(18px,-5px)}.hero-tags{margin-top:18px}.eyebrow{margin-bottom:10px;font-size:9px}.status-bar{margin:18px 0 28px;padding:13px 15px}.status-detail{font-size:10px;display:block;width:100%}.status-info{gap:3px}.section-heading{align-items:start;flex-wrap:wrap;gap:16px}.section-heading h2{font-size:23px}.search{width:100%;font-size:12px}.category-tabs{gap:8px;margin-bottom:18px}.chip{padding:7px 16px;font-size:12px}.product-grid{gap:12px}.product-cover{height:160px}.product-category{left:10px;top:10px;font-size:9px}.product-body{padding:13px}.product-body h3{font-size:14px}.product-desc{font-size:10px}.price{font-size:21px}.price small{font-size:10px;margin-left:2px}.product-bottom{margin-top:14px}.add-btn{width:30px;height:30px;font-size:21px}.stock{font-size:9px}.trust-row{margin-top:36px;grid-template-columns:1fr;padding:22px;gap:20px}.trust-row article{justify-content:flex-start;gap:16px}.trust-row h3{font-size:13px}.site-footer{margin-top:10px}.brand.small span{font-size:9px;letter-spacing:0}.footer-bottom{flex-wrap:wrap;gap:10px}.breadcrumb{margin-top:20px}.page-title h1{font-size:28px}.detail-layout{grid-template-columns:1fr;gap:0}.detail-copy{padding:20px 0}.detail-actions .btn{flex:1}.panel{padding:20px}.cart-row{grid-template-columns:58px 1fr auto;gap:10px}.cart-row img{width:58px;height:58px}.cart-row .qty button{width:27px}.cart-row .qty input{width:37px}.cart-row h3{font-size:12px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.summary-line{font-size:12px}.admin-main{padding:0 16px 24px}.admin-top small{font-size:9px;letter-spacing:1px}.admin-user{gap:10px;font-size:11px}.admin-heading h1{font-size:24px}.admin-panel{padding:16px}.toolbar input,.toolbar select{flex:1;min-width:120px}.toolbar input[type=date]{width:135px;flex:1}.modal{padding:22px}.modal-overlay{padding:12px}.login-card{padding:30px}.order-number{font-size:15px}.success{margin:30px auto;padding:30px 20px}.success h1{font-size:25px}}
