:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #8d8d8d;
  --line: #ececee;
  --cream: #f7f1e7;
  --solid: #2a2a2a;
  --shop-blue: #2f7cff;
  --sidebar: 232px;
  --radius: 10px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 13px;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app {
  display: flex;
  min-height: 100%;
  background: var(--surface);
}

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  min-height: 100vh;
}
.app.is-collapsed { --sidebar: 64px; }
.app.is-collapsed .nav-item span:last-child,
.app.is-collapsed .nav-label,
.app.is-collapsed .foot-btn span,
.app.is-collapsed .nav-more span:last-child { display: none; }
.app.is-collapsed .nav-item,
.app.is-collapsed .nav-more,
.app.is-collapsed .foot-btn { justify-content: center; padding-left: 0; padding-right: 0; }

.sidebar-scroll { flex: 1; overflow: auto; padding: 14px 10px 8px; }
.nav-label {
  margin: 10px 10px 6px;
  font-size: 12px;
  color: #b0b0b0;
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item, .nav-more, .foot-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 12px;
  border-radius: 10px;
  color: #3a3a3a;
}
.nav-item:hover, .nav-more:hover, .foot-btn:hover { background: #f6f6f6; }
.nav-item.is-active {
  background: var(--cream);
  color: #1a1a1a;
  font-weight: 600;
}
.nav-ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex: 0 0 18px;
  background: #f0f0f0 center/12px no-repeat;
}
.nav-ico-home { background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M4 11l8-7 8 7v9H4z'/%3E%3Cpath d='M9 20v-7h6v7'/%3E%3C/svg%3E") center/14px no-repeat; }
.nav-ico-cursor { background: #f3b23a; border-radius: 50%; }
.nav-ico-card { background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center/14px no-repeat; }
.nav-ico-grid { background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='4' y='4' width='6' height='6'/%3E%3Crect x='14' y='4' width='6' height='6'/%3E%3Crect x='4' y='14' width='6' height='6'/%3E%3Crect x='14' y='14' width='6' height='6'/%3E%3C/svg%3E") center/13px no-repeat; }
.nav-ico-cart { background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M3 4h2l2 12h12l2-8H7'/%3E%3C/svg%3E") center/14px no-repeat; }
.nav-ico-group { background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='16' cy='9' r='2.4'/%3E%3Cpath d='M4 19c0-3 2.2-5 5-5s5 2 5 5M14 19c0-2 1.2-3.5 3.4-3.5 2 0 3.6 1.3 3.6 3.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.nav-ico-apps { background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/svg%3E") center/13px no-repeat; }
.nav-ico-order { background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E") center/14px no-repeat; }

.sidebar-user {
  margin: 0 4px 10px;
  padding: 10px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}
.user-in { display: flex; flex-direction: column; gap: 6px; }
.user-name { font-weight: 650; }
.user-sub { color: #8d8d8d; font-size: 12px; }
.app.is-collapsed .sidebar-user { padding: 8px 4px; }
.app.is-collapsed .user-name,
.app.is-collapsed .user-sub { display: none; }

.dot {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; flex: 0 0 18px;
}
.dot-a { background: #111; }
.dot-a2 { background: #3b5bdb; }
.dot-ide { background: #7048e8; }
.dot-codex { background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 7h8v2H8zm0 4h8v2H8zm0 4h5v2H8z'/%3E%3C/svg%3E") center/12px no-repeat; }
.dot-zed { background: #1c7ed6; }
.dot-gh { background: #24292f; }
.dot-ws { background: #0ca678; }
.dot-kiro { background: #e8590c; }

.nav-platforms { margin-top: 2px; }
.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foot-btn { color: #6f6f6f; }

/* ===== Main ===== */
.main { flex: 1; min-width: 0; background: var(--surface); }
.page { display: none; padding: 18px 28px 40px; min-height: 100vh; }
.page.is-show { display: block; }

.page-head { margin-bottom: 14px; }
.page-title { font-size: 18px; font-weight: 600; margin: 8px 0; }
.head-tabs { display: flex; align-items: center; gap: 18px; }
.head-tab {
  border: 0; background: none; padding: 0; color: #9a9a9a; font-size: 14px;
}
.head-tab.is-on { color: var(--text); font-weight: 600; }
.head-tab .q {
  display: inline-flex; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid #cfcfcf; font-size: 10px; color: #999;
  align-items: center; justify-content: center; margin-left: 2px;
  vertical-align: 1px;
}
.head-select select {
  border: 0; background: transparent; font-weight: 600; padding: 0 4px 0 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 14px;
  padding-right: 16px;
}

.help-box {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0 16px;
  background: #fff;
}
.help-box summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-weight: 500;
}
.help-box summary::-webkit-details-marker { display: none; }
.help-i {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid #c8c8c8;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: #888; flex: 0 0 16px;
}
.help-box p, .help-box li { color: #8a8a8a; line-height: 1.7; margin: 8px 0 0; }
.help-box ul { padding-left: 18px; margin: 4px 0 0; }

.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: #f4f4f5; border-radius: 8px; padding: 0 10px; height: 32px; min-width: 180px;
}
.search-box input { border: 0; background: transparent; outline: none; width: 140px; }
.chip {
  height: 32px; border: 0; background: #f4f4f5; border-radius: 8px;
  padding: 0 10px; color: #666;
}
.chip.is-on { background: #ededee; color: #222; }
.chip-sort { display: inline-flex; align-items: center; gap: 2px; }
.icon-ghost { border: 0; background: transparent; color: #888; padding: 6px; }

.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.btn {
  height: 34px; padding: 0 14px; border-radius: 17px;
  border: 1px solid #e4e4e4; background: #fff; color: #333;
}
.btn:hover { background: #fafafa; }
.btn-solid { background: var(--solid); color: #fff; border-color: var(--solid); }
.btn-solid:hover { background: #111; }

.account-body { min-height: 360px; }
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 16px 48px; color: #9a9a9a; text-align: center;
}
.empty h2 { margin: 16px 0 8px; font-size: 16px; color: #6f6f6f; font-weight: 500; }
.empty p { margin: 0 0 22px; }
.empty-actions { display: flex; gap: 10px; }

.globe {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid #d9d9d9;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 31px, #d9d9d9 31px 33px, transparent 33px),
    linear-gradient(#d9d9d9, #d9d9d9) 50% 0/2px 100% no-repeat,
    linear-gradient(#d9d9d9, #d9d9d9) 0 50%/100% 2px no-repeat,
    radial-gradient(ellipse 22px 36px at 50% 50%, transparent 20px, #d9d9d9 20px 22px, transparent 22px);
}

.account-table { width: 100%; border-collapse: collapse; }
.account-table th, .account-table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid #f0f0f0;
}
.account-table th { color: #999; font-weight: 500; }
.st { font-size: 12px; }
.st-alive { color: #2f9e44; }
.st-banned { color: #e03131; }
.st-unknown { color: #868e96; }
.mail-mask { letter-spacing: 0.5px; }

/* ===== Shop ===== */
#page-shop { padding: 0 0 48px; background: #fff; }
.shop-top {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px 10px; border-bottom: 1px solid #f2f2f2;
}
.shop-brand { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.ld-mark {
  width: 28px; height: 28px; border-radius: 8px; background: #ff4d2e;
  color: #fff; font-weight: 800; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ld-name { font-weight: 700; font-size: 15px; }
.shop-chrome { background: #fff; }
.shop-chrome[hidden] { display: none !important; }
.shop-nav { display: flex; flex-wrap: wrap; gap: 16px; color: #444; font-size: 13px; flex: 1; }
.shop-nav a:hover, .shop-nav a.is-on { color: var(--shop-blue); }
.shop-nav a.is-on { font-weight: 650; }
.shop-search { display: flex; align-items: center; }
.shop-search input {
  width: 160px; height: 36px; border: 1px solid #e8e8e8; border-right: 0;
  border-radius: 20px 0 0 20px; padding: 0 14px; outline: none;
}
.shop-search button {
  width: 36px; height: 36px; border: 0; border-radius: 0 20px 20px 0;
  background: var(--shop-blue);
}

.shop-store { display: flex; align-items: center; gap: 14px; padding: 22px 28px 8px; }
.store-logo {
  width: 56px; height: 56px; border-radius: 50%;
  background: #ff7a1a;
  position: relative;
}
.store-logo::after {
  content: "";
  position: absolute; inset: 14px;
  border-radius: 8px; background: #fff;
}
.store-name { font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.badge-ok {
  font-size: 11px; color: #2f9e44; background: #e8f6ea;
  border-radius: 4px; padding: 1px 6px; font-weight: 500;
}
.store-score { color: #8d8d8d; font-size: 12px; margin-top: 4px; }
.store-links { display: flex; gap: 16px; color: #8d8d8d; margin-top: 6px; font-size: 12px; }

.shop-notice { padding: 8px 28px 6px; }
.notice-title { display: flex; align-items: center; gap: 6px; color: #666; margin: 0 0 4px; }
.pin {
  width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b;
  box-shadow: 0 0 0 3px #ffe3e3;
}
.notice-body { margin: 0; color: #9a9a9a; }

.shop-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px 10px;
}
.shop-sec-head p { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.shop-sec-head b { font-weight: 600; }
.bolt {
  width: 8px; height: 14px;
  background: linear-gradient(#ffd43b, #fab005);
  clip-path: polygon(35% 0, 100% 0, 65% 48%, 100% 48%, 0 100%, 38% 52%, 0 52%);
}
.mini-search {
  height: 32px; border: 0; background: #f5f5f5; border-radius: 8px;
  padding: 0 12px; width: 160px; outline: none;
}

.cat-row { display: flex; gap: 12px; padding: 6px 28px 8px; flex-wrap: wrap; }
.cat {
  min-width: 148px; height: 72px; border-radius: 10px; border: 1px solid #f0f0f0;
  background: #f7f8fa; padding: 12px 14px; text-align: left;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.cat small { color: #8d8d8d; }
.cat {
  position: relative;
}
.cat.is-on {
  background: var(--shop-blue); color: #fff; border-color: var(--shop-blue);
}
.cat.is-on small { color: rgba(255,255,255,.85); }
.cat.is-on::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7cff' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/10px no-repeat;
}
.pick-label { padding: 16px 28px 8px; margin: 0; color: #888; }

.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding: 0 28px;
}
.goods {
  border: 0; background: transparent; padding: 0; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.goods-cover {
  height: 148px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #f2f2f2;
}
.goods-cover img, .goods-cover svg { width: 100%; height: 100%; object-fit: cover; }
.goods-name { font-weight: 600; font-size: 14px; }
.goods-desc { color: #9a9a9a; font-size: 12px; }
.goods-foot { display: flex; justify-content: space-between; color: #666; font-size: 13px; }
.price { font-weight: 650; color: #222; }
.stock { color: #aaa; }
.stock.sold { color: #e03131; }
.goods.is-soldout { opacity: .78; }

/* ===== Shared panels ===== */
.panel {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; max-width: 720px;
}
.panel-lead { color: #888; margin: 0 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { color: #666; }
.field input, .field textarea, .field select {
  border: 1px solid #e6e6e6; border-radius: 8px; padding: 8px 10px; outline: none;
}
.field input:focus, .field textarea:focus { border-color: #cfcfcf; }
.redeem-out { background: #f7f7f8; padding: 12px; border-radius: 8px; white-space: pre-wrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff;
}
.stat b { display: block; font-size: 22px; margin-top: 6px; }
.group-panel { display: flex; gap: 20px; align-items: center; }
.qr-box {
  width: 140px; height: 140px; border-radius: 12px; background: #f3f3f3;
  display: flex; align-items: center; justify-content: center; color: #bbb; flex: 0 0 140px;
}
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.plat-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff;
  display: flex; align-items: center; gap: 10px; width: 100%;
}
.prose h3 { margin: 0 0 6px; }
.prose p { color: #666; line-height: 1.7; }
.switch-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f3f3f3;
}
.log-box { margin: 0; color: #666; min-height: 180px; }

/* ===== Modal / toast ===== */
.mask {
  position: fixed; inset: 0; background: rgba(20,20,20,.28); z-index: 40;
}
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal[hidden], .mask[hidden], .toast[hidden], .page-loader[hidden] { display: none !important; }
.page-loader {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(247,247,248,.72);
  display: flex; align-items: center; justify-content: center;
}
.page-loader-box {
  background: #fff; border: 1px solid #ececee; border-radius: 14px;
  padding: 22px 28px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.page-loader-box p { margin: 10px 0 0; color: #666; }
.spinner {
  width: 28px; height: 28px; margin: 0 auto;
  border: 3px solid #ececee; border-top-color: #2f7cff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-card {
  width: min(460px, 100%); background: #fff; border-radius: 14px;
  padding: 20px 20px 16px; box-shadow: 0 16px 50px rgba(0,0,0,.12);
}
.modal-card h3 { margin: 0 0 6px; font-size: 16px; }
.modal-sub, .sample { color: #888; font-size: 12px; }
.sample { background: #f7f7f8; padding: 8px; border-radius: 8px; overflow: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.file-btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
  border: 1px dashed #ccc; border-radius: 8px; margin: 8px 0; cursor: pointer;
}
.buy-price { font-size: 22px; font-weight: 700; margin: 8px 0 14px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #2a2a2a; color: #fff; padding: 10px 16px; border-radius: 10px;
  z-index: 60; max-width: 80%;
}

#page-orders, #page-order-detail { background: #f5f6f7; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-wrap { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: #fff;
  border: 1px solid #ececee;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.order-card:hover { border-color: #ddd; }
.order-card-top, .order-card-bot {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  color: #888;
  font-size: 12px;
}
.order-card-top { background: #fafafa; border-bottom: 1px solid #f0f0f0; }
.order-card-bot { border-top: 1px solid #f5f5f5; justify-content: flex-end; }
.order-shop { font-weight: 650; color: #333; font-size: 13px; margin-right: auto; }
.order-time { margin-left: auto; }
.order-card-mid { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.order-thumb { width: 72px; height: 52px; border-radius: 6px; overflow: hidden; flex: 0 0 72px; border: 1px solid #f0f0f0; }
.order-thumb svg { width: 100%; height: 100%; display: block; }
.order-info { flex: 1; min-width: 0; }
.order-name { font-weight: 600; margin-bottom: 4px; }
.order-meta { color: #999; font-size: 12px; line-height: 1.6; }
.order-price { font-weight: 650; }
.order-card-bot b { color: #222; font-size: 15px; }
.order-more { color: var(--shop-blue); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.tag-done { background: #e8f6ea; color: #2f9e44; }
.detail-hero {
  max-width: 860px;
  background: #fff;
  border: 1px solid #ececee;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-state { font-size: 20px; font-weight: 700; color: #2f9e44; }
.detail-hero p { margin: 6px 0 0; color: #888; }
.detail-pay { color: #666; }
.detail-pay b { color: #222; font-size: 22px; margin-left: 6px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 860px;
}
.detail-card {
  border: 1px solid #ececee;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.detail-card h3 { margin: 0 0 12px; font-size: 14px; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 10px; color: #444; }
.kv b { font-weight: 500; color: #888; }
.detail-wide { grid-column: 1 / -1; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
  position: relative;
  padding: 0 0 16px 20px;
  border-left: 2px solid #e9ecef;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #2f9e44;
}
.tl-time { color: #999; font-size: 12px; }
.tl-title { font-weight: 600; margin: 2px 0; }
.tl-detail { color: #666; }
.card-box {
  margin-top: 8px;
  background: #f7f7f8;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: Consolas, "Courier New", monospace;
}

#page-home { padding: 0 0 0; background: #f7f7f8; }
#page-faq, #page-banned, #page-teach, #page-report { background: #f7f7f8; }
.home-hero {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  margin: 20px 28px 16px; padding: 28px 32px;
  background: #111; color: #fff; border-radius: 16px;
}
.home-hero h1 { margin: 8px 0; font-size: 26px; line-height: 1.35; }
.home-kicker { margin: 0; color: #ffb38a; font-size: 13px; }
.home-sub { margin: 0 0 16px; color: #c8c8c8; }
.home-hero-btns { display: flex; gap: 10px; }
.home-hero .btn { background: #fff; }
.home-hero .btn-solid { background: #ff4d2e; border-color: #ff4d2e; color: #fff; }
.home-hero-card {
  min-width: 180px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px;
  background: #1c1c1c; border-radius: 12px; padding: 16px 18px; color: #ddd;
}
.home-hero-card b { color: #888; font-weight: 500; }
.guarantee {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 0 28px 8px;
}
.guarantee div {
  background: #fff; border: 1px solid #ececee; border-radius: 12px; padding: 14px 16px;
}
.guarantee strong { display: block; margin-bottom: 4px; }
.guarantee span { color: #888; font-size: 12px; }
.home-sec { margin: 18px 0 8px; }
.home-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px 10px;
}
.home-sec-head h2 { margin: 0; font-size: 16px; }
.home-cats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 0 28px;
}
.home-cats button {
  border: 1px solid #ececee; background: #fff; border-radius: 12px;
  padding: 14px 12px; text-align: left;
}
.home-cats strong { display: block; margin-bottom: 4px; }
.home-cats span { color: #888; font-size: 12px; }
.home-cats button:hover { border-color: #d8d8d8; }
.home-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  list-style: none; margin: 0; padding: 0 28px;
}
.home-steps li {
  background: #fff; border: 1px solid #ececee; border-radius: 12px;
  padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start;
}
.home-steps b {
  width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 22px;
}
.home-steps strong { display: block; margin-bottom: 4px; }
.home-steps span { color: #888; font-size: 12px; }
.home-two {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; padding: 0 28px;
}
.home-two .home-sec-head { padding-left: 0; padding-right: 0; }
.home-news { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #ececee; border-radius: 12px; }
.home-news li { padding: 12px 16px; border-bottom: 1px solid #f3f3f3; color: #444; }
.home-news li:last-child { border-bottom: 0; }
.home-news span { color: #999; margin-right: 10px; }
.home-about {
  background: #fff; border: 1px solid #ececee; border-radius: 12px; padding: 16px 18px;
}
.home-about p { margin: 0 0 10px; color: #555; line-height: 1.7; }
.home-about p:last-child { margin-bottom: 0; }
.shop-foot {
  display: flex; justify-content: space-between; gap: 16px;
  margin: 24px 28px 0; padding: 20px 0 28px; border-top: 1px solid #ececee; color: #888;
}
.shop-foot .foot-brand { font-weight: 700; color: #222; margin: 0 0 6px; }
.shop-foot p { margin: 0 0 4px; }
#page-shop .shop-foot { display: block; text-align: center; }
.mall-page { max-width: 760px; }
.faq details { background: #fff; border: 1px solid #ececee; border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: #666; line-height: 1.7; margin: 8px 0 0; }
.plain-list { background: #fff; border: 1px solid #ececee; border-radius: 12px; padding: 16px 20px 16px 36px; line-height: 1.9; color: #444; }

@media (max-width: 900px) {
  .home-hero, .home-two, .home-cats, .home-steps, .guarantee { grid-template-columns: 1fr 1fr; }
  .home-hero { flex-direction: column; align-items: stretch; }
  .home-cats { grid-template-columns: 1fr 1fr; }
  .home-steps { grid-template-columns: 1fr; }
  .page { padding: 14px 14px 32px; }
  .shop-store, .shop-notice, .shop-sec-head, .cat-row, .pick-label, .goods-grid,
  .home-hero, .guarantee, .home-sec-head, .home-cats, .home-steps, .home-two, .shop-foot { margin-left: 14px; margin-right: 14px; padding-left: 14px; padding-right: 14px; }
  .home-two { padding-left: 14px; padding-right: 14px; }
  .detail-grid { grid-template-columns: 1fr; }
}
