/* ---------- 字体与基础：仿 Apple 官网 ---------- */
:root {
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --bg-alt: #f5f5f7;
  --link: #0066cc;
  --blue: #0071e3;
  --radius: 18px;
  --content: 980px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航：毛玻璃 ---------- */
.globalnav {
  position: sticky; top: 0; z-index: 100;
  height: 44px;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.globalnav-inner {
  max-width: var(--content); height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.globalnav-title {
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  letter-spacing: 0.011em; color: var(--ink);
}
.globalnav-title:hover { text-decoration: none; }
.globalnav-links, .globalnav-items { display: flex; gap: 22px; align-items: center; }
.globalnav-links a { font-size: 12px; letter-spacing: -0.01em; color: var(--ink); opacity: .8; }
.globalnav-links a:hover { opacity: 1; text-decoration: none; }
.globalnav-links a.active { opacity: 1; font-weight: 600; }

/* ---------- 通用排版 ---------- */
.section { padding: 80px 22px; }
.section-alt { background: var(--bg-alt); }
.wrap { max-width: var(--content); margin: 0 auto; }
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; color: var(--ink-2); }
.headline {
  font-family: var(--font-display);
  font-size: 80px; line-height: 1.05; font-weight: 700; letter-spacing: -0.015em;
}
.headline-2 {
  font-family: var(--font-display);
  font-size: 48px; line-height: 1.08; font-weight: 600; letter-spacing: -0.003em;
}
.subhead {
  font-family: var(--font-display);
  font-size: 28px; line-height: 1.14; font-weight: 400; letter-spacing: 0.007em; color: var(--ink-2);
  margin-top: 12px;
}
.center { text-align: center; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 100px 22px 60px; text-align: center; }
.hero .stat-row { margin-top: 40px; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat-sm .num { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.01em; }
.stat-sm .lbl { font-size: 14px; color: var(--ink-3); }

/* ---------- 物品卡片 ---------- */
.cat-title { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: 0; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border-radius: var(--radius);
  padding: 40px 30px 36px; color: var(--ink);
  box-shadow: 2px 4px 12px rgba(0,0,0,0.08);
  transition: transform .3s cubic-bezier(0,0,.5,1), box-shadow .3s cubic-bezier(0,0,.5,1);
}
.tile:hover { text-decoration: none; transform: scale(1.015); box-shadow: 2px 4px 16px rgba(0,0,0,0.16); }
.tile .badge { font-size: 12px; font-weight: 600; color: #b64400; letter-spacing: -0.01em; height: 16px; }
.tile .icon { width: 160px; height: 160px; margin: 18px 0 22px; color: var(--ink); }
.tile h3 { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: .007em; }
.tile p { font-size: 17px; color: var(--ink-2); margin-top: 6px; min-height: 50px; }
.tile .more { margin-top: 18px; font-size: 17px; color: var(--link); }
.tile .more::after { content: " ›"; }
.tile.placeholder { background: transparent; box-shadow: none; border: 1.5px dashed var(--line); }
.tile.placeholder .icon { color: var(--ink-3); opacity: .55; }
.tile.placeholder h3 { color: var(--ink-3); }

/* ---------- 详情页 ---------- */
.detail-hero { padding: 90px 22px 70px; text-align: center; }
.detail-hero .icon { width: 260px; height: 260px; margin: 40px auto 0; color: var(--ink); }
.pill-row { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 11px 22px; border-radius: 980px;
  font-size: 17px; line-height: 1.17; background: var(--blue); color: #fff;
}
.pill:hover { background: #0077ed; text-decoration: none; }
.pill.secondary { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.pill.secondary:hover { background: var(--blue); color: #fff; }

.highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px 20px; text-align: center;
}
.hl .num {
  font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: 1.05; letter-spacing: -0.015em;
  background: linear-gradient(135deg, #1d1d1f 0%, #6e6e73 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl .num small { font-size: 28px; font-weight: 600; margin-left: 2px; }
.hl .lbl { font-size: 17px; color: var(--ink-2); margin-top: 6px; }

/* 技术规格表：仿 Apple Tech Specs */
.specs-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; }
.spec-row {
  display: grid; grid-template-columns: 25% 1fr auto; gap: 20px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.spec-row h4 { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.17; letter-spacing: .009em; }
.spec-row .s-name { font-size: 17px; font-weight: 600; }
.spec-row .s-detail { font-size: 17px; color: var(--ink-2); margin-top: 2px; }
.spec-row .s-price { font-size: 17px; color: var(--ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec-row .s-price .qty { display: block; font-size: 12px; color: var(--ink-3); }
.spec-total {
  display: grid; grid-template-columns: 25% 1fr auto; gap: 20px;
  padding: 30px 0 0; border-top: 1px solid var(--ink);
}
.spec-total h4 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.spec-total .s-price { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.specs-note { color: var(--ink-3); font-size: 14px; }
.notes { margin-top: 40px; font-size: 17px; color: var(--ink-2); }
.empty { padding: 60px 0; text-align: center; color: var(--ink-3); }
.empty code { background: #fff; padding: 2px 8px; border-radius: 6px; font-size: 15px; color: var(--ink); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--content); margin: 0 auto; padding: 20px 22px; font-size: 12px; line-height: 1.33; color: var(--ink-3); letter-spacing: -0.01em; }

/* ---------- 进入动画 ---------- */
.fade { opacity: 0; transform: translateY(24px); animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.fade.d1 { animation-delay: .08s; } .fade.d2 { animation-delay: .16s; } .fade.d3 { animation-delay: .24s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 734px) {
  .headline { font-size: 48px; }
  .headline-2 { font-size: 32px; }
  .subhead { font-size: 21px; }
  .cat-title { font-size: 32px; }
  .section { padding: 56px 18px; }
  .detail-hero .icon { width: 200px; height: 200px; }
  .hl .num { font-size: 48px; }
  .spec-row, .spec-total { grid-template-columns: 1fr auto; }
  .spec-row h4, .spec-total h4 { grid-column: 1 / -1; font-size: 19px; }
  .specs-head { flex-direction: column; gap: 6px; }
}
