﻿/* 天天精品Mark - 全站样式（古典雅致风格） */
:root {
  --bg: #f5f1e8;
  --card: #fffdf8;
  --ink: #2c2620;
  --ink-soft: #7d7466;
  --line: #e6dfd0;
  --brand: #33534a;
  --brand-deep: #243c36;
  --gold: #b08d57;
  --gold-soft: #f3e9d6;
  --red: #a5493a;
  --green: #4a7c59;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(44, 38, 32, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

h1, h2, h3, .serif { font-family: "STSong", "STZhongsong", "SimSun", serif; letter-spacing: 1px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #f2ecdd;
  box-shadow: 0 2px 14px rgba(36, 60, 54, 0.35);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 26px; height: 62px;
}
.logo {
  font-family: "STXingkai", "KaiTi", "STKaiti", "STSong", serif; font-size: 24px; font-weight: 700;
  letter-spacing: 3px; color: #fff; text-decoration: none; white-space: nowrap;
}
.logo em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  color: #e8e2d2; text-decoration: none; font-size: 15px; padding: 8px 14px;
  border-radius: 8px; position: relative; transition: background .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); }
.nav-links a.active { background: rgba(255, 255, 255, 0.16); color: #fff; }
.badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  background: var(--red); color: #fff; font-size: 11px; border-radius: 9px;
  text-align: center; margin-left: 4px; padding: 0 5px; vertical-align: 1px;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user { font-size: 14px; color: #f0e9d8; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 18px; border-radius: 9px; font-size: 14px;
  transition: all .18s; text-decoration: none;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a7a48; color: #fff; }
.btn-danger { background: #fff; border-color: #e0c4be; color: var(--red); }
.btn-danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 13px 30px; font-size: 16px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.page-title { font-size: 24px; margin: 8px 0 18px; color: var(--brand-deep); }
.page-title small { font-size: 13px; color: var(--ink-soft); font-family: inherit; letter-spacing: 0; margin-left: 10px; }

/* ---------- 首页 Hero ---------- */
.hero {
  max-width: 1180px; margin: 22px auto 0; padding: 0 20px;
}
.hero-inner {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 70%, #3f6257 100%);
  border-radius: var(--radius); color: #f2ecdd; padding: 44px 46px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.hero-inner::after {
  content: "玛"; position: absolute; right: 18px; bottom: -38px;
  font-family: "STSong", "SimSun", serif; font-size: 200px; opacity: 0.07; line-height: 1;
}
.hero h1 { font-family: "STXingkai", "KaiTi", "STKaiti", serif; font-size: 38px; color: #fff; margin-bottom: 10px; letter-spacing: 4px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 15px; color: #d8d2c0; max-width: 640px; }

/* ---------- 首页背景图（站长可自定义，默认为艺术字图） ---------- */
.hero-inner.has-bg {
  background-size: cover; background-position: center;
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-inner.has-bg::after { display: none; }
.hero-inner.has-bg #hero-title { text-shadow: 0 3px 14px rgba(10, 18, 14, 0.55); }
.hero-inner.has-bg #hero-text { text-shadow: 0 2px 8px rgba(10, 18, 14, 0.55); }
.hero-inner.hide-title #hero-title { display: none; }
.announce {
  max-width: 1180px; margin: 14px auto 0; padding: 0 20px;
}
.announce-inner {
  background: var(--gold-soft); border: 1px solid #e8d9ba; border-radius: 10px;
  color: #7a5f33; padding: 10px 18px; font-size: 13.5px;
}

/* ---------- 分类筛选 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 7px 20px; font-size: 14px; transition: all .18s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 玛品卡片 ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px; margin-top: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(44, 38, 32, 0.13); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #efe9dc; overflow: hidden; cursor: pointer; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(36, 60, 54, 0.82);
  color: #f0e9d8; font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.card-tag.sold { background: rgba(165, 73, 58, 0.9); }
.card-imgcount {
  position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.45);
  color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 999px;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 16px; font-weight: 600; }
.card-desc { font-size: 12.5px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: var(--red); }
.price small { font-size: 12px; font-weight: 400; color: var(--ink-soft); }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; color: var(--ink-soft); padding: 70px 20px; font-size: 15px;
}
.empty .big { font-size: 44px; margin-bottom: 12px; opacity: 0.5; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(30, 26, 20, 0.55);
  display: flex; align-items: center; justify-content: center; z-index: 200;
  backdrop-filter: blur(3px); padding: 20px;
}
.modal {
  background: var(--card); border-radius: var(--radius); max-width: 720px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 26px 28px; position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal .close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 26px; color: var(--ink-soft); line-height: 1;
}
.modal .close:hover { color: var(--red); }
.modal-title {
  font-size: 20px; color: var(--brand-deep); text-align: center; margin-bottom: 12px;
}

/* 玛品详情 */
.detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-main { position: relative; border-radius: 12px; overflow: hidden; background: #efe9dc; aspect-ratio: 1/1; }
.detail-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.detail-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; background: rgba(0,0,0,0.35); color: #fff; width: 34px; height: 34px;
  border-radius: 50%; font-size: 18px;
}
.detail-nav.prev { left: 10px; } .detail-nav.next { right: 10px; }
.detail-nav:disabled { opacity: 0; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img {
  width: 54px; height: 54px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent;
}
.thumbs img.on { border-color: var(--gold); }
.detail-info h2 { font-size: 22px; color: var(--brand-deep); margin-bottom: 8px; }
.detail-meta { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tag { background: var(--gold-soft); color: #7a5f33; font-size: 12px; border-radius: 6px; padding: 3px 10px; }
.tag.warn { background: #f7e3e0; color: var(--red); }
.detail-price { font-family: Georgia, serif; font-size: 30px; font-weight: 700; color: var(--red); margin: 6px 0; }
.detail-price small { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty-ctrl button { border: none; background: #faf6ec; width: 34px; height: 34px; font-size: 17px; }
.qty-ctrl button:hover { background: var(--gold-soft); }
.qty-ctrl input {
  width: 52px; text-align: center; border: none; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); height: 34px; font-size: 15px;
}
.detail-actions { display: flex; gap: 12px; margin-top: 10px; }
.desc-box {
  margin-top: 20px; background: #faf7ef; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; max-height: 300px; overflow-y: auto;
  font-size: 14px; line-height: 1.9; text-align: justify; white-space: pre-wrap;
}
.desc-box h3 { font-size: 15px; color: var(--brand-deep); margin-bottom: 8px; }

/* 图片放大灯箱 */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 13, 10, 0.92);
  display: flex; align-items: center; justify-content: center; z-index: 300;
}
.lightbox img {
  max-width: 92vw; max-height: 92vh; width: auto; height: auto;
  object-fit: contain; border-radius: 6px; box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox .lb-close {
  position: absolute; top: 18px; right: 26px; border: none; background: none;
  color: #fff; font-size: 38px; line-height: 1;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; background: rgba(255,255,255,0.14); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 24px;
}
.lightbox .lb-prev { left: 26px; } .lightbox .lb-next { right: 26px; }
.lightbox .lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #cfc8b8; font-size: 13px;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; }
.field label b { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; background: #fff; color: var(--ink); outline: none;
  transition: border-color .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.field .err { font-size: 12.5px; color: var(--red); margin-top: 4px; min-height: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.char-count { font-size: 12px; color: var(--ink-soft); text-align: right; margin-top: 3px; }
.char-count.ok { color: var(--green); }
.char-count.bad { color: var(--red); }

/* ---------- 登录页 ---------- */
.auth-wrap { max-width: 460px; margin: 46px auto 70px; padding: 0 20px; }
.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.auth-head {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff; text-align: center; padding: 28px 20px 22px;
}
.auth-head h1 { font-size: 24px; margin-bottom: 4px; }
.auth-head h1 em { font-style: normal; color: var(--gold); }
.auth-head p { font-size: 13px; color: #d8d2c0; }
.auth-tabs { display: flex; }
.auth-tabs button {
  flex: 1; border: none; background: #efe9dc; padding: 13px; font-size: 15px;
  color: var(--ink-soft); border-bottom: 2px solid transparent;
}
.auth-tabs button.on { background: var(--card); color: var(--brand-deep); border-bottom-color: var(--gold); font-weight: 600; }
.auth-body { padding: 24px 26px 28px; }
.auth-extra { text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.auth-extra a { color: var(--gold); }
/* 登录页扩展：验证码行 / 微信登录盒 */
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { white-space: nowrap; }
.wechat-box { text-align: center; padding: 8px 0 4px; }
.wechat-box p { font-size: 14px; color: var(--ink-soft); margin: 6px 0; }
.wechat-box .hint { font-size: 12.5px; }
.wechat-icon { font-size: 44px; margin-bottom: 6px; }
/* 类别维护 */
.cat-add-row { display: flex; gap: 10px; }
.cat-add-row input { flex: 1; min-width: 0; }
.cat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 8px; background: #faf7f0; font-size: 14.5px;
}

/* ---------- 支付 ---------- */
.pay-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.pay-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 26px; font-size: 14px; color: var(--ink-soft);
}
.pay-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pay-amount {
  font-family: Georgia, serif; font-size: 40px; font-weight: 700;
  color: var(--red); letter-spacing: 1px; margin: 6px 0;
}
.qr { display: block; margin: 10px auto; width: 210px; height: 210px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.tip { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 6px; }
.wx-box { text-align: center; }
.wx-id-row {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0;
}
.wx-id-row code {
  background: #f3eee1; border: 1px dashed var(--gold); border-radius: 8px;
  padding: 7px 14px; font-size: 14px; color: #6b5527;
}
.notice-line {
  background: var(--gold-soft); border-radius: 8px; padding: 8px 12px;
  font-size: 12.5px; color: #7a5f33; margin-top: 12px;
}

/* ---------- 列表 / 表格（购物车、订单、后台） ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px;
}
.row-item {
  display: flex; gap: 16px; align-items: center; padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.row-item:last-child { border-bottom: none; }
.row-thumb {
  width: 72px; height: 72px; object-fit: cover; border-radius: 10px;
  background: #efe9dc; flex-shrink: 0; cursor: pointer;
}
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.row-side { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.qty-ctrl.sm button { width: 26px; height: 26px; font-size: 14px; }
.qty-ctrl.sm input { width: 40px; height: 26px; font-size: 13px; }

.status-pill {
  display: inline-block; font-size: 12px; border-radius: 999px; padding: 3px 12px;
}
.status-pill.pending { background: #faf0d8; color: #9a7a1e; }
.status-pill.paid { background: #e4f0e7; color: var(--green); }
.status-pill.onsale { background: #e4f0e7; color: var(--green); }
.status-pill.offsale { background: #eee9df; color: var(--ink-soft); }
.status-pill.sold { background: #f7e3e0; color: var(--red); }

.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tb th {
  text-align: left; font-weight: 600; color: var(--ink-soft); background: #f6f1e5;
  padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line);
}
.tb td { padding: 10px 12px; border-bottom: 1px solid #f0ead9; vertical-align: top; }
.tb tr:hover td { background: #fbf8f0; }
.tb .ops { display: flex; gap: 6px; flex-wrap: wrap; }

.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.total-line { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.total-line.grand { font-size: 18px; font-weight: 700; color: var(--red); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }

.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-soft); margin: 12px 0; }
.agree-row input { margin-top: 3px; }

/* ---------- 后台 ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 9px 20px; font-size: 14px; color: var(--ink-soft);
}
.admin-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.img-preview-list { display: flex; gap: 10px; flex-wrap: wrap; }
.img-preview { position: relative; width: 84px; height: 84px; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.img-preview button {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px;
  border-radius: 50%; border: none; background: var(--red); color: #fff;
  font-size: 12px; line-height: 1;
}
.upload-hint { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.search-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-row input { flex: 1; min-width: 220px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%);
  background: rgba(36, 60, 54, 0.94); color: #fff; padding: 11px 24px;
  border-radius: 999px; font-size: 14px; z-index: 400; max-width: 82vw;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line); color: var(--ink-soft);
  text-align: center; padding: 26px 20px 34px; font-size: 12.5px; margin-top: 30px;
}

/* ---------- 首页搜索（1688 式） ---------- */
.search-bar { display: flex; justify-content: center; margin-bottom: 18px; }
.search-box { position: relative; width: 100%; max-width: 560px; }
.search-box input {
  width: 100%; height: 44px; padding: 0 120px 0 16px;
  border: 2px solid var(--gold); border-radius: 22px;
  background: #fff; font-size: 14.5px; color: var(--ink);
  outline: none; transition: box-shadow .2s;
  box-sizing: border-box;
}
.search-box input:focus { box-shadow: 0 4px 16px rgba(176, 141, 87, 0.22); }
.search-box input::placeholder { color: #b3a68f; }
.search-box #search-btn {
  position: absolute; right: 4px; top: 4px; bottom: 4px;
  padding: 0 18px; border: none; border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), #b08d57);
  color: #fff; font-size: 14px; letter-spacing: 1px; cursor: pointer;
}
.search-box #search-btn:hover { filter: brightness(1.06); }
.search-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(60, 46, 26, 0.14);
  padding: 12px 14px; text-align: left;
}
.search-drop .sd-title { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; letter-spacing: 1px; }
.search-drop .sd-list { display: flex; flex-wrap: wrap; gap: 8px; }
.search-drop .sd-kw {
  padding: 5px 14px; border: 1px solid var(--gold-soft); border-radius: 14px;
  background: #faf6ec; color: var(--ink); font-size: 13px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.search-drop .sd-kw:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--brand-deep); }
.search-drop .sd-empty { font-size: 13px; color: var(--ink-soft); padding: 4px 0; }
.result-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #faf6ec; border: 1px solid var(--gold-soft); border-radius: 10px;
  padding: 9px 14px; margin-bottom: 14px; font-size: 14px; color: var(--ink);
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-inner { gap: 12px; padding: 0 12px; height: 56px; }
  .nav-links a { padding: 7px 9px; font-size: 13.5px; }
  .nav-user { display: none; }
  .logo { font-size: 18px; letter-spacing: 1px; }
  .hero-inner { padding: 30px 24px; }
  .hero h1 { font-size: 23px; }
  .detail-top { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .wrap { padding: 16px 12px 50px; }
  .search-box input { padding-right: 96px; height: 42px; }
  .search-box #search-btn { padding: 0 12px; font-size: 13px; }
}

/* ---------- 订单状态：凭证待核验 ---------- */
.status-pill.verify { background: #e8eef6; color: #2f5d8a; }

/* ---------- 站长名片（联系站长弹窗） ---------- */
.owner-head {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center;
  padding: 8px 0 16px; border-bottom: 1px dashed var(--line);
}
.owner-head .owner-avatar { margin: 0 auto; }
.owner-head .owner-acts { justify-content: center; }
.owner-avatar {
  width: 92px; height: 92px; flex: 0 0 92px; border-radius: 50%;
  overflow: hidden; background: #efe9dc; border: 2px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.owner-avatar:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(176, 141, 87, 0.28); }
.owner-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owner-avatar.empty { cursor: default; color: var(--ink-soft); font-size: 13px; letter-spacing: 2px; }
.owner-avatar.empty:hover { transform: none; box-shadow: none; }
.owner-meta { flex: 1; min-width: 0; }
.owner-name { font-family: "STSong", "SimSun", serif; font-size: 19px; color: var(--brand-deep); letter-spacing: 1px; }
.owner-title { font-size: 12.5px; color: var(--gold); margin-top: 2px; }
.owner-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.owner-bio {
  font-size: 13.5px; color: var(--ink); line-height: 1.75;
  background: #faf6ec; border-left: 3px solid var(--gold-soft);
  border-radius: 0 8px 8px 0; padding: 10px 12px; margin: 14px 0 4px;
}
.contact-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.contact-row {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 10px; font-size: 13px;
}
.contact-row .ci { width: 18px; text-align: center; }
.contact-row .cl { color: var(--ink-soft); flex: 0 0 auto; }
.contact-row .cv {
  flex: 1; min-width: 0; text-align: right; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
}

/* ---------- 视频播放 ---------- */
.video-box {
  background: #14120f; border-radius: 12px; overflow: hidden;
  min-height: 220px; display: flex; align-items: center; justify-content: center;
}
.video-box video { width: 100%; max-height: 68vh; display: block; background: #000; }
.video-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-box .empty { color: #d8d0c0; }
.video-box .tip { color: #d8d0c0; }

/* ---------- 付款凭证 ---------- */
.proof-box {
  min-height: 96px; border: 1px dashed var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; background: #fbf8f1;
}
.proof-box .img-preview { width: 140px; height: 140px; }
.proof-img {
  max-width: 100%; max-height: 56vh; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: zoom-in;
}

/* ---------- 站长资料编辑 ---------- */
.avatar-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-edit .owner-avatar { cursor: default; width: 96px; height: 96px; flex-basis: 96px; }
.avatar-edit .owner-avatar:hover { transform: none; box-shadow: none; }
.video-state {
  font-size: 13px; color: var(--ink-soft); background: #f6f1e5;
  border-radius: 8px; padding: 7px 12px;
}

/* ============================================================
   1114A：天猫式顶部导航（菜单栏 + Logo 带） / 互动条 / 新弹窗
   ============================================================ */
.site-head { position: sticky; top: 0; z-index: 60; }

/* --- 顶部菜单栏 --- */
.topbar {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #e8e2d2;
  box-shadow: 0 2px 10px rgba(36, 60, 54, 0.28);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 8px; height: 40px;
}
.tb-brand {
  font-family: "STXingkai", "KaiTi", "STKaiti", serif; font-size: 17px; font-weight: 700;
  letter-spacing: 2px; color: #fff; text-decoration: none; white-space: nowrap; margin-right: 10px;
}
.tb-brand em { font-style: normal; color: var(--gold); }
.tb-links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.tb-link {
  color: #e8e2d2; text-decoration: none; font-size: 13.5px;
  padding: 4px 12px; border-radius: 7px; cursor: pointer;
  white-space: nowrap; background: none; border: 0;
  transition: color .18s, background .18s;
}
.tb-link:hover, .tb-link.on { color: var(--gold); background: rgba(255, 255, 255, 0.08); }
.tb-link.active { color: var(--gold); font-weight: 600; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.visit-stat { font-size: 12.5px; color: #cfc7b2; white-space: nowrap; }
.visit-stat b { color: var(--gold); font-size: 13.5px; }

/* --- 功能菜单下拉：悬停即展开，桥接条消除按钮与面板之间的空隙 --- */
.menu-wrap { position: relative; }
.menu-btn .caret { font-size: 10px; margin-left: 2px; }
.menu-panel {
  display: none; position: absolute; right: 0; top: 100%;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(44, 38, 32, 0.16); min-width: 148px;
  padding: 6px; z-index: 80; margin-top: 0;
}
/* 桥接条：面板上方 8px 也算悬停区，鼠标滑过去不会断开 */
.menu-panel::before {
  content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.menu-wrap:hover .menu-panel, .menu-wrap.open .menu-panel { display: block; }
.menu-item {
  display: block; padding: 8px 14px; font-size: 13.5px; color: var(--ink);
  text-decoration: none; border-radius: 7px; cursor: pointer; transition: all .15s;
}
.menu-item:hover { background: var(--gold-soft); color: var(--gold); }

/* --- Logo 带（1114B）：左 Logo 区居中放大 + 右搜索/公告区居中 --- */
.logo-band { background: #fffdf8; border-bottom: 1px solid var(--line); }
.logo-band-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
/* 左侧 Logo 区：固定宽度并水平居中，Logo 高度即带体高度，尽可能大 */
.brand-logo { flex: 0 0 340px; display: flex; align-items: center; justify-content: center; }
.brand-logo img { height: 122px; width: auto; display: block; max-width: 100%; }
/* 右侧搜索/公告区：整体水平居中，搜索框与公告上下排列且居中 */
.brand-search-wrap {
  flex: 1; min-width: 0; max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.brand-search-wrap .search-box { max-width: 560px; }
.announce-band {
  margin-top: 8px; width: 100%; max-width: 560px; text-align: center;
  background: var(--gold-soft); border: 1px solid #e8d9ba;
  border-radius: 9px; color: #7a5f33; padding: 6px 12px; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- 玛品卡片：置顶/实名角标 + 互动条 --- */
.top-flag {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: var(--red); color: #fff; font-size: 11.5px;
  border-radius: 6px; padding: 2px 8px; letter-spacing: 1px;
}
.verify-flag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(36, 60, 54, 0.82); color: #f2ecdd; font-size: 11px;
  border-radius: 6px; padding: 2px 7px;
}
.card-acts {
  display: flex; align-items: center; justify-content: space-around;
  border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 8px;
}
.act-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; color: var(--ink-soft); font-size: 13px;
  padding: 4px 10px; border-radius: 8px; cursor: pointer;
  transition: color .15s, background .15s;
}
.act-btn:hover { color: var(--gold); background: var(--gold-soft); }
.act-btn.liked { color: var(--red); }
.act-btn .act-count { font-size: 12px; }
.act-btn:disabled { opacity: .55; cursor: wait; }

/* --- 留言列表 --- */
.comment-list { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; }
.comment-row { background: #faf6ec; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 4px; }
.comment-head .c-author { color: var(--gold); font-weight: 600; }
.comment-content { font-size: 13.5px; color: var(--ink); word-break: break-all; line-height: 1.6; }
.comment-form { margin-top: 12px; }
.comment-form textarea { width: 100%; min-height: 74px; resize: vertical; }
.char-counter { text-align: right; font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.char-counter.bad { color: var(--red); }

/* --- 认证图片 / 站长宣言 --- */
.cert-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cert-item { position: relative; width: 168px; height: 118px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cert-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.cert-item .cert-del {
  position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; line-height: 20px;
  background: rgba(165, 73, 58, 0.9); color: #fff; border: 0; border-radius: 50%;
  font-size: 13px; cursor: pointer;
}
.decl-version { margin-top: 14px; font-size: 12px; color: var(--ink-soft); text-align: right; }

/* --- 实名认证 --- */
.verify-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.verify-photo-box {
  border: 1px dashed var(--line); border-radius: 10px; background: #fbf8f1;
  min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; font-size: 12.5px; color: var(--ink-soft); text-align: center; padding: 8px;
}
.verify-photo-box img { max-width: 100%; max-height: 110px; border-radius: 8px; }
.verify-photo-box .vp-acts { display: flex; gap: 6px; }
#verify-video { width: 100%; border-radius: 10px; background: #14120f; max-height: 300px; }

/* --- 开关（后台） --- */
.switch { position: relative; display: inline-block; width: 40px; height: 21px; vertical-align: middle; }
.switch input { display: none; }
.switch .slider {
  position: absolute; inset: 0; background: #d8d0c0; border-radius: 999px;
  transition: background .18s; cursor: pointer;
}
.switch .slider::before {
  content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px;
  background: #fff; border-radius: 50%; transition: transform .18s;
}
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(19px); }

/* --- 通用小表格（访问量查询等） --- */
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th, .mini-table td { border-bottom: 1px solid var(--line); padding: 7px 9px; text-align: left; white-space: nowrap; }
.mini-table th { background: #faf6ec; color: var(--ink-soft); font-weight: 600; }
.mini-table td.num, .mini-table th.num { text-align: right; }

/* --- 1114A 响应式 --- */
@media (max-width: 860px) {
  .topbar-inner { height: 38px; padding: 0 12px; gap: 4px; }
  .tb-brand { font-size: 14px; letter-spacing: 1px; margin-right: 4px; }
  .tb-link { padding: 4px 7px; font-size: 12.5px; }
  .visit-stat { display: none; }
  .logo-band-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 12px; }
  .brand-logo { flex: 0 0 auto; justify-content: center; }
  .brand-logo img { height: 74px; }
  .brand-search-wrap { max-width: none; }
  .verify-photos { grid-template-columns: 1fr; }
  .card-acts .act-btn { padding: 4px 6px; font-size: 12px; }
}



/* ============================================================
   1114B：转发弹窗 / 描述外置 / 玛品视频 / 留言回复 / 后台角标
   ============================================================ */

/* --- 转发弹窗：微信好友 / 朋友圈 --- */
.share-preview {
  display: flex; gap: 12px; align-items: center;
  background: #faf6ec; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; margin-bottom: 14px;
}
.share-preview img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); flex: 0 0 74px;
}
.share-preview .sp-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.share-preview .sp-link { font-size: 12px; color: var(--ink-soft); word-break: break-all; }
.share-acts { display: flex; gap: 10px; }
.share-acts .btn { flex: 1; padding: 12px 8px; font-size: 14px; }
.share-tip { margin-top: 10px; font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.share-qr {
  display: flex; gap: 14px; align-items: center;
  background: #faf6ec; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px;
}
.share-qr img { width: 118px; height: 118px; border-radius: 10px; border: 1px solid var(--line); flex: 0 0 118px; }
.share-qr .qr-txt { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; }

/* --- 详情页描述（外置：标题与正文都不再放进灰底盒） --- */
.desc-outside { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.desc-outside h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.desc-outside .desc-text {
  font-size: 15px; line-height: 1.9; color: var(--ink);
  text-align: left; white-space: pre-wrap; word-break: break-word;
}

/* --- 详情页玛品视频按钮 --- */
button.detail-video-btn { margin-top: 14px; width: 100%; }

/* --- 视频播放弹窗（玛品视频复用站长视频样式） --- */
.video-box { background: #14120f; border-radius: 10px; overflow: hidden; }
.video-box video, .video-box iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.video-codec-tip {
  margin-top: 8px; font-size: 12.5px; color: #b98a2f; line-height: 1.7;
  background: #fdf6e5; border: 1px solid #ecd9ac; border-radius: 8px; padding: 7px 12px;
}

/* --- 留言回复 --- */
.comment-row.is-reply { border-left: 3px solid var(--gold-soft); }
.reply-chip {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px;
  font-size: 12px; color: var(--gold); background: var(--gold-soft);
  border-radius: 6px; padding: 1px 8px;
}
.reply-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  background: var(--gold-soft); border-radius: 8px; padding: 5px 10px;
  font-size: 12.5px; color: #7a5f33;
}
.reply-bar button { margin-left: auto; }
.c-reply-btn {
  background: none; border: none; color: var(--gold); font-size: 12px;
  cursor: pointer; padding: 0 2px;
}
.c-reply-btn:hover { text-decoration: underline; }
.comment-act-row { display: flex; justify-content: flex-end; margin-top: 4px; }

/* --- 后台页签待审角标 --- */
.admin-tabs button { position: relative; }
.tab-badge {
  display: inline-block; min-width: 17px; text-align: center;
  background: var(--red); color: #fff; font-size: 11px;
  border-radius: 9px; padding: 0 5px; margin-left: 5px; line-height: 17px;
}

/* ============================================================
   1114D：留言表情面板（仿微信）
   ============================================================ */
.c-tools { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.c-tools .char-counter { margin-top: 0; margin-left: auto; text-align: right; }
.emoji-btn {
  background: #faf6ec; border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 11px; font-size: 13px; color: var(--ink); cursor: pointer;
  transition: all .15s; flex: 0 0 auto;
}
.emoji-btn:hover, .emoji-btn.on { background: var(--gold-soft); border-color: #e2cda3; color: var(--gold); }
.emoji-panel {
  margin: 8px 0 10px; background: #fffdf8; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; max-height: 186px; overflow-y: auto;
}
.emoji-recent {
  display: flex; flex-wrap: wrap; gap: 1px;
  padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px dashed var(--line);
}
.emoji-recent:empty { display: none; }
.emoji-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; }
.emoji-item {
  background: none; border: 0; padding: 3px 0; font-size: 22px; line-height: 1.25;
  cursor: pointer; border-radius: 6px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.emoji-item:hover { background: var(--gold-soft); }
@media (max-width: 480px) {
  .emoji-grid { grid-template-columns: repeat(7, 1fr); }
  .emoji-panel { max-height: 168px; }
}

/* ============================================================
   1114E：PWA / 全屏壳适配
   ============================================================ */
.site-head { padding-top: env(safe-area-inset-top, 0px); }
body { padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (display-mode: standalone) {
  #tb-bookmark { display: none !important; }
}

/* ============================================================
   1114G：App（APK 壳 / PWA 全屏）内显示优化
   html.tt-app 由 js/pwa.js 注入；目标是 1:1 像素渲染、字不糊、点击无水印块
   ============================================================ */
html.tt-app {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.tt-app body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.tt-app a,
html.tt-app button,
html.tt-app .card { -webkit-tap-highlight-color: transparent; }
/* App 内图片按容器宽度等比铺满，避免留白与二次拉伸 */
html.tt-app .card-img img,
html.tt-app .detail-img img { width: 100%; height: auto; display: block; }