@charset "UTF-8";

/* ============================================================
   咕嘎社区 · 站点皮肤（明黄 / 白卡 / 描边贴纸风）
   ============================================================ */

:root {
  --yellow: #F0C048;
  --yellow-deep: #D9A21F;
  --yellow-pale: #FFF6DA;
  --ink: #23201A;
  --ink-2: #2E2A22;
  --paper: #FFFCF2;
  --paper-2: #FFFFFF;
  --muted: #6F6757;
  --line: #E8DFC6;
  --radius: 8px;
  --shell: 1160px;
  --header-height: 72px;
  --hard: 4px 4px 0 #23201A;
  --sans: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

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

.page-shell {
  width: min(calc(100% - 44px), var(--shell));
  margin: 0 auto;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }

/* ---------- 头部 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(calc(100% - 44px), var(--shell));
  min-height: var(--header-height);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 6px 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color 150ms ease, background 150ms ease;
}

.primary-nav a:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.nav-download {
  min-height: 40px;
  padding: 0 15px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-download .icon {
  width: 15px;
  height: 15px;
}

.nav-download:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 18px;
  height: 18px;
}

/* ---------- 英雄区 ---------- */

.hero {
  padding: 56px 0 68px;
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 192, 72, 0.32) 0%, transparent 38%),
    linear-gradient(180deg, #FFFBEC 0%, #FFFCF4 100%);
  border-bottom: 2px solid var(--ink);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  max-width: 480px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 15px;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  transform: rotate(-1.5deg);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 66px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 16px 0 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 7px;
  text-underline-offset: 4px;
}

.hero-summary {
  max-width: 460px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
}

.button {
  min-height: 48px;
  padding: 0 24px;
}

.button-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 5px 5px 0 var(--yellow-deep);
}

.button-primary .icon {
  filter: invert(1);
}

.button-primary:hover {
  background: #3a3428;
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--yellow-deep);
}

/* ---------- 英雄区：两列错落资源帖 ---------- */

.hero-waterfall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.wf-col {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.wf-col-b {
  padding-top: 26px;
}

.wf-card {
  position: relative;
  padding: 14px 14px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 4px 4px 0 rgba(35, 32, 26, 0.85);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wf-card:hover {
  transform: rotate(-0.6deg) translateY(-2px);
  box-shadow: 6px 6px 0 rgba(35, 32, 26, 0.85);
}

.wf-tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.wf-tag.tag-game {
  background: #FFD9A6;
}

.wf-tag.tag-wall {
  background: #DCEBC0;
}

.wf-tag.tag-tool {
  background: #CFE4F7;
}

.wf-card b {
  display: block;
  margin: 8px 0 4px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.wf-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.wf-bar {
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #FFF4D6;
  overflow: hidden;
}

.wf-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 6px, #F7D275 6px 12px);
}

.wf-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  color: #8A8170;
  font-size: 10px;
}

.wf-meta em {
  color: var(--ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

/* ---------- 核心特色 ---------- */

.routes {
  padding: 66px 0 76px;
  background: var(--paper-2);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.section-heading {
  max-width: 610px;
  margin-bottom: 30px;
}

.section-heading h2 {
  display: inline-block;
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.section-heading h2::after {
  display: block;
  width: 54px;
  height: 6px;
  margin-top: 8px;
  content: "";
  background: var(--yellow);
}

.section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.fours {
  display: grid;
  gap: 12px;
}

.four {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 20px 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 150ms ease, background 150ms ease;
}

.four:nth-child(2n) {
  background: #FFFDF8;
}

.four:hover {
  border-color: var(--ink);
  background: #FFF9E8;
}

.four .n {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 16px;
  font-weight: 900;
}

.four h3 {
  grid-column: 2;
  margin: 2px 0 5px;
  font-size: 17px;
  font-weight: 800;
}

.four p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- 界面展示 ---------- */

.screens {
  padding: 70px 0 84px;
  background: var(--yellow-pale);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.screens .section-heading h2::after {
  background: var(--ink);
}

.screens .section-heading > p:last-child {
  color: #7A6A3F;
}

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

.covers figure {
  display: grid;
  grid-template-columns: minmax(0, 148px) minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 5px 5px 0 rgba(35, 32, 26, 0.16);
  overflow: hidden;
}

.covers figure:nth-child(2n) {
  box-shadow: 5px 5px 0 var(--yellow);
}

.covers img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top center;
  border-right: 2px solid var(--ink);
  background: var(--yellow-pale);
}

.covers b {
  display: block;
  align-self: start;
  padding: 0 16px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 800;
}

.covers small {
  display: block;
  align-self: start;
  padding: 5px 16px 16px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.covers figure {
  grid-template-rows: auto 1fr;
  grid-template-areas: "img title" "img note";
}

.covers figure img { grid-area: img; }
.covers figure b { grid-area: title; }
.covers figure small { grid-area: note; }

/* ---------- FAQ ---------- */

.faq {
  padding: 72px 0 22px;
  background: var(--paper-2);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

.faq-item {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-item[open] {
  border-color: var(--ink);
  background: #FFFDF5;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker,
.official-fold summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary .icon {
  width: 20px;
  height: 20px;
  padding: 2px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  transition: transform 170ms ease;
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 16px 16px;
}

.faq-answer p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* ---------- 官方入口 ---------- */

.official {
  padding: 10px 0 70px;
  background: var(--paper-2);
}

.official .section-heading {
  margin-bottom: 18px;
}

.official-fold {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  box-shadow: var(--hard);
}

.official-fold summary {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.official-fold summary::after {
  margin-left: auto;
  content: "＋";
  font-size: 17px;
  font-weight: 900;
}

.official-fold[open] summary::after {
  content: "－";
}

.official-link {
  padding: 0 18px 15px;
}

.official-link p {
  margin: 0;
  padding-top: 11px;
  border-top: 1px dashed rgba(35, 32, 26, 0.4);
  font-size: 13px;
}

.official-link a {
  font-weight: 800;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 用户评价 ---------- */

.reviews {
  padding: 70px 0 80px;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

.review-card {
  padding: 18px 18px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.review-card:nth-child(3n) {
  border-color: #EAD9A8;
  background: #FFFDF3;
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1E9D6;
}

.review-card .who b {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.review-card time {
  color: #9A917D;
  font-size: 10.5px;
  white-space: nowrap;
}

.review-card > p {
  margin: 11px 0 0;
  color: #4B453A;
  font-size: 13px;
  line-height: 1.9;
}

.rv-site {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed #EADFC4;
  color: #8A7742;
  font-size: 10.5px;
  word-break: break-all;
}

/* ---------- 下载区 ---------- */

.download-cta {
  padding: 64px 0 68px;
  background: var(--yellow);
  border-top: 2px solid var(--ink);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.download-cta .eyebrow {
  background: #fff;
}

.download-cta .section-heading {
  margin-bottom: 22px;
}

.download-cta .section-heading > p:last-child {
  color: #6B5A21;
}

.download-cta .button-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.download-cta .button-primary .icon {
  filter: none;
}

.download-cta .button-primary:hover {
  background: #FFFDF4;
}

.disclaimer {
  max-width: 600px;
  margin: 22px 0 0;
  color: #5E4E1C;
  font-size: 12px;
  line-height: 1.85;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 30px 0 22px;
  color: #D9D2C0;
  background: var(--ink);
  text-align: center;
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 12.5px;
}

.site-footer a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .icp a {
  color: #B7AE97;
  text-decoration: none;
}

/* ---------- 返回顶部 ---------- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 148px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.to-top::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-waterfall {
    max-width: 600px;
    margin: 0 auto;
  }

  .covers {
    gap: 14px;
  }

  .covers figure {
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }

  body {
    padding-top: var(--header-height);
  }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
  }

  .page-shell,
  .nav-shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--header-height);
    column-gap: 9px;
    min-height: var(--header-height);
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    gap: 7px;
    font-size: 15px;
  }

  .brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -15px;
    padding: 12px 15px 15px;
    border-top: 2px solid var(--ink);
    background: var(--yellow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .primary-nav a {
    padding: 8px 10px;
    border: 2px solid var(--ink);
    background: rgba(255, 255, 255, 0.45);
    font-size: 12.5px;
  }

  .nav-download {
    grid-column: 3;
    grid-row: 1;
    min-height: 34px;
    margin-left: auto;
    padding: 0 9px;
    font-size: 12px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .nav-download .icon {
    width: 13px;
    height: 13px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 4;
    grid-row: 1;
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 36px 0 44px;
  }

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

  .hero-title {
    font-size: 21px;
    text-decoration-thickness: 5px;
  }

  .hero-summary {
    font-size: 13.5px;
  }

  .hero-waterfall {
    gap: 10px;
  }

  .wf-col {
    gap: 10px;
  }

  .wf-col-b {
    padding-top: 18px;
  }

  .wf-card {
    padding: 11px 11px 10px;
    box-shadow: 3px 3px 0 rgba(35, 32, 26, 0.85);
  }

  .wf-card b {
    font-size: 12.5px;
  }

  .wf-card p {
    font-size: 10.5px;
  }

  .routes,
  .screens,
  .reviews {
    padding: 44px 0 46px;
  }

  .faq {
    padding: 44px 0 16px;
  }

  .official {
    padding: 8px 0 46px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .four {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .four .n {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

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

  .covers figure {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .covers img {
    height: 128px;
  }

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

  .rgrid {
    grid-template-columns: 1fr;
  }

  .download-cta {
    padding: 44px 0 48px;
  }

  .to-top {
    right: 14px;
    bottom: 130px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 13px;
  }

  .nav-download span {
    display: none;
  }

  .nav-download {
    width: 32px;
    padding: 0;
  }

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

  .hero-waterfall {
    grid-template-columns: 1fr;
  }

  .wf-col-b {
    padding-top: 0;
  }
}
