/* style.css — 运动电子产品基础样式与页面骨架 */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ink-invert);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f8f9fb;
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(18, 38, 58, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--hdr-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.brand-name { white-space: nowrap; }
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  min-width: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 7px 10px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav-link:hover { background: var(--accent-tint); color: var(--ink); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }
.nav-drop {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 168px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.nav-item:hover > .nav-drop { display: block; }
.nav-drop a {
  display: block;
  padding: 7px 10px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav-drop a:hover { background: var(--accent-tint); color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* ------------------------------------------------------------- 区块头 */
.sec { padding: var(--sec-pad) 0; }
.sec-head { max-width: 780px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}
.sec-title {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.sec-sub {
  margin-top: 5px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* ------------------------------------------------------------- 页脚 */
.site-footer {
  background: var(--dark);
  color: var(--ink-invert);
  padding: 18px 0 0;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px 40px;
  padding-bottom: 12px;
}
.footer-col { flex: 1 1 180px; min-width: 170px; }
.footer-col-brand { flex: 1.4 1 240px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.footer-brand svg { width: 20px; height: 20px; color: #6aa5f2; flex: none; }
.footer-tag {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(244, 248, 253, .66);
  max-width: 330px;
}
.footer-h {
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 248, 253, .5);
  margin-bottom: 8px;
}
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 12.5px;
}
.footer-cats a { color: rgba(244, 248, 253, .84); }
.footer-cats a:hover { color: #fff; text-decoration: underline; }
.footer-about {
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(244, 248, 253, .6);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--dark-line);
  padding: 7px 0 9px;
  font-size: var(--fs-xs);
  color: rgba(244, 248, 253, .45);
}

/* ------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
  :root { --gutter: 28px; --fs-h1: 38px; --sec-pad: 44px; }
  .nav { gap: 0; }
  .nav-link { padding: 7px 8px; font-size: 13px; }
}
@media (max-width: 980px) {
  .header-inner { gap: 14px; }
  .nav {
    gap: 0;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-drop { max-height: 300px; }
  .footer-top { gap: 24px 28px; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; --fs-h1: 29px; --fs-h2: 21px; --sec-pad: 34px; --hdr-h: 56px; }
  .header-inner { gap: 10px; }
  .brand { font-size: 15px; }
  .brand svg { width: 19px; height: 19px; }
  .nav-link { padding: 7px 7px; font-size: 13px; }
  .sec-sub { font-size: var(--fs-sm); }
  .footer-top { flex-direction: column; gap: 20px; padding-bottom: 16px; }
  .footer-col, .footer-col-brand { flex: 1 1 auto; min-width: 0; width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}
