/* ============================================================================
 * Basic Portfolio Bundle (1.0.0)
 * 中性简洁,深浅色自适应;无外部字体、无渐变装饰,对比度达 AA。
 * ========================================================================== */
:root {
  --bg: #fafafa; --fg: #18181b; --muted: #71717a;
  --card: #ffffff; --border: #e4e4e7; --accent: #18181b; --accent-fg: #fafafa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101012; --fg: #f4f4f5; --muted: #a1a1aa;
    --card: #18181b; --border: #2a2a2e; --accent: #f4f4f5; --accent-fg: #18181b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 system-ui, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 48px 20px 64px; }

.hero { text-align: center; margin-bottom: 40px; }
.hero h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); margin: 0; }
.stats { font-size: 14px; margin-top: 6px; }

.group { margin-bottom: 32px; }
.group h2 {
  font-size: 14px; color: var(--muted); font-weight: 600;
  margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.items { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.item {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
}
.item .name { font-weight: 600; font-size: 17px; word-break: break-all; }
.item .slogan { color: var(--muted); font-size: 13px; min-height: 1.2em; }
.item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.item .price { font-weight: 600; }
.item .price.offer { color: var(--muted); font-weight: 400; }
.item .meta { color: var(--muted); font-size: 12px; }
.item button {
  border: 1px solid var(--border); background: var(--accent); color: var(--accent-fg);
  border-radius: 8px; padding: 6px 14px; font-size: 14px; cursor: pointer;
}
.item button:hover { opacity: 0.88; }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }

.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
/* display:flex 会盖掉 hidden 属性的 UA 样式,必须显式压回去 */
.overlay[hidden] { display: none; }
.dialog {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; width: 100%; max-width: 420px;
}
.dialog h2 { margin: 0 0 4px; font-size: 18px; word-break: break-all; }
.dialog-price { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.dialog label { display: block; margin-bottom: 12px; font-size: 14px; }
.dialog input, .dialog textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--fg); font: inherit;
}
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.dialog-actions button {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px;
  font-size: 14px; cursor: pointer; background: var(--card); color: var(--fg);
}
.dialog-actions #inquiry-submit { background: var(--accent); color: var(--accent-fg); }
#form-status { font-size: 13px; margin: 10px 0 0; min-height: 1.2em; }

.hp { position: absolute; left: -9999px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0; }

/* ---- 平台横幅(A1 深色细条;克制,不抢页面主体)-------------------------- */
.notice {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; position: relative; padding: 9px 16px;
  background: var(--accent); color: var(--accent-fg);
  font-size: 13px; line-height: 1.5;
}
.notice-dot {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .55;
}
.notice a {
  color: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.notice-sep { opacity: .35; }
.notice-lang {
  flex: none; padding: 2px 4px; border: 0; background: none; color: inherit;
  font: inherit; font-size: 11px; opacity: .7; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
/* display:flex 会盖掉 hidden 属性的 UA 样式,必须显式压回去 */
.notice[hidden] { display: none; }
