/* ============================================================
   Tank Workshop Model — 全站样式
   ============================================================ */

:root {
  --bg: #f5f3ed;
  --surface: #ffffff;
  --ink: #22262b;
  --muted: #66707c;
  --line: #e2ddd0;
  --dark: #1f2420;
  --dark-2: #2a302a;
  --accent: #8a7444;
  --accent-dark: #6d5a33;
  --soldout: #a8432e;
  --instock: #3e6b47;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* logo 原图为纯黑，深色背景上反转为白色 */
.logo, .footer-logo { filter: brightness(0) invert(1); }
.logo { height: 46px; width: auto; }

.main-nav { display: flex; gap: 24px; align-items: center; }

/* ---------- 语言切换按钮 ---------- */
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #d8dcd4;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .04em;
  white-space: nowrap;
}
.lang-toggle:hover { border-color: #fff; color: #fff; }
/* 导航内的退出登录按钮（已登录时出现在「我的订单」旁） */
.nav-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #d8dcd4;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .06em;
  white-space: nowrap;
  text-transform: uppercase;
}
.nav-logout:hover { border-color: #fff; color: #fff; }

.main-nav a {
  color: #d8dcd4;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; border-bottom-color: var(--accent-soft); }

/* 登录 / 我的订单入口：按钮样式，比普通导航项更醒目 */
.main-nav a#nav-account {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 8px 20px;
  white-space: nowrap;
}
.main-nav a#nav-account:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: .2s;
}

/* ---------- 首页 Hero ---------- */
.hero { position: relative; background: var(--dark); }
.hero img.hero-img { width: 100%; height: 68vh; min-height: 420px; object-fit: cover; opacity: .92; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(22, 26, 22, .35), rgba(22, 26, 22, .72));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-content { padding: 0 20px; color: #fff; }
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #d9c48f;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-tagline {
  font-size: 18px;
  color: #e6e8e2;
  max-width: 560px;
  margin: 0 auto 30px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
  border: 0;
  background: var(--dark);
  color: #fff;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #0e110e; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .65); }
.btn-outline:hover { border-color: #fff; color: #fff; }

/* ---------- 版块 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); }

/* ---------- 产品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 0, 0, .1); color: inherit; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eae6da; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  border-radius: 3px;
}
.badge-instock { background: rgba(62, 107, 71, .94); }
.badge-soldout { background: rgba(168, 67, 46, .94); }
.badge-preorder { background: #d99a1e; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.badge-sub { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .95; }
.stock-low { display: inline-block; color: #a8432e; font-size: 13px; font-weight: 600; margin: 0 0 8px; }

.card-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 19px; font-weight: 700; color: var(--ink); }
.card-link { font-size: 13px; font-weight: 600; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- 内页页头 ---------- */
.page-hero {
  background: var(--dark);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.page-hero h1 {
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.page-hero p { color: #c9cec4; margin-top: 10px; }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-dark); }

/* ---------- 产品详情 ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.gallery-main {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eae6da;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 78px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #eae6da;
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 { font-size: 28px; line-height: 1.3; margin-bottom: 10px; }
.detail-meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.detail-price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.detail-price { font-size: 30px; font-weight: 700; }
.status-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status-pill.in-stock { background: #e4efe6; color: var(--instock); }
.status-pill.sold-out { background: #f6e6e1; color: var(--soldout); }
.status-pill.pre-order { background: #f9edcd; color: #9a6d08; }

.detail-desc { margin-bottom: 22px; }
.detail-desc li { margin-left: 20px; margin-bottom: 6px; }

.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.specs-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs-table td:first-child { color: var(--muted); width: 40%; }

.note-box {
  background: #f0ede3;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  font-size: 13.5px;
  color: #55503f;
  margin-top: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- 关于页 / 图文区 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.steps { counter-reset: step; display: grid; gap: 20px; margin-top: 28px; }
.step {
  counter-increment: step;
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.step::before {
  content: counter(step);
  flex: 0 0 40px;
  height: 40px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- 联系页 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.channel-list { display: grid; gap: 14px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.channel-icon {
  flex: 0 0 40px;
  height: 40px;
  background: var(--dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.channel-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.channel-value { font-weight: 600; word-break: break-all; }
.channel-note { font-size: 12.5px; color: var(--muted); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.social-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 表单 ---------- */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-panel h2 { font-size: 22px; margin-bottom: 6px; }
.form-panel .form-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #4a5056; margin-bottom: 6px; }
.field label .req { color: var(--soldout); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc9ba;
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 116, 68, .15);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-msg { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 14.5px; margin-bottom: 18px; }
.form-msg.ok { display: block; background: #e4efe6; color: #2c5533; border: 1px solid #bcd6c2; }
.form-msg.err { display: block; background: #f6e6e1; color: #8c3a28; border: 1px solid #e5b9ab; }
.field-error { color: var(--soldout); font-size: 13px; margin-top: 4px; display: none; }

/* ---------- CTA 横带 ---------- */
.cta-band { background: var(--dark); color: #fff; text-align: center; }
.cta-band h2 { font-size: 28px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.cta-band p { color: #c9cec4; max-width: 540px; margin: 0 auto 24px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark-2); color: #b9beb4; padding: 56px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 14px; }
.site-footer a { color: #b9beb4; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8d938a;
}

/* ---------- 404 / 兜底 ---------- */
.notfound { text-align: center; padding: 100px 20px; }
.notfound h1 { font-size: 80px; color: var(--accent); line-height: 1; }
.notfound p { color: var(--muted); margin: 16px 0 26px; }
.render-fallback {
  background: #f6e6e1;
  color: #8c3a28;
  border: 1px solid #e5b9ab;
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .split, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-toggle { display: block; }
  .section { padding: 52px 0; }
  .hero img.hero-img { height: 56vh; }
  .form-panel { padding: 22px; }
}

/* ============================================================
   二期：账号 / 结算 / 订单 / 图库 / 双语新增样式
   ============================================================ */

/* ---------- 登录 / 注册 ---------- */
.auth-layout { max-width: 480px; margin: 0 auto; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card .form-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--muted);
}
.auth-tabs button.active { background: var(--dark); color: #fff; border-color: var(--dark); }
/* 注册方式切换条（#method-seg）：邮箱/手机号注册等地位——两按钮同尺寸同底色同文字色，
   选中项仅用金色描边区分，不再深色填充 */
#method-seg.auth-tabs { margin-bottom: 18px; }
#method-seg.auth-tabs button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
#method-seg.auth-tabs button.active {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}
.auth-alt { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-alt button { background: none; border: 0; color: var(--accent-dark); font-weight: 700; cursor: pointer; font-size: 13.5px; }
.auth-alt button:hover { color: var(--accent); }

/* ---------- 结算页 ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.checkout-aside { position: sticky; top: 96px; }
.order-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.order-summary h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.summary-product { display: flex; gap: 14px; margin-bottom: 14px; }
.summary-product img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.summary-product .s-name { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.summary-product .s-meta { font-size: 12.5px; color: var(--muted); }
.summary-rows { border-top: 1px solid var(--line); padding-top: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 5px 0; color: var(--muted); }
.summary-row.total { color: var(--ink); font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.summary-row .cny { color: var(--accent-dark); font-size: 20px; font-weight: 700; }
.rate-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #cfc9ba;
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s;
}
.pay-option input { display: none; }
.pay-option .pay-name { font-weight: 700; font-size: 14.5px; }
.pay-option .pay-note { font-size: 12px; color: var(--muted); }
.pay-option.checked { border-color: var(--accent); background: #faf7ef; }
.pay-dot {
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cfc9ba;
  position: relative;
}
.pay-option.checked .pay-dot { border-color: var(--accent); }
.pay-option.checked .pay-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 订单状态 pill / 步骤条 ---------- */
.status-pill.pending_payment { background: #f4ecd9; color: #8a6d1f; }
.status-pill.pending_deposit { background: #f9edcd; color: #9a6d08; }
.status-pill.deposit_paid { background: #fdf3dc; color: #a67c10; }
.status-pill.balance_due { background: #f4ecd9; color: #8a6d1f; }
.status-pill.paid { background: #e4efe6; color: var(--instock); }
.status-pill.shipped { background: #e3edf5; color: #2e5f82; }
.status-pill.completed { background: #e8e9e4; color: #4a5548; }
.status-pill.cancelled { background: #f6e6e1; color: var(--soldout); }

.status-steps { display: flex; margin-bottom: 26px; }
.status-step {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  position: relative;
}
.status-step::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d8d4c8;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}
.status-step:not(:first-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #d8d4c8;
  z-index: 1;
}
.status-step.done { color: var(--ink); font-weight: 700; }
.status-step.done::before { background: var(--accent); }
.status-step.done:not(:first-child)::after { background: var(--accent); }

/* ---------- 订单列表 / 详情 ---------- */
.order-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #faf9f4;
}
.order-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.order-table tr:last-child td { border-bottom: 0; }
.order-table .o-id { font-weight: 700; white-space: nowrap; }
.order-table .o-amt { font-weight: 700; white-space: nowrap; }
.order-table .o-amt .sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.order-table .o-link { font-weight: 600; color: var(--accent-dark); white-space: nowrap; }

.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
}
.detail-panel h2 { font-size: 20px; margin-bottom: 16px; }
.detail-panel .dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.detail-panel .dp-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.detail-panel .dp-value { font-size: 14.5px; margin-top: 2px; word-break: break-word; }

/* ---------- 收款二维码 ---------- */
.qr-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.qr-box img {
  width: 260px;
  max-width: 100%;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.qr-box .qr-amount { font-size: 28px; font-weight: 700; color: var(--accent-dark); margin-bottom: 2px; }
.qr-box .qr-usd { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pay-steps { text-align: left; counter-reset: pstep; display: grid; gap: 10px; margin-top: 4px; }
.pay-steps .pstep { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.pay-steps .pstep::before {
  counter-increment: pstep;
  content: counter(pstep);
  flex: 0 0 26px;
  height: 26px;
  background: var(--dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- 图库 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eae6da;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.05); }
/* 署名作品：创作者名字角标（右下角；匿名作品不渲染此元素） */
.gallery-author {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 10px;
  font-size: 12px;
  color: #fff;
  background: rgba(31, 36, 32, .72);
  border-radius: var(--radius) 0 0 0;
  letter-spacing: .02em;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 12, .94);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox img.lb-img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox .lb-bar { color: #d8dcd4; font-size: 14px; margin-top: 16px; display: flex; align-items: center; gap: 18px; }
.lightbox .lb-btn {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  border-radius: 4px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 13px;
}
.lightbox .lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox .lb-close { position: absolute; top: 20px; right: 24px; font-size: 30px; background: none; border: 0; color: #fff; cursor: pointer; line-height: 1; }

/* ---------- 其他 ---------- */
.account-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.account-nav a {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}
.account-nav a.active { background: var(--dark); color: #fff; border-color: var(--dark); }

.price-sub { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.text-center { text-align: center; }

/* ---------- 二期响应式 ---------- */
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-aside { position: static; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .pay-options { grid-template-columns: 1fr; }
  .order-table { display: block; overflow-x: auto; }
  .detail-panel .dp-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- 退货备注（如何下单页） ---------- */
.notice-note {
  margin-top: 32px;
  padding: 14px 18px;
  background: #faf6ec;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 发售/发货计划甘特图（主页 + 产品列表页） ---------- */
.gantt-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.gantt-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.gantt-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}
.gantt-diamond {
  display: inline-block;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--accent-dark);
  border: 2px solid #fff;
}

.gantt-wrap { overflow-x: auto; margin-top: 14px; }
.gantt-table { min-width: 680px; }
.gantt-row { display: flex; align-items: center; }
.gantt-row + .gantt-row { border-top: 1px solid var(--line); }

.gantt-track { flex: 1; position: relative; height: 84px; }
.gantt-head-row .gantt-track { height: 30px; }
.gantt-months, .gantt-cells { position: absolute; inset: 0; display: flex; }
.gantt-month {
  flex: 1;
  border-left: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  white-space: nowrap;
}
.gantt-cell { flex: 1; border-left: 1px solid var(--line); }

/* 当前月份整列高亮（时间轴上的「今天」所在月，2026-08 起） */
.gantt-month-now { color: var(--accent-dark); font-weight: 600; background: rgba(138, 116, 68, .10); }
.gantt-cell-now { background: rgba(138, 116, 68, .10); }

.gantt-bar {
  position: absolute;
  top: 12px;
  height: 60px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(138, 116, 68, 0.22);
  box-sizing: border-box;
  min-width: 10px;
}
.gantt-bar .gantt-dot {
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
}
.gantt-bar .gantt-diamond {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

/* 三段式：预定细条（预定开放月中 → 涂装月月末，浅金色）/ 生产条（白色半透明）+ 段内坦克名字 */
.gantt-preorder-strip {
  position: absolute;
  top: 4px;
  height: 6px;
  border-radius: 3px;
  background: #e6dfc9;
  border: 1px solid #d9d1b8;
}
.gantt-bar-preorder { background: #e6dfc9; }
.gantt-bar-prod { background: rgba(255, 255, 255, 0.55); }
.gantt-bar-text {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 6px 16px 6px 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
}
.gantt-bar-text:hover .gantt-bar-name { text-decoration: underline; }
/* 条内左侧方形产品首图（v20：条为半透明白底+淡金边，用户定稿——每款产品首页图放生产条左端） */
.gantt-bar-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
  display: block;
  flex-shrink: 0;
  background: transparent;
}
/* 产品全称：最多两行，放不下省略 */
.gantt-bar-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.gantt-text-preorder { color: var(--accent-dark); }
.gantt-paint {
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 10px;
  line-height: 0;
  color: var(--accent-dark);
}
.gantt-paint-legend {
  display: inline-block;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  color: var(--accent-dark);
}
.gantt-swatch {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 5px;
}
.gantt-swatch-preorder { height: 6px; background: #e6dfc9; border: 1px solid #d9d1b8; }
.gantt-swatch-prod { background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(0, 0, 0, 0.1); }
