/* a7.x2xcm.com 銷售頁 */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1d2129;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #c2410c;
  --line-green: #06c755;
  --line-green-dark: #05a647;
  --header-bg: #1f2937;
  --header-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1b1e25;
    --text: #e8eaee;
    --muted: #9aa1ad;
    --line: #2c313a;
    --accent: #fb923c;
    --header-bg: #0b0d11;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 20px 0 18px;
}

.top h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.top .sub {
  margin: 4px 0 14px;
  color: #c9ced6;
  font-size: 14px;
}

.line-btn {
  display: inline-block;
  background: var(--line-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
}

.line-btn:hover { background: var(--line-green-dark); }

.line-btn[hidden] { display: none; }

.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 16px 0 8px;
}

#q {
  flex: 1 1 240px;
  min-width: 0;
  font-size: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.muted { color: var(--muted); font-size: 14px; }

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.item:first-child { border-top: 0; }

.main { min-width: 0; }

.name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contents {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.side {
  flex: 0 0 auto;
  text-align: right;
}

.price {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.ask {
  color: var(--line-green-dark);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}

.ask[href]:hover { text-decoration: underline; }

.stock {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.note { margin: 14px 0 32px; }

#status[hidden] { display: none; }
