:root {
  /* 简约浅色：白底 + 深灰字 + 单一金棕点缀 */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-3: #fafafa;
  --ink: #111111;
  --ink-soft: #444444;
  --muted: #777777;
  --line: #eeeeee;
  --line-strong: #dddddd;
  --accent: #bfa06f;        /* 金棕 */
  --accent-dark: #9a7d4f;
  --accent-light: #d6bd8d;
  --cinnabar: #bfa06f;
  --cinnabar-deep: #9a7d4f;
  --cinnabar-light: #d6bd8d;
  --gold: #bfa06f;
  --gold-light: #d6bd8d;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0.02em; line-height: 1.35; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: 80px 0; }
.section.alt { background: var(--surface-3); }
.text-center { text-align: center; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 6px;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 600;
}
.brand .name { font-size: 18px; letter-spacing: 1px; }
.brand .name small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 2px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--ink-soft); font-size: 15px; position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--ink); transition: width .2s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.cart-link { display: flex; align-items: center; gap: 6px; }
.cart-badge {
  background: var(--ink); color: #fff; border-radius: 999px;
  min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px;
  display: inline-grid; place-items: center;
}
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--bg); padding: 90px 0; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.2; margin-bottom: 18px; font-weight: 600; }
.hero h1 span { color: var(--accent-dark); }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 500;
  border: 1px solid transparent; transition: all .2s; letter-spacing: 0.5px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline { border-color: var(--line-strong); color: var(--ink-soft); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.hero-visual {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  background: var(--surface-2);
}
.hero-art {
  flex: 1; min-height: 280px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(191,160,111,.12), transparent 60%), linear-gradient(135deg, #f4f1eb, #ebe7df);
  font-size: clamp(40px, 5vw, 64px); font-weight: 600; color: var(--accent-dark);
  letter-spacing: 6px;
}
.hero-visual .overlay {
  padding: 22px 24px;
  background: #fff; border-top: 1px solid var(--line);
}
.hero-visual .overlay > p { color: var(--muted); letter-spacing: 3px; font-size: 14px; text-align: center; }
.hero-visual .stat-row { display: flex; justify-content: space-around; margin-top: 14px; }
.hero-visual .stat-row div { text-align: center; }
.hero-visual .stat-row div span { display: block; font-size: 24px; font-weight: 600; color: var(--ink); }
.hero-visual .stat-row div small { color: var(--muted); font-size: 12px; }

/* ---------- 区块标题 ---------- */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--muted); letter-spacing: 4px; font-size: 12px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3vw, 32px); margin: 12px 0 14px; color: var(--ink); font-weight: 600; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 15px; }

/* ---------- 优势 ---------- */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow .2s, transform .2s;
}
.adv-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.adv-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.adv-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- 产品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card .thumb {
  aspect-ratio: 4/3; display: grid; place-items: center; position: relative;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.thumb-placeholder {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: var(--muted); font-size: 15px; letter-spacing: 2px;
}
.product-card .tag {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 4px; letter-spacing: 0.5px;
}
.product-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }
.product-card h3 { font-size: 16px; color: var(--ink); font-weight: 500; }
.product-card .meta { font-size: 13px; color: var(--muted); }
.product-card .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.product-card .price { color: var(--ink); font-weight: 600; font-size: 18px; }
.product-card .price small { font-size: 13px; }
.product-card .price .old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 13px; margin-left: 6px; }
.product-card .add {
  border: 1px solid var(--line-strong); color: var(--ink-soft); background: transparent;
  border-radius: var(--radius); padding: 6px 14px; font-size: 13px; font-weight: 500;
}
.product-card .add:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 关于/图文 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .pic {
  border-radius: var(--radius); min-height: 360px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 30px;
  color: var(--muted); font-size: 28px; font-weight: 600; letter-spacing: 4px;
}
.split h2 { font-size: 28px; margin-bottom: 16px; color: var(--ink); }
.split p { color: var(--ink-soft); margin-bottom: 14px; }
.split ul { list-style: none; display: grid; gap: 10px; }
.split ul li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.split ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: center; }
.step .num {
  width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--surface); color: var(--ink); display: grid; place-items: center;
  font-size: 18px; font-weight: 600; border: 1px solid var(--line-strong);
}
.step h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink); color: #fff; text-align: center;
  border-radius: var(--radius); padding: 56px 30px;
}
.cta h2 { font-size: 26px; margin-bottom: 10px; color: #fff; }
.cta p { color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.cta .btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 14px; font-size: 15px;
  font-family: inherit; background: var(--surface); color: var(--ink); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.field textarea { resize: vertical; min-height: 120px; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-ok { background: #f0f7f0; color: #2e7d4f; border: 1px solid #d0e8d0; }
.alert-err { background: #fdf2f2; color: #b3271b; border: 1px solid #f5d0d0; }

/* ---------- 页脚 ---------- */
.footer { background: var(--surface-3); color: var(--ink-soft); padding: 56px 0 24px; border-top: 1px solid var(--line); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--ink); font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.footer a, .footer p { color: var(--muted); font-size: 14px; line-height: 2; }
.footer a:hover { color: var(--ink); }
.footer .bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- 面包屑/工具条 ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  padding: 7px 16px; border-radius: var(--radius); font-size: 14px; transition: all .2s;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-box { display: flex; gap: 8px; }
.search-box input { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 9px 14px; width: 200px; background: var(--surface); color: var(--ink); font-family: inherit; }
.search-box input:focus { outline: none; border-color: var(--ink); }
.sort-select { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 9px 14px; background: var(--surface); color: var(--ink); font-family: inherit; }

/* ---------- 商品详情 ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail .gallery {
  border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
}
.gallery-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: var(--muted); font-size: 22px; letter-spacing: 4px;
}
.detail h1 { font-size: 26px; margin-bottom: 10px; color: var(--ink); font-weight: 600; }
.detail .price { font-size: 28px; color: var(--ink); font-weight: 600; margin: 14px 0; }
.detail .price .old { font-size: 16px; color: var(--muted); text-decoration: line-through; margin-left: 10px; font-weight: 400; }
.detail .attrs { display: grid; gap: 10px; margin: 18px 0; }
.detail .attrs div { display: flex; gap: 12px; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.detail .attrs div b { color: var(--muted); font-weight: 500; min-width: 72px; }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; width: fit-content; background: var(--surface); }
.qty button { width: 36px; height: 38px; border: none; background: var(--surface-2); font-size: 18px; color: var(--ink); }
.qty input { width: 48px; height: 38px; border: none; text-align: center; font-size: 15px; background: var(--surface); color: var(--ink); }
.badge { font-size: 12px; padding: 2px 9px; border-radius: 4px; background: var(--surface-2); color: var(--ink-soft); }

/* ---------- 购物车 ---------- */
.cart-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cart-table th, .cart-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cart-table th { background: var(--surface-3); font-size: 14px; color: var(--muted); font-weight: 500; }
.cart-table .pname { font-weight: 500; color: var(--ink); }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 22px; box-shadow: var(--shadow); }
.cart-summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary .total { font-size: 20px; color: var(--ink); font-weight: 600; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* ---------- 后台 ---------- */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: #111; color: #999; padding: 24px 16px; }
.admin-side h3 { color: #fff; font-size: 13px; margin: 22px 8px 10px; text-transform: uppercase; letter-spacing: 1px; }
.admin-side a { display: block; padding: 10px 14px; border-radius: 6px; color: #999; margin-bottom: 4px; font-size: 14px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { padding: 28px 32px; overflow: auto; background: var(--bg); }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat-box .v { font-size: 26px; font-weight: 600; color: var(--ink); }
.stat-box .l { color: var(--muted); font-size: 14px; }
table.data { width: 100%; min-width: 640px; border-collapse: collapse; }
table.data th, table.data td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; white-space: nowrap; color: var(--ink-soft); }
table.data th { color: var(--muted); font-weight: 500; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.login-box { max-width: 360px; margin: 12vh auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }

/* ---------- 响应式 ---------- */
@media (max-width: 940px) {
  .hero .container, .split, .detail { grid-template-columns: 1fr; }
  .advantages, .steps, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 0; }
}
@media (max-width: 560px) {
  .advantages, .steps, .product-grid, .form-grid { grid-template-columns: 1fr; }
  .search-box input { width: 140px; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 12px; }
  .admin-side h3 { width: 100%; margin: 8px 4px 2px; font-size: 12px; }
  .admin-side a { margin-bottom: 0; padding: 8px 12px; font-size: 13px; background: rgba(255,255,255,0.08); }
  .admin-main { padding: 18px 14px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-box { padding: 14px; }
  .stat-box .v { font-size: 20px; }
  .admin-card { padding: 16px; }
  .chat-panel { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; height: 78vh; }
}

/* ---------- 页脚备案信息 ---------- */
.footer .icp { margin-top: 4px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.footer .icp a { color: var(--muted); text-decoration: none; }
.footer .icp a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 商品图片 ---------- */
.product-card .thumb img.thumb-img,
.detail .gallery img.gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card:hover .thumb-img { transform: scale(1.03); transition: transform .35s ease; }
.cart-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 10px; border: 1px solid var(--line); }
.admin-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 8px; border: 1px solid rgba(255,255,255,.2); }
