:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #202020;
  --muted: #626b7a;
  --line: #e7e7e7;
  --panel: #ffffff;
  --accent: #ffcc00;
  --accent-strong: #d9a900;
  --gold: #b88400;
  --red: #c9433a;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 53px;
  background: #ffd400;
  border-bottom: 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 1260px);
  min-height: 53px;
  margin: 0 auto;
  padding: 6px 18px;
}

.brand {
  display: inline-block;
  flex: 0 0 auto;
  color: #111;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  display: none;
}

.site-search {
  display: flex;
  align-items: stretch;
  flex: 0 1 360px;
  min-width: 240px;
  height: 36px;
}

.site-search input {
  width: 100%;
  border: 0;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

.site-search button {
  width: 44px;
  border: 0;
  border-left: 1px solid #e1e1e1;
  border-radius: 0 4px 4px 0;
  color: #444;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  margin-left: auto;
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.nav a:hover,
.section a:hover {
  color: #7a5d00;
}

.nav-ico {
  margin-right: 6px;
  font-size: 11px;
}

.section,
.section-band {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 64px);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
}

.section-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  width: min(100%, 1260px);
  min-height: 430px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.05)),
    url("./bg.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.muted {
  max-width: none;
  background: #eef4f1;
}

.muted > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: #c99a00;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-lead,
.section-head p,
.seo-copy p {
  color: var(--muted);
  font-size: 17px;
}

.hero-section .eyebrow,
.hero-section h1,
.hero-section .hero-lead {
  color: #fff;
}

.hero-section .eyebrow {
  color: #ffd400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.hero-section .hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.footer-links,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.data-card button,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.button:hover,
.data-card button:hover,
.card-action:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #111;
  background: #ffd400;
  box-shadow: 0 12px 24px rgba(255, 212, 0, 0.25);
}

.button.primary:hover {
  color: #111;
  background: #f2c400;
}

.button.secondary,
.data-card button,
.card-action {
  color: #111;
  background: #fff;
  border-color: var(--line);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 34px 0 0;
}

.trust-list div,
.download-box,
.data-card,
.faq-list details,
.steps article,
.hero-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-list div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.trust-list dt {
  font-size: 24px;
  font-weight: 900;
  color: #b88400;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.trust-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-panel {
  padding: clamp(20px, 4vw, 30px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #20b26b;
  box-shadow: 0 0 0 6px rgba(32, 178, 107, 0.12);
}

.skin-preview {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: #172026;
  color: #fff;
}

.skin-preview img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: cover;
}

.skin-preview span {
  color: #9fd8d2;
}

.skin-preview strong {
  display: block;
  font-size: 24px;
  line-height: 1.25;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: #485264;
}

.check-list li + li {
  margin-top: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6a600;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-head.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
}

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.download-box p,
.notice {
  margin-bottom: 0;
  color: var(--muted);
}

.notice {
  font-size: 14px;
}

.home-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
  width: min(100%, 1260px);
  max-width: 1260px;
  padding-top: 48px;
}

.directory-main,
.directory-sidebar {
  min-width: 0;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-title-row h2,
.sidebar-block h2 {
  color: #3a3a3a;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
}

.section-title-row span {
  color: #777;
  font-size: 24px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 30px;
}

.app-card {
  position: relative;
  text-align: center;
}

.app-card img {
  width: 100%;
  aspect-ratio: 245 / 142;
  object-fit: cover;
  background: #111;
}

.app-card h3 {
  min-height: 46px;
  margin: 9px 0 6px;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.app-card p {
  min-height: 72px;
  margin: 0 0 12px;
  color: #444;
  font-size: 14px;
  line-height: 1.45;
}

.app-card .button,
.app-card .card-action {
  width: 100%;
  min-height: 38px;
}

.rating {
  position: absolute;
  top: 3px;
  right: 5px;
  color: #ffd400;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.news-title {
  margin-top: 86px;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-item {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.news-item img {
  width: 100%;
  aspect-ratio: 245 / 142;
  object-fit: cover;
}

.news-item h3 {
  margin: 6px 0 10px;
  color: #111;
  font-size: 20px;
  font-weight: 600;
}

.news-item p {
  margin: 0;
  color: #444;
  font-size: 15px;
}

.sidebar-block + .sidebar-block {
  margin-top: 28px;
}

.sidebar-block h2 {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.top-app {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.top-app img {
  width: 108px;
  height: 62px;
  object-fit: cover;
}

.top-app span {
  display: block;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.top-app small {
  display: block;
  margin-top: 2px;
  color: #555;
  font-size: 13px;
  font-weight: 400;
}

.top-app small::before {
  content: "◉ ";
  font-size: 10px;
}

.category-tree {
  margin: 0 0 0 14px;
  padding: 0;
  border-left: 1px solid #999;
  list-style: none;
}

.category-tree li {
  position: relative;
  padding: 4px 0 6px 20px;
  color: #111;
  font-size: 15px;
  font-weight: 600;
}

.category-tree li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  border-top: 1px solid #999;
}

.category-tree a::before {
  content: "■ ";
  font-size: 10px;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.quick-link-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-link-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.quick-link-card h2 {
  font-size: 28px;
}

.quick-link-card p:not(.eyebrow) {
  margin: 10px 0 18px;
  color: #4d5666;
}

.feature-grid,
.steps,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  padding: 22px 0;
  border-top: 2px solid var(--accent);
}

.feature-grid p,
.steps p,
.data-card p,
.faq-list p {
  color: var(--muted);
}

.steps article,
.data-card,
.faq-list details {
  padding: 22px;
}

.steps span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 900;
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(100%, 280px);
  color: var(--muted);
  font-size: 14px;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.result-count {
  margin: 12px 0 0;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.data-card {
  display: flex;
  flex-direction: column;
  min-height: 282px;
}

.hero-data-card {
  min-height: 360px;
}

.item-data-card {
  min-height: 306px;
}

.item-card-head,
.item-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.item-card-head h3,
.item-card-head .card-kicker {
  margin-bottom: 0;
}

.card-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 8px;
  object-fit: cover;
  background: #172026;
}

.item-icon,
.item-detail-icon {
  flex: 0 0 auto;
  border-radius: 8px;
  background: #172026;
  object-fit: cover;
}

.item-icon {
  width: 54px;
  height: 54px;
}

.item-detail-icon {
  width: 86px;
  height: 86px;
}

.data-card h3 span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.tag-list {
  margin: auto 0 18px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: #e4f2ef;
  font-size: 13px;
  font-weight: 700;
}

.data-card button,
.card-action {
  width: 100%;
  font: inherit;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.detail-page-shell {
  max-width: 1180px;
}

.skin-section {
  margin-top: 30px;
}

.skin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.skin-section-head span {
  color: var(--gold);
  font-weight: 900;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px;
}

.skin-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.skin-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.skin-zoom:focus-visible {
  outline: 3px solid rgba(11, 111, 106, 0.35);
  outline-offset: -3px;
}

.skin-card img {
  width: 100%;
  aspect-ratio: 308 / 560;
  object-fit: cover;
  background: #172026;
}

.skin-card figcaption {
  min-height: 54px;
  padding: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.skin-viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 34px);
  background: rgba(8, 13, 18, 0.82);
}

.skin-viewer[hidden] {
  display: none;
}

.skin-viewer-dialog {
  position: relative;
  width: min(100%, 1180px);
  color: #fff;
}

.skin-viewer-image {
  width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 8px;
  object-fit: contain;
  background: #111922;
  box-shadow: var(--shadow);
}

.skin-viewer-caption {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.skin-viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

.seo-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.detail-meta div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-meta dt {
  color: var(--muted);
}

.detail-meta dd {
  margin: 0;
  font-weight: 700;
}

.item-build,
.item-description {
  margin-top: 24px;
}

.item-build h3,
.item-description h3 {
  margin-bottom: 12px;
}

.item-build-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.item-build-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  font-weight: 800;
}

.item-build-list img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #172026;
}

.item-build-list span {
  overflow-wrap: anywhere;
}

.item-description {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.item-description p {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 64px);
  color: #cdd7df;
  background: #172026;
}

.site-footer p {
  margin: 6px 0 0;
  color: #9aabb8;
}

@media (max-width: 900px) {
  .section-head.split,
  .download-box,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-band,
  .home-directory,
  .app-grid,
  .quick-links,
  .feature-grid,
  .steps,
  .card-grid,
  .seo-copy {
    grid-template-columns: 1fr;
  }

  .section-band {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .search-box {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .section,
  .section-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar-inner {
    gap: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .nav {
    justify-content: flex-start;
    gap: 6px 12px;
    font-size: 13px;
  }

  .section-title-row {
    display: block;
  }

  .section-title-row h2,
  .sidebar-block h2 {
    font-size: 32px;
  }

  .section-title-row span {
    font-size: 18px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quick-link-card {
    grid-template-columns: 1fr;
  }

  .skin-preview {
    grid-template-columns: 64px 1fr;
  }

  .skin-preview img {
    width: 64px;
    height: 64px;
  }

  .skin-preview strong {
    font-size: 20px;
  }

  .detail-meta div {
    grid-template-columns: 1fr;
  }
}
