@charset "utf-8";

:root {
  --paper: #f4f0e6;
  --paper-deep: #e7dfcf;
  --paper-soft: #faf7ef;
  --ink: #17201a;
  --muted: #5e655e;
  --green: #176b45;
  --green-dark: #0d4a2e;
  --amber: #d7ad3b;
  --line-soft: #a9a393;
  --max: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.08;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  padding: 18px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(245px, .72fr);
  gap: 44px;
  align-items: start;
  padding-top: 44px;
  padding-bottom: 42px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.hero h1,
.page-hero h1,
.article-hero h1,
.section-heading h2,
.about h2,
.download-band h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 900;
  letter-spacing: -.02em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.13;
}

.hero-lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: #343b34;
  font-size: 17px;
  line-height: 1.75;
}

.release-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.release-line strong {
  display: inline-block;
  padding: 2px 7px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: .02em;
}

.release-line .sep {
  color: var(--line-soft);
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 590px;
  margin-top: 18px;
}

.btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 64px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.btn span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: .86;
}

.btn-android {
  background: var(--green);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-ios {
  background: #17191b;
  border-color: #17191b;
  color: #fff;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-note {
  max-width: 590px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.hero-aside {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--ink);
  border-top: 4px solid var(--ink);
  background: var(--paper-soft);
}

.hero-aside h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.hero-aside p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.hero-aside ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.75;
}

.hero-aside li + li {
  margin-top: 5px;
}

.hero-aside a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.facts {
  background: #faf7ef;
  border-bottom: 1px solid var(--ink);
}

.facts-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact {
  padding: 15px 18px 15px 0;
}

.fact + .fact {
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}

.fact strong {
  display: block;
  font-size: 14px;
}

.fact span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ink);
}

.section-tint {
  background: var(--paper-deep);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading-copy {
  min-width: 0;
}

.kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.35rem);
  line-height: 1.25;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

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

.comic-card {
  min-width: 0;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
}

.comic-cover-frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: #d7d0c0;
}

.comic-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-body {
  padding: 13px 14px 15px;
}

.comic-title {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  line-height: 1.25;
}

.comic-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.comic-author {
  font-weight: 700;
  color: var(--ink);
}

.comic-genre {
  padding: 1px 5px;
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}

.comic-summary {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: #454b45;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.guide-link {
  display: block;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
  text-decoration: none;
}

.guide-link:hover,
.guide-link:focus-visible {
  background: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-link strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.guide-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.updates-list {
  border-top: 2px solid var(--ink);
}

.update-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line-soft);
}

.update-meta {
  min-width: 0;
}

.update-version {
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.update-date {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.latest-mark {
  display: inline-block;
  margin-top: 8px;
  padding: 1px 6px;
  background: var(--amber);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.6;
}

.update-content {
  min-width: 0;
}

.update-content h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.update-content ul {
  margin: 7px 0 0;
  padding-left: 20px;
  color: #3e453e;
  font-size: 14px;
  line-height: 1.75;
}

.update-content li + li {
  margin-top: 2px;
}

.download-band {
  padding-top: 42px;
  padding-bottom: 42px;
  background: var(--ink);
  color: #fff;
  border-bottom: 2px solid var(--ink);
}

.download-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.download-band h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.25;
}

.download-band p {
  max-width: 600px;
  margin: 9px 0 0;
  color: #d8d9d4;
  font-size: 14px;
}

.download-band .download-actions {
  flex: 0 0 500px;
  margin-top: 0;
}

.download-band .btn {
  border-color: #fff;
}

.download-band .btn-ios {
  background: #fff;
  color: var(--ink);
}

.about-inner {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.about h2 {
  font-size: 26px;
  line-height: 1.35;
}

.about-copy {
  min-width: 0;
}

.about-copy p {
  margin: 0;
  color: #3f453f;
  font-size: 14px;
  line-height: 1.85;
}

.about-copy p + p {
  margin-top: 10px;
}

.site-footer {
  background: var(--paper-deep);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.footer-brand img {
  width: 30px;
  height: 29px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.footer-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

/* 教程列表与文章页 */
.breadcrumb {
  padding-top: 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb span {
  margin: 0 7px;
  color: var(--line-soft);
}

.page-hero {
  padding-top: 25px;
  padding-bottom: 34px;
  border-bottom: 2px solid var(--ink);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(1.85rem, 4.2vw, 3.25rem);
  line-height: 1.2;
}

.page-lead {
  max-width: 760px;
  margin: 15px 0 0;
  color: #3d443d;
  font-size: 16px;
  line-height: 1.8;
}

.tutorial-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
}

.tutorial-no {
  margin: 0 0 7px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.tutorial-card h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  line-height: 1.35;
}

.tutorial-card h2 a {
  text-decoration: none;
}

.tutorial-card h2 a:hover,
.tutorial-card h2 a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tutorial-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.tutorial-card .card-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-hero {
  padding-top: 23px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--ink);
}

.article-hero h1 {
  max-width: 920px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
}

.article-summary {
  max-width: 820px;
  margin: 13px 0 0;
  color: #3d443d;
  font-size: 16px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.article-hero .download-actions {
  margin-top: 16px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 38px;
  padding-top: 36px;
  padding-bottom: 62px;
}

.article-body {
  min-width: 0;
  max-width: 790px;
  overflow-wrap: break-word;
}

.article-body h2 {
  margin: 32px 0 11px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 23px;
  line-height: 1.4;
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-body h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

.article-body p {
  margin: 10px 0;
  color: #343a34;
  font-size: 15px;
  line-height: 1.9;
}

.article-body ul,
.article-body ol {
  margin: 10px 0;
  padding-left: 23px;
  color: #343a34;
  font-size: 15px;
  line-height: 1.9;
}

.article-body li + li {
  margin-top: 5px;
}

.article-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body strong {
  color: var(--ink);
}

.note-box {
  margin: 19px 0;
  padding: 13px 16px;
  border-left: 4px solid var(--green);
  background: var(--paper-deep);
  color: #343a34;
  font-size: 14px;
  line-height: 1.85;
}

.article-aside {
  min-width: 0;
}

.side-card {
  margin-bottom: 16px;
  padding: 17px;
  border: 1px solid var(--ink);
  border-top: 4px solid var(--ink);
  background: var(--paper-soft);
}

.side-card h2 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.4;
}

.side-card p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.side-card ol,
.side-card ul {
  margin: 0;
  padding-left: 19px;
  font-size: 13px;
  line-height: 1.8;
}

.side-card a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.side-card .side-actions {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.side-card .side-actions a {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.side-card .side-actions a:hover,
.side-card .side-actions a:focus-visible {
  background: var(--ink);
  color: #fff;
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: 14px;
}

.article-footer-nav a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .58fr);
    gap: 28px;
  }

  .comic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-band-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .download-band .download-actions {
    flex-basis: auto;
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .wrapper,
  .wrap {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 54px;
  }

  .brand {
    gap: 7px;
  }

  .brand img {
    width: 34px;
    height: 32px;
  }

  .brand-text {
    font-size: 15px;
  }

  .brand-text small {
    display: none;
  }

  .site-nav {
    gap: 11px;
  }

  .site-nav a {
    padding: 17px 0;
    font-size: 12px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 27px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.8rem);
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
  }

  .release-line {
    margin-top: 12px;
    gap: 6px 9px;
  }

  .download-actions {
    gap: 9px;
    margin-top: 15px;
  }

  .btn {
    min-height: 60px;
    padding: 9px 11px;
    font-size: 15px;
  }

  .btn span {
    font-size: 10px;
  }

  .download-note {
    margin-top: 10px;
    font-size: 11px;
  }

  .hero-aside {
    padding: 15px;
  }

  .hero-aside h2 {
    font-size: 17px;
  }

  .facts-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact {
    padding: 10px 0;
  }

  .fact + .fact {
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 19px;
  }

  .section-heading p {
    font-size: 13px;
  }

  .comic-grid {
    gap: 11px;
  }

  .comic-body {
    padding: 10px;
  }

  .comic-title {
    font-size: 17px;
  }

  .comic-meta {
    gap: 4px 6px;
    font-size: 11px;
  }

  .comic-summary {
    display: none;
  }

  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .guide-link {
    padding: 11px 12px;
  }

  .guide-link strong {
    font-size: 14px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 0;
  }

  .update-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .update-version {
    font-size: 18px;
  }

  .update-date {
    margin-top: 0;
    font-size: 12px;
  }

  .latest-mark {
    margin-top: 0;
  }

  .update-content h3 {
    font-size: 16px;
  }

  .update-content ul {
    font-size: 13px;
    line-height: 1.72;
  }

  .download-band {
    padding-top: 31px;
    padding-bottom: 32px;
  }

  .download-band-inner {
    gap: 17px;
  }

  .download-band .download-actions {
    width: 100%;
  }

  .about-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .about h2 {
    font-size: 23px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .page-hero {
    padding-top: 20px;
    padding-bottom: 26px;
  }

  .page-lead,
  .article-summary {
    font-size: 15px;
  }

  .tutorial-index-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    padding-top: 22px;
    padding-bottom: 38px;
  }

  .tutorial-card {
    padding: 16px;
  }

  .tutorial-card h2 {
    font-size: 20px;
  }

  .article-hero {
    padding-top: 19px;
    padding-bottom: 25px;
  }

  .article-hero .download-actions {
    margin-top: 14px;
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 25px;
    padding-bottom: 40px;
  }

  .article-body h2 {
    margin-top: 27px;
    padding-top: 15px;
    font-size: 20px;
  }

  .article-body h3 {
    font-size: 17px;
  }

  .article-body p,
  .article-body ul,
  .article-body ol {
    font-size: 14px;
    line-height: 1.85;
  }

  .article-aside {
    max-width: 600px;
  }

  .article-footer-nav {
    flex-direction: column;
    gap: 9px;
    margin-top: 27px;
  }
}

@media (max-width: 380px) {
  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .brand-text {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .btn {
    font-size: 14px;
  }
}
