:root {
  --bg: #ffffff;
  --paper: #fafafa;
  --text: #191919;
  --muted: #626262;
  --line: #e7e2df;
  --red: #b91c1c;
  --red-dark: #8f1111;
  --red-soft: #fff2f2;
  --yellow: #ffe15a;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--red);
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 68px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: 54px;
  min-height: auto;
  padding-top: 42px;
  padding-bottom: 66px;
}

.resource-type {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: #3b3b3b;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 22px;
  border: 1px solid var(--red);
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--red);
}

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

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.quick-info div {
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.quick-info div:last-child {
  border-right: 0;
}

.quick-info dt {
  color: var(--muted);
  font-size: 13px;
}

.quick-info dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.hero-media {
  max-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.hero-media img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.intro,
.preview,
.notice,
.faq {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p,
.article-copy p,
.download-panel p,
.notice li,
details p,
.text-grid p,
.content-row p {
  color: var(--muted);
}

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

.text-grid article {
  padding-top: 22px;
  border-top: 3px solid var(--red);
}

.content {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-list {
  display: grid;
  gap: 16px;
}

.content-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.content-row span {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

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

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

.preview-gallery img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
}

.preview-gallery figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.download {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  background: var(--red-soft);
  border-top: 1px solid #f0caca;
  border-bottom: 1px solid #f0caca;
}

.download-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 72px;
  align-items: start;
}

.download-copy {
  padding-top: 4px;
}

.download-copy h2 {
  max-width: 310px;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.16;
}

.download-copy p {
  max-width: 360px;
  margin-bottom: 28px;
}

.download-note {
  font-size: 14px;
}

.download-links {
  display: grid;
  border-top: 1px solid var(--red);
}

.download-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 106px;
  padding: 24px 0;
  border-bottom: 1px solid #f0caca;
  background: transparent;
  transition: transform 160ms ease, border-color 160ms ease;
}

.download-card strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.download-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.download-card b {
  color: var(--text);
  font-size: 15px;
}

.disk-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.disk-icon.quark {
  background: #d74522;
}

.disk-icon.baidu {
  background: #c13818;
}

.disk-icon.xunlei {
  background: #b53517;
}

.download-button {
  display: inline-flex;
  min-width: 130px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 8px;
  color: var(--red-dark);
  background: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.download-button::after {
  content: "↗";
  margin-left: 8px;
  font-size: 13px;
}

.download-card.featured .download-button {
  background: var(--red);
  color: #fff;
}

.article-copy {
  max-width: 880px;
}

.article-copy p {
  margin-bottom: 18px;
  font-size: 18px;
}

.notice {
  padding-top: 56px;
  padding-bottom: 56px;
}

.notice ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

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

details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
}

details p {
  max-width: 780px;
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--red);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero,
  .download-panel,
  .text-grid,
  .preview-gallery {
    grid-template-columns: 1fr;
  }

  .download-panel {
    gap: 32px;
  }

  .download-copy h2,
  .download-copy p {
    max-width: none;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
  }

  .hero-media {
    max-height: 520px;
  }

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

  .quick-info div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-info div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 32px, var(--max));
    padding: 56px 0;
  }

  .content,
  .download {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand {
    font-size: 15px;
  }

  .nav {
    font-size: 13px;
  }

  h1 {
    font-size: 34px;
  }

  .lead,
  .article-copy p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .content-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .download-card {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 22px 0;
  }

  .download-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
