/* ==========================================================================
   有氧运动 · 首页版式
   设计基准宽度 1440（内容栏 1384 / 左右 28）；分区高度见 03-ui/compare-log.md
   量稿映射：稿 1024×1536 → 设计 1440×2160，比例 1.40625
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0;
}

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

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

/* ------------------------------------------------------------- 页头 M0 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--sky);
}

.site-header .shell {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--blue-deep);
}

.brand-tag {
  margin-left: 26px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--blue-deep);
  color: var(--blue-deep);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-left: 30px;
  color: #4a6076;
  font-size: 17px;
}

.nav a {
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue-deep);
}

.brand-name {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-block;
  padding: 6px 0;
}

.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 70;
  min-width: 150px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-nav);
  transform: translateX(-50%);
}

.nav-item:hover .drop-menu {
  display: block;
}

.drop-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 15px;
  white-space: nowrap;
}

.drop-menu a:hover,
.drop-menu a:focus-visible {
  background: var(--tint);
  color: var(--blue-deep);
}

/* -------------------------------------------------------- 首屏 M1 */
.hero {
  position: relative;
  height: 421px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, #dfedfa 62%, #e8f1fb 100%);
}

.hero-photo {
  position: absolute;
  right: max(0px, calc((100% - 1440px) / 2));
  bottom: 0;
  width: 688px;
  height: 421px;
  object-fit: cover;
  object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}

.hero-inner {
  position: relative;
  height: 100%;
  padding-top: 85px;
  padding-left: 65px;
}

.hero h1 {
  max-width: 720px;
  color: #1b3a5f;
  font-size: 60px;
  line-height: 1.31;
  letter-spacing: 0.5px;
}

.hero-lead {
  max-width: 660px;
  margin-top: 11px;
  color: #42597a;
  font-size: 26px;
  line-height: 42px;
}

.hero-rule {
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 16px;
  background: var(--orange);
  border-radius: 1px;
}

/* ------------------------------------------------ 分类网格 M2 */
.cat-section {
  padding: 30px 0 35px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px 25px;
  margin: 0 18px;
}

.cat-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 34px;
  height: 133px;
  padding: 18px 20px 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cat-card:hover {
  border-color: var(--blue-soft);
  box-shadow: var(--shadow-raise);
  transform: translateY(-2px);
}

.cat-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 40px;
  height: 40px;
  color: var(--blue-deep);
}

.cat-card h2 {
  grid-column: 2;
  grid-row: 1;
  font-size: 26px;
  letter-spacing: 0.4px;
}

.cat-card p {
  grid-column: 2;
  grid-row: 2;
  margin-top: 4px;
  color: var(--body);
  font-size: 18px;
  line-height: 28px;
}

.cat-go {
  position: absolute;
  top: 22px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #b8c4d4;
  border-right: 2px solid #b8c4d4;
  transform: rotate(45deg);
}

.cat-card:hover .cat-go {
  border-color: var(--blue-deep);
}

/* ------------------------------------------------ 精选阅读 M3 */
.featured {
  padding-top: 0;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
}

.sec-bar {
  width: 5px;
  height: 36px;
  background: var(--orange);
  border-radius: 2px;
}

.sec-head h2 {
  color: var(--ink);
  font-size: 42px;
  letter-spacing: 0.5px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 29px;
  margin-top: 24px;
}

.feat-card {
  display: flex;
  flex-direction: column;
  height: 345px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.feat-card:hover {
  box-shadow: var(--shadow-raise);
  transform: translateY(-2px);
}

.feat-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.feat-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pill {
  position: absolute;
  top: 17px;
  left: 18px;
  padding: 4px 13px 5px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.feat-card h3 {
  margin: 20px 22px 0;
  font-size: 24px;
  line-height: 33px;
}

.feat-card p {
  margin: 8px 22px 0;
  color: var(--body);
  font-size: 19px;
  line-height: 29px;
}

/* ------------------------------------------------ 三步骤 M4 */
.steps {
  margin-top: 46px;
}

.steps-head {
  height: 62px;
}

.steps-head h2 {
  font-size: 36px;
  letter-spacing: 0.4px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  height: 120px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 34px;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 0 14px;
  padding: 16px 18px 16px 83px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 31px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1.6px solid var(--blue-deep);
  border-radius: 50%;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.step h3 {
  grid-column: 1;
  grid-row: 1;
  font-size: 21px;
  line-height: 30px;
}

.step p {
  grid-column: 1;
  grid-row: 2;
  margin-top: 2px;
  color: var(--body);
  font-size: 17px;
  line-height: 27px;
}

.step-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  color: var(--blue-deep);
}

.steps-list .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #c3cede;
  border-right: 2px solid #c3cede;
  transform: translateY(-50%) rotate(45deg);
}

/* ------------------------------------------------ 收录说明 M5 */
.scope-wrap {
  margin-top: 42px;
}

.scope {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 0 26px;
  height: 169px;
  padding: 27px 42px;
  border-radius: var(--radius-lg);
  background: var(--tint-2);
}

.scope-mark {
  width: 30px;
  height: 30px;
  color: var(--orange);
}

.scope-mark svg {
  width: 30px;
  height: 30px;
}

.scope h2 {
  font-size: 36px;
  letter-spacing: 0.4px;
}

.scope p {
  margin-top: 6px;
  max-width: 1220px;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 34px;
}

/* ------------------------------------------------ 入口行动 M6 */
.cta-wrap {
  margin-top: 29px;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  height: 172px;
  padding-left: 384px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cta);
}

.cta-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 172px;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 58%, transparent 100%);
}

.cta-body {
  padding-right: 30px;
}

.cta h2 {
  color: #fff;
  font-size: 37px;
  letter-spacing: 0.4px;
}

.cta p {
  margin-top: 12px;
  color: #c8d5e6;
  font-size: 19px;
  line-height: 30px;
  max-width: 700px;
}

.cta-btn {
  flex: none;
  margin-left: auto;
  margin-right: 34px;
  padding: 0 30px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #ef8020;
}

/* ------------------------------------------------ 页脚 M7 */
.site-footer {
  margin-top: 59px;
  padding-bottom: 28px;
  background: var(--footer);
  color: var(--on-dark);
}

.site-footer .shell {
  padding-top: 35px;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px 40px;
}

.foot-col {
  flex: 1 1 180px;
  min-width: 160px;
}

.foot-head {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.foot-brand {
  flex: 1 1 280px;
}

.brand-foot {
  color: var(--on-dark);
  font-size: 26px;
}

.foot-tag {
  margin-left: 22px;
  color: var(--on-dark-2);
  font-size: 17px;
}

.foot-intro {
  margin-top: 12px;
  color: #93a3b8;
  font-size: 15px;
  line-height: 26px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: #cdd8e6;
  font-size: 16px;
}

.foot-nav-col {
  flex-direction: column;
  gap: 10px;
}

.foot-nav a:hover {
  color: #fff;
}

.foot-icp {
  color: #93a3b8;
  font-size: 15px;
}

.foot-note {
  margin-top: 22px;
  padding-top: 21px;
  border-top: 1px solid var(--line-dark);
  color: #93a3b8;
  font-size: 15px;
  text-align: center;
}

/* ------------------------------------------------ 响应式 */
@media (max-width: 1180px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 22px;
    line-height: 36px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }

  .nav {
    position: static;
    z-index: auto;
    display: flex;
    flex: 1 0 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    margin: 8px 0 0;
    padding: 8px 0 10px;
    background: transparent;
    border-top: 1px solid var(--blue-soft);
    border-bottom: none;
    box-shadow: none;
    font-size: 15px;
  }

  .nav a {
    padding: 4px 0;
    border-bottom: none;
    font-size: 15px;
  }

  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .site-header .shell {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .drop-menu {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    min-width: 0;
    max-height: none;
    overflow: visible;
    margin: 2px 0 6px;
    padding: 4px 0 6px 10px;
    border: none;
    border-left: 2px solid var(--blue-soft);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .drop-menu a {
    padding: 2px 0;
    font-size: 14px;
    color: var(--muted);
  }

  .brand-tag {
    display: none;
  }

  .brand {
    font-size: 22px;
  }

  .hero {
    height: auto;
    padding-bottom: 34px;
  }

  .hero-photo {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 240px;
    order: 2;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-inner {
    padding-top: 34px;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.34;
  }

  .hero-lead {
    font-size: 18px;
    line-height: 30px;
    margin-top: 12px;
  }

  .cat-section {
    padding: 24px 0 20px;
  }

  .cat-grid {
    margin: 0;
  }

  .cat-grid {
    gap: 12px;
  }

  .cat-card {
    height: auto;
    min-height: 112px;
    padding: 16px;
    gap: 0 16px;
    grid-template-columns: 32px 1fr;
  }

  .cat-icon {
    width: 32px;
    height: 32px;
  }

  .cat-card h2 {
    font-size: 21px;
  }

  .cat-card p {
    font-size: 15px;
    line-height: 24px;
  }

  .featured {
    padding-top: 26px;
  }

  .sec-head h2 {
    font-size: 30px;
  }

  .sec-bar {
    height: 28px;
    width: 4px;
  }

  .feat-grid,
  .steps-list {
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
  }

  .feat-card {
    height: auto;
  }

  .feat-media,
  .feat-media img {
    height: 190px;
  }

  .feat-card h3 {
    font-size: 20px;
    line-height: 29px;
    margin: 14px 18px 0;
  }

  .feat-card p {
    margin: 6px 18px 18px;
    font-size: 16px;
    line-height: 26px;
  }

  .steps {
    margin-top: 30px;
  }

  .steps-head {
    height: auto;
    margin-bottom: 14px;
  }

  .steps-head h2 {
    font-size: 24px;
  }

  .step {
    padding: 16px 16px 16px 58px;
  }

  .step::before {
    left: 20px;
  }

  .steps-list .step::after {
    display: none;
  }

  .scope-wrap {
    margin-top: 30px;
  }

  .scope {
    height: auto;
    padding: 22px 20px;
    gap: 0 16px;
  }

  .scope h2 {
    font-size: 24px;
  }

  .scope p {
    font-size: 16px;
    line-height: 28px;
    max-width: none;
  }

  .cta-wrap {
    margin-top: 24px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding-left: 0;
    padding-bottom: 24px;
  }

  .cta-img {
    position: static;
    width: 100%;
    height: 160px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cta-body {
    padding: 20px 20px 0;
  }

  .cta h2 {
    font-size: 24px;
  }

  .cta p {
    font-size: 16px;
    line-height: 26px;
    margin-top: 8px;
  }

  .cta-btn {
    margin: 16px 20px 0;
    height: 46px;
    font-size: 16px;
  }

  .site-footer {
    height: auto;
    margin-top: 30px;
    padding-bottom: 26px;
  }

  .site-footer .shell {
    padding-top: 26px;
  }

  .foot-top {
    flex-wrap: wrap;
    gap: 20px 0;
  }

  .foot-col {
    flex: 1 0 100%;
    min-width: 0;
  }

  .foot-head {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .foot-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 15px;
  }

  .foot-note {
    margin-top: 16px;
    padding-top: 16px;
    font-size: 13px;
    line-height: 22px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 27px;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 27px;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .feat-media,
  .feat-media img {
    height: 164px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* skip-link：无障碍跳转链接，默认移出视口，Tab 聚焦时归位 */
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;padding:8px 14px;background:#fff;color:#111;border-radius:6px;font-size:14px;text-decoration:none}
.skip-link:focus{left:8px;top:8px;outline:2px solid currentColor}
