/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --navy:        #0b2f5b;
  --navy-light:  #1a4a8a;
  --navy-pale:   #eef3fa;
  --text:        #1f2933;
  --text-muted:  #52606d;
  --text-light:  #7b8794;
  --border:      #d9e2ec;
  --bg:          #f4f7fb;
  --white:       #ffffff;
  --green:       #166534;
  --green-bg:    #dcfce7;
  --amber:       #7c4700;
  --amber-bg:    #fef3c7;
  --red:         #991b1b;
  --red-bg:      #fee2e2;
  --blue:        #1e40af;
  --blue-bg:     #dbeafe;
  --purple:      #5b21b6;
  --purple-bg:   #ede9fe;
}

/* ── Reset / Base ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
               Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Layout container ───────────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
#site-header {
  background: var(--navy);
  color: var(--white);
  padding: 22px 0 18px;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.header-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
}

.brand-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.page-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.page-subtitle {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 3px;
}

.header-meta {
  font-size: 12px;
  opacity: 0.6;
  min-height: 1.2em;
}

/* ── Language switcher ──────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  user-select: none;
}

/* ── Main content area ──────────────────────────────────────────────────── */
#main-content {
  padding-top: 20px;
  padding-bottom: 48px;
}

#sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy-pale);
}

/* ── Announcement ───────────────────────────────────────────────────────── */
#announcement-text {
  font-size: 14px;
  color: var(--text-muted);
  background: var(--navy-pale);
  border-left: 3px solid var(--navy);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}

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

.price-table th {
  background: var(--navy-pale);
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
  text-align: left;
  padding: 9px 12px;
  white-space: nowrap;
}

.price-table th:first-child { border-radius: 6px 0 0 6px; }
.price-table th:last-child  { border-radius: 0 6px 6px 0; }

.price-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:hover td {
  background: #f9fbfd;
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.status-available { background: var(--green-bg);  color: var(--green);  }
.status-limited   { background: var(--amber-bg);  color: var(--amber);  }
.status-sold-out  { background: var(--red-bg);    color: var(--red);    }
.status-contact   { background: var(--blue-bg);   color: var(--blue);   }
.status-preorder  { background: var(--purple-bg); color: var(--purple); }

/* ── Contact section ────────────────────────────────────────────────────── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  min-width: 52px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-value {
  font-size: 14px;
  color: var(--text);
  flex: 1;
  word-break: break-all;
}

.copy-btn {
  background: var(--navy-pale);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.copy-btn.copied {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-bg);
  pointer-events: none;
}

/* ── Sample data banner ─────────────────────────────────────────────────── */
.sample-banner {
  background: var(--amber-bg);
  border: 1px solid #fcd34d;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--amber);
  line-height: 1.6;
}

/* ── Quote Template section ─────────────────────────────────────────────── */
.quote-helper {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.quote-template {
  font-family: inherit;
  font-size: 13px;
  background: var(--navy-pale);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 14px;
  color: var(--text);
}

.quote-copy-btn {
  padding: 6px 16px;
  font-size: 13px;
}

/* ── Disclaimer ─────────────────────────────────────────────────────────── */
.disclaimer-card {
  border-color: #e2e8f0;
  background: #fafbfc;
}

#disclaimer-text {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ── Loading state ──────────────────────────────────────────────────────── */
.loading-msg {
  text-align: center;
  color: var(--text-light);
  padding: 40px 0;
  font-size: 14px;
}

/* ── Error state ────────────────────────────────────────────────────────── */
.error-card {
  display: none;
  background: var(--red-bg);
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 20px;
  color: var(--red);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 4px;
}

.error-card.visible {
  display: block;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
#site-footer {
  text-align: center;
  padding: 20px 16px 28px;
  font-size: 11px;
  color: var(--text-light);
}

/* ── Responsive (600px+) ────────────────────────────────────────────────── */
@media (min-width: 600px) {
  html {
    font-size: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .card {
    padding: 24px 28px;
  }

  .contact-row {
    flex-wrap: nowrap;
  }

  .price-table {
    font-size: 14px;
  }

  .price-table th {
    font-size: 13px;
    padding: 10px 14px;
  }

  .price-table td {
    padding: 11px 14px;
    font-size: 14px;
  }
}
