/*
  Design philosophy:
  让客户前台像一家白色精品买手店，第一眼看到真实商品场景，而不是平台说明或空模板。
  视觉签名是暖白底、铜金行动色、行业图片兜底和更大的商品陈列节奏。
  本层不接管接口和购买流程，只覆盖客户可见商城视觉。
*/
:root{
  --bg:#fbf7ef;
  --soft:#f3ece1;
  --card:#fffdf8;
  --line:rgba(31,35,28,.12);
  --ink:#151714;
  --muted:#6c7068;
  --primary:#b86d38;
  --primary-dark:#8f4f25;
  --accent:#d8aa5d;
  --danger:#b34122;
  --shadow:0 22px 70px rgba(78,64,43,.13);
  --premium-radius:22px;
}
html{background:var(--bg)}
body{background:radial-gradient(circle at 12% 0,rgba(216,170,93,.18),transparent 32vw),linear-gradient(145deg,#fffaf2 0%,#f6efe4 54%,#fbf7ef 100%);color:var(--ink);letter-spacing:0}
body.is-entering:before{content:var(--zx-entry-copy,"精选好物正在入场");position:fixed;inset:0;z-index:9998;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,rgba(229,166,58,.18),transparent 24%),linear-gradient(135deg,#fffdf8 0%,#f8f0e2 100%);color:#11160f;font-size:clamp(24px,3.4vw,54px);font-weight:1000;letter-spacing:-.04em;pointer-events:none;animation:premiumIntroMask 1.2s cubic-bezier(.2,.72,.14,1) forwards}
body.is-entering:after{content:"";position:fixed;left:50%;top:calc(50% + 54px);z-index:9999;width:min(360px,54vw);height:4px;border-radius:999px;background:linear-gradient(90deg,#d08b27,#f4c36a,#1f6f5b);transform:translateX(-50%) scaleX(0);transform-origin:left center;pointer-events:none;animation:premiumIntroLine 1.2s cubic-bezier(.2,.72,.14,1) forwards}
.container{width:min(1420px,calc(100% - 48px))}
.top-strip{background:#fff7e9;color:#5d4830;border-bottom:1px solid var(--line)}
.top-strip a{color:#3c2a18;font-weight:800}
.site-header{background:rgba(255,252,246,.88);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.brand-mark{border-radius:16px;background:linear-gradient(135deg,#e5b75f,#f4ead6 50%,#89bca1);box-shadow:0 18px 38px rgba(184,109,56,.16)}
.brand-text strong{font-size:22px;letter-spacing:-.02em}
.brand-text em{font-size:13px;color:var(--muted)}
.search{height:50px;border:1px solid rgba(184,109,56,.34);border-radius:999px;background:#fff;box-shadow:0 12px 38px rgba(120,88,52,.08)}
.search button,.inline-search button{background:linear-gradient(135deg,#d8aa5d,#b86d38);color:#1c1209;font-weight:900}
.phone-card{border-radius:18px;background:#fffaf2}
.main-nav{border-top:0}
.nav-inner{justify-content:center;height:54px;gap:8px}
.nav-inner a{border-radius:999px;padding:11px 22px;font-weight:800}
.nav-inner a.active,.nav-inner a:hover{background:#1b1a16;color:#fff}
.market-hero{padding:34px 0 32px;background:transparent;border:0}
.market-grid{grid-template-columns:250px minmax(0,1fr) 330px;gap:20px;align-items:stretch}
.market-categories,.market-side,.market-banner,.storefront-section,.list-filter,.list-main,.product-section,.product-detail,.article-detail,.about-layout>div,.about-layout aside,.merchant-card,.news-card,.article-card{
  background:rgba(255,253,248,.86);
  border:1px solid var(--line);
  border-radius:var(--premium-radius);
  box-shadow:var(--shadow);
}
.market-categories,.market-side,.market-main{height:630px;min-height:0}
.market-categories{display:flex;flex-direction:column}
.market-categories{animation:premiumFloatIn .72s cubic-bezier(.2,.72,.14,1) both .08s}
.market-side{animation:premiumFloatIn .72s cubic-bezier(.2,.72,.14,1) both .16s}
.block-title,.section-head h2{letter-spacing:-.02em}
.category-list-dense a,.category-list a,.cat-link{border-radius:16px;background:#fff8ec;border:1px solid transparent;min-height:42px;font-weight:800}
.category-list-dense a{min-height:40px;padding:7px 9px;font-size:14px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-list-dense a:hover,.category-list a:hover,.cat-link.active{background:#1b1a16;color:#fff;border-color:#1b1a16}
.category-more{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding:11px 12px;border-radius:14px;color:#5e4326;font-size:13px;font-weight:900;background:#fff8ec;border:1px solid rgba(184,109,56,.16)}
.category-more:hover{background:#1b1a16;color:#fff}
.category-support{display:grid;grid-template-columns:22px 1fr;gap:0 8px;align-items:center;margin-top:12px;padding:10px 11px;border:1px solid rgba(184,109,56,.16);border-radius:14px;background:#fffdf8;color:#5e4326;font-weight:900;font-size:13px;line-height:1.25}
.category-support i{grid-row:1/3;color:var(--primary)}
.category-support small{font-size:11px;font-weight:700;color:#876a49}
.category-support:hover{background:#1b1a16;color:#fff}.category-support:hover small{color:#f5dfbc}
.market-main{display:grid;grid-template-rows:384px 232px;gap:14px;min-width:0}
.market-banner{
  min-height:0;
  height:384px;
  padding:24px 30px;
  border-radius:30px;
  background:linear-gradient(135deg,#fffdf8 0%,#fff7ea 58%,#f7efe3 100%);
  justify-content:flex-end;
  isolation:isolate;
  animation:premiumStageIn .86s cubic-bezier(.2,.72,.14,1) both;
}
.market-banner>*{position:relative;z-index:2}
.market-banner:before{display:none}
.market-banner:after{display:none}
.market-banner .eyebrow{display:inline-flex;width:max-content;margin-bottom:8px;border-radius:999px;background:rgba(255,255,255,.7);padding:5px 10px;color:var(--primary-dark);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.market-banner h1{max-width:680px;font-size:clamp(34px,3.15vw,46px);line-height:1.04;letter-spacing:-.04em;text-wrap:balance}
.market-banner p{max-width:620px;color:#4e554c;font-size:15px;line-height:1.55}
.market-banner .hot-searches{max-height:52px;overflow:hidden;margin-bottom:10px}
.btn{min-height:44px;border-radius:999px;padding:11px 20px;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.btn:hover,.product-card:hover,.deal-card:hover{transform:translateY(-3px)}
.btn:active{transform:translateY(0) scale(.98)}
.btn.primary{background:linear-gradient(135deg,#e4bd71,#c7833d);border-color:transparent;color:#1f1508;box-shadow:0 16px 34px rgba(184,109,56,.22)}
.hot-searches a{background:rgba(255,255,255,.72);border-color:rgba(184,109,56,.16);color:#5e4326}
.deal-strip{gap:14px}
.deal-card{border-radius:20px;background:#fffdf8;box-shadow:0 16px 42px rgba(84,70,48,.1);transition:transform .18s ease,box-shadow .18s ease;align-self:start}
.deal-card img,.deal-card .product-fallback{height:150px}
.market-side .commerce-stats span,.commerce-stats span,.quick-service a,.commerce-assurance div,.filter-card,.stat-card{background:rgba(255,253,248,.88);border-radius:18px}
.commerce-stats b{color:var(--primary)}
.market-notice{background:#fff2db;border-color:#ebcd9a;border-radius:18px}
.quick-service{gap:14px}
.quick-service a{border-radius:20px;box-shadow:0 14px 36px rgba(84,70,48,.08);animation:premiumFloatIn .72s cubic-bezier(.2,.72,.14,1) both}
.quick-service a:nth-child(1){animation-delay:.08s}
.quick-service a:nth-child(2){animation-delay:.14s}
.quick-service a:nth-child(3){animation-delay:.2s}
.quick-service a:nth-child(4){animation-delay:.26s}
.quick-service i{color:var(--primary)}
.cooperation-column{min-width:0}
.home-recruitment{display:grid;gap:14px}
.recruitment-card{position:relative;display:flex;min-height:178px;align-items:center;overflow:hidden;border-radius:var(--premium-radius);background:#071427;color:#fff9ed;box-shadow:0 18px 38px rgba(29,20,13,.18);isolation:isolate;transition:transform .22s ease,box-shadow .22s ease}
.recruitment-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center right}
.recruitment-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,10,24,.96) 0%,rgba(3,12,28,.82) 43%,rgba(3,12,28,.22) 76%,rgba(3,12,28,.04) 100%);pointer-events:none}
.recruitment-copy{position:relative;z-index:1;display:flex;max-width:66%;flex-direction:column;align-items:flex-start;gap:7px;padding:20px 26px;color:#fff8e9}
.recruitment-copy strong{font-size:clamp(24px,2.4vw,34px);line-height:1.04;letter-spacing:-.04em;color:#ffd76e;text-shadow:0 4px 22px rgba(224,153,40,.28)}
.recruitment-copy>span{font-size:13px;line-height:1.5;color:#f4e6cc}
.recruitment-copy b{display:inline-flex;align-items:center;gap:9px;margin-top:2px;color:#fff4ce;font-size:13px;letter-spacing:.02em}
.recruitment-copy b i{transition:transform .2s ease}
.recruitment-card:hover{transform:translateY(-2px);box-shadow:0 24px 46px rgba(29,20,13,.25)}
.recruitment-card:hover .recruitment-copy b i,.recruitment-card:focus-visible .recruitment-copy b i{transform:translateX(4px)}
.recruitment-card:focus-visible{outline:3px solid #f5c866;outline-offset:3px}
.merchant-list:empty{display:none}
.home-editorial{display:grid;gap:26px}
.home-editorial-primary{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:20px;align-items:start}
.home-editorial-feature,.home-editorial .cooperation-column{min-width:0}
.home-featured-article{min-width:0}
.home-featured-card{display:grid;grid-template-rows:auto auto;min-height:0;padding:0;overflow:hidden}
.home-featured-card .article-card-cover{width:100%;aspect-ratio:16/9;max-height:420px;min-height:0;background:#e8dfd0}
.home-featured-card .article-card-cover img{width:100%;height:100%;object-fit:cover}
.home-featured-card .article-card-copy{padding:17px 20px 19px}
.home-featured-card .article-card-copy h3{font-size:clamp(19px,1.8vw,24px);line-height:1.32}
.home-featured-card .article-card-copy p{display:-webkit-box;overflow:hidden;margin-bottom:0;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.home-editorial .home-recruitment{gap:10px}
.home-editorial .recruitment-card{min-height:154px}
.home-editorial .recruitment-copy{max-width:72%;padding:15px 20px;gap:4px}
.home-editorial .recruitment-copy strong{font-size:clamp(20px,1.8vw,27px)}
.home-editorial .recruitment-copy>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.home-editorial .merchant-list{margin-top:10px}
.home-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-news-grid .home-compact-card{display:flex;min-height:100%;padding:0;overflow:hidden;flex-direction:column}
.home-news-grid .article-card-cover{width:100%;min-height:0;aspect-ratio:16/9;background:#e8dfd0}
.home-news-grid .article-card-cover img{width:100%;height:100%;object-fit:cover}
.home-news-grid .article-card-copy{display:flex;min-width:0;flex:1;padding:15px 16px 17px;flex-direction:column}
.home-news-grid .article-card-copy h3{display:-webkit-box;overflow:hidden;margin-bottom:5px;font-size:16px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.home-news-grid .article-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-news-grid .article-card-copy p{display:-webkit-box;overflow:hidden;margin:8px 0 0;font-size:13px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.storefront-section{padding:24px}
.market-products,.floor-grid,.list-grid{gap:18px}
.product-card{border-radius:22px;background:#fffdf8;box-shadow:0 14px 42px rgba(84,70,48,.08);transition:transform .18s ease,box-shadow .18s ease;overflow:hidden}
.market-products .product-card,.floor-grid .product-card,.list-grid .product-card{animation:premiumProductIn .58s cubic-bezier(.2,.72,.14,1) both}
.market-products .product-card:nth-child(2n),.floor-grid .product-card:nth-child(2n),.list-grid .product-card:nth-child(2n){animation-delay:.05s}
.market-products .product-card:nth-child(3n),.floor-grid .product-card:nth-child(3n),.list-grid .product-card:nth-child(3n){animation-delay:.1s}
.market-card .product-image,.product-image{background:#f4ece0}
.market-card .product-image{aspect-ratio:1/.92}
.product-image img,.product-detail-image img{transition:transform .45s ease}
.product-card:hover img{transform:scale(1.04)}
.product-info{padding:14px}
.product-tags span{background:#fff1d7;color:#83501f}
.product-title{font-size:15px;color:#171914;font-weight:800;line-height:1.42}
.product-price,.price,.mini-rank em,.deal-card em{color:var(--danger)}
.product-card-foot{color:var(--primary-dark)}
.product-fallback{
  min-height:160px;
  color:#20170d;
  background:linear-gradient(145deg,#f4ead6,#e6c88d);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px;
  text-align:center;
}
.product-fallback:before{content:"";position:absolute;right:-44px;top:-42px;width:150px;height:150px;border-radius:50%;display:block;background:rgba(255,255,255,.36)}
.product-fallback:after{content:"";position:absolute;inset:0;display:block;background:linear-gradient(135deg,rgba(255,255,255,.28),transparent 52%);pointer-events:none}
body[data-industry="mining"] .product-fallback,.product-fallback[data-fallback-kind="mining"]{background:linear-gradient(145deg,#e7eff2,#cbdce3);color:#153f50}
body[data-industry="hardware"] .product-fallback,.product-fallback[data-fallback-kind="hardware"]{background:linear-gradient(145deg,#edf0f2,#d5dde2);color:#283d48}
.product-fallback[data-fallback-kind="electrical"]{background:linear-gradient(145deg,#eef3ff,#dce7ff);color:#174899}
.product-fallback[data-fallback-kind="building"]{background:linear-gradient(145deg,#f8f0e3,#ead8bb);color:#75451d}
body[data-industry="beauty"] .product-fallback:before{background:rgba(248,217,223,.52)}
body[data-industry="tech"] .product-fallback:before{background:rgba(205,226,244,.56)}
body[data-industry="fashion"] .product-fallback:before{background:rgba(196,154,120,.28)}
body[data-industry="food"] .product-fallback:before{background:rgba(216,137,98,.34)}
.product-fallback .fallback-icon{font-size:38px;line-height:1;position:relative;z-index:1}
.product-fallback b,.product-fallback span{display:inline-flex;width:max-content;max-width:100%;padding:6px 10px;border-radius:999px;background:rgba(255,253,248,.8);backdrop-filter:blur(10px);position:relative;z-index:1}
.product-fallback b{font-size:16px}
.product-fallback .fallback-caption{color:inherit;font-size:11px;font-weight:800;opacity:.76}
.product-fallback.compact{min-height:150px}
.product-fallback.compact .fallback-icon{font-size:30px}
.mall-list-layout{gap:22px}
.list-filter{top:158px}
.filter-card{border-color:#ebcd9a}
.load-more-btn{border-color:var(--primary);color:var(--primary-dark);background:#fffaf2}
.product-detail{border-radius:28px}
.product-detail-image{border-radius:24px;background:#f4ece0}
.product-detail-tags span{background:#fff1d7;color:#83501f}
.site-footer{background:#1b1a16;color:#eee3d4}
.site-footer h3,.site-footer h4{color:#fff7e9}
.site-footer a,.site-footer p{color:#d8c8b3}
.float-service{background:#1b1a16;color:#fff7e9}
.ai-panel,.web-ai-panel{border-radius:24px}
@media(max-width:1100px){
  .market-grid{grid-template-columns:1fr}
  .market-categories,.market-side,.market-main{height:auto;min-height:0}
  .market-main{grid-template-rows:auto auto}
  .market-banner{min-height:320px}
}
@media(max-width:900px){
  .home-editorial-primary{grid-template-columns:1fr}
  .home-featured-card .article-card-cover{max-height:none}
}
@media(max-width:700px){
  .container{width:min(100% - 28px,1420px)}
  .top-strip{display:none}
  .header-inner{gap:14px}
  .nav-inner{justify-content:flex-start}
  .market-hero{padding:18px 0 18px}
  .market-banner{min-height:300px;padding:24px 20px;background:linear-gradient(135deg,#fffdf8 0%,#fff7ea 58%,#f7efe3 100%)}
  .market-banner:before{left:18px;right:18px;top:auto;bottom:18px;width:auto;height:180px;border-radius:22px;opacity:.68}
  .market-banner:after{right:34px;bottom:34px}
  .market-banner h1{font-size:38px;line-height:1.08;letter-spacing:-.04em}
  .market-banner p{font-size:15px}
  .banner-actions{display:grid;grid-template-columns:1fr}
  .deal-strip,.market-products,.floor-grid,.list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick-service,.detail-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-recruitment{gap:12px}
  .recruitment-card{min-height:170px}
  .recruitment-copy{max-width:80%;padding:18px 22px;gap:7px}
  .recruitment-copy strong{font-size:29px}
  .recruitment-copy>span{font-size:13px}
  .market-categories .category-list,.filter-bar.vertical{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:768px){
  .home-news-grid{grid-template-columns:1fr}
  .home-news-grid .home-compact-card{display:grid;grid-template-columns:150px minmax(0,1fr);min-height:142px}
  .home-news-grid .article-card-cover{min-height:100%;aspect-ratio:auto}
}
@media(max-width:480px){
  .container{width:min(100% - 20px,1420px)}
  .market-banner{border-radius:24px}
  .market-banner .eyebrow{align-self:flex-start;width:fit-content;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
  .market-banner h1{font-size:34px}
  .deal-card img,.deal-card .product-fallback{height:116px}
  .quick-service,.detail-service-grid{grid-template-columns:1fr}
  .home-news-grid .home-compact-card{grid-template-columns:104px minmax(0,1fr);min-height:118px}
  .home-editorial .recruitment-copy{max-width:78%;padding:14px 17px}
}
@keyframes premiumStageIn{from{opacity:0;transform:translateY(24px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes premiumMediaIn{from{opacity:0;transform:translateX(34px) scale(1.06) rotate(.8deg)}to{opacity:1;transform:translateX(0) scale(1) rotate(0)}}
@keyframes premiumFloatIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes premiumProductIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes premiumIntroMask{0%{opacity:1;clip-path:inset(0 0 0 0)}62%{opacity:1;clip-path:inset(0 0 0 0)}100%{opacity:0;visibility:hidden;clip-path:inset(0 0 100% 0)}}
@keyframes premiumIntroLine{0%{opacity:0;transform:translateX(-50%) scaleX(0)}24%{opacity:1;transform:translateX(-50%) scaleX(.46)}68%{opacity:1;transform:translateX(-50%) scaleX(1)}100%{opacity:0;transform:translateX(-50%) scaleX(1)}}
@media(prefers-reduced-motion:reduce){body.is-entering:before,body.is-entering:after{display:none!important}*,*::before,*::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;scroll-behavior:auto!important}}
