:root {
  --bg: #f4f7f6;
  --bg-white: #ffffff;
  --ink: #102a27;
  --muted: #3d5a55;
  --muted-2: #5f7a74;
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --line: #d7e8e4;
  --line-strong: #b7cbc6;
  --shadow: 0 18px 40px rgba(16, 42, 39, 0.08);
  --radius: 12px;
  --nav-h: 64px;
  --sticky-h: 64px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site {
  padding-bottom: calc(var(--sticky-h) + 16px);
}

/* —— Top nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(12px, 2vw, 20px);
  background: rgba(244, 247, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.nav__brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav__brand:hover {
  text-decoration: none;
  color: var(--teal);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
}

.nav__link {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.nav__cta:hover {
  background: var(--teal-hover);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--teal);
  color: #fff !important;
}

.btn--primary:hover {
  background: var(--teal-hover);
}

.btn--ghost {
  background: var(--bg-white);
  color: var(--ink) !important;
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal) !important;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-row--center {
  justify-content: center;
}

/* —— Download cards —— */
.dl-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0 0 4px;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.dl-card {
  flex: 0 0 auto;
  width: 136px;
  padding: 12px 8px 14px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(16, 42, 39, 0.08);
  border: 1px solid var(--line);
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  cursor: default;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dl-card--windows {
  cursor: pointer;
}

.dl-card:hover {
  box-shadow: 0 8px 28px rgba(16, 42, 39, 0.12);
  border-color: var(--line-strong);
}

.dl-card__label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
  white-space: nowrap;
}

.dl-card__media {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-card__media-base,
.dl-card__media-hover,
.dl-card__qr {
  max-width: 100%;
  max-height: 100%;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.dl-card__media-base,
.dl-card__media-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.22s ease;
}

.dl-card__media-hover {
  opacity: 0;
  pointer-events: none;
}

.dl-card--windows:hover .dl-card__media-hover,
.dl-card--windows:focus-visible .dl-card__media-hover {
  opacity: 1;
}

.dl-card--windows:hover .dl-card__media-base,
.dl-card--windows:focus-visible .dl-card__media-base {
  opacity: 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px) clamp(12px, 2vw, 20px) clamp(24px, 3vw, 36px);
  background: radial-gradient(
    120% 80% at 80% 20%,
    #d7e8e4 0%,
    #f4f7f6 45%,
    #eef5f3 100%
  );
}

.hero__layout {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 901px) {
  .hero__layout {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(0, 1.35fr);
    grid-template-areas:
      'intro visual'
      'vote visual'
      'features features'
      'articles articles';
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }

  .hero__intro {
    grid-area: intro;
  }

  .hero__visual-col {
    grid-area: visual;
  }

  .hero__features {
    grid-area: features;
    margin-top: 0;
  }

  .hero__vote-cta {
    grid-area: vote;
  }

  .hero__articles {
    grid-area: articles;
  }
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.hero__tagline {
  margin: 0 0 20px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--muted);
  max-width: 28em;
}

.hero__visual-col {
  min-width: 0;
}

.hero__meta-block {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.hero__hint-label {
  margin: 20px 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__hint-label--spaced {
  margin-top: 16px;
}

.hero__vendors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hero__vendor {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.hero__vendor--toggle {
  cursor: pointer;
  margin: 0;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: inherit;
  font-family: inherit;
  line-height: 1.2;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.hero__vendor--toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: #fff;
}

.hero__vote-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #8eaea6 0%, #729a92 55%, #5f8680 100%);
  box-shadow:
    0 4px 18px rgba(95, 122, 116, 0.32),
    0 0 0 0 rgba(95, 122, 116, 0.32);
  animation: vote-cta-pulse 2.4s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width: fit-content;
  max-width: 100%;
}

.hero__vote-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 10px 28px rgba(95, 122, 116, 0.4),
    0 0 0 0 rgba(95, 122, 116, 0);
  text-decoration: none !important;
}

.hero__vote-cta:active {
  transform: translateY(0) scale(0.99);
}

.hero__vote-cta-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.hero__vote-cta-arrow {
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.hero__vote-cta:hover .hero__vote-cta-arrow {
  transform: translateX(3px);
}

@keyframes vote-cta-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 18px rgba(95, 122, 116, 0.32),
      0 0 0 0 rgba(95, 122, 116, 0.28);
  }
  50% {
    box-shadow:
      0 4px 18px rgba(95, 122, 116, 0.32),
      0 0 0 10px rgba(95, 122, 116, 0);
  }
}

.hero__features {
  margin: clamp(18px, 2.5vw, 24px) 0 0;
  padding-top: clamp(14px, 2vw, 18px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.hero__features-title {
  margin: 0 0 10px;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features--core {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}

.features--core .feature--link {
  grid-column: span 3;
}

.feature--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.feature--link:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

.feature--link .feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  font-size: 1.0625rem;
  line-height: 1;
}

.feature--link .feature__title {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.feature--link .feature__desc {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.hero__articles {
  margin: clamp(18px, 2.5vw, 24px) 0 0;
  padding-top: clamp(14px, 2vw, 18px);
  border-top: 1px solid var(--line);
}

.hero__articles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hero__articles-title {
  margin: 0;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__articles-more {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.hero__articles-more:hover {
  color: var(--teal-hover) !important;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.article-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

.article-card__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef5f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 12px 14px 14px;
}

.article-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-card__summary {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  margin: auto 0 0;
  padding-top: 4px;
  font-size: 0.75rem;
  color: var(--muted-2);
}

.article-card__meta time {
  font: inherit;
  color: inherit;
}

.hero__visual {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0;
  animation: hero-in 0.7s ease both;
  overflow: hidden;
  width: 100%;
  background: transparent;
}

.hero__carousel {
  position: relative;
}

.hero__carousel-track {
  position: relative;
}

.hero__carousel .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero__carousel .hero__img.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.hero__carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2d4a44;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero__carousel:hover .hero__carousel-btn {
  opacity: 1;
}

.hero__carousel-btn:hover {
  background: #fff;
}

.hero__carousel-btn--prev {
  left: 10px;
}

.hero__carousel-btn--next {
  right: 10px;
}

.hero__carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero__carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__carousel-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  cursor: zoom-in;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.section {
  max-width: 1540px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(12px, 2vw, 20px);
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.section__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  letter-spacing: -0.02em;
}

.section__sub {
  margin: 0 0 28px;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.feature {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.feature--accent {
  border-top: 2px solid var(--teal);
}

.feature__title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.feature__desc {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.9375rem;
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--line);
  background: #eef5f3;
  padding: clamp(32px, 5vw, 48px) clamp(12px, 2vw, 20px) 28px;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.footer__inner {
  max-width: 1540px;
  margin: 0 auto;
  text-align: center;
}

.footer__contact {
  display: inline-block;
  cursor: pointer;
}

.footer__qr {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.footer__qr-label {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.footer__links {
  margin: 16px 0 0;
  font-size: 0.8125rem;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer__legal {
  margin: 20px 0 0;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.footer__legal a {
  color: var(--muted-2);
}

/* —— Sticky download bar —— */
.sticky-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  transform: translateY(110%);
  transition: transform 0.25s ease;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(16, 42, 39, 0.06);
}

.sticky-dl.is-visible {
  transform: translateY(0);
}

.sticky-dl__inner {
  max-width: 1540px;
  margin: 0 auto;
  min-height: var(--sticky-h);
  padding: 10px clamp(12px, 3vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-dl__label {
  font-weight: 650;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.sticky-dl .btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.875rem;
}

/* —— QR modal —— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 42, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: min(360px, 100%);
  text-align: center;
  box-shadow: var(--shadow);
}

.modal__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.modal__sub {
  margin: 0 0 16px;
  color: var(--muted-2);
  font-size: 0.875rem;
}

.modal__qr {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* —— Lightbox —— */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
  background: rgba(15, 23, 42, 0.88);
}

.lightbox__stage {
  max-width: min(96vw, 1600px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 10001;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__close {
  position: fixed;
  z-index: 10001;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* JS 未加载时的爬虫/无障碍兜底样式 */
.seo-fallback {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  color: var(--ink, #102a27);
  line-height: 1.6;
}

.seo-fallback h1 {
  font-size: 1.75rem;
  margin: 0 0 12px;
}

.seo-fallback h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
}

.seo-fallback ul {
  padding-left: 1.2em;
}

.seo-fallback li {
  margin: 6px 0;
}

@media (max-width: 900px) {
  .hero__title {
    white-space: normal;
  }

  .hero__carousel-btn {
    opacity: 0.9;
  }

  .hero__visual-col {
    margin-top: clamp(12px, 2vw, 18px);
  }

  .hero__vote-cta {
    align-self: flex-start;
  }

  .dl-cards {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dl-card {
    width: 120px;
  }

  .dl-card__label {
    font-size: 0.62rem;
  }

  .dl-card__media,
  .dl-card__media-base,
  .dl-card__media-hover,
  .dl-card__qr {
    width: 96px;
    height: 96px;
  }

  .features--core {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features--core .feature--link {
    grid-column: auto;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .features:not(.features--core) {
    grid-template-columns: 1fr;
  }

  .sticky-dl__label {
    display: none;
  }

  .sticky-dl__inner {
    justify-content: center;
  }

  .nav__links .nav__link {
    display: none;
  }
}
