/* 双休公司 · 快乐周末商店 —— 周末暖调设计（奶油底 / 珊瑚橙主色 / 大圆角软阴影） */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2b2723;
  --muted: #8a8177;
  --line: #f0e9df;
  --primary: #ff7a59;
  --primary-strong: #f25c39;
  --primary-soft: #fff1ec;
  --accent: #ffd166;
  --green: #3e9e6c;
  --red: #e5484d;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(43, 39, 35, 0.08);
  --shadow-sm: 0 4px 14px rgba(43, 39, 35, 0.06);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 0.2px; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--primary-strong); }
.brand-sub { font-size: 10px; letter-spacing: 3px; color: var(--muted); }
.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #6b6259; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--primary-soft); color: var(--primary-strong); }
.main-nav a.active { background: var(--primary); color: #fff; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--text); color: #fff; flex-shrink: 0;
}
.cart-btn:hover { background: #45403a; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}

/* ---------- 主区 ---------- */
.site-main { max-width: 1160px; margin: 0 auto; padding: 0 20px 64px; }
.section { margin-top: 48px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: 0.3px; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Hero ---------- */
.hero { margin-top: 28px; }
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 24px;
  background: linear-gradient(135deg, #fff4e6 0%, #ffe9de 55%, #fde5d8 100%);
  border-radius: var(--radius-lg); padding: 52px 48px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero-kicker {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #fff; color: var(--primary-strong); font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero-copy h1 { margin: 0; font-size: 44px; line-height: 1.22; letter-spacing: 1px; }
.hero-sub { margin: 16px 0 0; max-width: 480px; color: #6f6559; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-perks { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; font-size: 13px; color: #7a7064; font-weight: 600; }
.hero-art {
  font-size: 52px; letter-spacing: 14px; text-align: center; line-height: 1.6;
  filter: drop-shadow(0 12px 18px rgba(242, 92, 57, 0.18));
  user-select: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 999px; padding: 11px 22px;
  font-size: 14px; font-weight: 700; transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 89, 0.35); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-primary.added { background: var(--green); box-shadow: 0 6px 16px rgba(62, 158, 108, 0.3); }
.btn-primary:disabled, .btn-buy.disabled {
  background: #e8e0d5; color: #b5aca0; box-shadow: none; cursor: not-allowed; transform: none;
}
.btn-ghost { background: #fff; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-strong); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-buy { background: var(--text); color: #fff; }
.btn-buy:hover { background: #45403a; }

/* ---------- 分类入口 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--surface); border-radius: var(--radius); padding: 22px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1.5px solid transparent; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.cat-emoji { font-size: 34px; }
.cat-name { font-weight: 800; font-size: 15px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* ---------- 双休公司 ---------- */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.company-card {
  background: var(--surface); border-radius: var(--radius); padding: 18px 20px 16px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
  border: 1.5px solid transparent;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.company-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow); }
.company-head { display: flex; align-items: center; gap: 12px; }
.company-mark {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #fff2e4, #ffe0cf);
  display: grid; place-items: center; font-size: 24px;
}
.company-head-text { display: flex; flex-direction: column; min-width: 0; }
.company-name { font-weight: 800; font-size: 16px; }
.company-meta { font-size: 12px; color: var(--muted); }
.company-flag {
  margin-left: auto; align-self: flex-start; flex-shrink: 0;
  background: var(--accent); color: #6b4d00; font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px;
}
.company-slogan { margin: 0; font-size: 13.5px; color: #6f6559; line-height: 1.6; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge {
  font-size: 11.5px; font-weight: 700; color: var(--primary-strong);
  background: var(--primary-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.badge-sm { font-size: 11px; padding: 2px 8px; }
.company-foot { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.company-foot b { color: var(--text); }

/* 商品卡片上的出品方署名 */
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-company { font-size: 12px; font-weight: 800; color: var(--text); }
.card-company:hover { color: var(--primary-strong); }
.card-dot { color: #d5cdc2; }

/* 公司主页 */
.company-hero {
  background: linear-gradient(135deg, #fff4e6, #fde5d8);
  border-radius: var(--radius-lg); padding: 34px 36px; margin-top: 32px; box-shadow: var(--shadow);
}
.company-hero-head { display: flex; gap: 18px; align-items: flex-start; }
.company-hero-mark {
  width: 72px; height: 72px; border-radius: 22px; flex-shrink: 0; background: #fff;
  display: grid; place-items: center; font-size: 38px; box-shadow: var(--shadow-sm);
}
.company-hero-text { min-width: 0; }
.company-hero-text h1 { margin: 0; font-size: 30px; }
.company-hero-slogan { margin: 6px 0 8px; font-size: 15px; color: #6f6559; }
.company-hero-text .badge-row { margin-top: 10px; }
.company-hero-text .badge { background: #fff; }
.company-policy { margin-top: 26px; }
.company-policy h2 { margin: 0 0 12px; font-size: 18px; }

/* 商品详情页的出品方面板 */
.company-strip {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, #fff4e6, #ffe9de);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.company-strip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.company-strip-mark { font-size: 28px; }
.company-strip-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.company-strip-text b { font-size: 14.5px; }
.company-strip-text em { font-style: normal; font-size: 12.5px; color: #7a7064; }
.company-strip-go { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--primary-strong); white-space: nowrap; }
.policy-more { margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.policy-more a { color: var(--primary-strong); }

/* 选品认定标准 */
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule-card { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.rule-emoji { font-size: 26px; }
.rule-card h3 { margin: 8px 0 6px; font-size: 16px; }
.rule-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- 商品卡片 ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 18px;
}
.product-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media-link { position: relative; display: block; }
.card-media {
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-emoji span { font-size: 84px; filter: drop-shadow(0 10px 14px rgba(43, 39, 35, 0.12)); }
.card-flag {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #6b4d00; font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11px; font-weight: 700; color: var(--primary-strong); letter-spacing: 1px; }
.card-name { font-weight: 700; font-size: 15px; line-height: 1.45; }
.card-name:hover { color: var(--primary-strong); }
.card-summary {
  margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price { font-size: 19px; font-weight: 800; color: var(--primary-strong); }
.price-lg { font-size: 28px; }
.price-origin { font-size: 13px; color: #b5aca0; text-decoration: line-through; }
.price-save {
  font-size: 11px; font-weight: 700; color: var(--green);
  background: #e8f5ee; padding: 2px 8px; border-radius: 999px;
}
.stock { font-size: 12px; color: var(--muted); margin-left: auto; }
.stock.low { color: #d07a00; font-weight: 700; }
.stock.out { color: var(--red); font-weight: 700; }
.btn-add { margin-top: auto; width: 100%; }

/* ---------- 商品详情 ---------- */
.detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; margin-top: 32px; }
.detail-media {
  aspect-ratio: 1 / 1; border-radius: var(--radius-lg); display: grid; place-items: center;
  box-shadow: var(--shadow); overflow: hidden;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media.tile-emoji span { font-size: 150px; }
.service-panel { margin-top: 18px; display: grid; gap: 10px; }
.service-item {
  display: flex; gap: 12px; background: var(--surface); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm); align-items: flex-start;
}
.service-emoji { font-size: 22px; line-height: 1.4; }
.service-item b { font-size: 13.5px; }
.service-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.detail-name { margin: 6px 0 0; font-size: 30px; line-height: 1.3; }
.detail-summary { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.detail-actions { display: flex; gap: 12px; margin-top: 22px; align-items: stretch; flex-wrap: wrap; }
.qty-box {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 999px; background: var(--surface); overflow: hidden;
}
.qty-btn {
  width: 40px; height: 44px; border: none; background: none;
  font-size: 18px; color: var(--muted); transition: color 0.15s, background 0.15s;
}
.qty-btn:hover { color: var(--primary-strong); background: var(--primary-soft); }
.qty-box input {
  width: 44px; border: none; text-align: center; font-size: 16px; font-weight: 700;
  background: none; outline: none; -moz-appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.detail-tags { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.detail-desc { margin-top: 30px; }
.detail-desc h3 { font-size: 17px; margin: 0 0 8px; }
.md-body {
  background: var(--surface); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow-sm); font-size: 14.5px; color: #4c463f;
}
.md-body h2 { font-size: 18px; margin: 8px 0 10px; }
.md-body h2:first-child { margin-top: 0; }
.md-body ul { padding-left: 20px; margin: 10px 0; }
.md-body li { margin: 4px 0; }
.md-body blockquote {
  margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--accent);
  background: #fff9ec; border-radius: 0 10px 10px 0; color: #7a6a4f; font-size: 13.5px;
}
.md-body p { margin: 10px 0; }

/* ---------- 购物车 ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 14px; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-sm);
}
.cart-thumb {
  width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center;
  font-size: 34px; overflow: hidden; flex-shrink: 0;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-weight: 700; font-size: 14.5px; display: block; }
.cart-line-name:hover { color: var(--primary-strong); }
.cart-line-price { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.cart-qty { min-width: 32px; text-align: center; font-weight: 800; font-size: 15px; }
.cart-line .qty-box .qty-btn { width: 32px; height: 34px; font-size: 15px; }
.cart-line-total { font-size: 15.5px; min-width: 72px; text-align: right; }
.cart-remove {
  border: none; background: none; color: #c9c0b4; font-size: 15px; padding: 6px;
  transition: color 0.15s;
}
.cart-remove:hover { color: var(--red); }
.cart-summary {
  background: var(--surface); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm); position: sticky; top: 84px; display: grid; gap: 4px;
}
.cart-summary h3 { margin: 0 0 10px; font-size: 17px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #5d564d; padding: 5px 0; }
.sum-total { border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 12px; font-size: 15px; }
.sum-total b { font-size: 22px; color: var(--primary-strong); }
.free-tag { font-style: normal; color: var(--green); font-weight: 700; font-size: 13px; }
.ship-hint { margin: 4px 0 10px; font-size: 12.5px; color: #d07a00; background: #fff6e6; border-radius: 10px; padding: 8px 12px; }
.ship-hint.ok { color: var(--green); background: #e9f6ef; }
.sum-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.cart-loading { color: var(--muted); font-size: 14px; padding: 30px 0; text-align: center; }

/* ---------- 结算 ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.checkout-form { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.checkout-form h3, .order-summary h3 { margin: 0 0 14px; font-size: 17px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #5d564d; }
.field i { color: var(--red); font-style: normal; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 14px; outline: none; background: #fffdfa;
  transition: border-color 0.15s, box-shadow 0.15s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.15); }
.form-hint { font-size: 12.5px; color: #d07a00; background: #fff6e6; border-radius: 10px; padding: 9px 13px; margin: 4px 0 0; }
.form-error { font-size: 13px; color: var(--red); background: #fdecec; border-radius: 10px; padding: 9px 13px; margin: 10px 0 0; }
.order-summary {
  background: var(--surface); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-sm); position: sticky; top: 84px;
}
.mini-lines { display: grid; gap: 10px; margin-bottom: 12px; max-height: 260px; overflow-y: auto; }
.mini-line { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; }
.mini-emoji { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.mini-emoji img { width: 100%; height: 100%; object-fit: cover; }
.mini-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-company { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }
.mini-qty { color: var(--muted); }
.order-summary .btn { margin-top: 12px; }
.sum-companies {
  margin: 10px 0 0; font-size: 12.5px; font-weight: 700; color: var(--green);
  background: #e9f6ef; border-radius: 10px; padding: 9px 12px;
}
.sum-companies em { font-style: normal; display: block; font-weight: 400; color: #5d564d; font-size: 12px; margin-top: 2px; }
.cart-line-company { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.cart-line-company:hover { color: var(--primary-strong); }

/* ---------- 订单页 ---------- */
.order-page { margin-top: 32px; }
.order-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #e9f6ef, #ddf0e6);
  border-radius: var(--radius-lg); padding: 26px 30px; box-shadow: var(--shadow-sm);
}
.order-banner.banner-cancel { background: linear-gradient(135deg, #fdecec, #f9dddd); }
.order-banner-emoji { font-size: 44px; }
.order-banner h2 { margin: 0; font-size: 24px; }
.order-banner p { margin: 4px 0 0; color: #5d564d; font-size: 14px; }
.order-support {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  background: var(--surface); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.order-support-emoji { font-size: 26px; }
.order-support b { font-size: 14.5px; }
.order-support p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.order-item-company {
  margin-left: 8px; font-size: 11.5px; font-weight: 700; color: var(--primary-strong);
  background: var(--primary-soft); border-radius: 999px; padding: 2px 8px;
}
.order-card {
  background: var(--surface); border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow-sm); margin-top: 18px; display: grid; gap: 18px;
}
.order-meta { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line); }
.meta-label { display: inline-block; color: var(--muted); font-size: 12.5px; margin-right: 8px; }
.order-id { font-size: 16px; letter-spacing: 0.5px; }
.order-status {
  font-size: 12.5px; font-weight: 800; padding: 3px 12px; border-radius: 999px;
  background: #fff6e6; color: #d07a00;
}
.st-confirmed { background: #e8f0fe; color: #2f6bff; }
.st-shipped { background: #ece4fb; color: #7c4dff; }
.st-done { background: #e9f6ef; color: var(--green); }
.st-cancelled { background: #fdecec; color: var(--red); }
.order-items { display: grid; gap: 10px; }
.order-item {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  font-size: 14px; background: #fbf8f3; border-radius: 12px; padding: 11px 15px;
}
.order-item-name b { font-weight: 700; }
.order-item-id { color: var(--muted); font-size: 12px; margin-left: 8px; }
.order-item-nums { display: flex; gap: 14px; align-items: baseline; white-space: nowrap; }
.order-item-nums span { color: var(--muted); font-size: 13px; }
.order-amounts { display: grid; gap: 6px; font-size: 14px; padding: 12px 0; border-top: 1.5px dashed var(--line); }
.order-amounts > div { display: flex; justify-content: space-between; color: #5d564d; }
.amount-total { border-top: 1.5px dashed var(--line); padding-top: 10px; margin-top: 4px; font-size: 15px; }
.amount-total b { font-size: 24px; color: var(--primary-strong); }
.order-recv { display: grid; gap: 6px; font-size: 14px; background: #fbf8f3; border-radius: 12px; padding: 14px 16px; }
.order-actions { display: flex; justify-content: flex-end; }
.order-tip { margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.order-tip b { color: var(--text); }

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-emoji { font-size: 56px; margin-bottom: 8px; }
.empty-state h2 { margin: 0 0 6px; color: var(--text); }
.empty-state p { margin: 0 0 18px; }
.empty-line { color: var(--muted); padding: 24px 0; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: #f5f0e8; margin-top: 40px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 34px 20px; text-align: center; }
.footer-brand { font-weight: 800; font-size: 15px; }
.footer-note { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.footer-links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 13px; }
.footer-links a { color: #6b6259; font-weight: 600; }
.footer-links a:hover { color: var(--primary-strong); }
.footer-fine { color: #b3a999; font-size: 11.5px; margin-top: 12px; }
.footer-copy { color: #b3a999; font-size: 12px; margin-top: 8px; }

/* ---------- 管理后台 ---------- */
.admin-main { padding-bottom: 40px; }
.admin-header .brand-mark { background: linear-gradient(135deg, #4a4238, #2b2723); }
.login-card {
  max-width: 420px; margin: 56px auto 0; background: var(--surface);
  border-radius: var(--radius-lg); padding: 34px 34px 28px; box-shadow: var(--shadow);
}
.login-card h2 { margin: 0 0 6px; }
.login-hint { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.login-note { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.login-note a { color: var(--primary-strong); font-weight: 600; }
.code-input { letter-spacing: 8px; text-align: center; font-size: 22px; font-weight: 800; }
.logout-form { display: flex; }
.admin-logout {
  border: none; background: none; color: #6b6259; font-size: 13px; font-weight: 700;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.admin-logout:hover { background: var(--primary-soft); color: var(--primary-strong); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 24px; }
.stat-card {
  background: var(--surface); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start;
}
.stat-emoji { font-size: 30px; line-height: 1.2; }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 13px; color: #5d564d; font-weight: 700; margin-top: 2px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; align-items: start; }
.admin-panel { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.admin-panel h3 { margin: 0 0 12px; font-size: 16px; }
.mini-order {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 12px; border-radius: 10px; font-size: 13.5px;
}
.mini-order:hover { background: #fbf8f3; }
.mini-order span { color: var(--muted); font-size: 12.5px; text-align: right; }
.admin-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary-strong); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--surface); color: #6b6259; border: 1.5px solid var(--line);
}
.filter-chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.admin-table-wrap {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 900px; }
.admin-table th {
  text-align: left; font-size: 12px; color: var(--muted); letter-spacing: 1px;
  padding: 12px 14px; border-bottom: 1.5px solid var(--line); white-space: nowrap;
}
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .cell-dim { color: var(--muted); font-size: 12.5px; max-width: 260px; }
.admin-table .cell-product a { font-weight: 700; display: block; }
.admin-table .cell-product .cell-dim { display: block; }
.admin-table .cell-actions { white-space: nowrap; }
.admin-table .cell-actions .btn { margin-right: 6px; }
.row-low { background: #fffaf0; }
.toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.form-ok {
  background: #e9f6ef; color: var(--green); font-size: 13.5px; font-weight: 700;
  border-radius: 10px; padding: 9px 14px; margin: 0 0 14px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-inline { display: flex; gap: 22px; align-items: center; margin: 6px 0 16px; }
.check { display: flex; gap: 7px; align-items: center; font-size: 14px; font-weight: 600; }
.product-form { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); max-width: 860px; }
.kv { display: flex; gap: 12px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv span { color: var(--muted); font-size: 12.5px; min-width: 48px; }
.kv b { font-weight: 600; word-break: break-all; }
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }
.btn-danger { background: #fdecec; color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .login-card { margin-top: 24px; padding: 24px 20px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero-art { display: none; }
  .hero-copy h1 { font-size: 34px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rule-grid { grid-template-columns: 1fr; }
  .company-hero { padding: 26px 24px; }
  .detail { grid-template-columns: 1fr; gap: 22px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .order-summary { position: static; }
}
@media (max-width: 640px) {
  .header-inner { padding: 10px 14px; gap: 10px; }
  .brand-name { font-size: 14px; }
  .brand-sub { display: none; }
  .cart-btn span:not(.cart-count) { display: none; }
  .cart-btn { padding: 9px 12px; }
  .site-main { padding: 0 14px 48px; }
  .section-head h2 { font-size: 21px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-inner { padding: 28px 20px; }
  .cart-line { grid-template-columns: 56px 1fr auto; grid-template-rows: auto auto; row-gap: 8px; }
  .cart-thumb { width: 56px; height: 56px; font-size: 26px; }
  .cart-line-total { text-align: left; }
  .cart-remove { justify-self: end; }
  .detail-media.tile-emoji span { font-size: 110px; }
  .detail-actions .btn-lg { flex: 1; }
  .order-meta { gap: 12px; }
  .company-hero-head { flex-direction: column; gap: 12px; }
  .company-hero-mark { width: 58px; height: 58px; font-size: 30px; border-radius: 18px; }
  .company-hero-text h1 { font-size: 24px; }
  .company-strip { flex-wrap: wrap; }
  .company-strip-go { margin-left: 0; }
}
