/* =========================================================
 *  云集商城 · 全局样式
 * ========================================================= */

:root {
  --brand: #ff4d4f;
  --brand-dark: #e63539;
  --brand-light: #fff1f0;
  --brand-soft: #ffe7e6;
  --orange: #ff7a45;
  --gold: #faad14;

  --text-1: #1f2329;
  --text-2: #4e5969;
  --text-3: #86909c;
  --text-4: #c9cdd4;

  --bg-page: #f5f6f8;
  --bg-card: #ffffff;
  --bg-hover: #fafafa;
  --line: #eaeaec;
  --line-strong: #dcdfe6;

  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --radius-xl: 22px;

  --shadow-s: 0 1px 3px rgba(20, 24, 34, .06);
  --shadow: 0 4px 16px rgba(20, 24, 34, .08);
  --shadow-l: 0 12px 36px rgba(20, 24, 34, .12);

  --header-h: 68px;
  --max-w: 1240px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-1);
  background: var(--bg-page);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 防止意外横向溢出撑出横向滚动（clip 不产生滚动容器，不影响 sticky 头部） */
html, body { overflow-x: clip; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d6d8dc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bfc2c7; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局容器 ---------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部公告条 ---------------- */
.topbar {
  background: linear-gradient(90deg, #2b2f38, #3b414d);
  color: #e8eaed;
  font-size: 12.5px;
}
.topbar .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 7px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar .left { display: flex; align-items: center; gap: 8px; }
.topbar .right { display: flex; align-items: center; gap: 18px; color: #b9bdc4; }
.topbar .right span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- 头部 ---------------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 26px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  display: grid; place-items: center;
  color: #fff; font-size: 19px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 77, 79, .28);
}
.logo .name { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.logo .slogan { font-size: 11px; color: var(--text-3); letter-spacing: 1.5px; margin-top: -4px; }

/* 搜索框 */
.search-wrap { flex: 1; max-width: 560px; position: relative; }
.search-box {
  display: flex; align-items: center;
  border: 2px solid var(--brand);
  border-radius: 999px; overflow: hidden;
  background: #fff; transition: box-shadow .2s var(--ease);
}
.search-box:focus-within { box-shadow: 0 0 0 4px rgba(255, 77, 79, .1); }
.search-box .ico { padding: 0 6px 0 16px; color: var(--text-3); display: grid; place-items: center; }
.search-box input {
  flex: 1; border: none; padding: 10px 8px; background: transparent; font-size: 14px;
}
.search-box input::placeholder { color: var(--text-4); }
.search-box .btn-search {
  padding: 0 24px; align-self: stretch;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 1px;
  transition: filter .2s var(--ease);
}
.search-box .btn-search:hover { filter: brightness(1.06); }

/* 搜索建议 */
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-l);
  border: 1px solid var(--line); padding: 6px; z-index: 300;
  max-height: 340px; overflow-y: auto;
}
.suggest .grp-title {
  font-size: 11.5px; color: var(--text-3); padding: 8px 12px 4px; letter-spacing: .5px;
}
.suggest .item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-s); cursor: pointer; font-size: 13.5px;
}
.suggest .item:hover { background: var(--brand-light); }
.suggest .item .thumb {
  width: 34px; height: 34px; border-radius: 6px; object-fit: cover; background: #f2f3f5; flex-shrink: 0;
}
.suggest .item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .item .pr { color: var(--brand); font-weight: 700; font-size: 13px; }
.suggest .kw-tag {
  display: inline-block; padding: 4px 12px; margin: 2px; border-radius: 999px;
  background: #f2f3f5; font-size: 12.5px; cursor: pointer; color: var(--text-2);
}
.suggest .kw-tag:hover { background: var(--brand-soft); color: var(--brand); }

/* 头部右侧动作 */
.head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.head-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 12px; border-radius: var(--radius); position: relative;
  color: var(--text-2); transition: all .18s var(--ease); min-width: 58px;
}
.head-btn:hover { background: var(--brand-light); color: var(--brand); }
.head-btn .ic { font-size: 18px; line-height: 1; position: relative; }
.head-btn .tx { font-size: 11.5px; white-space: nowrap; }
.head-btn .badge {
  position: absolute; top: -5px; right: -8px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
  border: 2px solid #fff;
}
.head-btn.highlight { color: var(--brand); }

/* 用户下拉 */
.user-menu-wrap { position: relative; }
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 230px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-l);
  border: 1px solid var(--line); overflow: hidden; z-index: 300;
}
.user-menu .um-head {
  padding: 14px 16px; display: flex; align-items: center; gap: 11px;
  background: linear-gradient(135deg, #fff5f5, #fff9f0);
}
.user-menu .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.user-menu .um-name { font-weight: 600; font-size: 14px; }
.user-menu .um-sub { font-size: 11.5px; color: var(--text-3); }
.user-menu .um-list { padding: 6px; }
.user-menu .um-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-s); font-size: 13.5px; cursor: pointer; color: var(--text-2);
  transition: all .16s var(--ease);
}
.user-menu .um-item:hover { background: var(--brand-light); color: var(--brand); }
.user-menu .um-item .ic { font-size: 15px; width: 18px; text-align: center; }
.user-menu .um-foot { border-top: 1px solid var(--line); padding: 6px; }

/* ---------------- 分类导航 ---------------- */
.navbar { background: #fff; border-bottom: 1px solid var(--line); }
.navbar .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.navbar .inner::-webkit-scrollbar { display: none; }
.nav-item {
  padding: 13px 15px; font-size: 14px; color: var(--text-2); white-space: nowrap;
  position: relative; transition: color .18s var(--ease); cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.nav-item:hover { color: var(--brand); }
.nav-item.active { color: var(--brand); font-weight: 600; }
.nav-item.active::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--brand), var(--orange));
}

/* ---------------- 主要区域 ---------------- */
.main { padding: 22px 0 60px; }
.page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------------- 横幅 ---------------- */
.hero {
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  background: linear-gradient(120deg, #fff1f0 0%, #fff7e6 55%, #f0f9ff 100%);
  padding: 44px 48px; margin-bottom: 26px;
  border: 1px solid #ffe8e6;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.hero::before {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 69, .18), transparent 68%);
  right: -60px; top: -110px;
}
.hero::after {
  content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 79, .13), transparent 70%);
  right: 180px; bottom: -140px;
}
.hero .h-txt { position: relative; z-index: 2; }
.hero .h-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 77, 79, .1); color: var(--brand);
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { font-size: 34px; line-height: 1.28; letter-spacing: -.5px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-2); margin-top: 12px; font-size: 14.5px; max-width: 460px; }
.hero .h-btns { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .h-stats {
  position: relative; z-index: 2; display: flex; gap: 34px; flex-shrink: 0;
}
.hero .h-stat { text-align: center; }
.hero .h-stat b {
  display: block; font-size: 27px; font-weight: 800;
  background: linear-gradient(120deg, var(--brand), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .h-stat span { font-size: 12.5px; color: var(--text-3); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .2s var(--ease); white-space: nowrap; border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--orange)); color: #fff;
  box-shadow: 0 4px 14px rgba(255, 77, 79, .3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(255, 77, 79, .38); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--text-1); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn-plain { background: #f2f3f5; color: var(--text-2); }
.btn-plain:hover { background: #e8e9eb; color: var(--text-1); }
.btn-lg { padding: 13px 34px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------------- 区块标题 ---------------- */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.sec-title .bar {
  width: 4px; height: 19px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--orange));
}
.sec-title .cnt { font-size: 13px; font-weight: 400; color: var(--text-3); }
.sec-more { font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sec-more:hover { color: var(--brand); }

/* ---------------- 工具条 ---------------- */
.toolbar {
  background: #fff; border-radius: var(--radius); padding: 14px 18px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 16px; border: 1px solid var(--line);
}
.tool-group { display: flex; align-items: center; gap: 9px; }
.tool-label { font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.chip {
  padding: 5px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: #f5f6f8; color: var(--text-2); transition: all .18s var(--ease);
  border: 1px solid transparent;
}
.chip:hover { color: var(--brand); background: var(--brand-light); }
.chip.active { background: var(--brand-light); color: var(--brand); font-weight: 600; border-color: #ffccc9; }
.chip.chip-ghost { background: transparent; border-color: var(--line-strong); }
.chip.chip-ghost.active { background: var(--brand-light); border-color: #ffccc9; }

.sort-group { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.sort-item {
  padding: 6px 13px; border-radius: var(--radius-s); font-size: 13px; color: var(--text-2);
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all .18s var(--ease);
}
.sort-item:hover { color: var(--brand); background: var(--brand-light); }
.sort-item.active { color: var(--brand); font-weight: 600; background: var(--brand-light); }

/* ---------------- 商品网格 ---------------- */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer; position: relative;
  transition: all .24s var(--ease); display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: #ffd9d8;
}
.card .thumb {
  position: relative; aspect-ratio: 1; overflow: hidden; background: #fafbfc;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .thumb img { transform: scale(1.07); }
.card .badges {
  position: absolute; top: 9px; left: 9px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}
.cbadge {
  padding: 2.5px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; color: #fff;
  backdrop-filter: blur(2px);
}
.cbadge.hot { background: linear-gradient(135deg, #ff4d4f, #ff7a45); }
.cbadge.new { background: linear-gradient(135deg, #52c41a, #73d13d); }
.cbadge.off { background: linear-gradient(135deg, #722ed1, #9254de); }
.cbadge.low { background: linear-gradient(135deg, #fa8c16, #ffa940); }

.card .fav {
  position: absolute; top: 9px; right: 9px; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(255, 255, 255, .9); backdrop-filter: blur(4px);
  display: grid; place-items: center; font-size: 14px; color: var(--text-3);
  opacity: 0; transform: scale(.85); transition: all .2s var(--ease);
}
.card:hover .fav { opacity: 1; transform: scale(1); }
.card .fav:hover { color: var(--brand); background: #fff; }
.card .fav.on { opacity: 1; transform: scale(1); color: var(--brand); }

.card .body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.card .pname {
  font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.card:hover .pname { color: var(--brand); }
.card .tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; min-height: 20px; }
.card .tag {
  font-size: 11px; padding: 1.5px 7px; border-radius: 4px;
  color: var(--brand); background: var(--brand-light); border: 1px solid #ffe0de;
}
.card .meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--text-3); }
.card .stars { color: var(--gold); letter-spacing: -.5px; }
.card .price-row {
  margin-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.card .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card .price .cur { font-size: 13px; font-weight: 700; color: var(--brand); }
.card .price .num { font-size: 21px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.5px; }
.card .price .old { font-size: 12px; color: var(--text-4); text-decoration: line-through; }
.card .add-btn {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--orange)); color: #fff;
  display: grid; place-items: center; font-size: 17px; font-weight: 300;
  box-shadow: 0 3px 10px rgba(255, 77, 79, .3);
  transition: all .2s var(--ease);
}
.card .add-btn:hover { transform: scale(1.12) rotate(90deg); }
.card .add-btn:disabled { background: #d9d9d9; box-shadow: none; cursor: not-allowed; }
.card .stock-bar {
  margin-top: 9px; height: 4px; border-radius: 3px; background: #f2f3f5; overflow: hidden;
}
.card .stock-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--orange));
}

/* ---------------- 商品详情 ---------------- */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); margin-bottom: 16px; flex-wrap: wrap; }
.crumb a { cursor: pointer; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--text-4); }
.crumb .cur { color: var(--text-1); }

.detail {
  background: #fff; border-radius: var(--radius-l); padding: 26px;
  display: grid; grid-template-columns: 400px 1fr; gap: 34px;
  border: 1px solid var(--line); margin-bottom: 20px;
}
.detail .gallery { position: relative; }
.detail .main-img {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #fafbfc;
  border: 1px solid var(--line);
}
.detail .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail .thumbs { display: flex; gap: 9px; margin-top: 11px; }
.detail .thumbs .t {
  width: 62px; height: 62px; border-radius: var(--radius-s); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: #fafbfc;
}
.detail .thumbs .t.active { border-color: var(--brand); }
.detail .thumbs .t img { width: 100%; height: 100%; object-fit: cover; }

.detail .info h1 { font-size: 22px; line-height: 1.42; font-weight: 600; }
.detail .sub { color: var(--text-3); font-size: 13px; margin-top: 8px; }
.detail .brand-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.detail .brand-line .b {
  font-size: 12px; padding: 3px 10px; border-radius: 5px;
  background: #f2f3f5; color: var(--text-2);
}
.price-panel {
  margin: 18px 0; padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(120deg, #fff5f5, #fffaf0);
  border: 1px solid #ffe6e4;
}
.price-panel .now { display: flex; align-items: baseline; gap: 10px; }
.price-panel .now .cur { font-size: 15px; font-weight: 700; color: var(--brand); }
.price-panel .now .num { font-size: 36px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -1px; }
.price-panel .now .old { font-size: 14px; color: var(--text-4); text-decoration: line-through; }
.price-panel .disc {
  display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 5px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle;
}
.price-panel .stats {
  display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 14px; padding-top: 13px;
  border-top: 1px dashed #ffd9d5; font-size: 13px; color: var(--text-3);
}
.price-panel .stats b { color: var(--text-1); font-weight: 600; }

.spec-block { margin-bottom: 16px; }
.spec-block .lb { font-size: 13px; color: var(--text-3); margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.spec-block .lb .pick { color: var(--text-1); font-weight: 600; }
.spec-opts { display: flex; gap: 9px; flex-wrap: wrap; }
.spec-opt {
  padding: 8px 17px; border-radius: var(--radius-s); font-size: 13.5px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text-2);
  transition: all .18s var(--ease); position: relative;
}
.spec-opt:hover { border-color: var(--brand); color: var(--brand); }
.spec-opt.active {
  border-color: var(--brand); color: var(--brand); font-weight: 600;
  background: var(--brand-light);
}
.spec-opt.active::after {
  content: '✓'; position: absolute; right: -1px; bottom: -1px;
  background: var(--brand); color: #fff; font-size: 9px;
  width: 15px; height: 15px; display: grid; place-items: center;
  border-radius: 7px 0 5px 0;
}

.qty-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.qty-box {
  display: flex; align-items: center; border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); overflow: hidden;
}
.qty-box button {
  width: 34px; height: 36px; font-size: 17px; color: var(--text-2);
  background: #fafbfc; transition: all .16s var(--ease);
}
.qty-box button:hover:not(:disabled) { background: var(--brand-light); color: var(--brand); }
.qty-box button:disabled { color: var(--text-4); cursor: not-allowed; }
.qty-box input {
  width: 52px; height: 36px; text-align: center; border: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.qty-limit { font-size: 12.5px; color: var(--text-3); }

.buy-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.buy-row .btn { min-width: 148px; }

.detail-extra { display: flex; gap: 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.detail-extra .it { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.detail-extra .it .ic { color: var(--brand); font-size: 15px; }

/* 详情 Tabs */
.tabs {
  background: #fff; border-radius: var(--radius-l); border: 1px solid var(--line); overflow: hidden;
}
.tabs .tab-head { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.tabs .tab-head::-webkit-scrollbar { display: none; }
.tabs .tab {
  padding: 15px 22px; font-size: 14.5px; color: var(--text-2); cursor: pointer;
  position: relative; transition: color .18s var(--ease); white-space: nowrap; flex-shrink: 0;
}
.tabs .tab:hover { color: var(--brand); }
.tabs .tab.active { color: var(--brand); font-weight: 600; }
.tabs .tab.active::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2.5px;
  background: linear-gradient(90deg, var(--brand), var(--orange)); border-radius: 3px;
}
.tabs .tab-body { padding: 24px 26px; }
.tabs .desc-text { font-size: 14.5px; line-height: 2; color: var(--text-2); }
.tabs .desc-text p { margin-bottom: 12px; }
.param-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.param-table tr { border-bottom: 1px solid var(--line); }
.param-table tr:last-child { border-bottom: none; }
.param-table td { padding: 12px 8px; }
.param-table td:first-child { color: var(--text-3); width: 130px; }

.review { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 13px; }
.review:last-child { border-bottom: none; }
.review .av {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffd6d4, #ffe0c2); color: var(--brand); font-weight: 700; font-size: 14px;
}
.review .rv-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.review .rv-head .nm { font-weight: 600; }
.review .rv-head .tm { color: var(--text-3); font-size: 12px; }
.review .rv-txt { font-size: 13.5px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }

/* ---------------- 购物车 ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.panel {
  background: #fff; border-radius: var(--radius-l); border: 1px solid var(--line); overflow: hidden;
}
.panel-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.panel-head .tt { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.panel-head .tt .n { font-size: 13px; font-weight: 400; color: var(--text-3); }
.panel-body { padding: 6px 20px 18px; }

.cart-item {
  display: grid; grid-template-columns: 26px 92px minmax(0,1fr) 118px 116px 92px 46px;
  gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .chk { display: grid; place-items: center; }
.cart-item .ci-img {
  width: 92px; height: 92px; border-radius: var(--radius-s); overflow: hidden;
  background: #fafbfc; border: 1px solid var(--line); cursor: pointer;
}
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-info { min-width: 0; }
.cart-item .ci-name {
  font-size: 14px; font-weight: 500; line-height: 1.45; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-item .ci-name:hover { color: var(--brand); }
.cart-item .ci-spec {
  font-size: 12px; color: var(--text-3); margin-top: 6px;
  background: #f7f8fa; display: inline-block; padding: 3px 9px; border-radius: 5px;
}
.cart-item .ci-tags { margin-top: 6px; display: flex; gap: 6px; }
.cart-item .ci-tags .t {
  font-size: 11px; color: var(--brand); background: var(--brand-light);
  padding: 1px 7px; border-radius: 4px;
}
.cart-item .ci-price { font-size: 14px; font-weight: 600; }
.cart-item .ci-sub { font-size: 16px; font-weight: 800; color: var(--brand); }
.cart-item .ci-del { color: var(--text-3); font-size: 13px; cursor: pointer; text-align: center; }
.cart-item .ci-del:hover { color: var(--brand); }

.checkbox {
  width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; cursor: pointer; transition: all .18s var(--ease);
  background: #fff; flex-shrink: 0;
}
.checkbox:hover { border-color: var(--brand); }
.checkbox.on { background: var(--brand); border-color: var(--brand); }
.checkbox.on::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }

/* 结算汇总 */
.summary { position: sticky; top: calc(var(--header-h) + 20px); }

/* 订单详情两栏 / 地址网格（响应式） */
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(258px, 100%), 1fr)); gap: 12px; }
.summary .sm-body { padding: 18px 20px; }
.sum-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--text-2); padding: 8px 0;
}
.sum-row .v { font-weight: 600; color: var(--text-1); }
.sum-row .v.free { color: #52c41a; }
.sum-row.total {
  border-top: 1px dashed var(--line-strong); margin-top: 10px; padding-top: 16px;
  align-items: baseline;
}
.sum-row.total .lb { font-size: 14px; color: var(--text-1); font-weight: 600; }
.sum-row.total .v { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }
.summary .btn-block { margin-top: 16px; }
.summary .sm-tip {
  margin-top: 12px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.7;
}

/* 空状态 */
.empty { padding: 70px 20px; text-align: center; }
.empty .ic { font-size: 62px; line-height: 1; opacity: .35; margin-bottom: 16px; }
.empty .tt { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.empty .sb { font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; }

/* ---------------- 结算页 ---------------- */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 10px; }
.step .dot {
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: #e8e9eb; color: var(--text-3);
  transition: all .25s var(--ease); flex-shrink: 0;
}
.step .tx { font-size: 13.5px; color: var(--text-3); }
.step.done .dot { background: #52c41a; color: #fff; }
.step.done .tx { color: var(--text-2); }
.step.on .dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(255, 77, 79, .13); }
.step.on .tx { color: var(--brand); font-weight: 600; }
.step .line { width: 66px; height: 1.5px; background: var(--line-strong); margin: 0 14px; }

.addr-card {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; transition: all .2s var(--ease); position: relative; background: #fff;
}
.addr-card:hover { border-color: #ffb3b0; }
.addr-card.on { border-color: var(--brand); background: var(--brand-light); }
.addr-card.on::after {
  content: '✓'; position: absolute; top: 0; right: 0;
  background: var(--brand); color: #fff; font-size: 10px;
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 0 var(--radius) 0 var(--radius);
}
.addr-card .ac-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.addr-card .ac-name .df {
  font-size: 10.5px; padding: 1.5px 7px; border-radius: 4px;
  background: var(--brand); color: #fff; font-weight: 600;
}
.addr-card .ac-detail { font-size: 13px; color: var(--text-2); margin-top: 7px; line-height: 1.65; }
.addr-card .ac-ops { position: absolute; top: 12px; right: 14px; display: flex; gap: 10px; font-size: 12.5px; color: var(--text-3); z-index: 2; }
.addr-card .ac-ops span:hover { color: var(--brand); }
.addr-add {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 18px;
  text-align: center; cursor: pointer; color: var(--text-3); font-size: 13.5px;
  transition: all .2s var(--ease); display: grid; place-items: center; gap: 6px; min-height: 92px;
}
.addr-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.form-row label .req { color: var(--brand); margin-left: 3px; }
.input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); font-size: 14px; background: #fff;
  transition: all .18s var(--ease);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 77, 79, .1); }
.input::placeholder { color: var(--text-4); }
textarea.input { resize: vertical; min-height: 82px; line-height: 1.65; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-err { font-size: 12.5px; color: var(--brand); margin-top: 5px; display: none; }
.form-err.show { display: block; }

/* 订单商品行 */
.oitem { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.oitem:last-child { border-bottom: none; }
.oitem img { width: 68px; height: 68px; border-radius: var(--radius-s); object-fit: cover; background: #fafbfc; border: 1px solid var(--line); }
.oitem .oi-info { flex: 1; min-width: 0; }
.oitem .oi-name { font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.oitem .oi-spec { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.oitem .oi-right { text-align: right; flex-shrink: 0; }
.oitem .oi-price { font-size: 13.5px; color: var(--text-2); }
.oitem .oi-qty { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.oitem .oi-sub { font-size: 14.5px; font-weight: 700; color: var(--brand); margin-top: 5px; }

/* 支付方式 */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 12px; }
.pay-method {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 14px;
  cursor: pointer; text-align: center; transition: all .2s var(--ease); background: #fff;
}
.pay-method:hover { border-color: #ffb3b0; }
.pay-method.on { border-color: var(--brand); background: var(--brand-light); }
.pay-method .pm-ic { font-size: 25px; margin-bottom: 6px; }
.pay-method .pm-tx { font-size: 13px; font-weight: 500; }

/* ---------------- 订单列表 ---------------- */
.order-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  margin-bottom: 16px; overflow: hidden; transition: box-shadow .2s var(--ease);
}
.order-card:hover { box-shadow: var(--shadow-s); }
.order-card .oc-head {
  padding: 13px 20px; background: #fafbfc; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3);
}
.order-card .oc-head .no { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--text-2); word-break: break-all; }
.order-card .oc-head .st {
  margin-left: auto; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px;
}
.st.unpaid { color: var(--brand); background: var(--brand-light); }
.st.paid { color: #1677ff; background: #e6f4ff; }
.st.shipped { color: #fa8c16; background: #fff7e6; }
.st.done { color: #52c41a; background: #f6ffed; }
.st.canceled { color: var(--text-3); background: #f2f3f5; }
.order-card .oc-body { padding: 4px 20px; }
.order-card .oc-foot {
  padding: 14px 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
}
.order-card .oc-total { margin-right: auto; font-size: 13px; color: var(--text-2); }
.order-card .oc-total b { font-size: 19px; font-weight: 800; color: var(--brand); }

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(15, 18, 24, .48);
  backdrop-filter: blur(3px); z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto; animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

.modal {
  background: #fff; border-radius: var(--radius-l); width: 100%; max-width: 440px;
  max-height: 90vh; display: flex; flex-direction: column;
  animation: slideUp .28s var(--ease);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2); margin: auto;
}
.modal.wide { max-width: 580px; }
.modal-head {
  padding: 20px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex: none;
}
.modal-head h3 { font-size: 18px; font-weight: 700; }
.modal-head .sub { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-3); font-size: 17px; transition: all .18s var(--ease); flex-shrink: 0;
}
.modal-close:hover { background: #f2f3f5; color: var(--text-1); transform: rotate(90deg); }
.modal-body { padding: 20px 24px; overflow-y: auto; min-height: 0; flex: 1; }
.modal-foot {
  display: flex; gap: 12px; flex: none;
  padding: 14px 24px 20px; border-top: 1px solid var(--line);
}
.modal-foot .btn { flex: 1; }

/* 移动端弹窗：底部抽屉式 */
@media (max-width: 640px) {
  .mask { padding: 0; align-items: flex-end; }
  .modal { max-width: none; width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; margin: 0; }
  .modal-head { padding: 16px 16px 0; }
  .modal-body { padding: 16px 16px 16px; }
  .modal-foot { padding: 12px 16px 16px; }
  .tabs .tab-body { padding: 16px; }
}

/* 登录切换 */
.auth-tabs { display: flex; gap: 4px; background: #f5f6f8; padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.auth-tabs .at {
  flex: 1; padding: 9px; text-align: center; font-size: 14px; border-radius: 999px;
  cursor: pointer; color: var(--text-2); transition: all .2s var(--ease);
}
.auth-tabs .at.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--shadow-s); }

.demo-tip {
  margin-top: 16px; padding: 11px 14px; border-radius: var(--radius-s);
  background: #f0f9ff; border: 1px solid #d6ecff; font-size: 12.5px; color: #1677ff;
  line-height: 1.7;
}
.demo-tip b { font-family: ui-monospace, Consolas, monospace; }
.demo-tip .use {
  color: var(--brand); cursor: pointer; text-decoration: underline; margin-left: 4px; font-weight: 600;
}

/* Toast */
.toast-wrap {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 1200; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  padding: 11px 20px; border-radius: 999px; background: rgba(31, 35, 41, .93);
  color: #fff; font-size: 13.5px; box-shadow: var(--shadow-l);
  display: flex; align-items: center; gap: 9px; animation: slideUp .26s var(--ease);
  max-width: 90vw;
}
.toast.ok { background: linear-gradient(135deg, #52c41a, #389e0d); }
.toast.err { background: linear-gradient(135deg, #ff4d4f, #e63539); }
.toast.info { background: linear-gradient(135deg, #1677ff, #0958d9); }

/* 成功页 */
.success-box { text-align: center; padding: 46px 20px; }
.success-box .ic {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, #52c41a, #389e0d); color: #fff;
  display: grid; place-items: center; font-size: 38px;
  animation: pop .4s var(--ease); box-shadow: 0 8px 24px rgba(82, 196, 26, .3);
}
.success-box .tt { font-size: 21px; font-weight: 700; margin-bottom: 9px; }
.success-box .sb { font-size: 13.5px; color: var(--text-3); margin-bottom: 5px; }
.success-box .no {
  display: inline-block; margin: 14px 0 24px; padding: 8px 18px; border-radius: 999px;
  background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d;
  font-family: ui-monospace, Consolas, monospace; font-size: 13.5px;
}
.success-box .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 数量步进（小） */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-s); overflow: hidden; }
.stepper button { width: 28px; height: 30px; font-size: 15px; color: var(--text-2); background: #fafbfc; }
.stepper button:hover:not(:disabled) { background: var(--brand-light); color: var(--brand); }
.stepper button:disabled { color: var(--text-4); cursor: not-allowed; }
.stepper input { width: 42px; height: 30px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* 星级 */
.stars-lg { color: var(--gold); font-size: 14px; letter-spacing: 1px; }

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #f2f3f5 25%, #e9eaec 37%, #f2f3f5 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite;
  border-radius: var(--radius-s);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 页脚 */
.footer {
  background: #fff; border-top: 1px solid var(--line); margin-top: 30px; padding: 34px 0 26px;
}
.footer .f-top {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; border-bottom: 1px solid var(--line);
}
.footer .f-col h4 { font-size: 14px; margin-bottom: 12px; }
.footer .f-col p, .footer .f-col a {
  display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; cursor: pointer; line-height: 1.6;
}
.footer .f-col a:hover { color: var(--brand); }
.footer .f-bot {
  max-width: var(--max-w); margin: 0 auto; padding: 18px 20px 0;
  font-size: 12px; color: var(--text-4); text-align: center; line-height: 1.9;
}

/* 返回顶部 */
.to-top {
  position: fixed; right: 26px; bottom: 30px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 17px; color: var(--text-2);
  z-index: 500; transition: all .2s var(--ease);
}
.to-top:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-3px); }

/* 加载条 */
#loadingBar {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--orange));
  z-index: 2000; transition: width .25s var(--ease), opacity .3s var(--ease);
}

/* 隐藏 */
.hide { display: none !important; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .hero { flex-direction: column; align-items: flex-start; padding: 32px; }
  .hero .h-stats { align-self: stretch; justify-content: space-around; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .footer .f-top { grid-template-columns: repeat(2, 1fr); }
  .od-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .header .inner { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .head-actions { gap: 0; }
  .head-btn { min-width: 48px; padding: 6px 8px; }
  .head-btn .tx { font-size: 10.5px; }
  .hero h1 { font-size: 25px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card .price .num { font-size: 18px; }
  .cart-item {
    grid-template-columns: 24px 74px minmax(0, 1fr);
    grid-template-areas:
      "c i n"
      "c i n"
      "q m d";
    row-gap: 10px;
  }
  .cart-item .chk { grid-area: c; align-self: start; }
  .cart-item .ci-img { grid-area: i; width: 74px; height: 74px; }
  .cart-item .ci-info { grid-area: n; }
  .cart-item .ci-price { display: none; }
  .cart-item .ci-sub-wrap { grid-area: q; justify-self: start; }
  .cart-item .ci-sub { grid-area: m; justify-self: end; align-self: center; }
  .cart-item .ci-del { grid-area: d; justify-self: end; align-self: center; }
  .form-3col { grid-template-columns: 1fr; }
  .topbar .right { display: none; }
  .topbar .inner { padding: 7px 16px; }
  .topbar .left span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 76vw; display: inline-block; vertical-align: middle; }
  .search-box .btn-search { padding: 0 16px; letter-spacing: 0; }
  .steps .line { width: 24px; margin: 0 7px; }
  .order-card .oc-head { gap: 12px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .body { padding: 10px; }
  .card .pname { font-size: 13px; min-height: 37px; }
  .hero { padding: 24px 20px; }
  .hero .h-stats { gap: 18px; }
  .hero .h-stat b { font-size: 21px; }
  .form-2col { grid-template-columns: 1fr; }
  .footer .f-top { grid-template-columns: 1fr; }
  .detail { padding: 18px; }
  .buy-row .btn { flex: 1; min-width: 0; }
  .steps .step .tx { display: none; }
  .steps .dot { width: 24px; height: 24px; font-size: 12px; }
  .param-table td:first-child { width: 92px; }
}

/* ===== PC 端：内容区左右各留 10% 边距，不占满屏幕 ===== */
@media (min-width: 1081px) {
  /* 主内容区统一收窄（含首页通栏 hero/磁贴/网格） */
  .main {
    max-width: min(80%, var(--max-w));
    margin-left: auto;
    margin-right: auto;
  }
  /* 页面内部自带的 .page-wrap 不再二次收窄（宽度已由 .main 统一约束） */
  .main .page-wrap { max-width: none; padding: 0; margin: 0; }
  /* 顶栏/头部/导航/页脚内芯同步收窄对齐 */
  .container, .topbar .inner, .header .inner, .navbar .inner,
  .footer .f-top, .footer .f-bot {
    max-width: min(80%, var(--max-w));
  }
}
