/* =====================================================
   AFRISUN 阳光商城 - 全站样式
   主色：爱马仕橙 #F37021 + 尼日利亚国旗绿 #008751
   风格：暖白底 / 大圆角 / Bento 网格 / 液态玻璃 / 微动效
   ===================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --orange: #F37021;        /* 爱马仕橙 */
  --orange-deep: #D95B10;
  --orange-soft: #FFF3EA;
  --orange-mist: #FFE3CD;
  --green: #008751;         /* 尼日利亚国旗绿 */
  --green-deep: #046A38;
  --green-ink: #06331E;     /* 深绿面板 */
  --green-soft: #E7F5EE;
  --ink: #221A14;           /* 主文字 */
  --muted: #8B7D70;         /* 次要文字 */
  --line: #EFE5D8;          /* 分割线 */
  --bg: #FAF5EE;            /* 页面暖白 */
  --white: #FFFFFF;
  --sh-sm: 0 4px 16px rgba(34, 26, 20, .06);
  --sh: 0 12px 32px rgba(34, 26, 20, .09);
  --sh-lg: 0 24px 56px rgba(34, 26, 20, .16);
  --r: 20px;
  --r-lg: 28px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", sans-serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--orange-mist); color: var(--orange-deep); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #E3D6C6; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.container { width: min(1200px, 92%); margin-left: auto; margin-right: auto; }
.section { margin-top: 64px; margin-bottom: 64px; }
.muted { color: var(--muted); }
.ic { width: 1.2em; height: 1.2em; vertical-align: -0.25em; flex: none; }

/* 噪点质感（液态玻璃风格点缀） */
.grain { position: relative; overflow: hidden; }
.grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: .07; mix-blend-mode: overlay;
}
.grain > * { position: relative; z-index: 1; }

/* ---------- 区块标题 ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--green), var(--orange)); }
.sec-link { font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; transition: .2s; }
.sec-link:hover { color: var(--orange); transform: translateX(3px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 700;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(243, 112, 33, .35); }
.btn-primary:hover { background: var(--orange-deep); box-shadow: 0 12px 28px rgba(243, 112, 33, .45); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange); }
.btn-white { background: #fff; color: var(--green-deep); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .18); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(0, 135, 81, .3); }
.btn-green:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }

/* ---------- 标签 / 评分 / 价格 ---------- */
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-deep); border: 1px solid var(--orange-mist);
}
.tag.green { background: var(--green-soft); color: var(--green-deep); border-color: #CBE9DB; }
.stars { display: inline-flex; font-size: 12px; letter-spacing: 1px; }
.stars .st { color: #E8DCCB; }
.stars .st.on { color: var(--orange); }
.dot { color: var(--line); margin: 0 6px; }
.price { color: var(--orange); font-weight: 800; }

/* ---------- 顶部公告跑马灯 ---------- */
.topbar { background: var(--green-ink); color: #EAF6EF; font-size: 13px; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee span { padding: 8px 34px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 头部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250, 245, 238, .78);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(239, 229, 216, .8);
}
/* 头部通栏：logo 贴最左、语言切换和用户头像贴最右，不受内容容器限宽影响 */
.header-in {
  display: flex; align-items: center; gap: 22px;
  width: 100%; max-width: none;
  padding: 14px clamp(16px, 3vw, 36px);
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-img { height: 46px; width: auto; display: block; transition: transform .25s; }
.logo:hover .logo-img { transform: rotate(8deg) scale(1.05); }
.logo-sub { font-weight: 900; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.logo-light .logo-sub, .footer .logo-sub { color: #fff; }

.search {
  flex: 1; display: flex; align-items: center; gap: 8px; max-width: 560px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(243, 112, 33, .12); }
.search .ic { color: var(--muted); }
.search input { flex: 1; border: none; outline: none; background: none; font-size: 14px; min-width: 0; }
.search button {
  background: var(--green); color: #fff; font-size: 13.5px; font-weight: 700;
  border-radius: 999px; padding: 9px 20px; transition: background .2s;
}
.search button:hover { background: var(--green-deep); }

.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; flex: none; }
.nav a { position: relative; padding: 4px 0; color: #5C5147; transition: color .2s; }
.nav a:hover { color: var(--orange); }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2.5px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hacts { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.hbtn {
  position: relative; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  color: #5C5147; transition: .2s; background: transparent;
}
.hbtn:hover { background: var(--orange-soft); color: var(--orange); }
.hbtn .ic { width: 22px; height: 22px; }

/* 语言切换按钮 */
.lang-toggle {
  height: 36px; padding: 0 13px; border-radius: 999px; border: 1.5px solid rgba(92, 81, 71, .28);
  background: transparent; color: #5C5147; font-weight: 800; font-size: 12.5px; cursor: pointer;
  transition: .2s; flex: none; font-family: inherit;
}
.lang-toggle:hover { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.auth-lang { display: flex; justify-content: flex-end; margin-bottom: 14px; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #FFF7F0 0%, #FFE9D8 55%, #FFDDC2 100%); }
.hero::after {
  content: ''; position: absolute; right: -180px; top: -220px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 112, 33, .22), transparent 65%); pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .65); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 700; color: var(--green-deep);
  box-shadow: var(--sh-sm); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; line-height: 1.16; letter-spacing: -.03em; }
.hero h1 em {
  font-style: normal; color: var(--orange);
  background: linear-gradient(90deg, var(--orange), #FF9448); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; position: relative;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 2%; bottom: 4px; width: 96%; height: 12px; z-index: -1; border-radius: 8px;
  background: rgba(0, 135, 81, .16);
}
.hero-sub { margin: 18px 0 28px; font-size: 16.5px; color: #6E6155; max-width: 460px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 40px; }
.hstat b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.hstat b i { font-style: normal; color: var(--orange); }
.hstat span { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; height: 460px; }
.hero-stage {
  position: absolute; inset: 6% 4%; border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%;
  background: linear-gradient(140deg, var(--orange) 10%, #FF8E3C 55%, #FFB25E 100%);
  box-shadow: 0 40px 80px rgba(243, 112, 33, .38);
  animation: blob 9s ease-in-out infinite alternate;
}
@keyframes blob {
  from { border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%; }
  to { border-radius: 52% 48% 44% 56% / 52% 56% 44% 48%; }
}
.hero-sun { position: absolute; top: 9%; right: 10%; color: #FFE9C9; opacity: .85; animation: spinSlow 26s linear infinite; }
.hero-sun .ic { width: 92px; height: 92px; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.fl {
  position: absolute; background: #fff; border-radius: 22px; padding: 10px;
  box-shadow: var(--sh-lg); animation: floaty 5.2s ease-in-out infinite;
}
.fl .pimg { border-radius: 14px; }
.fl-big { width: 240px; left: 6%; top: 16%; z-index: 2; }
.fl-sm { width: 150px; right: 2%; top: 6%; animation-delay: -1.8s; }
.fl-xs { width: 128px; right: 14%; bottom: 5%; animation-delay: -3.4s; }
.fl .fl-cap { display: flex; justify-content: space-between; align-items: center; padding: 9px 4px 3px; }
.fl .fl-cap b { font-size: 14px; font-weight: 700; }
.fl .fl-cap .price { font-size: 14px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-off {
  position: absolute; left: 0; bottom: 12%; z-index: 3;
  background: var(--green); color: #fff; font-weight: 800; font-size: 14px;
  padding: 10px 18px; border-radius: 16px 16px 16px 4px; box-shadow: 0 14px 30px rgba(0, 135, 81, .4);
  transform: rotate(-3deg);
}

/* ---------- 服务保障条 ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -34px; position: relative; z-index: 5; }
.titem {
  display: flex; align-items: center; gap: 13px; background: #fff; border-radius: var(--r);
  padding: 17px 20px; box-shadow: var(--sh); transition: transform .22s;
}
.titem:hover { transform: translateY(-4px); }
.tico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.tico .ic { width: 23px; height: 23px; }
.tico.o { background: var(--orange-soft); color: var(--orange); }
.tico.g { background: var(--green-soft); color: var(--green); }
.titem b { display: block; font-size: 14.5px; }
.titem span { font-size: 12.5px; color: var(--muted); }

/* ---------- 商品卡片 ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard {
  background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.plink { position: relative; display: block; }
.pimg {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #FDF1E7, #FBE3CF); display: grid; place-items: center;
}
.pimg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s, transform .4s; }
.pimg img.ok { opacity: 1; }
.pcard:hover .pimg img.ok { transform: scale(1.07); }
.pimg.noimg { background: linear-gradient(135deg, #FFF3EA, #FFE3CD); }
.pbadge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; box-shadow: 0 6px 14px rgba(243, 112, 33, .4);
}
.pinfo { padding: 12px 4px 6px; display: flex; flex-direction: column; flex: 1; }
.pname {
  font-size: 14px; font-weight: 600; line-height: 1.45; height: 2.9em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.pname:hover { color: var(--orange); }
.pmeta { display: flex; align-items: center; margin-top: 7px; font-size: 12px; color: var(--muted); min-width: 0; }
.pmeta .sales { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmeta .score { color: var(--orange); font-weight: 700; margin-left: 4px; }
.pbot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.pprice .now { font-size: 18px; font-weight: 800; color: var(--orange); letter-spacing: -.02em; }
.pprice .was { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 7px; }

/* ---------- 限时优惠（深绿面板） ---------- */
.flash { border-radius: var(--r-lg); padding: 34px 34px 38px; background: linear-gradient(135deg, var(--green-ink), #0A4A2B 70%, #0C5A34); color: #fff; }
.flash-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.flash-title { display: flex; align-items: center; gap: 14px; }
.flash-title .bolt {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 23px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18);
}
.flash-title h2 { font-size: 25px; font-weight: 900; letter-spacing: -.01em; }
.flash-title p { font-size: 13px; color: #9ECDB4; }
.count { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.count .cell {
  min-width: 46px; padding: 8px 6px; text-align: center; border-radius: 13px; font-size: 19px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18);
  font-variant-numeric: tabular-nums;
}
.count i { font-style: normal; color: #9ECDB4; }
/* 跑马灯轨道：内容渲染两份，位移 -50% 实现无缝循环；悬停暂停 */
.flash-clip { overflow: hidden; margin: 0 -4px; padding: 4px 4px 14px; }
.hscroll { display: flex; width: max-content; animation: flashMarquee 36s linear infinite; }
.hscroll .pcard { width: 224px; flex: none; margin-right: 16px; }
.flash:hover .hscroll { animation-play-state: paused; }
@keyframes flashMarquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hscroll { animation: none; } }

/* ---------- Bento 便当格 ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px; }
.b-tile { border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; box-shadow: var(--sh-sm); }
.b-tile h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.b-tile p { font-size: 13.5px; opacity: .82; margin-top: 6px; max-width: 30em; }
.b-tile .b-cta {
  position: absolute; left: 26px; bottom: 22px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700;
}
.b-tile .b-cta:hover .ic { transform: translateX(4px); }
.b-tile .b-cta .ic { transition: transform .2s; }
.b-img { position: absolute; right: -12px; bottom: -12px; width: 46%; max-width: 210px; aspect-ratio: 1; object-fit: cover; border-radius: 22px; transform: rotate(6deg); box-shadow: var(--sh); }
.b-orange { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, var(--orange), #E85D0F); color: #fff; box-shadow: 0 20px 46px rgba(243, 112, 33, .35); }
.b-orange h3 { font-size: 27px; }
.b-orange .b-cta { background: #fff; color: var(--orange-deep); border-radius: 999px; padding: 10px 20px; }
.b-orange .b-deco { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; color: rgba(255, 255, 255, .2); }
.b-orange .b-deco .ic { width: 100%; height: 100%; }
.b-green { grid-column: span 2; background: linear-gradient(140deg, var(--green), #0A9660); color: #fff; }
.b-cream { grid-column: span 2; background: #fff; }
.b-cream h3 { font-size: 16.5px; }
.b-cream .b-img { width: 38%; }
.b-stat { background: #fff; display: flex; flex-direction: column; justify-content: center; }
.b-stat b { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.b-stat b i { font-style: normal; color: var(--orange); }
.b-stat span { font-size: 13px; color: var(--muted); }

/* ---------- 品牌故事 ---------- */
.story { border-radius: var(--r-lg); padding: 52px; background: linear-gradient(135deg, var(--green-ink), #0A4A2B); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.story .eyebrow { color: #7FD3A8; }
.story .eyebrow::before { background: #7FD3A8; }
.story h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 16px; }
.story > div > p { color: #B9DCC8; font-size: 15px; margin-bottom: 22px; }
.story-list { list-style: none; margin-bottom: 30px; }
.story-list li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; font-size: 14.5px; }
.story-list .ic { color: var(--orange); background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 3px; width: 20px; height: 20px; margin-top: 2px; }
.story-imgwrap { position: relative; }
.story-imgwrap img { border-radius: 24px; aspect-ratio: 4/3.4; object-fit: cover; width: 100%; box-shadow: var(--sh-lg); }
.story-badge {
  position: absolute; left: -16px; bottom: 26px; background: var(--orange); color: #fff;
  padding: 13px 20px; border-radius: 18px 18px 18px 4px; font-weight: 800; font-size: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
}
.flagline { height: 5px; border-radius: 3px; margin-top: 34px; background: linear-gradient(90deg, var(--green) 0 33%, #fff 33% 66%, var(--green) 66% 100%); opacity: .5; }

/* ---------- 订阅 ---------- */
.news { border-radius: var(--r-lg); padding: 44px 52px; background: linear-gradient(135deg, var(--orange), #FF8E3C); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; box-shadow: 0 24px 56px rgba(243, 112, 33, .35); }
.news h2 { font-size: 25px; font-weight: 900; }
.news p { opacity: .9; font-size: 14px; margin-top: 5px; }
.news-form { display: flex; gap: 10px; flex: 1; max-width: 460px; min-width: 280px; }
.news-form input {
  flex: 1; border: none; outline: none; border-radius: 999px; padding: 14px 22px; font-size: 14px; min-width: 0;
  background: rgba(255, 255, 255, .95);
}
.news-form .btn { background: var(--green-ink); color: #fff; }
.news-form .btn:hover { background: #08281A; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 80px; background: var(--ink); color: #CFC4B8; }
.flag-strip { height: 4px; background: linear-gradient(90deg, var(--green) 0 33%, #fff 33% 66%, var(--green) 66% 100%); }
.footer-in { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr auto; gap: 40px; padding: 52px 0 40px; }
.footer-about { font-size: 13.5px; margin: 16px 0 20px; line-height: 1.8; }
.pay-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-pills span { font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13.5px; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-contact { font-size: 13.5px; line-height: 2; }
.footer-contact .ic { color: var(--orange); margin-right: 7px; }
.footer-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; align-self: start; justify-self: start; background: #fff; padding: 10px 14px 8px; border-radius: 10px; }
.footer-qr img { width: 76px; height: 76px; display: block; }
.footer-qr span { font-size: 11.5px; font-weight: 700; color: #3B2F1E; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 移动端底部导航 ---------- */
.bnav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}
.bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 5px 0; border-radius: 12px; position: relative; }
.bnav a.on { color: var(--orange); }
.bnav .ic { width: 22px; height: 22px; }

/* ---------- 面包屑 / 页面通用 ---------- */
.crumb { padding: 22px 0 4px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.crumb a:hover { color: var(--orange); }
.crumb .ic { width: 13px; height: 13px; }

/* ---------- 商品列表页 ---------- */
.empty { text-align: center; padding: 70px 20px; }
.empty .big { font-size: 74px; margin-bottom: 18px; }
.empty h3 { font-size: 19px; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); color: #5C5147; transition: .18s; cursor: pointer;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- 商品详情页 ---------- */
.pd { display: grid; grid-template-columns: 1.02fr 1fr; gap: 46px; padding: 18px 0 8px; }
.gallery { position: sticky; top: 92px; }
.g-main {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; box-shadow: var(--sh-sm); border: 1px solid var(--line);
}
/* 主图轮播轨道：手机手指侧滑翻页，桌面点缩略图平滑滚动；隐藏滚动条 */
.g-track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.g-slide img.ok { opacity: 1; }
/* 轮播位置圆点 */
.g-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.g-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: .25s; }
.g-dots i.on { width: 20px; background: var(--orange); }
.g-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.g-thumb { width: 74px; height: 74px; flex: none; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; transition: .2s; font-size: 26px; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243, 112, 33, .18); }
.pd-info h1 { font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
.pd-meta { display: flex; align-items: center; gap: 6px; margin: 13px 0 0; font-size: 13.5px; color: var(--muted); }
.pd-meta .score { color: var(--orange); font-weight: 800; font-size: 15px; }
.price-panel { background: var(--orange-soft); border-radius: var(--r); padding: 18px 22px; margin: 18px 0; display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; }
.price-panel .now { font-size: 32px; font-weight: 900; color: var(--orange-deep); letter-spacing: -.02em; }
.price-panel .was { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.price-panel .pbadge { position: static; box-shadow: none; }
.price-note { font-size: 12px; color: var(--muted); width: 100%; }
.pd-tags { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.svc-row { display: flex; gap: 18px; flex-wrap: wrap; padding: 15px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.svc-row span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #5C5147; font-weight: 600; }
.svc-row .ic { color: var(--green); }
.dlv-card { display: flex; gap: 13px; margin-top: 22px; background: var(--green-soft); border-radius: var(--r); padding: 15px 18px; font-size: 13px; color: #2E5B45; line-height: 1.7; }
.dlv-card .ic { color: var(--green); width: 21px; height: 21px; margin-top: 2px; }
.pd-secs { display: grid; gap: 18px; margin: 34px 0 8px; }
.pd-sec { background: #fff; border-radius: var(--r); padding: 26px 28px; box-shadow: var(--sh-sm); }
.pd-sec h3 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.pd-sec h3::before { content: ''; width: 4px; height: 17px; border-radius: 3px; background: var(--orange); }
.pd-sec .desc { color: #5C5147; font-size: 14.5px; }
.rev-sum { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; background: var(--orange-soft); border-radius: 16px; padding: 15px 20px; }
.rev-sum b { font-size: 34px; font-weight: 900; color: var(--orange-deep); }
.rev-item { padding: 15px 0; border-bottom: 1px dashed var(--line); }
.rev-item:last-child { border: none; padding-bottom: 0; }
.rev-top { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; }
.rev-ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #0A9660); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; flex: none; }
.rev-top b { font-size: 13.5px; }
.rev-top time { font-size: 12px; color: var(--muted); margin-left: auto; }
.rev-item p { font-size: 13.5px; color: #5C5147; }
.rev-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 18px 0 8px; }

/* ---------- 提示气泡 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 200; transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 9px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: .28s cubic-bezier(.34, 1.4, .64, 1);
  max-width: 86vw;
}
.toast .ic { color: #6FDCA4; width: 18px; height: 18px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  body { padding-bottom: 66px; }
  .bnav { display: flex; }
  .hero-in { grid-template-columns: 1fr; padding: 44px 0 56px; }
  .hero-visual { height: 400px; max-width: 480px; margin: 0 auto; width: 100%; }
  .trust { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .pd { grid-template-columns: 1fr; gap: 26px; }
  .gallery { position: static; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .story { grid-template-columns: 1fr; padding: 36px 30px; }
  .section { margin-top: 48px; margin-bottom: 48px; }
}
@media (max-width: 640px) {
  .header-in { gap: 12px; justify-content: space-between; flex-wrap: wrap; }
  .search { display: flex; order: 10; flex-basis: 100%; padding: 4px 4px 4px 16px; }
  .search button { padding: 8px 18px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pprice .was { display: block; margin-left: 0; margin-top: 2px; }
  /* 手机端窄卡片：评分行的「已售」放不下时换行显示，不截断 */
  .pmeta { flex-wrap: wrap; row-gap: 2px; }
  .pmeta .sales { white-space: normal; }
  .hscroll .pcard { width: 172px; margin-right: 12px; }
  .hscroll { animation-duration: 26s; }
  /* 手机端画廊缩略图：按张数均分一行放得下（最多 6 张），正方形不变形 */
  .g-thumbs { width: 100%; gap: 8px; }
  .g-thumb { flex: 1; min-width: 0; width: auto; height: auto; aspect-ratio: 1; }
  /* 手机端 Bento：大卡/绿卡/奶油卡通栏，两张统计卡并排 */
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .b-tile { min-height: 150px; }
  .b-orange { grid-column: span 2; grid-row: span 1; min-height: 230px; }
  .b-green, .b-cream { grid-column: span 2; }
  .b-green h3, .b-cream h3 { padding-right: 42%; }
  .b-stat { min-height: 120px; }
  .b-stat b { font-size: 24px; }
  .hero-stats { gap: 24px; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
  .news { padding: 32px 26px; }
  .hero-visual { height: 340px; }
  .fl-big { width: 200px; }
}

/* =====================================================
   用户系统 / 幸运抽奖 / 商品后台
   ===================================================== */

/* ---------- 通用 ---------- */
.hide { display: none !important; }
.input {
  width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px 16px; font-size: 14.5px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(243, 112, 33, .12); }
.linklike { color: var(--orange); font-weight: 700; }
.linklike:hover { text-decoration: underline; }

/* ---------- 头部登录区（所有页面共用） ---------- */
.huser { position: relative; display: flex; align-items: center; }
.uavatar {
  width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg, var(--orange), #FF8E3C);
  color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center;
}
.umenu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 70; width: 214px;
  background: #fff; border-radius: 16px; box-shadow: var(--sh-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
}
.umenu.open { opacity: 1; visibility: visible; transform: none; }
.umenu-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 14.5px;
}
.urole { font-size: 11px; font-weight: 700; color: var(--orange-deep); background: var(--orange-soft); padding: 2px 9px; border-radius: 999px; }
.urole-staff { color: var(--green-deep); background: var(--green-soft); }
.umenu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: .15s;
}
.umenu-item:hover { background: var(--orange-soft); color: var(--orange-deep); }
.umenu-item .ic { width: 17px; height: 17px; }
.umenu-out { color: var(--muted); }
.umenu-out:hover { background: #FDECEC; color: #C0392B; }

/* ---------- 登录页 ---------- */
.auth-page { background: linear-gradient(160deg, #FFF6EC 0%, #FFE9D8 60%, #FFDDC2 100%); min-height: 100vh; }
.auth-wrap { padding: 46px 0 70px; }
.auth-card {
  display: grid; grid-template-columns: 1fr 1.15fr; max-width: 980px; margin: 0 auto;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden;
}
.auth-side { background: linear-gradient(165deg, var(--green-ink) 0%, #0A4A2C 100%); color: #CFE9DB; padding: 44px 40px; }
.logo-light .logo-img { height: 56px; }
.auth-side h2 { color: #fff; font-size: 26px; font-weight: 900; margin-top: 36px; letter-spacing: -.02em; }
.auth-side > p { font-size: 14px; opacity: .85; margin: 10px 0 26px; line-height: 1.8; }
.auth-points { list-style: none; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 13px; font-size: 13.5px; }
.auth-points .ic { color: var(--orange); background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 3px; width: 20px; height: 20px; margin-top: 2px; flex: none; }
.auth-form-wrap { padding: 44px 46px 40px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: var(--bg); border-radius: 14px; padding: 5px; margin-bottom: 26px; }
.auth-tab { padding: 11px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--muted); transition: .2s; }
.auth-tab.on { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(243, 112, 33, .3); }
.auth-form, .auth-forms { display: flex; flex-direction: column; gap: 16px; }
.auth-form label, .edit-form label { display: block; font-size: 14px; font-weight: 600; }
.auth-form label i, .edit-form label i { color: var(--orange); font-style: normal; margin-left: 2px; }
.auth-form label .input, .edit-form label .input { margin-top: 7px; }
.auth-swap { font-size: 14px; color: var(--muted); text-align: center; }
.auth-tip { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.7; }
.auth-foot { text-align: center; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--muted); }
.auth-foot a:hover { color: var(--orange); }

/* ---------- 幸运抽奖 ---------- */
.lucky-left { font-size: 14px; font-weight: 700; color: var(--orange-deep); background: var(--orange-soft); padding: 9px 18px; border-radius: 999px; }
.lucky-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.lucky-stage { background: linear-gradient(160deg, #FFF7F0 0%, #FFE9D8 100%); border-radius: var(--r-lg); padding: 52px 30px 30px; box-shadow: var(--sh-sm); }
.wheel-wrap { position: relative; width: min(430px, 100%); aspect-ratio: 1; margin: 0 auto; }
.wheel {
  position: absolute; inset: 0; border-radius: 50%;
  border: 10px solid #fff; box-shadow: var(--sh-lg), inset 0 0 0 2px var(--line);
  transition: transform 4.6s cubic-bezier(.12, .68, .06, 1);
}
.wseg { position: absolute; inset: 0; display: flex; justify-content: center; }
.wseg span {
  position: absolute; top: 5.5%; left: 50%; transform: translateX(-50%);
  width: 96px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--ink);
}
.wseg span::first-line { font-size: 21px; }
.wheel-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border: 15px solid transparent; border-top: 26px solid var(--orange);
  filter: drop-shadow(0 4px 6px rgba(243, 112, 33, .4));
}
.wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 94px; height: 94px; border-radius: 50%; color: #fff; display: grid; place-content: center;
  background: linear-gradient(160deg, var(--orange), #FF8E3C);
  box-shadow: 0 10px 26px rgba(243, 112, 33, .5), inset 0 0 0 6px #fff;
  transition: transform .2s, filter .2s;
}
.wheel-hub b { font-size: 21px; font-weight: 900; letter-spacing: .1em; }
.wheel-hub span { font-size: 11px; font-weight: 700; opacity: .85; }
.wheel-hub:hover { transform: translate(-50%, -50%) scale(1.05); }
.wheel-hub:active { transform: translate(-50%, -50%) scale(.94); }
.wheel-hub.off { filter: grayscale(.45); opacity: .62; pointer-events: none; }
.lucky-note { text-align: center; margin-top: 24px; font-size: 13.5px; font-weight: 600; color: #8A6A4F; }
.lucky-side { display: flex; flex-direction: column; gap: 18px; }
.lcard { background: #fff; border-radius: var(--r); padding: 22px 24px; box-shadow: var(--sh-sm); }
.lcard h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.prize-list { list-style: none; max-height: 300px; overflow: auto; }
.prize-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.prize-list li:last-child { border-bottom: none; }
.prize-list .pl-emoji { font-size: 22px; flex: none; }
.prize-list div { display: flex; flex-direction: column; }
.prize-list b { font-size: 13.5px; }
.prize-list li span { font-size: 12px; color: var(--muted); }
.prize-list code { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--orange-deep); background: var(--bg); border-radius: 8px; padding: 3px 8px; }
.prize-list .empty { justify-content: center; color: var(--muted); font-size: 13.5px; border-bottom: none; padding: 18px 0; }
.rule-list { list-style: none; font-size: 13.5px; color: #5C5147; }
.rule-list li { position: relative; padding: 7px 0 7px 18px; }
.rule-list li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.rule-list b { color: var(--orange-deep); }

/* ---------- 弹层（中奖结果 / 商品编辑共用） ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(34, 26, 20, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
@keyframes popIn { from { transform: scale(.72); opacity: 0; } }
.prize-pop {
  position: relative; width: min(400px, 92vw); text-align: center;
  background: #fff; border-radius: var(--r-lg); padding: 42px 40px 34px;
  box-shadow: var(--sh-lg); animation: popIn .35s cubic-bezier(.34, 1.56, .64, 1);
}
.pclose {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); color: var(--muted); font-size: 14px; display: grid; place-items: center; transition: .15s;
}
.pclose:hover { background: var(--orange-soft); color: var(--orange); }
.prize-emoji { font-size: 62px; line-height: 1.2; }
.prize-pop h3 { font-size: 17px; color: var(--muted); font-weight: 600; margin: 10px 0 6px; }
.prize-name { font-size: 26px; font-weight: 900; color: var(--orange); letter-spacing: -.02em; }
.prize-code {
  display: inline-block; margin: 16px 0 22px; padding: 9px 18px; border-radius: 12px;
  background: var(--orange-soft); border: 1.5px dashed var(--orange);
  font-size: 13.5px; font-weight: 700; color: var(--orange-deep);
}

/* ---------- 商品后台 ---------- */
.admin-hello { font-size: 13.5px; color: var(--muted); }
/* 内容与通栏头部对齐：左右边距与 header-in 一致（商品页/设置页/后台） */
.settings-main, .admin-main, .products-main {
  width: 100%; max-width: none;
  padding-left: clamp(16px, 3vw, 36px);
  padding-right: clamp(16px, 3vw, 36px);
}
.settings-main, .lottery-main { margin-top: 28px; }
.admin-main { margin-top: 14px; }
/* 所属仓库多选胶囊 */
.whpills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.whpill { position: relative; cursor: pointer; }
.whpill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.whpill span {
  display: inline-block; padding: 9px 18px; border-radius: 12px; background: var(--bg);
  border: 2px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--muted); transition: .15s;
}
.whpill:hover span { border-color: var(--orange); color: var(--orange); }
.whpill input:checked + span {
  background: var(--orange); border-color: var(--orange); color: #fff;
  box-shadow: 0 6px 14px rgba(243, 112, 33, .3);
}
.admin-tabs { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.atab {
  padding: 11px 20px; border-radius: 999px; background: #fff; box-shadow: var(--sh-sm);
  font-weight: 700; font-size: 14.5px; color: var(--muted); transition: .2s;
}
.atab:hover { color: var(--ink); }
.atab.on { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(0, 135, 81, .28); }
.apanel { background: #fff; border-radius: var(--r); box-shadow: var(--sh-sm); padding: 20px; }
/* 页签行右侧：当前页签的搜索框/新增按钮 */
.tab-acts { flex: 1 1 0; justify-content: flex-end; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tab-acts .input { width: auto; margin-top: 0; padding: 10px 14px; }
.tab-acts .tool-search { flex: 0 1 210px; min-width: 150px; }
.tab-acts .btn { padding: 10px 16px; font-size: 14px; flex-shrink: 0; }
.table-wrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; min-width: 780px; }
.atable th {
  text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700;
  padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
.atable td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.atable tbody tr:last-child td { border-bottom: none; }
.atable tbody tr { transition: background .15s; }
.atable tbody tr:hover { background: #FFFBF6; }
.atable .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.th-ops, .atable .ops { text-align: right; white-space: nowrap; }
.tcell-p { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.pimg.tiny { position: relative; width: 46px; height: 46px; border-radius: 12px; flex: none; overflow: hidden; background: var(--orange-soft); display: grid; place-items: center; }
.tcell-name {
  font-weight: 600; font-size: 13.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.opbtn {
  padding: 7px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: #5C5147; transition: .15s; margin-left: 6px;
}
.opbtn:hover { border-color: var(--orange); color: var(--orange); }
.opbtn.danger:hover { background: #FDECEC; color: #C0392B; border-color: #F5C6C6; }
.opbtn.green { background: var(--green-soft); color: var(--green-deep); border-color: #CBE9DB; }
.opbtn.green:hover { background: var(--green); color: #fff; border-color: var(--green); }
.tempty { text-align: center; color: var(--muted) !important; padding: 42px 0 !important; }
.stag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.stag.ok { background: var(--green-soft); color: var(--green-deep); }
.stag.low { background: var(--orange-soft); color: var(--orange-deep); }
.stag.out { background: #FDECEC; color: #C0392B; }
.stock-num { font-size: 16px; }
.stock-num.orange { color: var(--orange-deep); }
.stock-num.red { color: #C0392B; }
.row-low { background: #FFFBF6; }
.row-out { background: #FDF3F2; }

/* ---------- 库存左边栏（固定视口高度，面板内部滚动） ---------- */
.admin-fixed { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.admin-fixed .header { flex: none; }
.admin-main { display: flex; gap: 20px; align-items: stretch; margin-bottom: 14px; }
.admin-fixed .admin-main { flex: 1; min-height: 0; }
.admin-main > .apanel { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.admin-main > .apanel .table-wrap { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.admin-main > .apanel .table-wrap::-webkit-scrollbar { display: none; }
.admin-fixed .admin-main > .apanel .admin-tabs { flex: none; margin-bottom: 4px; }
.admin-fixed #whTabs .atab { padding: 7px 16px; font-size: 13px; }
.admin-fixed #logPanel { padding-top: 12px; padding-bottom: 12px; }
.admin-fixed #logPanel .tabs-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-fixed #logPanel .tabs-row .admin-tabs { flex: 1; margin-bottom: 0; }
.admin-fixed #logPanel #moveOpen { margin-left: auto; flex: none; padding: 7px 16px; font-size: 13px; }
/* 进出库弹层：类型胶囊 */
.type-pills { display: flex; gap: 8px; }
.tpill {
  padding: 10px 18px; border-radius: 12px; background: var(--bg); border: 2px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--muted); transition: .15s;
}
.tpill.on { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 6px 14px rgba(243, 112, 33, .3); }
.admin-fixed #logPanel .atable th {
  padding-top: 2px;
  position: sticky; top: 0; z-index: 1;
  background: #fff;
  border-bottom: none;
  box-shadow: inset 0 -2px 0 var(--line);
}
.admin-fixed #logPanel .stag,
.admin-fixed #logPanel td:nth-child(2),
.admin-fixed #logPanel td:nth-child(3),
.admin-fixed #logPanel td:last-child { white-space: nowrap; }
/* 商品搜索选择器 */
.combo { position: relative; }
.combo .combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: var(--sh); max-height: 210px; overflow-y: auto;
}
.combo-item {
  display: block; width: 100%; text-align: left; padding: 9px 14px; border: none;
  background: none; font-size: 13.5px; color: var(--ink); cursor: pointer;
}
.combo-item:hover { background: #FFFBF6; }
.combo-item small { color: var(--muted); }
.combo-empty { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.stock-side {
  width: 320px; flex: none; background: #fff; border-radius: var(--r);
  box-shadow: var(--sh-sm); padding: 16px 14px;
  overflow-y: auto; scrollbar-width: none;
}
.stock-side::-webkit-scrollbar { display: none; }
.stag.in { background: var(--green-soft); color: var(--green-deep); }
.stag.outlog { background: var(--orange-soft); color: var(--orange-deep); }
.stock-list { list-style: none; margin: 0; padding: 0; }
.stock-list .tempty { display: block; }
.sitem {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px;
  border-bottom: 1px solid var(--line); border-radius: 10px; transition: background .15s;
}
.sitem:last-child { border-bottom: none; }
.sitem:hover { background: #FFFBF6; }
.sinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sname {
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.snum { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.edit-pop {
  position: relative; width: min(680px, 94vw); max-height: 90vh; overflow: auto;
  background: #fff; border-radius: var(--r-lg); padding: 26px 28px;
  box-shadow: var(--sh-lg); animation: popIn .3s cubic-bezier(.34, 1.56, .64, 1);
}
.edit-head { display: flex; align-items: center; margin-bottom: 18px; }
.edit-head h3 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.edit-form textarea.input { resize: vertical; }
.span2 { grid-column: span 2; }
.edit-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 900px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-form-wrap { padding: 34px 28px 30px; }
  .auth-tab { white-space: nowrap; }
  .lucky-grid { grid-template-columns: 1fr; }
  .edit-form { grid-template-columns: 1fr; }
  .span2 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .auth-wrap { padding: 24px 0 46px; }
  .lucky-stage { padding: 40px 16px 22px; }
  .umenu { width: 196px; }
  .tab-acts .input, .tab-acts .btn { flex: 1 1 160px; }
  .admin-fixed { height: auto; overflow: visible; }
  .admin-main { flex-direction: column; }
  .admin-main > .apanel { overflow: visible; }
  .stock-side { width: 100%; overflow: visible; }
}

/* ---------- 后台商品图片上传（多图 + 展示图） ---------- */
.imgsel { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.isel-item {
  position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--line); background: var(--orange-soft); transition: border-color .2s;
}
.isel-item.cover { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243, 112, 33, .15); }
.isel-item img { width: 100%; height: 100%; object-fit: cover; }
.isel-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(34, 26, 20, .65); color: #fff; font-size: 11px; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.isel-del:hover { background: #C0392B; }
.isel-cover {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0; font-size: 10.5px; font-weight: 700;
  background: rgba(255, 255, 255, .92); color: var(--muted); transition: .15s;
}
.isel-cover:hover { color: var(--orange); }
.isel-cover.on { background: var(--orange); color: #fff; }
.isel-add {
  width: 84px; height: 84px; border-radius: 12px; border: 2px dashed var(--line);
  background: var(--orange-soft); color: var(--muted); cursor: pointer; transition: .15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 26px; font-weight: 400; line-height: 1;
}
.isel-add span { font-size: 11.5px; font-weight: 700; }
.isel-add:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.isel-add:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.isel-add.busy { animation: isel-pulse 1s ease-in-out infinite; }
@keyframes isel-pulse { 50% { opacity: .45; } }

/* ---------- 账号状态徽章（员工/客户管理） ---------- */
.stbadge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.stbadge.on { color: var(--green-deep); background: rgba(30, 132, 73, .12); }
.stbadge.off { color: #C0392B; background: rgba(192, 57, 43, .1); }

/* ---------- 关于我们 ---------- */
.about-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.about-copy p { color: #5C5147; font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
.about-photos { position: relative; padding-bottom: 26px; }
.about-photos .ph-main { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 26px; box-shadow: var(--sh-lg); display: block; }
.about-photos .ph-sub { position: absolute; right: -14px; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 6px solid var(--bg); box-shadow: var(--sh-lg); display: block; }
.about-badge { position: absolute; left: -14px; top: 22px; z-index: 2; background: var(--orange); color: #fff; font-weight: 800; font-size: 13.5px; padding: 10px 16px; border-radius: 14px 14px 14px 4px; box-shadow: 0 14px 30px rgba(243, 112, 33, .35); }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-stat { background: #fff; border-radius: var(--r); padding: 26px 20px; text-align: center; box-shadow: var(--sh-sm); }
.about-stat b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.about-stat b i { font-style: normal; color: var(--orange); }
.about-stat span { font-size: 13px; color: var(--muted); }
.about-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-value { background: #fff; border-radius: var(--r); padding: 26px 22px; box-shadow: var(--sh-sm); transition: .22s; }
.about-value:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.about-value .tico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 14px; }
.about-value .tico.o { background: var(--orange-soft); color: var(--orange); }
.about-value .tico.g { background: var(--green-soft); color: var(--green); }
.about-value .tico .ic { width: 23px; height: 23px; }
.about-value b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.about-value p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.about-cta { border-radius: var(--r-lg); padding: 40px 48px; background: linear-gradient(135deg, var(--orange), #FF8E3C); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 24px 56px rgba(243, 112, 33, .3); }
.about-cta h2 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.about-cta p { opacity: .92; font-size: 14px; }
.about-cta .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.about-cta .btn-white { background: #fff; color: var(--orange-deep); }
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; gap: 44px; }
  .about-stats, .about-values { grid-template-columns: repeat(2, 1fr); }
  .about-photos .ph-sub { right: 0; }
  .about-cta { padding: 32px 26px; }
}
