/* ============================================================
   七号星联官网 全局样式
   配色：明亮橙(#FF6A00) + 蓝(#1677FF)
   ============================================================ */
:root {
  --primary: #FF6A00;
  --primary-dark: #E85D00;
  --primary-light: #FFF1E6;
  --blue: #1677FF;
  --blue-dark: #0E5FD8;
  --blue-light: #E8F1FF;
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --text: #1F2733;
  --text-2: #5A6472;
  --text-3: #8A94A6;
  --border: #E4E9F0;
  --success: #2BA471;
  --success-light: #E7F7F0;
  --warn: #FA8C16;
  --warn-light: #FFF4E5;
  --danger: #F5222D;
  --danger-light: #FDECEC;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 10px rgba(23, 43, 77, .06);
  --shadow-hover: 0 8px 24px rgba(23, 43, 77, .12);
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }

.container { width: 1200px; max-width: 96%; margin: 0 auto; }
.text-orange { color: var(--primary); }
.text-blue { color: var(--blue); }
.text-red { color: var(--danger); }
.text-green { color: var(--success); }
.text-gray { color: var(--text-3); }
.text-bold { font-weight: 700; }
.price { color: var(--primary); font-weight: 700; }
.price::before { content: "¥"; font-size: .85em; margin-right: 1px; }

/* ============ 顶部信息条 ============ */
.topbar {
  background: linear-gradient(90deg, #0B3C8C, #1677FF 55%, #FF6A00);
  color: #fff;
  font-size: 12.5px;
  height: 34px;
  line-height: 34px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar .tb-right span { margin-left: 18px; }

/* ============ 主导航 ============ */
.main-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-header .container { display: flex; align-items: center; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; margin-right: 34px; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #FF9A3D);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; font-style: italic;
  box-shadow: 0 4px 12px rgba(255, 106, 0, .35);
}
.logo-text { line-height: 1.15; }
.logo-text b { font-size: 20px; color: var(--text); letter-spacing: 1px; }
.logo-text span { display: block; font-size: 11px; color: var(--text-3); letter-spacing: 3px; }
.main-nav { display: flex; gap: 4px; flex: 1; align-items: center; }
.main-nav a {
  color: var(--text-2); font-size: 15px; padding: 8px 16px; border-radius: 8px;
  transition: all .2s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a.active { color: var(--primary); font-weight: 700; background: var(--primary-light); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav-cart {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue); padding: 7px 16px; border-radius: 20px;
  font-weight: 600; font-size: 13.5px;
}
.btn-nav-cart:hover { background: #D8E9FF; color: var(--blue-dark); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  background: var(--primary); color: #fff; border-radius: 9px; font-size: 11px;
  line-height: 18px; text-align: center; padding: 0 5px; font-weight: 700;
}
.header-user { font-size: 13.5px; }
.header-user .uname { color: var(--blue); font-weight: 600; }
.header-user a { color: var(--text-2); }
.header-user a:hover { color: var(--primary); }
.header-user .sep { color: var(--border); margin: 0 6px; }

/* ============ 页脚 ============ */
.main-footer { background: #0F2C55; color: #B8C6DB; margin-top: 48px; font-size: 13px; }
.footer-main { padding: 40px 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-main h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-main p, .footer-main a { color: #B8C6DB; line-height: 2; }
.footer-main a:hover { color: #fff; }
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 1px; margin-bottom: 10px; }
.footer-logo i { color: var(--primary); font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 16px 0; text-align: center; color: #93A4BF; font-size: 12.5px;
}
.footer-bottom a { color: #93A4BF; margin: 0 6px; }
.footer-bottom a:hover { color: #fff; }

/* ============ 通用区块 ============ */
.page-body { min-height: 60vh; padding-bottom: 30px; }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title::before {
  content: ""; width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--blue));
}
.section-title small { font-size: 13px; color: var(--text-3); font-weight: 400; }
.section-more { font-size: 13.5px; color: var(--text-2); }
.section-more:hover { color: var(--primary); }

.card {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid #EEF2F7;
}
.card-pad { padding: 22px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: all .2s; white-space: nowrap; line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #FF8C2E); color: #fff; box-shadow: 0 4px 14px rgba(255, 106, 0, .3); }
.btn-primary:hover { color: #fff; box-shadow: 0 6px 18px rgba(255, 106, 0, .4); }
.btn-blue { background: linear-gradient(135deg, var(--blue), #3E9BFF); color: #fff; box-shadow: 0 4px 14px rgba(22, 119, 255, .28); }
.btn-blue:hover { color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-blue { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-lg { padding: 12px 34px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ============ 标签徽章 ============ */
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 5px; font-size: 12px; font-weight: 600;
}
.tag-orange { background: var(--primary-light); color: var(--primary); }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-green { background: var(--success-light); color: var(--success); }
.tag-red { background: var(--danger-light); color: var(--danger); }
.tag-gray { background: #F0F3F7; color: var(--text-2); }

/* ============ 首页 Hero ============ */
.hero {
  position: relative; border-radius: 16px; overflow: hidden; margin-top: 18px;
  background: linear-gradient(120deg, #0B3C8C, #1677FF 40%, #FF6A00 130%);
  min-height: 340px; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 60, 140, .55) 0%, rgba(11, 60, 140, .18) 55%, rgba(255, 106, 0, .08) 100%); }
.hero-content { position: relative; z-index: 2; padding: 46px 50px; max-width: 560px; color: #fff; }
.hero-content h1 { font-size: 34px; line-height: 1.3; margin-bottom: 12px; }
.hero-content p { font-size: 15px; opacity: .94; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; }
.hero-search {
  position: relative; z-index: 2; margin-top: 26px; width: 100%; max-width: 620px;
}
.hero-search .search-box { display: flex; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 8px 28px rgba(8, 35, 80, .25); }
.hero-search input { flex: 1; border: none; padding: 14px 22px; font-size: 14.5px; }
.hero-search button { background: linear-gradient(135deg, var(--primary), #FF8C2E); color: #fff; border: none; padding: 0 30px; font-size: 15px; font-weight: 700; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  background: #fff; border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid #EEF2F7; transition: all .25s; display: block; color: var(--text);
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--primary); }
.quick-icon {
  width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #fff;
}
.quick-card h3 { font-size: 16px; margin-bottom: 4px; }
.quick-card p { font-size: 12.5px; color: var(--text-3); }

/* 数据条 */
.stat-band {
  background: linear-gradient(120deg, #0B3C8C, #1677FF); border-radius: 16px; padding: 30px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; color: #fff; margin-top: 18px;
}
.stat-item { text-align: center; }
.stat-item b { display: block; font-size: 30px; line-height: 1.2; }
.stat-item span { font-size: 13px; opacity: .88; }

/* ============ 信息/商品卡片 ============ */
.item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #EEF2F7;
  box-shadow: var(--shadow); transition: all .25s; display: block; color: var(--text);
}
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--text); }
.item-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #F2F5F9; }
.item-body { padding: 12px 14px 14px; }
.item-title {
  font-size: 14px; font-weight: 600; line-height: 1.4; height: 2.8em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.item-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.item-price { color: var(--primary); font-weight: 800; font-size: 17px; }
.item-price::before { content: "¥"; font-size: .8em; }
.item-date { font-size: 12px; color: var(--text-3); }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-3); }
.item-publisher { display: flex; align-items: center; gap: 6px; min-width: 0; }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), #7FB8FF); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.item-publisher span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sales { color: var(--text-3); font-size: 12px; }

/* 商品卡片 */
.product-card .item-img { aspect-ratio: 1/1; }
.product-card .merchant-line { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; justify-content: space-between; }
.brand-tag { position: absolute; top: 8px; left: 8px; background: rgba(255, 106, 0, .92); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; z-index: 2; }
.img-wrap { position: relative; }

/* ============ 分类页 ============ */
.filter-bar {
  background: #fff; border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow);
  border: 1px solid #EEF2F7; margin-bottom: 18px;
}
.filter-row { display: flex; align-items: flex-start; margin-bottom: 10px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { width: 84px; color: var(--text-3); font-size: 13.5px; padding-top: 7px; flex-shrink: 0; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip {
  padding: 5px 14px; border-radius: 16px; background: #F2F5F9; color: var(--text-2);
  font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: all .2s; user-select: none;
}
.chip:hover { color: var(--blue); }
.chip.active { background: var(--blue); color: #fff; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.list-toolbar .total { color: var(--text-2); font-size: 13.5px; }
.sort-links a { margin-left: 14px; color: var(--text-2); font-size: 13.5px; }
.sort-links a.active { color: var(--primary); font-weight: 700; }

/* 分类信息列表（横向条） */
.classified-item {
  display: flex; gap: 16px; background: #fff; border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow); border: 1px solid #EEF2F7; margin-bottom: 12px; transition: all .2s;
}
.classified-item:hover { box-shadow: var(--shadow-hover); }
.classified-item .ci-img { width: 150px; height: 150px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #F2F5F9; }
.ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ci-title { font-size: 16px; font-weight: 700; color: var(--text); }
.ci-title a:hover { color: var(--primary); }
.ci-desc { font-size: 13px; color: var(--text-2); margin-top: 5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.ci-price { color: var(--primary); font-weight: 800; font-size: 20px; }
.ci-price::before { content: "¥"; font-size: .8em; }
.ci-info { font-size: 12.5px; color: var(--text-3); text-align: right; }
.ci-info div { margin-top: 2px; }
.ci-phone { color: var(--blue); font-weight: 600; letter-spacing: 1px; }

/* ============ 分页 ============ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span.pg-num {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; background: #fff;
  border: 1px solid var(--border); color: var(--text-2); display: inline-flex;
  align-items: center; justify-content: center; font-size: 13.5px; transition: all .2s;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .pg-num.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pagination .pg-prev.disabled, .pagination .pg-next.disabled { opacity: .45; cursor: not-allowed; }
.pagination .pg-info { margin-left: 10px; color: var(--text-3); font-size: 13px; }

/* ============ 详情页 ============ */
.detail-wrap { display: grid; grid-template-columns: 460px 1fr; gap: 24px; margin-top: 18px; }
.detail-gallery { background: #fff; border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow); border: 1px solid #EEF2F7; align-self: start; }
.gallery-main { width: 100%; aspect-ratio: 1/1; border-radius: 10px; object-fit: cover; background: #F2F5F9; display: block; cursor: zoom-in; }
.gallery-main-wrap { position: relative; cursor: zoom-in; }
.gallery-main-wrap:hover .gallery-zoom-hint { opacity: 1; }
.gallery-zoom-hint {
  position: absolute; right: 10px; bottom: 10px; background: rgba(15, 44, 85, .78); color: #fff;
  font-size: 12px; padding: 5px 10px; border-radius: 20px; pointer-events: none; opacity: 0; transition: opacity .2s;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--blue); }
.detail-info { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid #EEF2F7; }
.detail-title { font-size: 22px; font-weight: 800; line-height: 1.4; }
.detail-tags { margin: 10px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.detail-price-box { background: linear-gradient(90deg, var(--primary-light), #FFF8F1); border-radius: 10px; padding: 14px 18px; margin: 14px 0; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.detail-price { font-size: 30px; color: var(--primary); font-weight: 900; }
.detail-price::before { content: "¥"; font-size: .6em; margin-right: 2px; }
.detail-price-origin { color: var(--text-3); text-decoration: line-through; font-size: 14px; }
.detail-price-note { font-size: 12.5px; color: var(--text-2); }
.detail-spec-list { margin-top: 12px; }
.detail-spec-list li { display: flex; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.detail-spec-list li:last-child { border-bottom: none; }
.detail-spec-list .k { width: 110px; color: var(--text-3); flex-shrink: 0; }
.detail-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.detail-section { margin-top: 24px; }
.detail-section h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.detail-section h3::before { content: ""; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }
.detail-desc { background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); border: 1px solid #EEF2F7; }
.detail-desc p { font-size: 14px; color: var(--text-2); line-height: 2; margin-bottom: 8px; }

/* 发布人卡片 */
.publisher-card { display: flex; align-items: center; gap: 14px; }
.publisher-card .avatar-lg { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #FF9A3D); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.publisher-info { flex: 1; min-width: 0; }
.publisher-info .pname { font-size: 16px; font-weight: 700; }
.publisher-info .pcompany { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.publisher-info .pphone { font-size: 13px; margin-top: 4px; }
.phone-masked { color: var(--blue); font-weight: 700; letter-spacing: 1.5px; font-size: 15px; }
.phone-full { color: var(--success); font-weight: 800; letter-spacing: 1.5px; font-size: 16px; }

/* ============ Tabs ============ */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 18px; }
.tab-item {
  padding: 10px 22px; font-size: 15px; color: var(--text-2); border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; font-weight: 600; transition: all .2s;
}
.tab-item:hover { color: var(--blue); }
.tab-item.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: #F7F9FC; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.table-fixed { table-layout: fixed; }
.table-fixed col:nth-child(1) { width: 30%; }
.table-fixed col:nth-child(2) { width: 25%; }
.table-fixed col:nth-child(3) { width: 25%; }
.table-fixed col:nth-child(4) { width: 20%; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { appearance: auto; }
.form-tip { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }
.form-error.show { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.form-check input { margin-top: 3px; }

/* 图片选择与预览（input 覆盖整个选择区，原生点击即可打开文件选择） */
.img-picker { position: relative; border: 2px dashed var(--border); border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; transition: all .2s; overflow: hidden; }
.img-picker input[type=file] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.img-picker:hover { border-color: var(--blue); background: var(--blue-light); }
.img-picker p { color: var(--text-3); font-size: 13px; margin-top: 6px; pointer-events: none; }
.img-preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.img-preview-item { position: relative; width: 90px; height: 90px; }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.img-preview-item .del {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 12px; line-height: 22px; text-align: center; cursor: pointer;
}

/* ============ 模态框 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 30, 60, .55); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(8, 35, 80, .3); animation: modalIn .25s ease;
  max-height: 88vh; overflow: auto;
}
@keyframes modalIn { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { padding: 18px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 17px; font-weight: 800; }
.modal-close { width: 30px; height: 30px; border-radius: 50%; background: #F2F5F9; color: var(--text-2); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body { padding: 16px 22px 22px; }
.modal-foot { padding: 0 22px 22px; display: flex; gap: 12px; justify-content: flex-end; }

/* ============ 大图预览（Lightbox） ============ */
.lightbox { position: fixed; inset: 0; z-index: 1500; display: none; }
.lightbox.show { display: block; }
.lightbox-mask { position: absolute; inset: 0; background: rgba(8, 20, 45, .86); }
.lightbox-body { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox-body img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); background: #fff; cursor: zoom-out; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.lightbox-close:hover { background: var(--danger); }
.lightbox-tip { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 13px; }

/* ============ Toast ============ */
#toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast-item {
  background: rgba(15, 30, 60, .92); color: #fff; padding: 11px 22px; border-radius: 24px;
  font-size: 14px; box-shadow: 0 8px 24px rgba(8, 35, 80, .25); animation: toastIn .25s ease; max-width: 80vw;
}
.toast-item.success { background: rgba(24, 130, 88, .95); }
.toast-item.error { background: rgba(224, 50, 60, .95); }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============ 面包屑 ============ */
.breadcrumb { font-size: 13px; color: var(--text-3); padding: 16px 0 2px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* ============ 登录注册 ============ */
.auth-page { display: flex; justify-content: center; padding: 40px 0 60px; background: linear-gradient(160deg, #EAF2FF 0%, var(--bg) 45%); }
.auth-card { width: 440px; max-width: 96%; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(23, 43, 77, .1); padding: 34px 36px; }
.auth-card .auth-title { font-size: 24px; font-weight: 800; text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--text-3); font-size: 13px; margin: 6px 0 24px; }
.auth-tabs { display: flex; background: #F2F5F9; border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tabs .at { flex: 1; text-align: center; padding: 9px 0; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .2s; }
.auth-tabs .at.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(23, 43, 77, .08); }
.test-account {
  background: var(--blue-light); border: 1px dashed var(--blue); border-radius: 10px; padding: 12px 14px;
  font-size: 12.5px; color: var(--text-2); margin-bottom: 18px; line-height: 1.9;
}
.test-account b { color: var(--blue); }
.test-account .fill { color: var(--blue); cursor: pointer; font-weight: 700; margin-left: 4px; }
.test-account .fill:hover { text-decoration: underline; }

/* ============ 时间轴（审核/入驻流程） ============ */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--primary)); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 26px 10px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.tl-item.done::before { background: var(--blue); }
.tl-item .tl-title { font-size: 15.5px; font-weight: 700; }
.tl-item .tl-desc { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.tl-item .tl-time { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ============ 收费页面 ============ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid #EEF2F7; padding: 28px 26px; text-align: center; position: relative; overflow: hidden; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(255, 106, 0, .15); }
.price-card .pc-name { font-size: 17px; font-weight: 800; }
.price-card .pc-fee { font-size: 40px; font-weight: 900; color: var(--primary); margin: 14px 0 4px; }
.price-card .pc-fee span { font-size: 14px; font-weight: 400; color: var(--text-2); }
.price-card .pc-unit { color: var(--text-3); font-size: 13px; margin-bottom: 16px; }
.price-card ul { text-align: left; margin-top: 10px; }
.price-card ul li { font-size: 13.5px; color: var(--text-2); padding: 7px 0 7px 24px; position: relative; border-bottom: 1px dashed var(--border); }
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.price-badge { position: absolute; top: 14px; right: -30px; background: var(--primary); color: #fff; font-size: 12px; padding: 4px 34px; transform: rotate(45deg); }

/* ============ 商城布局 ============ */
.mall-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.mall-side { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid #EEF2F7; padding: 14px 0; position: sticky; top: 84px; }
.side-group-title { font-size: 13px; color: var(--text-3); padding: 12px 18px 6px; font-weight: 600; }
.side-item { display: block; padding: 8px 18px 8px 30px; font-size: 13.5px; color: var(--text-2); border-left: 3px solid transparent; transition: all .15s; }
.side-item:hover { color: var(--blue); background: var(--blue-light); }
.side-item.active { color: var(--blue); border-left-color: var(--blue); background: var(--blue-light); font-weight: 700; }

/* 购物车 */
.cart-table { width: 100%; }
.cart-table th { background: #F7F9FC; padding: 12px 14px; font-size: 13px; color: var(--text-2); text-align: left; }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cart-product .cp-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cart-product .cp-name:hover { color: var(--primary); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-stepper button { width: 28px; height: 30px; font-size: 15px; color: var(--text-2); background: #F7F9FC; }
.qty-stepper button:hover { color: var(--primary); }
.qty-stepper input { width: 44px; height: 30px; border: none; text-align: center; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 13.5px; }
.cart-summary {
  display: flex; align-items: center; justify-content: flex-end; gap: 20px; background: #fff;
  border-radius: var(--radius-lg); padding: 18px 24px; box-shadow: var(--shadow); margin-top: 16px; border: 1px solid #EEF2F7;
}
.cart-summary .total-price { font-size: 26px; font-weight: 900; color: var(--primary); }
.cart-empty { text-align: center; padding: 70px 20px; color: var(--text-3); }
.cart-empty .big-icon { font-size: 60px; margin-bottom: 12px; opacity: .5; }

/* 商家卡片 */
.merchant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.merchant-card { display: flex; gap: 16px; background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); border: 1px solid #EEF2F7; transition: all .25s; }
.merchant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.merchant-logo {
  width: 76px; height: 76px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), #6FB0FF); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900;
}
.merchant-logo.g2 { background: linear-gradient(135deg, var(--primary), #FF9A3D); }
.merchant-logo.g3 { background: linear-gradient(135deg, #13B88B, #67DDBB); }
.merchant-logo.g4 { background: linear-gradient(135deg, #7C5CFF, #B49BFF); }
.merchant-body { flex: 1; min-width: 0; }
.merchant-name { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.merchant-meta { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.merchant-intro { font-size: 13px; color: var(--text-2); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.merchant-foot { margin-top: 10px; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-2); }
.stars { color: #FFB400; letter-spacing: 1px; }

/* ============ 商家入驻页 ============ */
.onboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.onboard-aside .card { margin-bottom: 16px; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state .es-icon { font-size: 52px; margin-bottom: 10px; opacity: .45; }
.empty-state p { margin-bottom: 16px; }

/* 加载中 */
.loading-tip { text-align: center; padding: 40px; color: var(--text-3); font-size: 14px; }
.spinner {
  display: inline-block; width: 22px; height: 22px; border: 3px solid var(--border);
  border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -5px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 右侧浮动客服 */
.float-bar { position: fixed; right: 18px; bottom: 90px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.float-bar a {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(23, 43, 77, .15);
  display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 15px; font-weight: 800;
}
.float-bar a:hover { background: var(--blue); color: #fff; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .item-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-gallery { max-width: 460px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .onboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-header .container { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .main-nav a { padding: 6px 10px; font-size: 13.5px; flex-shrink: 0; }
  .logo { margin-right: 12px; }
  .hero-content { padding: 30px 24px; }
  .hero-content h1 { font-size: 24px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .classified-item { flex-direction: column; }
  .classified-item .ci-img { width: 100%; height: 200px; }
  .price-grid { grid-template-columns: 1fr; }
  .mall-layout { grid-template-columns: 1fr; }
  .mall-side { position: static; }
  .merchant-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .tb-right span { margin-left: 10px; }
  .footer-main { grid-template-columns: 1fr; }
  .cart-table { font-size: 12.5px; }
  .cart-product img { width: 48px; height: 48px; }
}
