/* ==========================================================================
   IAMIECO 上海福液化妆品有限公司 — 官网商城样式
   纯手写 CSS，无任何外部依赖；红底白字品牌标识，主色 #C8161E
   ========================================================================== */

:root {
  --fy-red: #C8161E;
  --fy-red-dark: #A8121A;
  --fy-red-soft: #FDF0F0;
  --fy-bg: #F5F6F8;
  --fy-text: #222;
  --fy-text-2: #555;
  --fy-text-3: #8A8F99;
  --fy-line: #E6E8EC;
  --fy-white: #fff;
  --fy-gold: #B8912F;
  --fy-radius: 10px;
  --fy-wrap: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fy-text);
  background: var(--fy-white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fy-red); }
img { border: 0; display: block; max-width: 100%; }
ul, ol, li { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: 100%; max-width: var(--fy-wrap); margin: 0 auto; padding: 0 16px; }
.page { min-height: 60vh; padding: 24px 0 48px; }
.bg-soft { background: var(--fy-bg); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--fy-white);
  border-bottom: 1px solid var(--fy-line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--fy-red); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { line-height: 1.2; }
.logo-name { display: block; font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.logo-sub { display: block; font-size: 11px; color: var(--fy-text-3); letter-spacing: .5px; }
.site-footer .logo-name { color: #fff; }
.site-footer .logo-sub { color: #8A8F99; }

.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 6px 14px; border-radius: 999px; font-size: 15px; color: var(--fy-text-2);
  white-space: nowrap;
}
.nav-link:hover { color: var(--fy-red); background: var(--fy-red-soft); }
.nav-link.active { color: #fff; background: var(--fy-red); }

.header-search { margin-left: auto; display: flex; align-items: center; gap: 0; }
.search-box { display: flex; border: 1px solid var(--fy-line); border-radius: 999px; overflow: hidden; background: var(--fy-bg); }
.search-box .search-input {
  border: 0; background: transparent; padding: 7px 14px; width: 190px; outline: none;
}
.search-box .search-btn {
  border: 0; background: var(--fy-red); color: #fff; padding: 7px 16px; cursor: pointer; font-size: 13px;
}
.search-box .search-btn:hover { background: var(--fy-red-dark); }

.header-user { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.user-name { color: var(--fy-text-2); }
.link-btn { background: none; border: 0; color: var(--fy-text-2); cursor: pointer; padding: 0; font-size: 13px; }
.link-btn:hover { color: var(--fy-red); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--fy-line); border-radius: 999px; }
.cart-link:hover { border-color: var(--fy-red); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--fy-red); color: #fff; border-radius: 999px; font-size: 11px; line-height: 18px; text-align: center;
}
.nav-toggle { display: none; border: 1px solid var(--fy-line); background: #fff; border-radius: 6px; padding: 5px 9px; cursor: pointer; font-size: 16px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #1D1F24; color: #B9BDC6; margin-top: 40px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 36px 0 26px; }
.foot-brand .logo-mark { margin-bottom: 12px; }
.foot-brand .logo-name { color: #fff; }
.foot-brand p { font-size: 13px; line-height: 1.9; margin-top: 10px; }
.foot-title { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.foot-links li { margin-bottom: 8px; font-size: 13px; }
.foot-links a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid #31343B; padding: 16px 0; font-size: 12px; color: #8A8F99;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* ---------- 通用区块 ---------- */
.section { padding: 40px 0; }
.section-sm { padding: 24px 0; }
.bg-soft .section { padding: 40px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.sec-title { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.sec-title em { font-style: normal; color: var(--fy-red); }
.sec-sub { color: var(--fy-text-3); font-size: 13px; margin-top: 4px; }
.more-link { font-size: 13px; color: var(--fy-text-3); white-space: nowrap; }
.more-link:hover { color: var(--fy-red); }
.page-head { padding: 22px 0 6px; }
.page-title { font-size: 24px; font-weight: 700; }
.page-desc { color: var(--fy-text-3); font-size: 13px; margin-top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--fy-line); background: #fff; color: var(--fy-text);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 14px;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { border-color: var(--fy-red); color: var(--fy-red); }
.btn-primary { background: var(--fy-red); border-color: var(--fy-red); color: #fff; }
.btn-primary:hover { background: var(--fy-red-dark); border-color: var(--fy-red-dark); color: #fff; }
.btn-ghost-dark { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-mini { padding: 5px 12px; font-size: 12px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 34px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; color: var(--fy-text-2); margin-bottom: 6px; }
.field-label .req { color: var(--fy-red); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--fy-line); border-radius: var(--fy-radius);
  padding: 9px 12px; background: #fff; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--fy-red); }
.textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { color: var(--fy-red); font-size: 12px; margin-top: 4px; display: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { display: none; }
.switch .track { width: 44px; height: 24px; border-radius: 999px; background: #D8DBE0; position: relative; transition: background .18s; }
.switch .track:after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: left .18s;
}
.switch input:checked + .track { background: var(--fy-red); }
.switch input:checked + .track:after { left: 23px; }

/* ---------- 状态 ---------- */
.loading, .empty { padding: 60px 0; text-align: center; color: var(--fy-text-3); font-size: 14px; }
.loading:before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; border: 2px solid var(--fy-line); border-top-color: var(--fy-red); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-icon { font-size: 34px; color: var(--fy-line); display: block; margin-bottom: 10px; }
.empty p { margin-bottom: 14px; }
.toast-wrap { position: fixed; left: 50%; top: 78px; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: rgba(29,31,36,.94); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.16); max-width: 80vw;
}
.toast.toast-ok { background: #1F7A45; }
.toast.toast-error { background: var(--fy-red); }

/* ---------- 徽标 / 标签 ---------- */
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11px; line-height: 18px;
}
.badge-red { background: var(--fy-red); color: #fff; }
.badge-soft { background: var(--fy-red-soft); color: var(--fy-red); }
.badge-line { border: 1px solid var(--fy-line); color: var(--fy-text-3); }
.badge-gold { background: rgba(184,145,47,.12); color: var(--fy-gold); }
.badge-grey { background: #F0F1F4; color: var(--fy-text-2); }

/* ---------- 首页 Hero ---------- */
.hero { background: linear-gradient(180deg, #FFF6F6 0%, #fff 100%); border-bottom: 1px solid var(--fy-line); }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 52px 0 48px; }
.hero-copy { max-width: 560px; }
.hero-eyebrow { display: inline-block; background: #fff; border: 1px solid var(--fy-line); color: var(--fy-red); border-radius: 999px; padding: 4px 14px; font-size: 12px; margin-bottom: 16px; }
.hero-title { font-size: 40px; font-weight: 800; letter-spacing: 2px; line-height: 1.25; }
.hero-title span { color: var(--fy-red); }
.hero-sub { color: var(--fy-text-2); font-size: 15px; margin: 14px 0 24px; line-height: 1.9; }
.hero-search { display: flex; max-width: 520px; background: #fff; border: 1px solid var(--fy-line); border-radius: 999px; padding: 5px 5px 5px 20px; box-shadow: 0 8px 24px rgba(200,22,30,.06); }
.hero-search .search-input { flex: 1; border: 0; outline: none; background: transparent; }
.hero-search .search-btn { border: 0; background: var(--fy-red); color: #fff; padding: 9px 26px; border-radius: 999px; cursor: pointer; }
.hero-search .search-btn:hover { background: var(--fy-red-dark); }
.hero-points { display: flex; gap: 26px; margin-top: 22px; font-size: 13px; color: var(--fy-text-3); }
.hero-points b { color: var(--fy-text); font-weight: 600; }
.hero-art { width: 420px; height: 260px; border-radius: 18px; background: #fff; border: 1px solid var(--fy-line); position: relative; overflow: hidden; flex: 0 0 auto; }
.hero-art .art-mark { position: absolute; right: -20px; bottom: -34px; font-size: 120px; font-weight: 800; color: rgba(200,22,30,.08); letter-spacing: -4px; }
.hero-art .art-ring { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(200,22,30,.16); top: -40px; right: 40px; }
.hero-art .art-title { position: absolute; left: 30px; top: 60px; font-size: 26px; font-weight: 800; letter-spacing: 4px; color: var(--fy-red); }
.hero-art .art-desc { position: absolute; left: 30px; top: 100px; font-size: 13px; color: var(--fy-text-3); letter-spacing: 1px; }

/* ---------- 轮播 ---------- */
.banner { position: relative; border-radius: var(--fy-radius); overflow: hidden; background: var(--fy-bg); }
.banner-track { position: relative; height: 320px; }
.banner-item { position: absolute; inset: 0; display: none; }
.banner-item.active { display: block; }
.banner-item img { width: 100%; height: 100%; object-fit: cover; }
.banner-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(120deg, #FDECEC 0%, #F3F4F7 100%); color: var(--fy-red); }
.banner-ph .b-title { font-size: 30px; font-weight: 800; letter-spacing: 4px; }
.banner-ph .b-sub { font-size: 14px; color: var(--fy-text-2); }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.banner-dot { width: 22px; height: 4px; border-radius: 999px; background: rgba(0,0,0,.16); border: 0; padding: 0; cursor: pointer; }
.banner-dot.active { background: var(--fy-red); }

/* ---------- 分类导航 ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-item {
  border: 1px solid var(--fy-line); border-radius: 999px; padding: 7px 18px; font-size: 14px;
  background: #fff; color: var(--fy-text-2);
}
.cat-item:hover { border-color: var(--fy-red); color: var(--fy-red); }
.cat-item.active { background: var(--fy-red); border-color: var(--fy-red); color: #fff; }

/* ---------- 活动入口 ---------- */
.promo-entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promo-entry {
  display: block; padding: 22px 20px; border-radius: var(--fy-radius); background: #fff;
  border: 1px solid var(--fy-line);
}
.promo-entry:hover { border-color: var(--fy-red); }
.promo-entry .pe-icon { font-size: 26px; }
.promo-entry .pe-title { font-size: 17px; font-weight: 700; margin: 8px 0 4px; }
.promo-entry .pe-desc { font-size: 12px; color: var(--fy-text-3); }

/* ---------- 商品卡片 ---------- */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.product-card {
  background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.product-card:hover { border-color: #D9D2B8; box-shadow: 0 10px 26px rgba(0,0,0,.06); }
.pc-media { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--fy-bg); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-media .pc-tag { position: absolute; left: 8px; top: 8px; }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.pc-name { font-size: 15px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-sub { font-size: 12px; color: var(--fy-text-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 18px; }
.pc-price { margin: 10px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.pc-price .cur { color: var(--fy-red); font-size: 13px; font-weight: 600; }
.pc-price .num { color: var(--fy-red); font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.pc-price .old { color: var(--fy-text-3); font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.pc-price .save { font-size: 11px; color: var(--fy-red); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.pc-sold { font-size: 12px; color: var(--fy-text-3); }
.ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FBF0F0 0%, #F1F2F5 100%); color: rgba(200,22,30,.45);
  font-size: 40px; font-weight: 800; letter-spacing: 2px;
}

/* ---------- 品牌优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-item { background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius); padding: 24px 20px; }
.adv-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--fy-red-soft); color: var(--fy-red); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.adv-title { font-size: 16px; font-weight: 700; margin: 14px 0 6px; }
.adv-desc { font-size: 13px; color: var(--fy-text-3); line-height: 1.8; }

/* ---------- 列表页布局 ---------- */
.list-layout { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; }
.side-panel { background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius); padding: 18px 16px; }
.side-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--fy-line); }
.side-list li { margin-bottom: 6px; }
.side-list a { display: block; padding: 7px 10px; border-radius: 6px; font-size: 13px; color: var(--fy-text-2); }
.side-list a:hover { background: var(--fy-red-soft); color: var(--fy-red); }
.side-list a.active { background: var(--fy-red); color: #fff; }
.sort-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sort-tabs { display: flex; gap: 6px; }
.sort-tab { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--fy-text-2); border: 1px solid transparent; background: none; cursor: pointer; font-family: inherit; }
.sort-tab:hover { color: var(--fy-red); }
.sort-tab.active { background: var(--fy-red); color: #fff; }
.result-count { font-size: 13px; color: var(--fy-text-3); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager-item {
  min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--fy-line); border-radius: 6px;
  background: #fff; color: var(--fy-text-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer;
}
.pager-item:hover { border-color: var(--fy-red); color: var(--fy-red); }
.pager-item.active { background: var(--fy-red); border-color: var(--fy-red); color: #fff; }
.pager-item.disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 商品详情 ---------- */
.detail-top { display: grid; grid-template-columns: 440px 1fr; gap: 36px; }
.detail-top-promo { display: grid; grid-template-columns: 420px 1fr; gap: 36px; }
.gallery-main { border: 1px solid var(--fy-line); border-radius: var(--fy-radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--fy-bg); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--fy-bg); }
.thumb.active { border-color: var(--fy-red); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.info-title { font-size: 26px; font-weight: 700; line-height: 1.4; }
.info-sub { color: var(--fy-text-2); margin-top: 8px; font-size: 14px; }
.info-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.price-box { background: var(--fy-red-soft); border-radius: var(--fy-radius); padding: 18px 20px; margin: 18px 0; }
.price-box .pb-label { font-size: 13px; color: var(--fy-text-2); }
.price-box .pb-main { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.price-box .pb-main .cur { color: var(--fy-red); font-size: 16px; font-weight: 600; }
.price-box .pb-main .num { color: var(--fy-red); font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.price-box .pb-main .old { color: var(--fy-text-3); text-decoration: line-through; font-size: 13px; margin-left: 8px; }
.price-box .pb-extra { font-size: 12px; color: var(--fy-text-3); margin-top: 6px; }
.price-table { width: 100%; border: 1px solid var(--fy-line); border-radius: var(--fy-radius); overflow: hidden; margin-bottom: 18px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--fy-line); font-size: 13px; }
.price-row:last-child { border-bottom: 0; }
.price-row .pr-label { color: var(--fy-text-2); }
.price-row .pr-label small { color: var(--fy-text-3); margin-left: 8px; }
.price-row .pr-price { font-weight: 700; }
.price-row.highlight { background: var(--fy-red); color: #fff; }
.price-row.highlight .pr-label, .price-row.highlight .pr-label small, .price-row.highlight .pr-price { color: #fff; }
.spec-table { border: 1px solid var(--fy-line); border-radius: var(--fy-radius); overflow: hidden; }
.spec-row { display: flex; border-bottom: 1px solid var(--fy-line); font-size: 13px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row .sk { width: 110px; background: var(--fy-bg); color: var(--fy-text-2); padding: 10px 16px; flex: 0 0 auto; }
.spec-row .sv { padding: 10px 16px; flex: 1; }
.buy-actions { display: flex; gap: 12px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--fy-line); border-radius: 999px; overflow: hidden; }
.qty-box button { width: 32px; height: 32px; border: 0; background: #fff; cursor: pointer; color: var(--fy-text-2); font-size: 16px; }
.qty-box button:hover { color: var(--fy-red); }
.qty-box input { width: 44px; text-align: center; border: 0; outline: none; height: 32px; }
.stock-line { font-size: 13px; color: var(--fy-text-3); margin-top: 12px; }
.points-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.point-item { background: var(--fy-bg); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--fy-text-2); }
.detail-rich { line-height: 1.9; font-size: 14px; color: var(--fy-text-2); }
.detail-rich img { max-width: 100%; margin: 10px 0; }
.group-box { border: 1px dashed var(--fy-red); border-radius: var(--fy-radius); padding: 16px 18px; background: var(--fy-red-soft); margin: 16px 0; }
.group-box .gb-title { font-weight: 700; margin-bottom: 6px; }
.group-box .gb-line { font-size: 13px; color: var(--fy-text-2); }

/* ---------- 购物车 ---------- */
.cart-table { border: 1px solid var(--fy-line); border-radius: var(--fy-radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--fy-line); font-size: 13px; vertical-align: middle; }
.cart-table th { background: var(--fy-bg); color: var(--fy-text-2); font-weight: 600; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-prod { display: flex; align-items: center; gap: 12px; }
.cart-thumb { width: 68px; height: 68px; border-radius: 8px; overflow: hidden; background: var(--fy-bg); flex: 0 0 auto; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-size: 14px; font-weight: 600; }
.cart-spec { font-size: 12px; color: var(--fy-text-3); margin-top: 2px; }
.cart-bar {
  position: sticky; bottom: 0; background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius);
  padding: 14px 18px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -6px 18px rgba(0,0,0,.05);
}
.cart-sum { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.cart-sum .cs-item { font-size: 13px; color: var(--fy-text-2); }
.cart-sum .cs-item b { color: var(--fy-text); font-size: 16px; }
.cart-sum .cs-item.red b { color: var(--fy-red); }

/* ---------- 结算 ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius); padding: 20px; margin-bottom: 18px; }
.panel-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.addr-item { border: 1px solid var(--fy-line); border-radius: var(--fy-radius); padding: 14px 16px; cursor: pointer; position: relative; }
.addr-item:hover { border-color: var(--fy-red); }
.addr-item.active { border-color: var(--fy-red); background: var(--fy-red-soft); }
.addr-item .ad-name { font-weight: 600; font-size: 14px; }
.addr-item .ad-phone { font-size: 13px; color: var(--fy-text-2); margin-left: 8px; }
.addr-item .ad-detail { font-size: 13px; color: var(--fy-text-2); margin-top: 6px; line-height: 1.7; }
.addr-item .ad-default { position: absolute; right: 12px; top: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; color: var(--fy-text-2); }
.sum-row .val { color: var(--fy-text); font-weight: 600; }
.sum-row .val.red { color: var(--fy-red); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--fy-line); margin-top: 10px; padding-top: 14px; }
.sum-total .st-label { font-size: 14px; font-weight: 600; }
.sum-total .st-val { color: var(--fy-red); font-size: 26px; font-weight: 800; }
.mini-prod { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--fy-line); }
.mini-prod:last-child { border-bottom: 0; }
.mini-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--fy-bg); flex: 0 0 auto; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-info { flex: 1; min-width: 0; }
.mini-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-spec { font-size: 12px; color: var(--fy-text-3); }
.mini-amt { font-size: 14px; font-weight: 700; }

/* ---------- 订单 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--fy-line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 18px; font-size: 14px; color: var(--fy-text-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab:hover { color: var(--fy-red); }
.tab.active { color: var(--fy-red); border-bottom-color: var(--fy-red); font-weight: 600; }
.order-card { border: 1px solid var(--fy-line); border-radius: var(--fy-radius); background: #fff; margin-bottom: 14px; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--fy-bg); border-bottom: 1px solid var(--fy-line); border-radius: var(--fy-radius) var(--fy-radius) 0 0; flex-wrap: wrap; }
.order-no { font-size: 13px; color: var(--fy-text-2); }
.order-body { padding: 16px 18px; }
.order-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.st-tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.st-warn { background: #FFF4E0; color: #B8770F; }
.st-danger { background: var(--fy-red-soft); color: var(--fy-red); }
.st-info { background: #EAF3FF; color: #2A6CD6; }
.st-ok { background: #E9F7EF; color: #1F7A45; }
.st-mute { background: #F0F1F4; color: var(--fy-text-3); }

/* ---------- 会员中心 ---------- */
.level-card { background: var(--fy-red); color: #fff; border-radius: 16px; padding: 26px 28px; position: relative; overflow: hidden; }
.level-card .lc-name { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.level-card .lc-meta { font-size: 13px; opacity: .9; margin-top: 4px; }
.level-card .lc-stats { display: flex; gap: 40px; margin-top: 22px; }
.level-card .lc-stat .n { font-size: 22px; font-weight: 700; }
.level-card .lc-stat .l { font-size: 12px; opacity: .85; }
.level-card .lc-mark { position: absolute; right: -10px; bottom: -34px; font-size: 120px; font-weight: 800; color: rgba(255,255,255,.12); }
.progress-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.28); overflow: hidden; margin-top: 10px; }
.progress-bar .pb-inner { height: 100%; background: #fff; border-radius: 999px; }
.entry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.entry-item { background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius); padding: 18px 10px; text-align: center; }
.entry-item:hover { border-color: var(--fy-red); }
.entry-icon { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 12px; background: var(--fy-red-soft); color: var(--fy-red); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.entry-label { font-size: 13px; }
.level-table td, .level-table th { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--fy-line); font-size: 13px; }
.level-table th { background: var(--fy-bg); color: var(--fy-text-2); }
.level-table tr.current td { background: var(--fy-red-soft); }

/* ---------- 优惠券 ---------- */
.coupon-card { display: flex; border: 1px solid var(--fy-line); border-radius: var(--fy-radius); overflow: hidden; background: #fff; }
.coupon-left { width: 132px; flex: 0 0 auto; background: var(--fy-red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 8px; }
.coupon-left .cv { font-size: 26px; font-weight: 800; }
.coupon-left .cv small { font-size: 14px; }
.coupon-left .ct { font-size: 12px; opacity: .9; margin-top: 4px; }
.coupon-right { flex: 1; padding: 14px 16px; border-left: 1px dashed var(--fy-line); }
.coupon-name { font-size: 15px; font-weight: 600; }
.coupon-meta { font-size: 12px; color: var(--fy-text-3); margin-top: 6px; }
.coupon-used { opacity: .6; }
.coupon-used .coupon-left { background: #9A9DA5; }

/* ---------- 分享返佣 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat-card { background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius); padding: 18px 16px; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--fy-red); letter-spacing: -.5px; }
.stat-label { font-size: 12px; color: var(--fy-text-3); margin-top: 2px; }
.invite-code { font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--fy-text); }
.rule-list li { font-size: 13px; color: var(--fy-text-2); padding: 5px 0; }
.notice { background: var(--fy-bg); border-radius: 8px; padding: 12px 14px; font-size: 12px; color: var(--fy-text-2); line-height: 1.9; }

/* ---------- 登录 ---------- */
.login-wrap { display: flex; justify-content: center; padding: 40px 0 60px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--fy-line); border-radius: 14px; padding: 32px 30px; }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .lb-name { font-size: 24px; font-weight: 800; letter-spacing: 3px; }
.login-brand .lb-sub { font-size: 12px; color: var(--fy-text-3); margin-top: 6px; }
.login-tip { font-size: 12px; color: var(--fy-text-3); text-align: center; margin-top: 14px; line-height: 1.8; }

/* ---------- 通用表格容器 ---------- */
.table-panel { border: 1px solid var(--fy-line); border-radius: var(--fy-radius); overflow-x: auto; background: #fff; }
.table-panel table { min-width: 640px; }
.table-panel th, .table-panel td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--fy-line); font-size: 13px; }
.table-panel th { background: var(--fy-bg); color: var(--fy-text-2); font-weight: 600; }
.table-panel tr:last-child td { border-bottom: 0; }
.amount-red { color: var(--fy-red); font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hero-art { width: 340px; height: 220px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .detail-top, .detail-top-promo { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .promo-entries { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-art { display: none; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { height: 58px; gap: 10px; flex-wrap: wrap; }
  .nav-toggle { display: block; order: 3; }
  .main-nav { display: none; width: 100%; order: 4; flex-direction: column; gap: 0; padding: 6px 0 12px; }
  .main-nav.open { display: flex; }
  .nav-link { border-radius: 6px; }
  .header-search { order: 5; width: 100%; }
  .header-search .search-box { width: 100%; }
  .search-box .search-input { width: auto; flex: 1; }
  .header-user { margin-left: auto; }
  .hero-title { font-size: 28px; }
  .banner-track { height: 200px; }
  .addr-grid { grid-template-columns: 1fr; }
  .cart-table th, .cart-table td { padding: 10px 8px; }
  .cart-table .col-thumb, .cart-table .col-spec { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .points-list { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .level-card .lc-stats { gap: 20px; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 28px 0; }
  .sec-title { font-size: 19px; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .promo-entries { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 24px; }
}
