/* Body Pierce Studio — 原创暗色金饰风格主题 */
:root {
  --bg: #0e0d0b;
  --surface: #191713;
  --surface-2: #221f19;
  --border: #332e25;
  --text: #f0ede6;
  --text-dim: #a89f8f;
  --gold: #d4af37;
  --gold-soft: #e6c766;
  --danger: #e05a4e;
  --radius: 10px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }
img, svg { max-width: 100%; }
button { font-family: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,13,11,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 18px; height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-weight: 700; letter-spacing: .12em; font-size: 15px; color: var(--text); }
.brand-name em { font-style: normal; color: var(--gold); }
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 12px; border-radius: 6px;
  color: var(--text-dim); font-size: 14.5px;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); background: var(--surface); }
.cart-link { position: relative; color: var(--text); display: flex; align-items: center; }
.cart-link svg { width: 24px; height: 24px; }
.cart-badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--gold); color: #1a1508;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text); font-size: 18px; border-radius: 6px;
  width: 38px; height: 34px; cursor: pointer;
}
.lang-switch { display: flex; gap: 4px; margin-left: 2px; }
.lang-switch button {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  font-size: 12px; padding: 4px 8px; border-radius: 999px; cursor: pointer;
}
.lang-switch button:hover { color: var(--gold); border-color: var(--gold); }
.lang-switch button.active { color: var(--gold); border-color: var(--gold); background: rgba(212,175,55,.1); }

/* ---------- Layout ---------- */
main { min-height: 62vh; }
.container { max-width: var(--max); margin: 0 auto; padding: 32px 20px; }
.page-title { font-size: 26px; margin: 8px 0 4px; letter-spacing: .04em; }
.page-sub { color: var(--text-dim); margin: 0 0 24px; font-size: 14.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--gold); background: var(--gold); color: #1a1508;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .06s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); color: #1a1508; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(212,175,55,.08); }
.btn.wide { width: 100%; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(212,175,55,.14), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(212,175,55,.08), transparent 60%),
    var(--bg);
}
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 88px 20px 96px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); margin: 0 0 14px;
  letter-spacing: .08em; font-weight: 800;
}
.hero h1 span { color: var(--gold); }
.hero p { color: var(--text-dim); max-width: 560px; margin: 0 auto 30px; font-size: 16px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 46px 20px; }
.section-title {
  font-size: 21px; letter-spacing: .06em; margin: 0 0 6px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-desc { color: var(--text-dim); font-size: 14px; margin: 0 0 22px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.feature-card h3 { margin: 10px 0 8px; font-size: 16.5px; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 14px; }
.feature-icon { color: var(--gold); font-size: 24px; }

/* ---------- Shop ---------- */
.shop-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); padding: 6px 14px; border-radius: 999px;
  font-size: 13.5px; cursor: pointer;
}
.chip.active { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,.08); }
.search-input {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 8px 14px; border-radius: 999px;
  font-size: 14px; width: 220px; outline: none;
}
.search-input:focus { border-color: var(--gold); }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
  cursor: pointer;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.product-thumb { aspect-ratio: 1; display: block; width: 100%; background: var(--surface-2); }
.product-info { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-cat { font-size: 12px; color: var(--text-dim); letter-spacing: .08em; }
.product-name { font-size: 15.5px; font-weight: 600; margin: 0; }
.product-price { color: var(--gold); font-weight: 700; font-size: 15px; }
.product-actions { margin-top: auto; display: flex; gap: 8px; }
.badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(212,175,55,.15); color: var(--gold); border: 1px solid rgba(212,175,55,.4);
}
.badge.soldout { background: rgba(224,90,78,.12); color: var(--danger); border-color: rgba(224,90,78,.4); }

/* ---------- Product detail ---------- */
.detail { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 36px; align-items: start; }
.detail-thumb { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.detail h2 { margin: 4px 0 8px; font-size: 24px; }
.detail .price { font-size: 22px; color: var(--gold); font-weight: 700; }
.detail-meta { list-style: none; padding: 0; margin: 18px 0; color: var(--text-dim); font-size: 14px; }
.detail-meta li { padding: 7px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 10px; }
.detail-meta li b { color: var(--text); font-weight: 600; min-width: 72px; }
.back-link { display: inline-block; margin-bottom: 14px; font-size: 14px; }

/* ---------- Cart / Checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: 12.5px; color: var(--text-dim);
  padding: 10px 8px; border-bottom: 1px solid var(--border); letter-spacing: .06em;
}
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-name { font-weight: 600; }
.cart-item-sub { font-size: 12.5px; color: var(--text-dim); }
.qty-input {
  width: 64px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 6px 8px; border-radius: 6px; text-align: center;
}
.link-danger { color: var(--danger); font-size: 13px; background: none; border: none; cursor: pointer; padding: 0; }
.link-danger:hover { text-decoration: underline; }
.summary-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; position: sticky; top: 84px;
}
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; color: var(--text-dim); }
.summary-row.total { color: var(--text); font-weight: 700; font-size: 17px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; color: var(--text-dim); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 10px 12px; border-radius: 8px;
  font-size: 14.5px; outline: none; font-family: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); }
.form-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.form-note { font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }
.error-text { color: var(--danger); font-size: 13px; min-height: 18px; }

/* ---------- Success ---------- */
.success-card {
  text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 56px 24px; max-width: 560px; margin: 40px auto;
}
.success-card .big { font-size: 44px; }
.success-code {
  font-size: 20px; color: var(--gold); font-weight: 700; letter-spacing: .1em;
  background: rgba(212,175,55,.1); border: 1px dashed rgba(212,175,55,.5);
  padding: 10px 18px; border-radius: 8px; display: inline-block; margin: 12px 0 6px;
}

/* ---------- Policy / article ---------- */
.article { max-width: 800px; margin: 0 auto; }
.article h3 { margin: 26px 0 10px; font-size: 17px; color: var(--gold-soft); }
.article p, .article li { color: #cfc8bb; font-size: 14.5px; }
.article .callout {
  border-left: 3px solid var(--gold); background: var(--surface);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 14px;
}
.care-steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; }
.care-steps li {
  counter-increment: step; position: relative; padding: 14px 18px 14px 56px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
}
.care-steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: #1a1508; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}

/* ---------- Price list ---------- */
.price-list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.price-list th, .price-list td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.price-list th { color: var(--text-dim); font-size: 12.5px; letter-spacing: .08em; }
.price-list td:last-child { color: var(--gold); font-weight: 600; white-space: nowrap; }
.price-list tr:last-child td { border-bottom: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--gold);
  color: var(--text); padding: 12px 22px; border-radius: 999px;
  font-size: 14px; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; background: #0b0a08; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 42px 20px;
  display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 30px;
}
.footer-col h4 { color: var(--gold); font-size: 14px; letter-spacing: .1em; margin: 0 0 12px; }
.footer-col p, .footer-col a { color: var(--text-dim); font-size: 13.5px; display: block; margin: 6px 0; }
.footer-social { display: flex; gap: 14px; margin-top: 12px; }
.footer-social a { display: inline-block; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 20px;
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #6f695d; font-size: 12.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 10px 16px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; font-size: 15px; }
  .detail { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
