:root{--primary:#ff5a2c;--primary-dark:#e8461a;--primary-light:#fff2ed;--ink:#1f2937;--muted:#6b7280;--bg:#f5f6f8;--card:#fff;--line:#e8eaee;--gold:#c8a45c;--shadow:0 4px 18px rgba(20,30,50,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.6}a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit;font-size:inherit}button{cursor:pointer}h1,h2,h3,h4,p{margin:0}img{max-width:100%;display:block}.wrap{width:min(1220px,calc(100% - 32px));margin:0 auto}.loading,.empty{padding:80px 20px;text-align:center;color:var(--muted)}

/* 顶部 */
.topbar{height:34px;background:#212936;color:#cbd3df;font-size:12px}.topbar-inner{height:34px;display:flex;align-items:center;justify-content:space-between}.topbar a{margin-left:18px}.topbar a:hover{color:#fff}.topbar-phone{margin-left:18px;color:#fff}
.site-header{background:#fff;position:sticky;top:0;z-index:50;box-shadow:0 1px 0 var(--line)}.header-main{height:88px;display:flex;align-items:center;gap:36px}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}.logo-mark{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#ff7a4d,#ff4a1c);color:#fff;display:grid;place-items:center;font-size:28px;font-weight:900;box-shadow:0 6px 14px rgba(255,90,44,.28)}.logo-text{font-size:25px;font-weight:900;letter-spacing:-.5px;line-height:1.05}.logo-text em{display:block;font-size:11px;font-style:normal;color:var(--muted);font-weight:500;letter-spacing:2px;margin-top:3px}
.search-box{flex:1;max-width:560px;display:flex;height:44px;border:2px solid var(--primary);border-radius:24px;overflow:hidden}.search-box input{flex:1;border:0;outline:0;padding:0 20px;background:transparent}.search-box button{width:100px;border:0;background:var(--primary);color:#fff;font-weight:700;letter-spacing:2px}.search-box button:hover{background:var(--primary-dark)}
.header-actions{display:flex;gap:6px;margin-left:auto}.hd-btn{display:flex;align-items:center;gap:7px;padding:9px 12px;border:0;background:transparent;border-radius:8px;color:var(--ink);white-space:nowrap}.hd-btn:hover{background:var(--primary-light);color:var(--primary)}.hd-ico{width:20px;height:20px;border:1.6px solid currentColor;border-radius:6px;display:grid;place-items:center;font-size:11px;font-weight:700}.cart-btn b{background:var(--primary);color:#fff;border-radius:10px;padding:0 6px;font-size:11px;min-width:18px;text-align:center}
.main-nav{border-top:1px solid var(--line);background:#fff}.nav-inner{display:flex;gap:4px;height:48px;align-items:center;overflow-x:auto}.nav-inner a{padding:0 14px;height:48px;display:flex;align-items:center;white-space:nowrap;font-weight:600;color:#374151;border-bottom:2px solid transparent}.nav-inner a:hover,.nav-inner a.active{color:var(--primary);border-bottom-color:var(--primary)}

/* 首页 */
.hero{position:relative;margin:18px 0 26px;border-radius:16px;overflow:hidden;background:#eee;height:400px}.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .6s;background-size:cover;background-position:center}.hero-slide.active{opacity:1}.hero-dots{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:3}.hero-dots i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer;transition:.3s}.hero-dots i.active{background:#fff;width:26px;border-radius:6px}.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:rgba(0,0,0,.22);color:#fff;font-size:22px;z-index:3}.hero-arrow:hover{background:rgba(0,0,0,.4)}.hero-arrow.prev{left:16px}.hero-arrow.next{right:16px}
.cat-strip{display:grid;grid-template-columns:repeat(8,1fr);gap:12px;margin-bottom:30px}.cat-tile{background:#fff;border-radius:12px;padding:18px 8px;text-align:center;box-shadow:var(--shadow);transition:.2s;border:1px solid transparent}.cat-tile:hover{transform:translateY(-4px);border-color:var(--primary);color:var(--primary)}.cat-ico{width:50px;height:50px;border-radius:14px;margin:0 auto 10px;display:grid;place-items:center;color:#fff;font-size:20px;font-weight:800}.cat-tile span{font-size:13px;font-weight:700}
.sec{margin:34px 0}.sec-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:16px}.sec-head h2{font-size:25px;font-weight:800;position:relative;padding-left:14px}.sec-head h2:before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:5px;border-radius:4px;background:var(--primary)}.sec-head p{color:var(--muted);font-size:13px;margin-left:14px;display:inline}.sec-head a{color:var(--primary);font-weight:700}
.flash-wrap{background:linear-gradient(120deg,#fff4ee,#fff 55%);border:1px solid #ffe1d4;border-radius:16px;padding:22px}.flash-top{display:flex;align-items:center;gap:16px;margin-bottom:18px}.flash-tag{background:var(--primary);color:#fff;font-weight:900;font-size:20px;padding:6px 14px;border-radius:8px}.countdown{display:flex;align-items:center;gap:6px;color:#555}.countdown b{background:#2b3342;color:#fff;border-radius:5px;padding:4px 7px;font-size:14px}
.product-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.product-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:var(--shadow);transition:.22s;position:relative;border:1px solid transparent}.product-card:hover{transform:translateY(-5px);box-shadow:0 12px 28px rgba(20,30,50,.12);border-color:#ffd9cc}.pc-img{aspect-ratio:1;background:#f8f9fb;overflow:hidden}.pc-img img{width:100%;height:100%;object-fit:cover;transition:.4s}.product-card:hover .pc-img img{transform:scale(1.05)}.pc-badges{position:absolute;top:10px;left:10px;display:flex;gap:4px;flex-wrap:wrap}.badge{font-size:11px;padding:2px 7px;border-radius:4px;background:var(--primary);color:#fff;font-weight:700}.badge.blue{background:#2f6fed}.badge.gold{background:var(--gold)}.pc-body{padding:12px 14px 16px}.pc-name{font-size:14px;font-weight:700;line-height:1.45;height:42px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.pc-sub{color:var(--muted);font-size:12px;height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:3px}.pc-price{display:flex;align-items:baseline;gap:6px;margin-top:10px}.pc-price b{color:var(--primary);font-size:21px;font-weight:800}.pc-price b small{font-size:13px}.pc-price del{color:#9ca3af;font-size:12px}.pc-foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;color:var(--muted);font-size:12px}.pc-cart{border:0;background:var(--primary-light);color:var(--primary);border-radius:7px;padding:5px 10px;font-weight:700}.pc-cart:hover{background:var(--primary);color:#fff}
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.feature{background:#fff;border-radius:12px;padding:20px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow)}.feature i{width:46px;height:46px;border-radius:12px;background:var(--primary-light);color:var(--primary);display:grid;place-items:center;font-style:normal;font-size:20px;font-weight:800;flex-shrink:0}.feature h4{font-size:15px}.feature p{color:var(--muted);font-size:12px}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.news-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:var(--shadow);transition:.2s}.news-card:hover{transform:translateY(-4px)}.news-card img{width:100%;height:150px;object-fit:cover}.news-card .nc-body{padding:16px}.news-card h3{font-size:16px;margin-bottom:8px;line-height:1.5}.news-card p{color:var(--muted);font-size:13px;height:42px;overflow:hidden}.news-card .nc-meta{display:flex;justify-content:space-between;color:#9ca3af;font-size:12px;margin-top:12px}.tag-pill{background:var(--primary-light);color:var(--primary);padding:2px 8px;border-radius:4px;font-size:12px}

/* 列表页 */
.crumb{color:var(--muted);font-size:13px;margin:18px 0}.crumb a:hover{color:var(--primary)}.crumb span{margin:0 7px;color:#c4c9d1}
.layout{display:grid;grid-template-columns:230px 1fr;gap:20px}.side{background:#fff;border-radius:12px;padding:18px;box-shadow:var(--shadow);align-self:start}.side h3{font-size:16px;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--line)}.side-list a{display:block;padding:9px 12px;border-radius:7px;color:#4b5563}.side-list a:hover,.side-list a.active{background:var(--primary-light);color:var(--primary);font-weight:700}
.main-panel{background:#fff;border-radius:12px;padding:20px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px;flex-wrap:wrap;gap:10px}.panel-head h2{font-size:21px}.sort-bar{display:flex;gap:6px;flex-wrap:wrap}.sort-bar button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:6px 12px}.sort-bar button.active{background:var(--primary);color:#fff;border-color:var(--primary)}.pager{display:flex;justify-content:center;gap:6px;margin-top:26px}.pager button{border:1px solid var(--line);background:#fff;border-radius:6px;min-width:36px;padding:7px 10px}.pager button.active{background:var(--primary);color:#fff;border-color:var(--primary)}

/* 详情页 */
.detail{background:#fff;border-radius:14px;padding:26px;box-shadow:var(--shadow);margin-top:18px}.detail-top{display:grid;grid-template-columns:430px 1fr;gap:36px}.gallery-main{width:100%;aspect-ratio:1;border-radius:12px;background:#f8f9fb;object-fit:cover}.gallery-thumbs{display:flex;gap:8px;margin-top:10px}.gallery-thumbs img{width:68px;height:68px;border-radius:8px;border:2px solid transparent;cursor:pointer;background:#f8f9fb}.gallery-thumbs img.active{border-color:var(--primary)}.d-title{font-size:26px;font-weight:800;line-height:1.4}.d-sub{color:var(--muted);margin-top:8px}.d-price-box{background:linear-gradient(100deg,#fff2ec,#fff8f5);border-radius:10px;padding:16px 18px;margin:18px 0;display:flex;align-items:baseline;gap:12px}.d-price{color:var(--primary);font-size:38px;font-weight:900}.d-price small{font-size:18px}.d-old{color:#9ca3af;text-decoration:line-through}.d-sales{color:var(--muted);font-size:13px}.d-row{display:flex;align-items:center;gap:12px;margin:12px 0}.d-row .lbl{color:var(--muted);width:64px;flex-shrink:0}.spec-table{border-collapse:collapse;width:100%;font-size:13px}.spec-table td{border:1px solid var(--line);padding:9px 12px}.spec-table td:first-child{background:#f8f9fb;color:var(--muted);width:120px}.qty-box{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;overflow:hidden}.qty-box button{width:34px;height:34px;border:0;background:#f5f6f8}.qty-box span{width:44px;text-align:center}.d-actions{display:flex;gap:12px;margin-top:24px}.btn-big{border:0;border-radius:9px;padding:14px 32px;font-size:16px;font-weight:800}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-outline{border:1.5px solid var(--primary);background:#fff;color:var(--primary)}.d-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:32px 0 18px}.d-tabs button{border:0;background:none;padding:10px 2px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent}.d-tabs button.active{color:var(--primary);border-bottom-color:var(--primary)}.d-desc{line-height:2;color:#4b5563;font-size:15px;padding:10px 0 30px}.review-item{border-bottom:1px dashed var(--line);padding:14px 0}.review-item .r-head{display:flex;gap:12px;align-items:center}.review-item .r-name{font-weight:700}.review-item .r-star{color:#f59e0b}.review-item p{margin-top:7px;color:#4b5563}

/* 购物车 / 结算 */
.cart-list{background:#fff;border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.cart-head,.cart-row{display:grid;grid-template-columns:52px 1fr 110px 110px 110px 70px;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line)}.cart-head{background:#fafbfc;color:var(--muted);font-size:12px}.cart-row img{width:72px;height:72px;object-fit:cover;border-radius:8px}.cart-row .ci{display:flex;gap:12px;align-items:center}.cart-row .ci b{font-weight:600;line-height:1.5}.cart-row .price{color:var(--primary);font-weight:800;font-size:17px}.cart-row .del{border:0;background:none;color:#9ca3af}.cart-row .del:hover{color:var(--primary)}.cart-sum{display:flex;justify-content:flex-end;align-items:center;gap:20px;padding:22px;background:#fff;border-radius:12px;margin-top:16px;box-shadow:var(--shadow)}.cart-sum .total{font-size:15px}.cart-sum .total b{color:var(--primary);font-size:30px;margin-left:6px}
.checkout{display:grid;grid-template-columns:1fr 350px;gap:20px}.form-card{background:#fff;border-radius:12px;padding:24px;box-shadow:var(--shadow)}.form-card h3{font-size:18px;margin-bottom:18px}.field{margin-bottom:16px}.field label{display:block;margin-bottom:6px;color:#4b5563;font-weight:600}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:8px;padding:11px 13px;outline:0;background:#fff}.field input:focus,.field textarea:focus{border-color:var(--primary)}.field textarea{min-height:80px;resize:vertical}.order-box{background:#fff;border-radius:12px;padding:22px;box-shadow:var(--shadow);align-self:start;position:sticky;top:152px}.order-box h3{font-size:18px;margin-bottom:14px}.mini-item{display:flex;gap:10px;align-items:center;margin-bottom:12px}.mini-item img{width:54px;height:54px;object-fit:cover;border-radius:6px}.mini-item .mn{flex:1;font-size:13px;line-height:1.4}.sum-line{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line)}.sum-line.final b{color:var(--primary);font-size:24px}.success-box{max-width:640px;margin:50px auto;background:#fff;border-radius:16px;padding:46px;text-align:center;box-shadow:var(--shadow)}.success-ico{width:76px;height:76px;border-radius:50%;background:#e9f9f1;color:#16a36a;display:grid;place-items:center;font-size:40px;margin:0 auto 18px}.success-box h2{font-size:26px;margin-bottom:10px}.success-box p{color:var(--muted);line-height:2}.success-box .btn-big{margin-top:22px}

/* 文章 / 关于 */
.article-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.article-row{display:flex;gap:18px;background:#fff;border-radius:12px;padding:16px;box-shadow:var(--shadow)}.article-row img{width:180px;height:120px;object-fit:cover;border-radius:8px;flex-shrink:0}.article-row h3{font-size:17px;margin-bottom:8px}.article-row p{color:var(--muted);font-size:13px;line-height:1.7}.article-row .nc-meta{margin-top:auto;color:#9ca3af;font-size:12px;display:flex;gap:16px}.article-content{background:#fff;border-radius:14px;padding:36px 44px;box-shadow:var(--shadow);margin-top:18px}.article-content h1{font-size:29px;text-align:center;margin-bottom:12px}.article-content .meta{text-align:center;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:22px}.article-content .body{font-size:16px;line-height:2.1;color:#374151;min-height:220px}.about-hero{background:linear-gradient(120deg,#fff3ed,#fff);border-radius:16px;padding:46px;margin-top:18px;border:1px solid #ffe2d5}.about-hero h1{font-size:34px;margin-bottom:12px}.about-hero p{color:#4b5563;font-size:16px;line-height:2;max-width:800px}.about-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}.about-card{background:#fff;border-radius:12px;padding:24px;box-shadow:var(--shadow)}.about-card i{font-style:normal;font-size:26px;font-weight:900;color:var(--primary)}.about-card h3{margin:10px 0 8px;font-size:18px}.about-card p{color:var(--muted);line-height:1.8}

/* 弹窗 / 提示 */
.modal-mask{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:100;display:grid;place-items:center;padding:20px}.modal{width:min(440px,100%);background:#fff;border-radius:16px;padding:28px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.2)}.modal h3{font-size:21px;margin-bottom:20px;text-align:center}.modal .close{position:absolute;right:14px;top:12px;border:0;background:none;font-size:22px;color:#9ca3af}.modal .btn-big{width:100%;margin-top:8px}.modal .switch{text-align:center;color:var(--muted);margin-top:16px;font-size:13px}.modal .switch a{color:var(--primary);font-weight:700;cursor:pointer}.toast-root{position:fixed;top:24px;left:50%;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px}.toast{background:#212936;color:#fff;padding:11px 22px;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.18);animation:tin .25s}.toast.err{background:#c62828}@keyframes tin{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}

@media(max-width:1100px){.product-grid{grid-template-columns:repeat(4,1fr)}.cat-strip{grid-template-columns:repeat(4,1fr)}.detail-top{grid-template-columns:1fr 1fr;gap:22px}.features{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.topbar{display:none}.header-main{height:auto;padding:12px 0;flex-wrap:wrap;gap:12px}.search-box{order:3;max-width:none;width:100%}.header-actions{margin-left:auto}.hd-btn span:last-child{display:none}.nav-inner{height:44px}.nav-inner a{height:44px}.hero{height:240px}.product-grid{grid-template-columns:repeat(2,1fr)}.cat-strip{grid-template-columns:repeat(4,1fr)}.layout,.checkout,.detail-top{grid-template-columns:1fr}.side{display:none}.news-grid,.article-list,.about-grid{grid-template-columns:1fr}.detail{padding:16px}.cart-head,.cart-row{grid-template-columns:1fr 80px 60px;gap:6px}.cart-head span:nth-child(1),.cart-head span:nth-child(4),.cart-row .qty-box,.cart-row .subtotal{display:none}.cart-row img{width:56px;height:56px}.article-content{padding:22px}.footer-top{grid-template-columns:repeat(2,1fr);gap:20px}.d-price{font-size:30px}.btn-big{padding:12px 20px}}
