/* ==========================================================================
   内蒙古职赏网络科技有限公司 —— 全站样式
   ========================================================================== */

:root {
  --brand: #0e6b5c;
  --brand-600: #0b5749;
  --brand-700: #08453a;
  --brand-50: #eef6f4;
  --brand-100: #dcebe7;
  --accent: #b8843a;
  --text: #1a2421;
  --text-2: #46534f;
  --muted: #7c8783;
  --line: #e2e9e7;
  --line-2: #eef2f1;
  --bg: #f6f8f7;
  --white: #ffffff;
  --danger: #b4472f;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 34, 0.05);
  --shadow: 0 4px 16px rgba(16, 40, 34, 0.07);
  --shadow-lg: 0 12px 32px rgba(16, 40, 34, 0.10);
  --max: 1200px;
}

* { box-sizing: border-box; }

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

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 10px; }
ul { margin: 0; padding-left: 20px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ----------------------------- 通用部件 ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14.5px; font-family: inherit; cursor: pointer; transition: all .18s ease;
  background: var(--white); color: var(--text-2); border-color: var(--line);
  white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #a3742f; border-color: #a3742f; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-mini {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-size: 13.5px;
}
.btn-mini:hover { background: var(--brand-600); color: #fff; }

.tag {
  display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px;
  background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100);
  line-height: 1.7;
}
.tag-accent { background: #fdf5e9; color: var(--accent); border-color: #f3e3c9; }
.tag-plain { background: #f2f4f3; color: var(--text-2); border-color: var(--line); }

.breadcrumb {
  max-width: var(--max); margin: 0 auto; padding: 18px 20px 0;
  font-size: 13.5px; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span.sep { margin: 0 7px; color: #c3ccc9; }

/* ----------------------------- 头部 ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 72px; display: flex; align-items: center; gap: 26px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { display: flex; align-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 19px; color: var(--text); letter-spacing: .5px; }
.logo-text em { font-size: 11.5px; color: var(--muted); font-style: normal; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 15px; color: var(--text-2);
  transition: all .16s ease;
}
.main-nav a:hover { background: var(--brand-50); color: var(--brand); }
.main-nav a.active { color: var(--brand); font-weight: 600; background: var(--brand-50); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.cart-link {
  position: relative; display: flex; align-items: center; gap: 7px;
  color: var(--text-2); font-size: 14.5px; padding: 6px 10px; border-radius: var(--radius-sm);
}
.cart-link:hover { background: var(--brand-50); color: var(--brand); }
.cart-badge {
  position: absolute; top: -4px; left: 18px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--danger); color: #fff; border-radius: 9px; font-size: 11px;
  line-height: 18px; text-align: center; font-style: normal;
}
.cart-badge.hide { display: none; }
.cart-text { display: inline; }

.auth-links { display: flex; align-items: center; gap: 14px; font-size: 14.5px; }
.auth-links > a:first-child { color: var(--text-2); }

.user-menu { display: flex; align-items: center; gap: 14px; }
.user-name { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14.5px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.link-quiet { color: var(--muted); font-size: 13.5px; }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 36px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer; padding: 8px 9px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text-2); border-radius: 2px; }

/* ----------------------------- 首页 Hero ----------------------------- */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f2f7f5 100%);
  border-bottom: 1px solid var(--line);
  padding: 58px 0 62px;
}
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hero h1 { font-size: 34px; letter-spacing: .5px; color: var(--text); }
.hero .hero-sub { font-size: 16px; color: var(--text-2); margin-top: 14px; max-width: 720px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; font-size: 14px; color: var(--text-2); }
.hero-points span { display: flex; align-items: center; gap: 7px; }
.hero-points span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ----------------------------- 模块入口 ----------------------------- */
.module-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: -34px; position: relative; z-index: 2; }
.module-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); transition: all .2s ease;
  display: block; color: inherit;
}
.module-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.module-card .mc-icon { width: 42px; height: 42px; margin-bottom: 16px; }
.module-card h3 { font-size: 21px; color: var(--text); }
.module-card p { color: var(--text-2); font-size: 14.2px; margin: 10px 0 18px; }
.module-card .mc-more { color: var(--brand); font-size: 14.5px; font-weight: 600; }
.module-stats { display: flex; gap: 26px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.module-stats div { font-size: 13px; color: var(--muted); }
.module-stats div b { display: block; font-size: 20px; color: var(--brand); font-weight: 600; }

/* ----------------------------- 区块 ----------------------------- */
.section { padding: 54px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 25px; letter-spacing: .3px; }
.section-head .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.section-head .more { font-size: 14.5px; color: var(--brand); font-weight: 500; }

/* ----------------------------- 商品卡片 ----------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: all .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); border-color: var(--brand-100); }
.pc-cover { position: relative; aspect-ratio: 1 / 1; background: #f2f4f3; overflow: hidden; display: block; }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .pc-cover img { transform: scale(1.04); }
.pc-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.pc-shop { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pc-name { font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.45; display: block; }
.pc-name:hover { color: var(--brand); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.pc-price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; }
.pc-price { font-size: 20px; font-weight: 600; color: var(--danger); }
.pc-price span { font-size: 13px; font-weight: 500; }
.pc-origin { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.pc-meta { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.pc-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }

/* ----------------------------- 信息卡片 ----------------------------- */
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; gap: 18px; transition: all .2s ease;
}
.info-card:hover { box-shadow: var(--shadow); border-color: var(--brand-100); }
.ic-thumb { width: 132px; height: 132px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: #f2f4f3; }
.ic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ic-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ic-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ic-title { font-size: 16px; font-weight: 600; color: var(--text); display: block; line-height: 1.5; }
.ic-title:hover { color: var(--brand); }
.ic-time { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.ic-summary {
  font-size: 13.8px; color: var(--text-2); margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ic-foot { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); margin-top: auto; flex-wrap: wrap; }
.ic-foot b { color: var(--text-2); font-weight: 600; }
.phone-mask { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; color: var(--text-2); }

/* ----------------------------- 筛选条 ----------------------------- */
.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 22px; display: flex; gap: 18px; align-items: center;
  flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-group > label { font-size: 13.5px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 5px 14px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); font-size: 13.5px; cursor: pointer;
  font-family: inherit; transition: all .16s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.search-box { margin-left: auto; display: flex; gap: 8px; }
.search-box input {
  width: 240px; padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: #fbfcfc;
}
.search-box input:focus { outline: none; border-color: var(--brand); background: #fff; }

.result-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* ----------------------------- 空状态 ----------------------------- */
.empty {
  text-align: center; padding: 70px 20px; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty h3 { color: var(--text-2); font-size: 17px; margin-bottom: 8px; }

/* ----------------------------- 商品详情 ----------------------------- */
.pd-wrap { display: grid; grid-template-columns: 480px 1fr; gap: 40px; padding: 34px 0 10px; }
.gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; aspect-ratio: 1 / 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: #f2f4f3; padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--brand); }

.pd-info h1 { font-size: 25px; line-height: 1.45; }
.pd-shopline { margin-top: 12px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-price-box {
  background: linear-gradient(135deg, #fff8f4 0%, #fdf3f0 100%);
  border: 1px solid #f2e2dc; border-radius: var(--radius); padding: 18px 22px; margin: 20px 0;
}
.pd-price { font-size: 34px; font-weight: 600; color: var(--danger); line-height: 1.2; }
.pd-price span { font-size: 18px; }
.pd-price-box .origin { color: var(--muted); font-size: 13.5px; margin-left: 12px; text-decoration: line-through; }
.pd-price-box .save { margin-left: 12px; }
.pd-price-box .stat { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; gap: 22px; }

.spec-table { border-top: 1px solid var(--line-2); margin-top: 6px; }
.spec-row { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.spec-row dt { width: 96px; flex-shrink: 0; color: var(--muted); margin: 0; }
.spec-row dd { margin: 0; color: var(--text-2); flex: 1; }

.buy-row { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty-box button {
  width: 38px; height: 42px; border: none; background: #fff; cursor: pointer;
  font-size: 18px; color: var(--text-2); font-family: inherit;
}
.qty-box button:hover { background: var(--brand-50); color: var(--brand); }
.qty-box input {
  width: 54px; height: 42px; border: none; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); text-align: center; font-size: 15px; font-family: inherit;
}
.qty-box input:focus { outline: none; }

.service-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); }
.service-strip span { display: flex; align-items: center; gap: 6px; }
.service-strip span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.detail-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; margin: 34px 0 0; }
.detail-block h2 { font-size: 19px; margin-bottom: 18px; padding-left: 12px; border-left: 3px solid var(--brand); line-height: 1.2; }
.detail-block p { color: var(--text-2); font-size: 14.5px; }

/* ----------------------------- 购物车 ----------------------------- */
.cart-table { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.cart-table th { background: #fafbfb; font-size: 13.5px; color: var(--muted); font-weight: 500; text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-prod { display: flex; gap: 14px; align-items: center; }
.cart-prod img { width: 74px; height: 74px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-prod .nm { font-weight: 600; color: var(--text); }
.cart-prod .sp { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cart-summary {
  margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cart-summary .total { font-size: 15px; color: var(--text-2); }
.cart-summary .total b { font-size: 27px; color: var(--danger); font-weight: 600; margin-left: 8px; }
.link-del { color: var(--muted); font-size: 13.5px; background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.link-del:hover { color: var(--danger); }

/* ----------------------------- 信息详情 ----------------------------- */
.detail-layout { display: grid; grid-template-columns: 1fr 336px; gap: 30px; padding: 26px 0 40px; align-items: start; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; }
.article h1 { font-size: 24px; line-height: 1.5; margin-bottom: 16px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.article-body { margin-top: 22px; }
.article-body p { font-size: 15px; color: var(--text-2); margin: 0 0 12px; }
.article-body p.h { font-weight: 600; color: var(--text); margin: 22px 0 8px; }
.article-figure { margin: 22px 0 6px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-figure img { width: 100%; max-height: 460px; object-fit: cover; }
.disclaimer { margin-top: 26px; padding: 14px 18px; background: #fafbfb; border-left: 3px solid var(--line); font-size: 13px; color: var(--muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 92px; }
.contact-card h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.contact-row { font-size: 14px; color: var(--text-2); margin-bottom: 12px; display: flex; gap: 10px; }
.contact-row label { color: var(--muted); width: 72px; flex-shrink: 0; }
.contact-row .val { flex: 1; word-break: break-all; }
.phone-full { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; color: var(--brand); font-weight: 600; letter-spacing: .5px; }
.phone-lock {
  margin-top: 6px; background: var(--brand-50); border: 1px dashed var(--brand-100);
  border-radius: var(--radius-sm); padding: 14px; text-align: center; font-size: 13.5px; color: var(--text-2);
}
.phone-lock .masked { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; color: var(--text); letter-spacing: 1px; display: block; margin-bottom: 10px; }
.contact-tip { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.65; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.side-card h3 { font-size: 15.5px; margin-bottom: 14px; }
.side-list a { display: block; font-size: 14px; color: var(--text-2); padding: 9px 0; border-bottom: 1px dashed var(--line-2); line-height: 1.55; }
.side-list a:last-child { border-bottom: none; }
.side-list a:hover { color: var(--brand); }

/* ----------------------------- 表单 ----------------------------- */
.form-page { max-width: 520px; margin: 0 auto; padding: 44px 20px 60px; }
.form-page.wide { max-width: 880px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; box-shadow: var(--shadow-sm); }
.form-card > h1 { font-size: 23px; margin-bottom: 8px; }
.form-card > .form-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field > label .req { color: var(--danger); margin-left: 3px; }
.field input[type="text"], .field input[type="password"], .field input[type="tel"],
.field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: inherit; color: var(--text); background: #fbfcfc; transition: all .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(14, 107, 92, .08); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-err { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--danger); background: #fefaf9; }
.field.has-err .field-err { display: block; }

.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; line-height: 1.6; }
.check-row input[type="checkbox"] { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.check-row label { cursor: pointer; }

.form-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.divider-text { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12.5px; margin: 24px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 图片选择器 */
.img-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.img-pick {
  border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; padding: 0; background: #f2f4f3; aspect-ratio: 4 / 3;
}
.img-pick img { width: 100%; height: 100%; object-fit: cover; }
.img-pick.active { border-color: var(--brand); }

/* ----------------------------- 表格 / 列表页 ----------------------------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 22px; }
.panel h2 { font-size: 18px; margin-bottom: 18px; padding-left: 12px; border-left: 3px solid var(--brand); line-height: 1.2; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-size: 13.5px; color: var(--muted); font-weight: 500; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); color: var(--text-2); }
.data-table tr:last-child td { border-bottom: none; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  background: none; border: none; padding: 11px 18px; font-size: 15px; color: var(--text-2);
  cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--brand); }
.tabs button.active { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }

/* ----------------------------- 公司信息 ----------------------------- */
.company-hero { background: linear-gradient(180deg, #fff 0%, #f2f7f5 100%); border-bottom: 1px solid var(--line); padding: 46px 0; }
.company-hero h1 { font-size: 30px; }
.company-hero p { color: var(--text-2); margin-top: 12px; max-width: 820px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table th, .info-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.info-table th { width: 168px; color: var(--muted); font-weight: 500; background: #fafbfb; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.prose h2 { font-size: 19px; margin: 30px 0 14px; padding-left: 12px; border-left: 3px solid var(--brand); line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); font-size: 14.8px; }

/* ----------------------------- 提示 ----------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 46px; transform: translate(-50%, 16px);
  background: #1f2c28; color: #fff; padding: 12px 24px; border-radius: 24px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 999;
  box-shadow: var(--shadow-lg); max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: #8d3a29; }

.notice {
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-sm);
  padding: 13px 18px; font-size: 13.5px; color: var(--text-2); margin-bottom: 22px;
}
.notice strong { color: var(--brand); }

.success-panel { text-align: center; padding: 60px 30px; }
.success-panel .ok-mark {
  width: 62px; height: 62px; border-radius: 50%; background: var(--brand-50); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 30px;
}
.success-panel h1 { font-size: 23px; margin-bottom: 12px; }
.success-panel p { color: var(--text-2); }
.success-panel .acts { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ----------------------------- 底部 ----------------------------- */
.site-footer { background: #14201d; color: #a9b6b2; margin-top: 10px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 52px 20px 34px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.7fr; gap: 34px;
}
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: #a9b6b2; font-size: 13.8px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-logo { color: #fff; font-size: 20px; font-weight: 600; letter-spacing: 1px; margin-bottom: 14px; }
.footer-desc { font-size: 13.2px; line-height: 1.85; color: #8e9c98; }
.footer-contact p { font-size: 13.2px; line-height: 1.9; color: #8e9c98; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  max-width: var(--max); margin: 0 auto; padding: 20px;
  display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: #7d8b87;
  align-items: center;
}
.footer-bottom a, .footer-bottom a.icp { color: #7d8b87; transition: color .16s ease; }
.footer-bottom a:hover, .footer-bottom a.icp:hover { color: #fff; text-decoration: underline; }

/* ----------------------------- 响应式 ----------------------------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-wrap { grid-template-columns: 1fr; gap: 30px; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .header-inner { height: 64px; gap: 14px; }
  .logo-text em { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 12px 14px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .header-right { margin-left: 0; gap: 10px; }
  .cart-text { display: none; }
  .user-menu { gap: 10px; }
  .user-text { display: none; }
  .module-cards { grid-template-columns: 1fr; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .info-list { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 27px; }
  .section { padding: 42px 0; }
  .article { padding: 26px 22px; }
  .form-card { padding: 26px 22px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--line-2); padding: 14px 0; }
  .cart-table td { border: none; padding: 6px 16px; }
  .cart-table td::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
  .field-row { grid-template-columns: 1fr; }
  .img-picker { grid-template-columns: repeat(3, 1fr); }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { flex: 1; width: auto; }
}

@media (max-width: 560px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; }
  .info-card { flex-direction: column; gap: 14px; }
  .ic-thumb { width: 100%; height: 180px; }
  .info-table th { width: 110px; }
  .footer-inner { grid-template-columns: 1fr; }
  .img-picker { grid-template-columns: repeat(2, 1fr); }
}
