:root {
  color-scheme: dark;
  --bg: #1b2838;
  --bg-2: #16202d;
  --nav: #171a21;
  --panel: #223142;
  --panel-2: #2a3b4f;
  --panel-3: #101821;
  --text: #c7d5e0;
  --bright: #ffffff;
  --muted: #8f98a0;
  --line: rgba(199, 213, 224, 0.16);
  --blue: #66c0f4;
  --blue-2: #1a9fff;
  --green: #75b022;
  --green-2: #8bc53f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --content: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 0%, rgba(102, 192, 244, 0.16), transparent 32%),
    linear-gradient(180deg, #1b2838 0%, #16202d 50%, #101821 100%);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: rgba(102, 192, 244, 0.34);
  color: var(--bright);
}

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

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

p,
dl,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  color: var(--bright);
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  font-weight: 500;
}

h2 {
  color: var(--bright);
  font-size: clamp(1.28rem, 2.4vw, 1.9rem);
  font-weight: 500;
}

h3 {
  color: var(--blue);
  font-size: 1.06rem;
  font-weight: 700;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 8px 12px;
  background: var(--blue);
  color: #0d1721;
  font-weight: 700;
  transition: transform 0.22s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(23, 26, 33, 0.96);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  transition:
    padding 0.24s var(--ease),
    background-color 0.24s ease,
    box-shadow 0.24s ease;
}

.store-header.is-scrolled {
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(16, 24, 33, 0.92);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.34);
}

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--bright);
  font-weight: 700;
  transition: color 0.2s ease;
}

.store-brand img {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s var(--ease);
}

.store-brand:hover {
  color: var(--blue);
}

.store-brand:hover img {
  border-color: rgba(102, 192, 244, 0.62);
  box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.12);
  transform: translateY(-1px);
}

.store-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
}

.store-nav a {
  flex: 0 0 auto;
  position: relative;
  padding: 8px 11px;
  color: var(--text);
  font-size: 0.92rem;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.store-nav a::after {
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--green-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.store-nav a:hover,
.store-nav a:focus-visible {
  color: var(--bright);
  background: rgba(102, 192, 244, 0.14);
  text-decoration: none;
}

.store-nav .nav-download {
  margin-left: 8px;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: #fff;
  font-weight: 700;
}

.store-nav .nav-download:hover,
.store-nav .nav-download:focus-visible {
  background: linear-gradient(180deg, #9bd94c, #69a51c);
  color: #fff;
}

.store-nav a:hover::after,
.store-nav a:focus-visible::after {
  transform: scaleX(1);
}

.store-page {
  width: var(--content);
  margin: 0 auto;
  padding: 34px 0 72px;
}

.product-hero {
  padding-top: 10px;
}

.title-row {
  margin-bottom: 18px;
}

.breadcrumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(102, 192, 244, 0.1);
  box-shadow: var(--shadow);
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s var(--ease);
}

.product-layout:hover {
  border-color: rgba(102, 192, 244, 0.28);
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.38);
}

.preview-area {
  min-width: 0;
}

.main-preview {
  margin: 0;
  background: var(--panel-3);
  overflow: hidden;
}

.main-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s ease;
}

.main-preview:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.thumb-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid rgba(102, 192, 244, 0.18);
  opacity: 0.82;
  cursor: pointer;
  transition:
    opacity 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s var(--ease);
}

.thumb-strip img:hover {
  opacity: 1;
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.purchase-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 0;
  color: var(--text);
}

.capsule {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  background: var(--panel-3);
  transition: filter 0.24s ease, transform 0.24s var(--ease);
}

.capsule:hover {
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.purchase-panel p {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  padding: 5px 8px;
  background: rgba(102, 192, 244, 0.14);
  color: var(--blue);
  font-size: 0.82rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--ease);
}

.tag-list span:hover {
  background: rgba(102, 192, 244, 0.22);
  color: var(--bright);
  transform: translateY(-1px);
}

.meta-list {
  display: grid;
  gap: 5px;
  margin: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  transition: transform 0.2s var(--ease);
}

.meta-list div:hover {
  transform: translateX(3px);
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.meta-list dd {
  margin: 0;
  color: var(--blue);
  font-size: 0.9rem;
}

.buy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0;
  padding: 18px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(42, 59, 79, 0.72));
  border: 1px solid var(--line);
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s var(--ease);
}

.buy-bar:hover {
  border-color: rgba(139, 197, 63, 0.38);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.buy-bar h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.buy-bar p {
  margin: 5px 0 0;
  color: var(--muted);
}

.buy-bar a {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 22px rgba(117, 176, 34, 0.22);
  transition:
    box-shadow 0.2s ease,
    filter 0.2s ease,
    transform 0.2s var(--ease);
}

.buy-bar a:hover,
.buy-bar a:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(117, 176, 34, 0.3);
  transform: translateY(-3px);
  text-decoration: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.main-column,
.side-column {
  min-width: 0;
}

.store-section,
.side-box,
.faq-section {
  margin-bottom: 22px;
  padding: 20px;
  background: rgba(34, 49, 66, 0.82);
  border: 1px solid var(--line);
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.store-section:hover,
.side-box:hover,
.faq-section:hover {
  background: rgba(34, 49, 66, 0.9);
  border-color: rgba(102, 192, 244, 0.28);
  box-shadow: var(--shadow-soft);
}

.store-section h2,
.side-box h2 {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(102, 192, 244, 0.22);
}

.store-section p {
  color: var(--text);
}

.store-section p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid article {
  padding: 16px;
  background: rgba(16, 24, 33, 0.72);
  border: 1px solid var(--line);
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s var(--ease);
}

.feature-grid article:hover {
  background: rgba(16, 24, 33, 0.9);
  border-color: rgba(102, 192, 244, 0.34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.feature-grid h3 {
  margin-bottom: 8px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.guide-list {
  margin-bottom: 0;
  padding-left: 1.4em;
  color: var(--text);
}

.guide-list li + li {
  margin-top: 8px;
}

.guide-list li {
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.guide-list li:hover {
  color: var(--bright);
  transform: translateX(4px);
}

.guide-list b {
  color: var(--blue);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.screenshot-grid figure {
  margin: 0;
  background: rgba(16, 24, 33, 0.72);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s var(--ease);
}

.screenshot-grid figure:hover {
  border-color: rgba(102, 192, 244, 0.34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 0.45s ease, transform 0.45s var(--ease);
}

.screenshot-grid figure:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.04);
}

.screenshot-grid figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.screenshot-grid figure:hover figcaption {
  color: var(--bright);
}

.side-column {
  position: sticky;
  top: 84px;
}

.side-box {
  padding: 16px;
}

.side-box dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.side-box dl div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.2s var(--ease);
}

.side-box dl div:hover {
  transform: translateX(3px);
}

.side-box dl div:last-child {
  border-bottom: 0;
}

.side-box dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.side-box dd {
  margin: 3px 0 0;
  color: var(--text);
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.2s var(--ease);
}

.news-list li:hover {
  transform: translateX(3px);
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list time {
  color: var(--blue);
  font-size: 0.84rem;
}

.news-list span {
  color: var(--text);
  transition: color 0.2s ease;
}

.news-list li:hover span {
  color: var(--bright);
}

.faq-grid {
  display: grid;
  gap: 10px;
}

.faq-grid details {
  background: rgba(16, 24, 33, 0.72);
  border: 1px solid var(--line);
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.faq-grid details:hover,
.faq-grid details[open] {
  background: rgba(16, 24, 33, 0.9);
  border-color: rgba(102, 192, 244, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.faq-grid summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--bright);
  font-weight: 700;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-grid summary:hover {
  color: var(--blue);
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  transition: transform 0.22s var(--ease);
}

.faq-grid details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-grid p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
}

.store-footer {
  padding: 24px max(16px, calc((100vw - 1180px) / 2));
  background: var(--nav);
  color: var(--muted);
}

.store-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  :root {
    --content: calc(100% - 24px);
  }

  .store-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }

  .store-nav {
    width: 100%;
  }

  .product-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
  }

  .buy-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .buy-bar a {
    width: 100%;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(1.85rem, 10vw, 2.75rem);
  }

  .store-brand span {
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-page {
    padding-top: 20px;
  }

  .product-layout,
  .store-section,
  .side-box,
  .faq-section {
    padding: 14px;
  }

  .thumb-strip,
  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .meta-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
