/* ============================================================================
 * 颖晖 YINGHUI · 设计系统
 * 参考 https://www.perlasilk.com/ 的结构与品牌 token（金 / 砖红 / 白 · 全直角）
 * ==========================================================================*/

:root {
  /* 取自参考站 branding.colors */
  --gold: #c69b21;
  --gold-deep: #ba982f;
  --brick: #964233;
  --gold-text: #937417;
  --ink: #2e2a26;
  --muted: #787a7c;
  --line: #dddede;
  --bg: #fff;
  --paper: #f7f4ee;
  --paper-2: #efe9df;

  --radius: 0px;
  --max: 1280px;
  --pad: clamp(16px, 4vw, 48px);

  --font-head: "Fira Sans", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Jost", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-text);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(30px, 4.6vw, 54px);
}

h2 {
  font-size: clamp(22px, 2.6vw, 32px);
}

h3 {
  font-size: clamp(17px, 1.6vw, 21px);
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* ------------------------------- 公告条 ------------------------------- */
.notice-bar {
  background: var(--ink);
  color: #f5efe3;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 8px var(--pad);
  min-height: 32px;
}

.notice-bar span {
  display: inline-block;
  animation: fade 0.6s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------- 头部 ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 76px;
}

.nav-main {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.nav-main a {
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-main a:hover::after,
.nav-main a.is-active::after {
  width: 100%;
}

.brand {
  font-family: var(--font-head);
  text-align: center;
  line-height: 1;
}

.brand a {
  color: var(--ink);
  display: inline-block;
}

.brand .brand-cn {
  display: block;
  font-size: 22px;
  letter-spacing: 0.42em;
  margin-bottom: 6px;
  padding-left: 0.42em;
}

.brand .brand-en {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--gold-text);
  padding-left: 0.5em;
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  border: 1px solid transparent;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 8px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn:hover {
  border-color: var(--line);
  color: var(--gold-text);
}

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brick);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.hamburger i {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}

/* ------------------------------- 抽屉 ------------------------------- */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(84vw, 360px);
  background: #fff;
  z-index: 120;
  transform: translateX(-102%);
  transition: transform 0.36s var(--ease);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.drawer.is-open {
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  letter-spacing: 0.2em;
}

.drawer-nav {
  padding: 10px 0;
  overflow-y: auto;
}

.drawer-nav a {
  display: block;
  padding: 15px 22px;
  color: var(--ink);
  border-bottom: 1px solid #f2f0ec;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.drawer-foot {
  margin-top: auto;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.42);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.close-x {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
}

/* 搜索面板 */
.search-panel {
  position: fixed;
  inset: 0 0 auto 0;
  background: #fff;
  z-index: 130;
  transform: translateY(-102%);
  transition: transform 0.34s var(--ease);
  border-bottom: 1px solid var(--line);
  padding: 28px var(--pad);
}

.search-panel.is-open {
  transform: none;
}

.search-panel form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

/* ------------------------------- 按钮 ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-deep);
  background: var(--gold-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  background: var(--brick);
  border-color: var(--brick);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--line {
  background: transparent;
  color: var(--gold-text);
  border-color: var(--gold-deep);
}

.btn--line:hover {
  background: var(--gold-deep);
  color: #fff;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.btn--block {
  width: 100%;
}

/* ------------------------------- Hero ------------------------------- */
.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.7s var(--ease);
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: clamp(420px, 62vh, 640px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 60px var(--pad);
  isolation: isolate;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 20, 0.34), rgba(28, 24, 20, 0.5));
  z-index: -1;
}

.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-inner {
  max-width: 720px;
}

.hero-slide .kicker {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #f2e4bf;
  margin-bottom: 18px;
}

.hero-slide h1 {
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.hero-slide p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero-nav {
  position: absolute;
  inset: auto 0 26px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-nav button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.hero-nav button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dots {
  display: flex;
  gap: 8px;
}

.dots i {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.dots i.is-on {
  width: 26px;
  background: #fff;
}

/* ------------------------------- 通用区块 ------------------------------- */
.section {
  padding: clamp(52px, 7vw, 96px) 0;
}

.section--paper {
  background: var(--paper);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3vw, 40px);
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
}

.section-head .more {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* 承诺条 */
.pledges {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pledges div {
  padding: 22px 18px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.pledges div:last-child {
  border-right: 0;
}

.pledges strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
  color: var(--gold-text);
}

/* 分类横滑 */
.cat-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--paper-2);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.cat-card:hover img {
  transform: scale(1.05);
}

.cat-card .cat-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(24, 20, 16, 0.62), rgba(24, 20, 16, 0));
  color: #fff;
}

.cat-card .cat-name {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 0.14em;
}

.cat-card .cat-desc {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.86;
}

/* ------------------------------- 商品卡 ------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(16px, 2vw, 30px);
}

.p-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.p-card:hover {
  border-color: var(--line);
}

.p-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}

.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.p-card:hover .p-media img {
  transform: scale(1.04);
}

.p-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brick);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 8px;
}

.p-body {
  padding: 14px 2px 0;
}

.p-name {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.p-name:hover {
  color: var(--gold-text);
}

.p-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.mrp {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.colors {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.colors i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  background: #ddd;
  display: block;
}

.sizes {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sizes span {
  font-size: 10px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  padding: 2px 6px;
  color: var(--muted);
}

.p-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* ------------------------------- 工艺故事 ------------------------------- */
.story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.story-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body p {
  color: #4a453e;
}

/* 服务四宫格 */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.services a {
  padding: clamp(20px, 3vw, 34px);
  border-right: 1px solid var(--line);
  color: var(--ink);
  display: block;
  transition: background 0.3s var(--ease);
}

.services a:last-child {
  border-right: 0;
}

.services a:hover {
  background: var(--paper);
}

.services .svc-idx {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-text);
}

.services h3 {
  margin: 10px 0 6px;
  font-size: 16px;
  letter-spacing: 0.1em;
}

.services p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* 订阅 */
.subscribe {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(38px, 5vw, 64px) 0;
}

.subscribe form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 18px auto 0;
}

/* ------------------------------- 表单 ------------------------------- */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color 0.25s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.field {
  margin-bottom: 16px;
}

.form-error {
  display: none;
  color: var(--brick);
  font-size: 12px;
  margin-top: 6px;
}

.form-error.is-on {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ------------------------------- 页脚 ------------------------------- */
.site-footer {
  background: #221f1b;
  color: #cfc7ba;
  padding: clamp(44px, 6vw, 72px) 0 26px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.site-footer h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.site-footer a {
  color: #cfc7ba;
  display: block;
  padding: 4px 0;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-brand .brand-cn {
  color: #fff;
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.4em;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9c948a;
}

/* ------------------------------- 列表页 ------------------------------- */
.page-head {
  background: var(--paper);
  padding: clamp(34px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin: 26px 0 22px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chips button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.chips button:hover {
  border-color: var(--gold);
}

.chips button.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.result-count {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.empty {
  border: 1px dashed var(--line);
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
}

.more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ------------------------------- 详情页 ------------------------------- */
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.pdp-media {
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.pdp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-info h1 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 12px;
}

.pdp-price {
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.opt-block {
  margin: 20px 0;
}

.opt-block .opt-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.opt-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.opt-list button {
  min-width: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--ink);
}

.opt-list button.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.qty button {
  width: 40px;
  height: 42px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
}

.qty input {
  width: 52px;
  border: 0;
  text-align: center;
  padding: 0;
  height: 42px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  font-size: 13px;
}

.spec-table th,
.spec-table td {
  border-top: 1px solid var(--line);
  padding: 11px 0;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 200;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------- 询价单 ------------------------------- */
.inq-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.inq-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.inq-item img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  background: var(--paper-2);
}

.inq-item .inq-name {
  font-family: var(--font-head);
  font-size: 15px;
  margin-bottom: 4px;
}

.inq-item .inq-opt {
  font-size: 12px;
  color: var(--muted);
}

.inq-item .inq-del {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 6px 0;
}

.inq-item .inq-del:hover {
  color: var(--brick);
}

.inq-side {
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper);
}

.inq-success {
  border: 1px solid var(--gold-deep);
  background: #fdfaf3;
  padding: clamp(26px, 4vw, 48px);
  text-align: center;
}

/* ------------------------------- 关于 / 联系 ------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.fact-grid div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.fact-grid dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.fact-grid dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 15px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  font-size: 14px;
}

.contact-list span:first-child {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 3px;
}

.map-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #f7f4ee, #f7f4ee 10px, #f2ede3 10px, #f2ede3 20px);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-align: center;
  padding: 20px;
}

/* ------------------------------- 后台 ------------------------------- */
.admin-body {
  background: #f4f2ee;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(160deg, #f7f4ee, #eee7da);
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(26px, 5vw, 44px);
}

.login-card h1 {
  font-size: 22px;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 246px 1fr;
  min-height: 100vh;
}

.admin-side {
  background: #221f1b;
  color: #d8d0c4;
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-side .side-brand {
  padding: 0 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
  color: #fff;
  font-family: var(--font-head);
  letter-spacing: 0.3em;
  font-size: 16px;
}

.admin-side button {
  text-align: left;
  border: 0;
  background: none;
  color: #d8d0c4;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 12px 22px;
  cursor: pointer;
  border-left: 2px solid transparent;
}

.admin-side button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-side button.is-on {
  background: rgba(198, 155, 33, 0.16);
  border-left-color: var(--gold);
  color: #fff;
}

.admin-side .side-foot {
  margin-top: auto;
  padding: 16px 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: #8d857a;
}

.admin-main {
  padding: clamp(18px, 3vw, 34px);
  min-width: 0;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.admin-top h1 {
  font-size: 22px;
  margin: 0;
  letter-spacing: 0.14em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}

.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 2px;
}

.stat span {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(16px, 2.4vw, 26px);
  margin-bottom: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.panel-head h2 {
  font-size: 15px;
  letter-spacing: 0.16em;
  margin: 0;
  font-family: var(--font-body);
  text-transform: uppercase;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

table.data th {
  text-align: left;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  white-space: nowrap;
}

table.data td {
  border-bottom: 1px solid #f1efea;
  padding: 10px 8px;
  vertical-align: middle;
}

table.data img {
  width: 42px;
  height: 52px;
  object-fit: cover;
  background: var(--paper-2);
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  cursor: pointer;
  color: var(--ink);
}

.mini-btn:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.mini-btn--danger:hover {
  border-color: var(--brick);
  color: var(--brick);
}

.pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill--on {
  border-color: #b7c9b4;
  color: #4c6b48;
}

.pill--off {
  border-color: #ddc9c4;
  color: var(--brick);
}

.pill--pending {
  border-color: var(--gold);
  color: var(--gold-text);
}

/* 后台弹窗 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.46);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 200;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  background: #fff;
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
}

.modal-card h2 {
  font-size: 17px;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* 移动端底部栏 */
.tabbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  z-index: 90;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}

.tabbar a {
  flex: 1;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 4px 0;
}

.tabbar a.is-on {
  color: var(--gold-text);
}

.tabbar b {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 2px;
}

/* ------------------------------- 响应式 ------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pdp,
  .inq-layout,
  .story,
  .two-col {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .services a:nth-child(2) {
    border-right: 0;
  }

  .services a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    z-index: 150;
    transform: translateX(-102%);
    transition: transform 0.32s var(--ease);
  }

  .admin-side.is-open {
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav-main {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }

  .header-row {
    grid-template-columns: auto 1fr auto;
    height: 64px;
  }

  .brand .brand-cn {
    font-size: 18px;
    letter-spacing: 0.3em;
  }

  .pledges {
    grid-template-columns: 1fr 1fr;
  }

  .pledges div:nth-child(2) {
    border-right: 0;
  }

  .pledges div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tabbar {
    display: flex;
  }

  body {
    padding-bottom: 56px;
  }

  .site-footer {
    padding-bottom: 70px;
  }

  .cat-rail {
    grid-auto-columns: minmax(160px, 62%);
  }

  /* 移动端 Hero：左对齐 + 底部对齐，右上留给丝光徽记 */
  .hero-slide {
    min-height: 460px;
    padding: 46px 22px 96px;
    place-items: end start;
    text-align: left;
  }

  .hero-bg {
    object-position: 100% center;
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero-slide h1 {
    font-size: clamp(22px, 7vw, 30px);
    letter-spacing: 0.01em;
  }

  .hero-slide p {
    font-size: 13px;
    margin: 0 0 24px;
  }

  .hero-slide .kicker {
    font-size: 10px;
    letter-spacing: 0.24em;
    margin-bottom: 12px;
  }

  .hero-nav {
    bottom: 18px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .p-body {
    padding-top: 10px;
  }

  .p-actions .btn {
    padding: 9px 12px;
    font-size: 10px;
  }

  .inquire-opt .btn {
    letter-spacing: 0.08em;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .services {
    grid-template-columns: 1fr;
  }

  .services a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inq-item {
    grid-template-columns: 64px 1fr;
  }

  .inq-item img {
    width: 64px;
    height: 80px;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    min-height: 460px;
  }
}
