/* =================================================================
   LEAP – The Pulse of Professional Chess
   设计基准宽度 1440px；字体仅使用系统字体
   ================================================================= */

:root {
  --c-primary: #324c71;      /* 顶栏 / Banner / Two Decades 背景 */
  --c-navy: #223857;         /* 主标题、产品名 */
  --c-blue: #3a5b89;         /* 副标题、强调文字 */
  --c-text: #111;
  --c-muted: #6b7380;
  --c-light: #f7f7f7;        /* 浅灰区块背景 */
  --c-line: #5a6f8f;
  --c-white: #fff;

  --f-serif: "Sitka Subheading", "Sitka Text", Charter, "Bitstream Charter", Cambria, Georgia, "Times New Roman", serif;
  --f-sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  --container: 1208px;
  --header-h: 66px;
  --topbar-h: 39px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul { margin: 0; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- 通用标题 ---------- */
.section-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 54px;
  line-height: 1.15;
  color: var(--c-navy);
  text-align: center;
  letter-spacing: -.2px;
}

.section-desc {
  max-width: 1050px;
  margin: 9px auto 0;
  font-size: 16.5px;
  line-height: 1.38;
  text-align: center;
  color: var(--c-text);
}

/* =================================================================
   Top bar
   ================================================================= */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #fff;
  font-size: 16px;
  letter-spacing: .2px;
}

/* =================================================================
   Header
   ================================================================= */
.header {
  position: relative;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}

.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
}

.header__logo {
  justify-self: start;
  margin-left: 30px;
  display: inline-flex;
  transition: opacity .2s, transform .2s;
}
.header__logo img { width: 136px; height: auto; }
.header__logo:hover { opacity: .85; }
.header__logo:active { transform: scale(.97); }

/* 页面固定吸顶（Chess Clock 等内页） */
.header--sticky {
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(12, 19, 28, .18);
}

/* 首页：叠加在 Hero 上方，滚动后吸顶变白 */
.header--overlay {
  position: absolute;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  background: transparent;
}
.header--overlay.is-fixed {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 18px rgba(20, 35, 60, .1);
  animation: header-in .35s var(--ease);
}
@keyframes header-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* 导航 */
.nav__list {
  display: flex;
  align-items: center;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 21px;
  letter-spacing: .3px;
  color: #111;
  white-space: nowrap;
  transition: color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 2px;
  background: var(--c-primary);
  transition: left .3s var(--ease), right .3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--c-primary); }
.nav__link:hover::after,
.nav__link.is-active::after { left: 0; right: 0; }
.nav__link:active { opacity: .7; }

/* 搜索 */
.search {
  position: relative;
  justify-self: end;
  width: 206px;
}
.search__field {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid #4a4a4a;
  background: rgba(255, 255, 255, .25);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.search__field:focus-within {
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(50, 76, 113, .15);
}
.search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--c-text);
}
.search__input::-webkit-search-cancel-button { display: none; }
.search__btn {
  width: 40px;
  height: 100%;
  display: grid;
  place-items: center;
  color: #111;
  transition: color .2s, transform .15s;
}
.search__btn:hover { color: var(--c-primary); }
.search__btn:active { transform: scale(.88); }
.search__btn svg { width: 22px; height: 22px; }

.search__results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 340px;
  max-height: 380px;
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e3e5ea;
  box-shadow: 0 12px 32px rgba(20, 35, 60, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.search__results.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  color: var(--c-navy);
  transition: background-color .15s;
}
.search__item img {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
}
.search__item:hover,
.search__item.is-active { background: #eef2f7; }
.search__empty {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--c-muted);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  background: #111;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1027;
  min-height: 560px;
  overflow: hidden;
  background: #cfd6df;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.04);
  transition: transform 7s linear;
}
.hero__slide.is-active .hero__img { transform: scale(1); }

.hero__content {
  position: absolute;
  left: 5.85%;
  top: 20%;
  max-width: 640px;
}

.hero__title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(44px, 5.35vw, 77px);
  line-height: 1.25;
  letter-spacing: -.5px;
  color: var(--c-navy);
}
.hero__subtitle {
  margin-top: clamp(18px, 2vw, 28px);
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.33vw, 33.5px);
  line-height: 1.3;
  color: var(--c-blue);
}

.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__subtitle { animation: fade-up .9s var(--ease) both; }
.hero__slide.is-active .hero__subtitle { animation-delay: .15s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 15px;
  z-index: 2;
  display: flex;
  gap: 20px;
  transform: translateX(-50%);
}
.hero__dot {
  width: 157px;
  height: 22px;
  position: relative;
}
.hero__dot::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 8px;
  height: 6px;
  background: #f7f7f7;
  transition: background-color .3s;
}
.hero__dot:hover::before { background: #c9c9c9; }
.hero__dot.is-active::before { background: #8c8c8c; }

/* =================================================================
   Product grid（Flagship / Lifestyle / Chess Clock 页）
   ================================================================= */
.products { padding: 82px 0 70px; }
.products--lifestyle { padding: 60px 0 92px; }
.products--lifestyle .product-grid { margin-top: 28px; row-gap: 34px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 46px;
  row-gap: 16px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.product-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease);
}
.product-card__media::after {
  content: "View details";
  position: absolute;
  left: 50%;
  bottom: 14px;
  padding: 7px 16px;
  font-size: 13px;
  letter-spacing: .4px;
  color: #fff;
  background: rgba(50, 76, 113, .92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .3s, transform .3s var(--ease);
  pointer-events: none;
}
.product-card__name {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .1px;
  color: var(--c-navy);
  transition: color .25s;
}
.products--lifestyle .product-card__name { padding-left: 6px; }

.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card:hover .product-card__media::after { opacity: 1; transform: translate(-50%, 0); }
.product-card:hover .product-card__name { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.product-card:active .product-card__media img { transform: scale(1.02); transition-duration: .15s; }

.product-grid__empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--c-muted);
}

/* =================================================================
   Why Choose LEAP
   ================================================================= */
.why {
  padding: 46px 0 60px;
  background: var(--c-light);
}
.why__quote {
  max-width: 900px;
  margin: 54px auto 0;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.38;
  text-align: center;
  color: var(--c-text);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 262px);
  justify-content: center;
  column-gap: 112px;
  row-gap: 48px;
  margin-top: 88px;
}
.why__item {
  border-top: 1.5px solid var(--c-line);
  padding-top: 26px;
  transition: transform .35s var(--ease);
}
.why__item:hover { transform: translateY(-4px); }
.why__item h3 {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.2;
  color: var(--c-navy);
  white-space: nowrap;
}
.why__item p {
  margin-top: 30px;
  font-size: 19.5px;
  font-weight: 400;
  line-height: 1.34;
}
.why__support {
  margin-top: 84px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 31px;
  text-align: center;
  color: var(--c-blue);
}

/* =================================================================
   Two Decades of Mastery
   ================================================================= */
.mastery {
  padding: 66px 0 77px;
  background: var(--c-primary);
  color: #fff;
  text-align: center;
}
.mastery .section-title { color: #fff; }
.mastery__lead {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .2px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  justify-content: center;
  margin: 118px auto 0;
  padding: 0;
  list-style: none;
}
.stats__num {
  display: block;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 72px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.stats__label {
  display: block;
  margin-top: 14px;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .3px;
}
.mastery__text {
  max-width: 890px;
  margin: 104px auto 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.36;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 90px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 31px;
  color: #fff;
  transition: opacity .25s;
}
.more-link svg { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.more-link:hover svg { transform: translateX(8px); }
.more-link:hover { opacity: .88; }
.more-link:active { opacity: .7; }

/* =================================================================
   Page banner（Chess Clock 页）
   ================================================================= */
.banner {
  padding: 27px 24px 40px;
  background: var(--c-primary);
  color: #fff;
  text-align: center;
}
.banner__title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(48px, 5.6vw, 80px);
  line-height: 1.2;
}
.banner__desc {
  margin-top: 2px;
  font-size: 16.5px;
  font-weight: 400;
  letter-spacing: .2px;
}
.products--page { padding: 35px 0 90px; }
.products--page .product-grid { margin-top: 0; }

/* =================================================================
   Footer
   ================================================================= */
.footer {
  padding: 44px 0 22px;
  background: var(--c-light);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 412px);
  justify-content: center;
  text-align: center;
}
.footer__title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 45px;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: #34507a;
}
.footer__title::after {
  content: "";
  display: block;
  width: 33px;
  height: 2.5px;
  margin: 22px auto 25px;
  background: #34507a;
}
.footer__list {
  list-style: none;
  padding: 0;
  font-size: 16.5px;
  line-height: 30px;
}
.footer__list a {
  position: relative;
  transition: color .2s;
}
.footer__list a:hover {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 46px;
  padding: 0 30px 0 30px;
}
.footer__copy { font-family: Arial, var(--f-sans); font-size: 12px; color: #111; }
.footer__logo img { width: 136px; height: auto; }
.footer__logo { transition: opacity .2s; }
.footer__logo:hover { opacity: .8; }

/* =================================================================
   Product modal
   ================================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .26);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 447px minmax(0, 1fr);
  column-gap: 24px;
  width: min(1007px, 100%);
  height: min(613px, calc(100vh - 40px));
  padding: 34px 0 18px 23px;
  background: var(--c-light);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #555;
  transition: background-color .2s, color .2s, transform .2s;
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: #e4e6ea; color: #111; transform: rotate(90deg); }
.modal__close:active { transform: rotate(90deg) scale(.9); }

/* 图集 */
.gallery { min-width: 0; }
.gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.gallery__track {
  display: flex;
  height: 100%;
  transition: transform .5s var(--ease);
}
.gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-top: -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  color: var(--c-navy);
  opacity: 0;
  transition: opacity .25s, transform .2s, background-color .2s;
}
.gallery__arrow svg { width: 18px; height: 18px; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__main:hover .gallery__arrow { opacity: 1; }
.gallery__arrow:hover { background: #fff; }
.gallery__arrow:active { transform: scale(.9); }
.gallery__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.gallery__dot {
  width: 17px;
  height: 17px;
  position: relative;
}
.gallery__dot::before {
  content: "";
  position: absolute;
  inset: 5.5px;
  border-radius: 50%;
  background: #e1e1e1;
  transition: background-color .25s, transform .25s;
}
.gallery__dot:hover::before { background: #c8c8c8; }
.gallery__dot.is-active::before { background: #b2b2b2; transform: scale(1.15); }

.gallery__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex: 0 0 102px;
  height: 102px;
  background: #fff;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color .2s, opacity .2s;
  opacity: .78;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb:hover img { transform: scale(1.06); }
.gallery__thumb.is-active { border-color: var(--c-primary); opacity: 1; }

/* 详情 */
.modal__info {
  min-width: 0;
  overflow-y: auto;
  padding: 0 18px 24px 0;
  margin-right: 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b8b8b8 transparent;
}
.modal__info::-webkit-scrollbar { width: 6px; }
.modal__info::-webkit-scrollbar-track { background: transparent; }
.modal__info::-webkit-scrollbar-thumb { background: #b8b8b8; border-radius: 3px; }
.modal__info::-webkit-scrollbar-thumb:hover { background: #999; }

.modal__title {
  padding-right: 24px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 24.5px;
  line-height: 1.26;
  color: #111;
}
.modal__price {
  margin-top: 26px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 31px;
  line-height: 1.1;
  color: var(--c-navy);
}
.modal__note {
  margin-top: 8px;
  padding-left: 3px;
  font-size: 13.5px;
}
.modal__note a { color: inherit; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.modal__note a:hover { color: var(--c-blue); border-color: currentColor; }
.modal__divider {
  height: 0;
  margin: 40px 0 0;
  border: 0;
  border-top: 1px solid #9d9d9d;
}
.modal__heading {
  margin-top: 18px;
  padding-left: 3px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: .2px;
  color: #111;
}
.modal__content {
  margin-top: 4px;
  padding-left: 3px;
  font-size: 15px;
  line-height: 1.4;
}
.modal__content .info-lead { margin-bottom: 26px; }
.modal__content h4 { font-size: 15px; font-weight: 400; margin-top: 20px; }
.modal__content h4:first-of-type { margin-top: 0; }
.modal__content ul { margin-top: 2px; padding-left: 25px; }
.modal__content li { margin-top: 0; }
.modal__content li::marker { font-size: 12px; }
.modal__content strong { font-weight: 400; }
.modal__content p + p { margin-top: 14px; }
.modal__content a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }

/* =================================================================
   Downloads modal（与产品弹窗共用 .modal 结构与动效）
   ================================================================= */
.modal__dialog--downloads {
  display: block;
  width: min(620px, 100%);
  height: auto;
  max-height: calc(100vh - 40px);
  padding: 34px 34px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b8b8b8 transparent;
}
.modal__dialog--downloads::-webkit-scrollbar { width: 6px; }
.modal__dialog--downloads::-webkit-scrollbar-track { background: transparent; }
.modal__dialog--downloads::-webkit-scrollbar-thumb { background: #b8b8b8; border-radius: 3px; }

.modal__dl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-left: 3px;
}
.modal__dl-head .modal__heading { margin-top: 22px; padding-left: 0; }
.modal__dl-count {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a8f98;
  white-space: nowrap;
}
.modal__content--downloads { margin-top: 16px; padding-left: 0; }
/* 弹窗内容较短，分隔线收紧一些 */
.modal--downloads .modal__divider { margin-top: 26px; }
/* 下载条目是整块链接，去掉正文链接的下划线与蓝色 */
.modal__content--downloads a { color: var(--c-text); text-decoration: none; }
.modal__content--downloads a:hover { text-decoration: none; }

.dl-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl-item { animation: dlIn .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes dlIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.dl-item__link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e3e5e9;
  border-radius: 8px;
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.dl-item__link:hover {
  border-color: rgba(50, 76, 113, .55);
  box-shadow: 0 8px 20px rgba(50, 76, 113, .13);
  transform: translateY(-2px);
}
.dl-item__link:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(50, 76, 113, .13); }

.dl-item__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(50, 76, 113, .08);
  color: var(--c-primary);
  transition: background-color .2s, color .2s;
}
.dl-item__icon svg { width: 20px; height: 20px; }
.dl-item__link:hover .dl-item__icon { background: var(--c-primary); color: #fff; }

.dl-item__text { flex: 1 1 auto; min-width: 0; }
.dl-item__name {
  display: block;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--c-navy);
}
.dl-item__desc { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: #5a6270; }
.dl-item__meta { display: block; margin-top: 4px; font-size: 12.5px; color: #8a8f98; }

.dl-item__action {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--c-primary);
  opacity: .55;
  transition: transform .25s var(--ease), opacity .2s;
}
.dl-item__action svg { width: 100%; height: 100%; }
.dl-item__link:hover .dl-item__action { transform: translateY(2px); opacity: 1; }

.dl-state {
  padding: 34px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid #e3e5e9;
  border-radius: 8px;
}
.dl-state p { font-size: 14.5px; line-height: 1.5; color: #5a6270; }
.dl-state p + p { margin-top: 6px; }
.dl-state__title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--c-navy);
}
.dl-state__icon { width: 26px; height: 26px; margin: 0 auto 12px; color: #8a8f98; }
.dl-state__icon svg { width: 100%; height: 100%; }
.dl-spinner {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 14px;
  border: 2px solid #dfe2e7;
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: dlSpin .8s linear infinite;
}
@keyframes dlSpin { to { transform: rotate(360deg); } }
.dl-retry {
  margin-top: 18px;
  padding: 10px 24px;
  border: 1px solid var(--c-primary);
  border-radius: 999px;
  font-size: 14px;
  color: var(--c-primary);
  transition: background-color .2s, color .2s, transform .2s;
}
.dl-retry:hover { background: var(--c-primary); color: #fff; }
.dl-retry:active { transform: scale(.97); }

/* =================================================================
   Toast（未开发页面占位提示）
   ================================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: 6px;
  background: var(--c-navy);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(20, 35, 60, .28);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { flex: none; width: 20px; height: 20px; color: #f5c518; }

/* =================================================================
   滚动渐显
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1360px) {
  .nav__list { gap: 32px; }
  .nav__link { font-size: 19px; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .header__inner { grid-template-columns: auto 1fr auto; padding: 0 18px 0 28px; }
  .nav { justify-self: center; }
  .nav__list { gap: 24px; }
  .nav__link { font-size: 17px; }
  .search { width: 180px; }
  .product-grid { column-gap: 28px; }
  .why__grid { grid-template-columns: repeat(3, minmax(0, 262px)); column-gap: 56px; }
  .why__item h3 { white-space: normal; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .header__inner { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 14px 30px rgba(20, 35, 60, .14);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .nav-open .nav { max-height: 400px; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav__link { display: block; padding: 12px 28px; font-size: 18px; }
  .nav__link::after { left: 28px; right: auto; width: 0; bottom: 6px; transition: width .3s var(--ease); }
  .nav__link:hover::after,
  .nav__link.is-active::after { left: 28px; right: auto; width: 40px; }
  .nav-open .header--overlay { background: #fff; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 44px; }
  .why__quote { font-size: 24px; }
  .why__quote br { display: none; }
  .why__grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .why__item p { margin-top: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .stats__num { font-size: 60px; }
  .mastery__text { font-size: 20px; margin-top: 72px; }
  .more-link { margin-top: 60px; font-size: 26px; }
  .footer__title { font-size: 36px; }

  .modal__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 46px 20px 20px;
    row-gap: 24px;
  }
  .gallery { max-width: 447px; width: 100%; margin: 0 auto; }
  .gallery__arrow { opacity: 1; }
  .modal__info { overflow: visible; padding: 0; margin: 0; }
  .modal__dialog--downloads { padding: 44px 24px 24px; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; --topbar-h: 34px; }
  .topbar { font-size: 13px; padding: 0 12px; text-align: center; }
  .header__inner { padding: 0 8px 0 16px; }
  .header__logo img { width: 104px; }
  .search { width: 140px; }
  .search__results { width: min(320px, calc(100vw - 24px)); right: -48px; }
  .hero { aspect-ratio: auto; height: min(82vh, 720px); min-height: 480px; }
  .hero__img { object-position: 78% center; }
  .hero__content { left: 20px; right: 20px; top: 15%; }
  .hero__dot { width: 60px; }
  .hero__dots { gap: 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 28px; margin-top: 32px; }
  .product-card__name { font-size: 14px; }
  .products--lifestyle .product-card__name { padding-left: 0; }
  .section-title { font-size: 34px; }
  .section-desc { font-size: 15px; }
  .why__quote { font-size: 20px; margin-top: 36px; }
  .why__grid { margin-top: 48px; }
  .why__item p { font-size: 17px; }
  .why__support { font-size: 23px; margin-top: 60px; }
  .stats__num { font-size: 48px; }
  .stats__label { font-size: 17px; margin-top: 14px; }
  .mastery__text { font-size: 17px; }
  .footer__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .footer__bottom { flex-direction: column-reverse; align-items: center; gap: 18px; padding: 0; }
  .banner__desc { font-size: 15px; }
  .modal__dialog--downloads { padding: 42px 16px 18px; }
  .dl-item__link { gap: 12px; padding: 12px; }
  .dl-item__name { font-size: 15.5px; }
  .dl-item__desc { font-size: 12.5px; }
}
