﻿/* ===== 鍩虹鏍峰紡 ===== */
:root {
  --bg-primary: #0f1117;
  --bg-secondary: #161822;
  --bg-card: #1a1d2e;
  --gold-primary: #d4a537;
  --gold-light: #f0d060;
  --red-price: #ff4d4f;
  --red-up: #e8393a;
  --green-down: #26a65b;
  --text-primary: #e8e8ed;
  --text-secondary: #9a9ab0;
  --text-muted: #6a6a80;
  --border-color: #2a2d3e;
}

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ===== 椤堕儴鏍?===== */
.header-bar {
  background: linear-gradient(135deg, #1a1d2e 0%, #0d0f1a 100%);
  border-bottom: 1px solid rgba(212, 165, 55, 0.2);
  padding: clamp(10px, 1.6vw, 21px) clamp(12px, 2.8vw, 36px) clamp(10px, 1.4vw, 18px);
  flex: 0 0 auto;
  position: relative;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1800px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: clamp(12px, 2.1vw, 27px);
}
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: max-content;
}
.header-spacer {
  min-width: 260px;
}
.header-qr-card {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 15px);
  width: clamp(220px, 28vw, 363px);
  min-height: clamp(92px, 12.5vw, 162px);
  padding: clamp(8px, 1.15vw, 15px) clamp(10px, 1.4vw, 18px) clamp(8px, 1.15vw, 15px) clamp(8px, 1.15vw, 15px);
  border: 1px solid rgba(212, 165, 55, 0.28);
  border-radius: 12px;
  background: rgba(22, 24, 34, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.header-qr-placeholder {
  width: clamp(74px, 10vw, 132px);
  height: clamp(74px, 10vw, 132px);
  flex: 0 0 clamp(74px, 10vw, 132px);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: clamp(3px, 0.45vw, 5px);
  border: 1px dashed rgba(212, 165, 55, 0.34);
}
.header-qr-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  line-height: 1.1;
  text-align: center;
}
.header-qr-title {
  color: var(--gold-light);
  font-size: clamp(20px, 2.55vw, 33px);
  font-weight: 800;
  white-space: nowrap;
}
.header-qr-subtitle {
  margin-top: clamp(3px, 0.6vw, 8px);
  color: var(--text-secondary);
  font-size: clamp(15px, 2vw, 26px);
  white-space: nowrap;
}
.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 24px);
}
.logo-circle {
  width: clamp(58px, 7vw, 90px); height: clamp(58px, 7vw, 90px);
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 36px rgba(212, 165, 55, 0.35);
  flex-shrink: 0; background: #fff;
}
.logo-img { width: 100%; height: 100%; object-fit: contain; }
.logo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #b8860b, #d4a537);
  color: #fff; font-weight: bold; font-size: 30px; line-height: 1.3;
}
.logo-title {
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: clamp(1px, 0.24vw, 3px);
  white-space: nowrap;
}
.header-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5px, 0.65vw, 8px) clamp(10px, 1.6vw, 21px);
  border: 1px solid rgba(212, 165, 55, 0.34);
  border-radius: 999px;
  background: rgba(212, 165, 55, 0.08);
  color: #f0d060;
  font-size: clamp(18px, 2.35vw, 30px);
  font-weight: 700;
  text-align: center;
  align-self: center;
  letter-spacing: clamp(1px, 0.16vw, 2px);
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums; font-family: 'Courier New', monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.header-address {
  color: #fff;
  font-size: clamp(17px, 2.8vw, 24px);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  transform: translateY(10px);
  white-space: nowrap;
}

/* ===== 涓诲鍣?===== */
.main-container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 14px 28px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== 浠锋牸灞曠ず鍖?- 涓ゆ爮甯冨眬 ===== */
.price-hero {
  margin-bottom: 10px;
  flex: 0 0 auto;
}
.price-combo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: linear-gradient(145deg, #171b28 0%, #132032 52%, #101820 100%);
  border: 1px solid rgba(212, 165, 55, 0.32);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.price-card {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 22px 36px;
  border: 0;
  overflow: hidden;
}
.sale-card {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.buyback-card {
  border-left: 1px solid rgba(212, 165, 55, 0.12);
}
.price-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 0 0 18px rgba(212, 165, 55, 0.24);
}
.price-label::before {
  content: "";
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: var(--gold-primary);
  box-shadow: 0 0 16px rgba(212, 165, 55, 0.45);
}
.sale-card .price-label {
  color: #ffe1e1;
}
.sale-card .price-label::before {
  background: var(--red-price);
}
.buyback-card .price-label {
  color: #d8ffed;
}
.buyback-card .price-label::before {
  background: var(--green-down);
}
.price-value-wrap {
  display: flex; align-items: baseline; gap: 8px;
  white-space: nowrap;
}
.price-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}
.price-main {
  min-width: 0;
}
.price-value {
  font-size: 84px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-family: 'DIN Alternate', 'Helvetica Neue', 'Arial', sans-serif;
  letter-spacing: 2px; line-height: 1;
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform, opacity;
}
.sale-card .price-value {
  color: var(--red-price);
  text-shadow: none;
}
.buyback-card .price-value {
  color: var(--green-down);
  text-shadow: none;
}
.price-unit {
  font-size: 26px;
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
}
.meta-divider {
  color: rgba(255,255,255,0.1);
}
.price-sub { font-size: 14px; color: var(--text-muted); }
.price-time { font-size: 14px; }
.price-time i { color: var(--gold-primary); margin-right: 4px; }

/* ===== Ticker-style price update animation ===== */
@keyframes priceTickUp {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes priceTickDown {
  0%   { opacity: 0; transform: translateY(-16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.price-tick-up {
  animation: priceTickUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.price-tick-down {
  animation: priceTickDown 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.certificate-carousel {
  width: 100%;
  aspect-ratio: 2.12;
  min-height: 0;
  flex: 0 1 auto;
  margin: 16px auto 0;
  border: 1px solid rgba(212, 165, 55, 0.28);
  border-radius: 14px;
  background: rgba(17, 21, 32, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.certificate-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.22, 0.72, 0.18, 1);
  will-change: transform;
}
.certificate-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: #f7f7f5;
}
.fixed-price-note {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 14px 18px;
  border: 1px solid rgba(212, 165, 55, 0.26);
  border-radius: 10px;
  background: rgba(212, 165, 55, 0.08);
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.admin-entry-link {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 180;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(48px, 7vw, 64px);
  height: clamp(48px, 7vw, 64px);
  padding: 4px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26), 0 0 22px rgba(212, 165, 55, 0.28);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.admin-entry-link:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 28px rgba(212, 165, 55, 0.42);
}
.admin-entry-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* ===== 椤甸潰鍒囨崲 ===== */
.page-section { display: none; }
.page-section.active {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

/* ===== 鍝嶅簲寮?===== */
@media (max-width: 1200px) {
  .price-value { font-size: 60px; }
  .price-card { padding: 18px 28px; }
  .price-label { font-size: 21px; }
}
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "qr logo"
      "qr time";
    justify-content: stretch;
    gap: 10px 16px;
  }
  .header-qr-card {
    grid-area: qr;
    width: min(42vw, 285px);
    min-height: 0;
    justify-self: start;
  }
  .header-center {
    grid-area: logo;
    align-items: center;
    justify-self: end;
    gap: 6px;
    min-width: 0;
  }
  .header-time {
    grid-area: time;
    justify-self: end;
    max-width: 100%;
    white-space: nowrap;
  }
  .header-spacer {
    display: none;
  }
}
@media (max-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "qr logo"
      "time time";
    justify-content: stretch;
    align-items: center;
    gap: 8px 12px;
  }
  .header-qr-card {
    display: flex;
    grid-area: qr;
    justify-self: start;
    width: min(58vw, 285px);
    min-height: 0;
    padding: 10px;
    gap: 10px;
  }
  .header-qr-placeholder {
    width: clamp(66px, 18vw, 99px);
    height: clamp(66px, 18vw, 99px);
    flex-basis: clamp(66px, 18vw, 99px);
  }
  .header-qr-title {
    font-size: clamp(18px, 5vw, 29px);
  }
  .header-qr-subtitle {
    margin-top: 4px;
    font-size: clamp(14px, 4vw, 23px);
  }
  .header-center {
    grid-area: logo;
    align-items: center;
    justify-self: end;
    min-width: 0;
    transform: none;
  }
  .logo-section {
    justify-content: center;
    gap: 10px;
  }
  .logo-circle {
    width: clamp(52px, 14vw, 78px);
    height: clamp(52px, 14vw, 78px);
  }
  .logo-title {
    font-size: clamp(24px, 6vw, 33px);
    line-height: 1.08;
    text-align: center;
  }
  .header-time {
    grid-area: time;
    justify-self: center;
    max-width: 100%;
    padding: 5px 12px;
    font-size: clamp(17px, 4.8vw, 26px);
    white-space: nowrap;
    align-self: center;
  }
  .header-spacer {
    display: none;
  }
  .price-combo-card { grid-template-columns: 1fr; }
  .sale-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .buyback-card {
    border-left: 0;
    border-top: 1px solid rgba(212, 165, 55, 0.12);
  }
  .price-value { font-size: 82px; }
  .price-card { padding: 22px 22px; }
  .price-label { font-size: 34px; margin-bottom: 12px; }
  .price-label::before { width: 11px; height: 40px; }
  .price-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .price-unit { font-size: 34px; }
  .certificate-carousel {
    margin-top: 10px;
  }
}
@media (max-width: 480px) {
  .header-bar { padding: 10px 8px; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 8px;
  }
  .header-qr-card {
    width: clamp(106px, 30vw, 126px);
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6px;
    gap: 5px;
  }
  .header-qr-placeholder {
    width: clamp(54px, 16vw, 66px);
    height: clamp(54px, 16vw, 66px);
    flex: 0 0 clamp(54px, 16vw, 66px);
  }
  .header-qr-copy {
    flex: 0 0 auto;
    align-self: center;
    justify-content: flex-start;
    width: 100%;
    line-height: 1.1;
  }
  .header-qr-title {
    font-size: clamp(11px, 3.05vw, 13px);
  }
  .header-qr-subtitle {
    display: none;
  }
  .logo-section { gap: 7px; }
  .header-center {
    transform: none;
  }
  .logo-circle {
    width: clamp(44px, 13vw, 66px);
    height: clamp(44px, 13vw, 66px);
  }
  .logo-title {
    font-size: clamp(19px, 5.8vw, 29px);
    letter-spacing: 1px;
  }
  .header-time {
    padding: 4px 9px;
    font-size: clamp(14px, 4.4vw, 21px);
    letter-spacing: 1px;
  }
  .header-address {
    font-size: clamp(11px, 2.9vw, 14px);
    transform: translateY(5px);
  }
  .price-value { font-size: 60px; }
  .price-label { font-size: 29px; letter-spacing: 1px; }
  .price-label::before { width: 10px; height: 35px; }
  .main-container { padding: 8px; }
  .price-hero { margin-bottom: 8px; }
  .price-card { padding: 16px 12px; }
  .price-row { gap: 6px; }
  .price-unit { font-size: 26px; }
  .certificate-carousel {
    margin-top: 8px;
  }
  .certificate-slide {
    padding: 6px;
  }
  .fixed-price-note {
    font-size: 15px;
    padding: 12px 10px;
  }
  .admin-entry-link {
    right: 8px;
    bottom: 8px;
    width: 48px;
    height: 48px;
  }
}

@media (orientation: portrait) and (min-width: 520px) and (max-aspect-ratio: 3/4) {
  .header-bar {
    padding: clamp(10px, 1.35vh, 20px) clamp(14px, 3.4vw, 42px);
  }
  .header-inner {
    max-width: 100%;
    grid-template-columns: minmax(160px, 0.82fr) minmax(0, 1.18fr);
    grid-template-areas:
      "qr logo"
      "qr time"
      "address address";
    gap: clamp(7px, 0.9vh, 14px) clamp(12px, 3vw, 36px);
  }
  .header-qr-card {
    grid-area: qr;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: clamp(132px, 25vw, 240px);
    min-height: clamp(112px, 12.2vh, 178px);
    padding: clamp(7px, 0.9vh, 12px) clamp(8px, 1.2vw, 14px);
    gap: clamp(5px, 0.65vh, 10px);
  }
  .header-qr-placeholder {
    width: clamp(68px, 8.5vh, 118px);
    height: clamp(68px, 8.5vh, 118px);
    flex: 0 0 clamp(68px, 8.5vh, 118px);
  }
  .header-qr-copy {
    flex: 0 0 auto;
    align-self: center;
    justify-content: flex-start;
    width: 100%;
    line-height: 1.1;
  }
  .header-qr-title {
    font-size: clamp(14px, 2.25vw, 23px);
  }
  .header-qr-subtitle {
    display: none;
  }
  .header-center {
    display: contents;
    min-width: 0;
  }
  .logo-section {
    grid-area: logo;
    justify-self: center;
    gap: clamp(8px, 1.5vw, 20px);
  }
  .logo-circle {
    width: clamp(48px, 5.8vh, 88px);
    height: clamp(48px, 5.8vh, 88px);
  }
  .logo-title {
    font-size: clamp(22px, 3.4vw, 40px);
    letter-spacing: clamp(1px, 0.18vw, 2px);
  }
  .header-time {
    grid-area: time;
    justify-self: center;
    padding: clamp(4px, 0.65vh, 8px) clamp(10px, 1.7vw, 22px);
    font-size: clamp(15px, 2.35vw, 29px);
  }
  .header-address {
    grid-area: address;
    justify-self: center;
    color: #fff;
    font-size: clamp(13px, 2.1vw, 20px);
    line-height: 1.1;
    transform: none;
    opacity: 0.9;
  }
  .header-spacer {
    display: none;
  }
  .main-container {
    max-width: 100%;
    padding: clamp(10px, 1.2vh, 22px) clamp(12px, 3.5vw, 56px);
  }
  .page-section.active {
    gap: clamp(10px, 1.1vh, 18px);
    justify-content: space-between;
  }
  .price-hero {
    margin-bottom: 0;
  }
  .price-combo-card {
    grid-template-columns: 1fr;
    border-radius: clamp(16px, 2vw, 24px);
  }
  .sale-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .buyback-card {
    border-left: 0;
    border-top: 1px solid rgba(212, 165, 55, 0.12);
  }
  .price-card {
    padding: clamp(16px, 2vh, 32px) clamp(18px, 3.2vw, 42px);
  }
  .price-label {
    font-size: clamp(24px, 3.2vw, 42px);
    margin-bottom: clamp(8px, 0.8vh, 16px);
  }
  .price-label::before {
    width: clamp(8px, 1vw, 12px);
    height: clamp(28px, 3.4vw, 42px);
  }
  .price-value {
    font-size: clamp(72px, 11.5vw, 142px);
    letter-spacing: clamp(1px, 0.18vw, 2px);
  }
  .price-unit {
    font-size: clamp(23px, 3.3vw, 42px);
  }
  .certificate-carousel {
    flex: 1 1 auto;
    aspect-ratio: auto;
    height: clamp(320px, 40vh, 820px);
    max-height: 42vh;
    margin: 0 auto;
  }
  .certificate-slide {
    padding: clamp(6px, 1.1vw, 18px);
  }
  .fixed-price-note {
    padding: clamp(10px, 1.1vh, 18px) clamp(12px, 2vw, 26px);
    font-size: clamp(14px, 2.1vw, 26px);
    line-height: 1.25;
    text-align: center;
  }
  .admin-entry-link {
    top: clamp(126px, 10.6vh, 180px);
    bottom: auto;
  }
}

/* ===== 闂ㄥ簵灞曠ず ===== */
.store-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.store-title {
  font-size: 20px; font-weight: 700; color: var(--gold-primary);
  display: flex; align-items: center; gap: 8px;
}
.store-categories { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-btn {
  padding: 6px 14px; border: 1px solid var(--border-color);
  background: transparent; color: var(--text-secondary);
  border-radius: 20px; cursor: pointer; font-size: 13px;
  transition: all 0.2s; font-family: inherit;
}
.cat-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.cat-btn.active {
  background: var(--gold-primary); border-color: var(--gold-primary);
  color: #000; font-weight: 600;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.store-item {
  position: relative;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer; transition: all 0.3s;
  aspect-ratio: 4/3;
}
.store-item:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 30px rgba(212, 165, 55, 0.15);
}
.store-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.store-item-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; font-size: 13px; font-weight: 500;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-overlay img {
  max-width: 92vw; max-height: 92vh;
  border-radius: 8px; object-fit: contain;
  box-shadow: 0 0 60px rgba(212, 165, 55, 0.2);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 32px; color: #fff; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 28px; color: #fff; cursor: pointer;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border-radius: 50%;
  transition: background 0.2s; border: none;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== 瀹炲悕鐧昏琛ㄥ崟 ===== */
.form-card {
  max-width: 520px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px; padding: 36px 32px;
}
.form-header {
  text-align: center; margin-bottom: 32px;
}
.form-header i {
  font-size: 44px; color: var(--gold-primary);
  margin-bottom: 8px; display: block;
}
.form-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.form-header p { font-size: 14px; color: var(--text-secondary); }
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 6px; font-weight: 500;
}
.form-group label i { color: var(--gold-primary); width: 16px; text-align: center; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px; color: var(--text-primary);
  font-size: 15px; outline: none; transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--gold-primary);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239a9ab0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #b8860b, #d4a537);
  border: none; border-radius: 10px;
  color: #000; font-size: 16px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s; font-family: inherit;
}
.btn-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-success {
  text-align: center; padding: 40px 20px; display: none;
}
.form-success i {
  font-size: 56px; color: var(--green-down); display: block; margin-bottom: 12px;
}
.form-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.form-success p { color: var(--text-secondary); font-size: 14px; }

.form-error {
  color: var(--red-price); font-size: 13px; margin-top: 4px; display: none;
}
.form-group.error input {
  border-color: var(--red-price);
}

/* ===== 鍦ㄧ嚎浜ゆ槗 ===== */
.trade-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.trade-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px; padding: 28px;
}
.trade-card-title {
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.trade-card-title i { color: var(--gold-primary); }
.calculator-card .trade-card-title { color: var(--text-primary); }
.order-card .trade-card-title { color: var(--text-primary); }

/* 璁＄畻鍣?*/
.calc-display {
  background: var(--bg-secondary);
  border-radius: 12px; padding: 20px;
}
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
}
.calc-label { font-size: 14px; color: var(--text-secondary); }
.calc-value {
  font-size: 26px; font-weight: 800; color: var(--red-price);
  font-variant-numeric: tabular-nums;
}
.calc-value.buyback { color: var(--green-down); font-size: 20px; }
.calc-divider {
  border-top: 1px solid var(--border-color); margin: 8px 0;
}
.calc-input-wrap {
  display: flex; align-items: center; gap: 8px;
}
.calc-input-wrap input {
  width: 140px; padding: 10px 14px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 8px; color: var(--text-primary);
  font-size: 18px; font-weight: 600; text-align: center;
  outline: none; font-family: inherit;
}
.calc-input-wrap input:focus { border-color: var(--gold-primary); }
.calc-unit { color: var(--text-muted); font-size: 14px; }
.calc-total {
  border-top: 1px solid var(--border-color);
  margin-top: 8px; padding-top: 14px;
}
.calc-total .calc-label { font-size: 15px; font-weight: 600; }
.calc-total-value {
  font-size: 32px; font-weight: 900; color: var(--gold-primary);
}

/* 璁㈠崟鎴愬姛 */
.order-summary {
  margin-top: 16px; padding: 16px;
  background: var(--bg-secondary); border-radius: 8px;
  text-align: left; font-size: 13px; color: var(--text-secondary);
  line-height: 1.8;
}
.order-summary span { color: var(--text-primary); font-weight: 600; }

/* ===== 鍝嶅簲寮?- 浜ゆ槗 ===== */
@media (max-width: 860px) {
  .trade-layout { grid-template-columns: 1fr; }
  .store-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .form-card { padding: 24px 18px; }
  .trade-card { padding: 20px 16px; }
  .calc-value { font-size: 22px; }
  .calc-total-value { font-size: 26px; }
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
}

/* ===== 绠＄悊椤甸潰 ===== */
.admin-tabs {
  display: flex; align-items: center; gap: 6px; margin-bottom: 16px;
}
.admin-tab {
  padding: 8px 20px; border: 1px solid var(--border-color);
  background: transparent; color: var(--text-secondary);
  border-radius: 8px; cursor: pointer; font-size: 14px; transition: all 0.2s;
  font-family: inherit;
}
.admin-tab:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.admin-tab.active {
  background: var(--gold-primary); border-color: var(--gold-primary);
  color: #000; font-weight: 600;
}
.admin-refresh {
  margin-left: auto; padding: 8px 16px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  color: var(--text-secondary); border-radius: 8px; cursor: pointer;
  font-size: 13px; transition: all 0.2s; font-family: inherit;
}
.admin-refresh:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.admin-loading, .admin-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.admin-loading i, .admin-empty i { font-size: 36px; display: block; margin-bottom: 10px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.admin-table th {
  background: var(--bg-secondary); color: var(--text-secondary);
  padding: 10px 14px; text-align: left; font-weight: 600;
  white-space: nowrap; border-bottom: 1px solid var(--border-color);
}
.admin-table td {
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary); white-space: nowrap;
}
.admin-table tbody tr:hover { background: rgba(212,165,55,0.05); }
.admin-amount { color: var(--gold-primary); font-weight: 700; }
.admin-status {
  padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600;
}
.status-pending { background: rgba(255,165,0,0.15); color: #ffa500; }
.status-confirmed { background: rgba(0,212,170,0.15); color: #00d4aa; }
.status-done { background: rgba(38,166,91,0.15); color: #26a65b; }

@media (max-width: 600px) {
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
}

