/* 建元潮玩 — 静态平台站样式（自建，未使用第三方模板） */

:root {
  --brand: #00516f;
  --brand-dark: #003a50;
  --brand-light: #e6f0f4;
  --accent: #ff5c8a;
  --accent-dark: #e03e6d;
  --ink: #26333a;
  --ink-soft: #5c6b73;
  --ink-faint: #8b989f;
  --line: #e4e8eb;
  --bg: #f5f7f8;
  --card: #ffffff;
  --hero-a: #00344a;
  --hero-b: #00667f;
  --hero-c: #0f8a8f;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 51, 68, .07);
  --header-h: 118px;
}

html[data-theme="dark"] {
  --ink: #e2e9ec;
  --ink-soft: #a7b4bb;
  --ink-faint: #7e8b92;
  --line: #2a3a43;
  --bg: #0f1a20;
  --card: #17252d;
  --brand-light: #1c313c;
  --shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; transition: color .18s; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: var(--card);
  box-shadow: 0 1px 0 var(--line);
}

.topbar { background: var(--brand-dark); color: #dce9ee; font-size: 12px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar-info { display: flex; align-items: center; gap: 18px; }
.topbar-info span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.topbar-links { display: flex; align-items: center; gap: 14px; }
.topbar a:hover { color: #fff; }
.topbar-sep { color: rgba(255, 255, 255, .25); }

.header-main { display: flex; align-items: center; height: 74px; gap: 26px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(140deg, var(--brand) 0%, var(--hero-c) 100%);
  color: #fff; font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 21px; font-weight: 800; letter-spacing: .5px; color: var(--ink); }
.logo-sub { font-size: 11px; color: var(--ink-faint); letter-spacing: 1.6px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav a {
  padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { background: var(--brand-light); color: var(--brand); }
.nav a.active { background: var(--brand); color: #fff; }
.nav a.active:hover { color: #fff; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-ghost, .btn-solid {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  padding: 7px 15px; border-radius: 20px; font-size: 13px;
}
.btn-solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  padding: calc(var(--header-h) + 52px) 0 62px;
  background:
    radial-gradient(1100px 380px at 78% 8%, rgba(255, 92, 138, .28), transparent 62%),
    radial-gradient(760px 320px at 12% 92%, rgba(15, 138, 143, .4), transparent 60%),
    linear-gradient(125deg, var(--hero-a) 0%, var(--hero-b) 52%, var(--hero-c) 100%);
  color: #fff;
}
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-kicker {
  display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  letter-spacing: 1px; margin-bottom: 16px;
}
.hero h1 { font-size: 40px; letter-spacing: 2px; margin-bottom: 10px; }
.hero-sub { font-size: 16px; color: rgba(255, 255, 255, .85); margin-bottom: 26px; }

.hero-search { display: flex; max-width: 620px; margin: 0 auto; position: relative; }
.hero-search input {
  flex: 1; height: 50px; border: 0; border-radius: 25px 0 0 25px; padding: 0 20px;
  font-size: 15px; outline: none; color: #23343c; background: #fff;
}
.hero-search button {
  width: 116px; border: 0; border-radius: 0 25px 25px 0; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: 2px;
}
.hero-search button:hover { background: var(--accent-dark); }

.suggest {
  position: absolute; top: 54px; left: 0; right: 0; background: var(--card); color: var(--ink);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); overflow: hidden;
  text-align: left; display: none; z-index: 5;
}
.suggest.on { display: block; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; font-size: 13px; }
.suggest a:hover { background: var(--brand-light); }
.suggest .s-cat { color: var(--ink-faint); font-size: 12px; flex: none; }
.suggest .s-empty { padding: 12px 16px; color: var(--ink-faint); font-size: 13px; }

.hot-words { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.hot-words a { color: #fff; margin-right: 14px; border-bottom: 1px dotted rgba(255, 255, 255, .5); }
.hot-words a:hover { color: var(--accent); border-color: var(--accent); }

.hero-note {
  margin: 26px auto 0; max-width: 780px; font-size: 12px; line-height: 1.85;
  color: rgba(255, 255, 255, .74);
  border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px;
}

.hero-cats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

.hero-cat {
  display: flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: 30px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .26);
  font-size: 14px; backdrop-filter: blur(2px);
}
.hero-cat:hover { background: #fff; color: var(--brand); }
.hero-cat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- section shell ---------- */
.main-wrap { padding: 30px 0 44px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }

.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
}
.panel-title { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.panel-title::before {
  content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--accent); flex: none;
}
.panel-more { font-size: 13px; color: var(--ink-faint); flex: none; }
.panel-more:hover { color: var(--accent); }
.panel-body { padding: 20px; }

/* ---------- notice ---------- */
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 13px; }
.notice-tag {
  flex: none; background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 9px; font-size: 12px;
}
.notice-list { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-list a { margin-right: 26px; color: var(--ink-soft); }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card {
  display: block; padding: 18px 14px; border-radius: var(--radius); text-align: center;
  background: var(--card); box-shadow: var(--shadow); border-top: 3px solid var(--brand);
}
.cat-card:nth-child(2) { border-top-color: var(--accent); }
.cat-card:nth-child(3) { border-top-color: #f0a92c; }
.cat-card:nth-child(4) { border-top-color: #7c5cd6; }
.cat-card:nth-child(5) { border-top-color: #16a085; }
.cat-card .cat-ico {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 14px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.cat-card h3 { font-size: 16px; margin-bottom: 4px; }
.cat-card p { font-size: 12px; color: var(--ink-faint); }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 51, 68, .13); }
.cat-card:hover h3 { color: var(--brand); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pcard:hover { box-shadow: 0 8px 22px rgba(0, 51, 68, .12); border-color: #cfdbe0; transform: translateY(-2px); }
.pcard .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--brand-light); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .badge {
  position: absolute; top: 9px; left: 9px; font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: var(--accent); color: #fff;
}
.pcard .badge.pre { background: #f0a92c; }
.pcard .badge.custom { background: #7c5cd6; }
.pcard .info { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard h4 { font-size: 14px; line-height: 1.5; height: 2.9em; overflow: hidden; }
.pcard:hover h4 { color: var(--brand); }
.pcard .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-faint); margin-top: auto; }
.pcard .price { color: var(--accent); font-size: 17px; font-weight: 700; }
.pcard .price small { font-size: 12px; font-weight: 400; }
.tag-line { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line);
  border-radius: 3px; padding: 1px 6px;
}

/* ---------- list stream ---------- */
.post { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.post:last-child { border-bottom: 0; }
.post .postimg { flex: none; width: 216px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--brand-light); }
.post .postimg img { width: 100%; height: 100%; object-fit: cover; }
.post .pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post h3 { font-size: 17px; }
.post h3 a:hover { color: var(--brand); }
.post .intro { color: var(--ink-soft); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .pmeta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-faint); margin-top: auto; flex-wrap: wrap; }
.post .pmeta .price { color: var(--accent); font-weight: 700; font-size: 15px; margin-left: auto; }
.chip {
  font-size: 11px; padding: 1px 7px; border-radius: 3px; background: var(--brand-light); color: var(--brand);
}

/* ---------- pagination ---------- */
.pagebar { display: flex; justify-content: center; gap: 7px; padding: 20px 0 4px; flex-wrap: wrap; }
.pagebar a, .pagebar span {
  min-width: 34px; height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--card);
}
.pagebar a:hover { border-color: var(--brand); color: var(--brand); }
.pagebar .cur { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- sidebar ---------- */
.side-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.side-head { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.side-head::before { content: ""; width: 3px; height: 14px; background: var(--brand); border-radius: 2px; }
.side-list { padding: 8px 16px 14px; }
.side-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list .rank {
  flex: none; width: 19px; height: 19px; border-radius: 4px; background: var(--bg); color: var(--ink-faint);
  font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 3px;
}
.side-list li:nth-child(-n+3) .rank { background: var(--accent); color: #fff; }
.side-list a.t { display: block; font-size: 13px; line-height: 1.55; }
.side-list .s-meta { font-size: 11px; color: var(--ink-faint); }
.side-cta { padding: 18px 16px; text-align: center; }
.side-cta p { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.side-cta .btn-solid { display: inline-block; padding: 9px 22px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.stat-row div { background: var(--card); padding: 14px 8px; text-align: center; }
.stat-row b { display: block; font-size: 19px; color: var(--brand); }
.stat-row span { font-size: 12px; color: var(--ink-faint); }

/* ---------- friend links ---------- */
.friendlink { padding: 16px 20px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.friendlink .fl-t { color: var(--ink-faint); flex: none; }

/* ---------- footer ---------- */
.site-footer { background: #0b2b38; color: #9fb6c0; margin-top: 20px; font-size: 13px; }
html[data-theme="dark"] .site-footer { background: #071b24; }
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 150px; gap: 30px; padding: 40px 0 30px; }
.footer-brand .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .f-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(140deg, #0f8a8f, #ff5c8a); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.footer-brand .f-name { font-size: 18px; font-weight: 700; color: #fff; }
.footer-desc { line-height: 1.9; margin-bottom: 14px; }
.footer-contact li { display: flex; gap: 8px; padding: 3px 0; }
.footer-contact .ic { flex: none; opacity: .75; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col li { padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-qr { text-align: center; }
.footer-qr img { width: 108px; margin: 0 auto 8px; border-radius: 6px; background: #fff; padding: 4px; }
.footer-qr p { font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0 22px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; text-align: center; font-size: 12px; color: #7d97a3; }
.footer-bottom a { color: #9fb6c0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- edgebar ---------- */
.edgebar { position: fixed; right: 14px; bottom: 90px; z-index: 88; display: flex; flex-direction: column; gap: 8px; }
.edgebar a, .edgebar button {
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; gap: 1px; box-shadow: var(--shadow);
}
.edgebar .e-ico { font-size: 16px; }
.edgebar a:hover, .edgebar button:hover { color: var(--brand); border-color: var(--brand); }
#toTop { display: none; }
#toTop.on { display: flex; }

/* ---------- inner page ---------- */
.crumb { font-size: 13px; color: var(--ink-faint); padding: calc(var(--header-h) + 18px) 0 0; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { margin: 0 7px; }
.page-hero {
  padding: 24px 0 22px;
}
.page-hero h1 { font-size: 26px; margin-bottom: 6px; }
.page-hero p { color: var(--ink-soft); max-width: 760px; }
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; }
.cat-tabs a { padding: 6px 15px; border-radius: 20px; border: 1px solid var(--line); font-size: 13px; background: var(--card); }
.cat-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.cat-tabs a.on:hover { color: #fff; }
.filter-bar { display: flex; gap: 18px; font-size: 13px; align-items: center; flex-wrap: wrap; }
.filter-bar .f-lab { color: var(--ink-faint); }
.filter-bar a { padding: 2px 8px; border-radius: 4px; }
.filter-bar a.on { background: var(--brand-light); color: var(--brand); font-weight: 600; }

/* ---------- detail ---------- */
.detail-top { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 28px; }
.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--brand-light); }
.detail-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-info h1 { font-size: 24px; line-height: 1.45; margin-bottom: 12px; }
.price-box { background: linear-gradient(100deg, #fff3f6, var(--brand-light)); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
html[data-theme="dark"] .price-box { background: linear-gradient(100deg, #2a1f28, var(--brand-light)); }
.price-box .p-now { font-size: 30px; font-weight: 800; color: var(--accent); }
.price-box .p-unit { font-size: 13px; color: var(--ink-soft); margin-left: 6px; }
.price-box .p-note { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec-table th { width: 96px; color: var(--ink-faint); font-weight: 400; }
.detail-actions { display: flex; gap: 12px; margin: 18px 0 4px; flex-wrap: wrap; }
.detail-actions .btn-lg { padding: 11px 30px; border-radius: 24px; font-size: 15px; border: 0; }
.detail-actions .primary { background: var(--accent); color: #fff; }
.detail-actions .primary:hover { background: var(--accent-dark); }
.detail-actions .second { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.detail-actions .second:hover { background: var(--brand); color: #fff; }
.prose { font-size: 14px; color: var(--ink-soft); }
.prose h3 { font-size: 16px; color: var(--ink); margin: 20px 0 8px; }
.prose p { margin-bottom: 11px; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 11px; }
.prose li { margin-bottom: 5px; }
.prose .notice-box { background: var(--brand-light); border-left: 3px solid var(--brand); padding: 12px 15px; border-radius: 0 6px 6px 0; font-size: 13px; color: var(--ink-soft); }
.seller { display: flex; align-items: center; gap: 12px; }
.seller .s-logo { width: 46px; height: 46px; border-radius: 10px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.seller b { font-size: 15px; color: var(--ink); }
.seller .s-sub { font-size: 12px; color: var(--ink-faint); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- forms / misc ---------- */
.field { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--ink-faint); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; font-size: 14px;
  background: var(--bg); color: var(--ink); font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--card); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-cell { text-align: center; padding: 22px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-cell .c-ico { font-size: 26px; margin-bottom: 8px; }
.contact-cell b { display: block; margin-bottom: 3px; }
.contact-cell span { font-size: 13px; color: var(--ink-soft); }
.empty-tip { padding: 40px 20px; text-align: center; color: var(--ink-faint); }
.search-hit { background: #ffe9a8; border-radius: 2px; color: #7a5200; padding: 0 1px; }
.result-count { font-size: 13px; color: var(--ink-faint); }
.result-count b { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-qr { grid-column: span 3; }
  .detail-top { grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .grid, .rel-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .edgebar { right: 8px; bottom: 70px; }
  .edgebar a, .edgebar button { width: 42px; height: 42px; font-size: 10px; }
  .detail-top { grid-template-columns: 1fr; }
  .detail-cover { max-width: 420px; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .topbar { display: none; }
  .header-main { height: 62px; gap: 10px; }
  .logo-name { font-size: 17px; }
  .logo-sub { display: none; }
  .menu-toggle {
    display: flex; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px;
    background: transparent; color: var(--ink); align-items: center; justify-content: center; font-size: 19px;
    margin-left: auto;
  }
  .header-tools { display: none; }
  .nav {
    position: fixed; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--card); padding: 8px 16px 14px; gap: 0; border-bottom: 1px solid var(--line);
    transform: translateY(-135%); transition: transform .24s; z-index: 80; box-shadow: 0 8px 22px rgba(0,0,0,.1);
  }
  .nav.on { transform: none; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero { padding: calc(var(--header-h) + 34px) 0 42px; }
  .hero h1 { font-size: 27px; letter-spacing: 1px; }
  .hero-sub { font-size: 14px; }
  .hero-search button { width: 84px; font-size: 14px; letter-spacing: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid, .rel-grid, .contact-grid { grid-template-columns: 1fr; }
  .post { gap: 13px; }
  .post .postimg { width: 122px; }
  .post .intro { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 22px; padding: 28px 0 22px; }
  .footer-qr { grid-column: span 2; }
  .field { grid-template-columns: 1fr; gap: 5px; }
  .notice-list a:nth-child(n+2) { display: none; }
}

/* ---------- 动态板块（商城 / 信息发布 / 个人中心）追加样式 ---------- */
.page-note {
  display: flex; align-items: flex-start; gap: 9px; margin-top: calc(var(--header-h) + 14px);
  padding: 11px 16px; border-radius: var(--radius); font-size: 13px; line-height: 1.7;
  background: var(--brand-light); color: var(--ink-soft); border-left: 3px solid var(--brand);
}
.page-note .pn-ico { flex: none; color: var(--brand); font-size: 15px; line-height: 1.5; }
.crumb + .page-note { margin-top: 14px; }

.shop-layout { grid-template-columns: minmax(0, 1fr) 322px; }
.info-layout { grid-template-columns: minmax(0, 1fr) 322px; }
.account-layout { grid-template-columns: minmax(0, 1fr) 342px; }
.side-col { min-width: 0; }

.field select {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; font-size: 14px;
  background: var(--bg); color: var(--ink); font-family: inherit;
}
.field select:focus { outline: none; border-color: var(--brand); background: var(--card); }
.inp-sm, .sel-sm {
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: 13px;
  background: var(--card); color: var(--ink); font-family: inherit; max-width: 200px;
}
.inp-sm:focus, .sel-sm:focus { outline: none; border-color: var(--brand); }
.btn-sm {
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 13px; font-size: 13px;
  background: var(--card); color: var(--ink-soft); display: inline-flex; align-items: center; gap: 4px;
}
.btn-sm:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-sm:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm.lnk { text-decoration: none; }
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.btn-row .btn-lg { padding: 10px 26px; border-radius: 22px; font-size: 14px; border: 0; }
.btn-row .primary { background: var(--accent); color: #fff; }
.btn-row .primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn-row .primary:disabled { opacity: .6; cursor: not-allowed; }

.radio-line { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.radio-item input { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; }
.pay-sum { font-size: 21px; font-weight: 700; color: var(--accent); }

.form-msg {
  margin-top: 12px; padding: 10px 14px; border-radius: 7px; font-size: 13px; line-height: 1.7;
  border-left: 3px solid var(--ink-faint); background: var(--bg); color: var(--ink-soft);
}
.form-msg.err { border-left-color: var(--accent-dark); background: #fff3f6; color: var(--accent-dark); }
.form-msg.ok { border-left-color: var(--brand); background: var(--brand-light); color: var(--brand); }
html[data-theme="dark"] .form-msg.err { background: #2a1f28; }
.hint { margin-top: 10px; font-size: 12px; line-height: 1.8; color: var(--ink-faint); }
.hint a { color: var(--brand); text-decoration: underline; }

.prow { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.prow .pcard { flex: 1; }
.prow .btn-sm { justify-content: center; }
.prow-meta { font-size: 11px; color: var(--ink-faint); }

/* 静态商品卡上的"加入购物车"：卡片本身是 <a>，按钮必须落在链接外面 */
.add-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; padding: 7px 12px;
  font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer;
  color: var(--brand); background: var(--brand-soft, rgba(184, 132, 92, .09));
  border: 1px solid var(--line); border-radius: var(--radius-sm, 4px);
  transition: border-color .15s, color .15s, background .15s;
}
.add-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft, rgba(184, 132, 92, .16)); }
.add-btn:disabled { opacity: .55; cursor: not-allowed; }
.add-btn.ok { color: var(--ok, #2e7d32); border-color: var(--ok, #2e7d32); background: none; }

/* 信息详情：卡片本身在列表里，详情用覆盖层，避免把整页撑长 */
.post-card { cursor: pointer; }
.post-detail-mask {
  position: fixed; inset: 0; z-index: 60; display: flex;
  align-items: flex-start; justify-content: center; padding: 6vh 16px 16px;
  background: rgba(20, 16, 12, .48);
}
.post-detail-mask[hidden] { display: none; }
.post-detail {
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
  padding: 18px 20px 20px; background: var(--bg-card, #fff);
  border: 1px solid var(--line); border-radius: var(--radius, 6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
.pd-head { display: flex; align-items: flex-start; gap: 12px; }
.pd-head h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.pd-close {
  margin-left: auto; flex: none; width: 28px; height: 28px; padding: 0;
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
  color: var(--ink-faint); background: none; border: 1px solid var(--line); border-radius: var(--radius-sm, 4px);
}
.pd-close:hover { color: var(--brand); border-color: var(--brand); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; font-size: 12px; color: var(--ink-faint); }
.pd-body { font-size: 14px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.pd-tel {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 14px;
  background: var(--brand-soft, rgba(184, 132, 92, .08));
  border: 1px solid var(--line); border-radius: var(--radius-sm, 4px);
}
.pd-tel-label { font-size: 12px; color: var(--ink-faint); }
.pd-tel-val { font-size: 15px; letter-spacing: .5px; }
.pd-tel .btn-sm { margin-left: auto; }

.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-of-type { border-bottom: 0; }
.cart-line .cl-t { font-size: 13px; line-height: 1.55; }
.cart-line .cl-s { display: block; font-size: 11px; color: var(--ink-faint); }
.cart-line .cl-c { display: flex; align-items: center; gap: 7px; justify-content: flex-end; }
.cart-line .qbtn {
  width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--card);
  color: var(--ink-soft); font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.cart-line .qbtn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.cart-line .qbtn:disabled { opacity: .5; cursor: not-allowed; }
.cart-line .cl-n { min-width: 20px; text-align: center; font-size: 13px; }
.cart-line .cl-p { grid-column: 2; text-align: right; color: var(--accent); font-weight: 700; font-size: 14px; }
.cart-line .cl-del { grid-column: 2; text-align: right; }
.cart-line .cl-del button {
  border: 0; background: transparent; color: var(--ink-faint); font-size: 12px; padding: 0; text-decoration: underline;
}
.cart-line .cl-del button:hover:not(:disabled) { color: var(--accent-dark); }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px;
  margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.cart-total b { font-size: 21px; color: var(--accent); }

.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.order-card:last-child { margin-bottom: 0; }
.oc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.oc-head b { font-size: 14px; letter-spacing: .3px; }
.oc-foot { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--ink-faint); }
.pill { font-size: 11px; padding: 1px 8px; border-radius: 20px; background: var(--bg); color: var(--ink-faint);
  border: 1px solid var(--line); }
.pill.ok { background: var(--brand-light); color: var(--brand); border-color: transparent; }
.pill.warn { background: #fff6e5; color: #a26f05; border-color: transparent; }
.pill.err { background: #fff3f6; color: var(--accent-dark); border-color: transparent; }
html[data-theme="dark"] .pill.warn { background: #33291a; }
html[data-theme="dark"] .pill.err { background: #2a1f28; }

.quota-line { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; font-size: 13px;
  color: var(--ink-faint); background: var(--bg); border-radius: 7px; padding: 9px 13px; margin-bottom: 14px; }
.quota-line b { color: var(--brand); }
.quota-line a { margin-left: auto; color: var(--brand); }

.info-brief { display: grid; gap: 12px; }
.ib-cell { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 10px; }
.ib-cell .ib-ico { grid-row: span 3; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ib-cell b { font-size: 14px; }
.ib-cell .ib-brief { font-size: 12px; color: var(--accent); }
.ib-cell .ib-intro { font-size: 12px; color: var(--ink-faint); line-height: 1.75; }

.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tier-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex;
  flex-direction: column; gap: 6px; }
.tier-card.tier-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-light) inset; }
.tc-name { font-size: 14px; font-weight: 700; }
.tc-price { font-size: 22px; font-weight: 800; color: var(--accent); }
.tc-price span { font-size: 12px; font-weight: 400; color: var(--ink-faint); margin-left: 3px; }
.tc-daily { font-size: 12px; color: var(--ink-soft); }
.tc-cur { font-size: 12px; color: var(--ink-faint); text-align: center; border: 1px dashed var(--line);
  border-radius: 6px; padding: 5px 0; margin-top: auto; }
.tier-card .btn-sm { justify-content: center; margin-top: auto; }
.tier-days { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

@media (max-width: 1080px) {
  .shop-layout, .info-layout, .account-layout { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-note { margin-top: calc(var(--header-h) + 10px); padding: 10px 13px; }
  .inp-sm { max-width: none; }
}

/* ---------- 身份与发布（游客 / 正式用户） ---------- */
/* 页头三件套：购物车角标、身份徽章、登录入口。窄屏整条 header-tools 隐藏（沿用既有规则） */
.cart-tag {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px;
  font-size: 13px; color: var(--ink-soft);
}
.cart-tag:hover { border-color: var(--brand); color: var(--brand); }
.cart-tag b {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px;
  background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.id-badge {
  font-size: 12px; padding: 4px 11px; border-radius: 20px; white-space: nowrap;
  max-width: 190px; overflow: hidden; text-overflow: ellipsis;
  background: var(--bg); color: var(--ink-faint); border: 1px solid var(--line);
}
.id-badge.user { background: var(--brand-light); color: var(--brand); border-color: transparent; }
.id-badge.member { background: #fff6e5; color: #a26f05; border-color: transparent; }
html[data-theme="dark"] .id-badge.member { background: #33291a; }

/* 发布资格说明卡：把"游客能做什么 / 登录才能做什么"讲在一处 */
.publish-entry { font-size: 13px; color: var(--ink-soft); }
.pe-lead { line-height: 1.85; margin-bottom: 10px; }
.pe-rules { list-style: disc; padding-left: 18px; display: grid; gap: 5px; margin-bottom: 14px; }
.pe-rules li { line-height: 1.75; }
.pe-rules b { color: var(--brand); }

/* 信息详情页：正文与同类信息 */
.post-detail-page .pd-body { min-height: 80px; }
.rel-line { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.rel-line:last-child { border-bottom: 0; }
.rel-line a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-line a:hover { color: var(--brand); }
.rel-line span { flex: none; font-size: 11px; color: var(--ink-faint); }
.pd-tel:target, #tel { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- 首页两个板块入口（首页已不含商品网格） ---------- */
.home-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.entry-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.entry-card:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(0, 51, 68, .10); transform: translateY(-2px); }
.entry-card .ec-ico { font-size: 22px; color: var(--brand); line-height: 1; flex: none; }
.entry-card .ec-t { flex: 1; min-width: 0; }
.entry-card .ec-t h3 { font-size: 16px; }
.entry-card .ec-t p { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; line-height: 1.7; }
.entry-card .ec-go { font-size: 13px; color: var(--brand); white-space: nowrap; flex: none; }
@media (max-width: 760px) { .home-entry { grid-template-columns: 1fr; } }
/* 首页板块入口轮播 + 加购回显。与 main.css 分开，首页不加载也不影响其它页面。 */

.hero-slide {
  position: relative;
  margin: 18px 0 4px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, .28);
}

.hs-track {
  display: flex;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.hs-track.no-anim {
  transition: none;
}

.hs-item {
  position: relative;
  flex: 0 0 100%;
  display: block;
  aspect-ratio: 16 / 7;
  min-height: 190px;
  overflow: hidden;
  text-decoration: none;
}

.hs-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.hs-item:hover img {
  transform: scale(1.04);
}

.hs-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 38, .82) 0%, rgba(6, 26, 38, .34) 46%, rgba(6, 26, 38, .06) 78%);
}

.hs-cap {
  position: absolute;
  left: clamp(14px, 3.4vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 62%;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.hs-cap b {
  display: block;
  font-size: clamp(19px, 2.5vw, 28px);
  letter-spacing: .02em;
}

.hs-cap small {
  display: block;
  margin-top: 7px;
  font-size: clamp(12px, 1.3vw, 14px);
  opacity: .9;
}

.hs-go {
  position: absolute;
  left: clamp(14px, 3.4vw, 34px);
  bottom: clamp(14px, 2.6vw, 26px);
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(3px);
  transition: background .25s ease, transform .25s ease;
}

.hs-item:hover .hs-go {
  background: rgba(255, 255, 255, .3);
  transform: translateX(3px);
}

.hs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 56px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  background: rgba(4, 20, 30, .34);
  transition: background .2s ease;
}

.hs-nav:hover {
  background: rgba(4, 20, 30, .62);
}

.hs-prev {
  left: 0;
  border-radius: 0 10px 10px 0;
}

.hs-next {
  right: 0;
  border-radius: 10px 0 0 10px;
}

.hs-dots {
  position: absolute;
  right: clamp(12px, 3vw, 26px);
  bottom: clamp(14px, 2.6vw, 26px);
  z-index: 3;
  display: flex;
  gap: 7px;
}

.hs-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .45);
  transition: background .2s ease, transform .2s ease;
}

.hs-dot.on {
  background: #fff;
  transform: scale(1.25);
}

/* 一次只滚一张，窄屏不给箭头（手滑更顺手） */
@media (max-width: 640px) {
  .hs-nav {
    display: none;
  }

  .hs-item {
    aspect-ratio: 4 / 3;
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-track {
    transition: none;
  }

  .hs-item img {
    transition: none;
  }
}

/* 已在购物车的商品：加购按钮保留可点（继续加），但要把件数说清楚 */
[data-act="add"].has-sel {
  border-color: #1c7f6f;
  color: #0e5f52;
  background: #e7f5f1;
}
