/*
  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:"精选好物正在入场";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}
.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{padding:18px}
.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:hover,.category-list a:hover,.cat-link.active{background:#1b1a16;color:#fff;border-color:#1b1a16}
.market-banner{
  min-height:430px;
  padding:42px;
  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{content:"今日精选";position:absolute;z-index:3;right:54px;bottom:54px;display:inline-flex;border-radius:999px;padding:10px 14px;background:rgba(255,253,248,.84);color:#5b3c19;font-weight:900;box-shadow:0 18px 42px rgba(40,28,12,.18);backdrop-filter:blur(12px);animation:premiumFloatIn .72s cubic-bezier(.2,.72,.14,1) both .22s}
.market-banner .eyebrow{display:inline-flex;width:max-content;margin-bottom:12px;border-radius:999px;background:rgba(255,255,255,.7);padding:7px 12px;color:var(--primary-dark);font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.market-banner h1{max-width:680px;font-size:clamp(42px,4.6vw,76px);line-height:.98;letter-spacing:-.06em;text-wrap:balance}
.market-banner p{max-width:620px;color:#4e554c;font-size:17px;line-height:1.75}
.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}
.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)}
.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(180deg,rgba(255,255,255,.08),rgba(0,0,0,.26)),
    var(--fallback-image,linear-gradient(135deg,#f4ead6,#d8aa5d));
  background-size:cover;
  background-position: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;left:16px;top:18px;width:58px;height:7px;border-radius:999px;display:block;background:rgba(255,255,255,.68);box-shadow:0 18px 0 rgba(255,255,255,.42),0 36px 0 rgba(255,255,255,.3)}
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 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)}
.product-fallback b{font-size:18px}
.product-fallback span{color:#665a4f;font-weight:800}
.product-fallback.compact{min-height:150px}
.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-banner{min-height:380px}
}
@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:360px;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:40px;line-height:1.04;letter-spacing:-.055em}
  .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))}
  .market-categories .category-list,.filter-bar.vertical{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .container{width:min(100% - 20px,1420px)}
  .market-banner{border-radius:24px}
  .market-banner h1{font-size:34px}
  .deal-card img,.deal-card .product-fallback{height:116px}
  .quick-service,.detail-service-grid{grid-template-columns:1fr}
}
@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}}
