@charset "UTF-8";

/* ===== 萌宅社区 · 贴纸论坛主题 ===== */
:root {
  --pink: #DB2777;
  --pink-deep: #9D174D;
  --pink-soft: #FBCFE8;
  --blush: #FDF2F8;
  --paper: #FFFAFC;
  --ink: #3B0A22;
  --muted: #8A5A70;
  --line: #F7CFE2;
  --radius: 16px;
  --shell: 1170px;
  --header-height: 74px;
}

* { 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: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  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 { outline: 2px dashed var(--pink); outline-offset: 3px; }

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

.icon { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; vertical-align: middle; }
.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-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-bolt::before { background-image: url("../icons/bolt.svg"); }
.icon-shield::before { background-image: url("../icons/shield.svg"); }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 252, 0.96);
  box-shadow: 0 2px 0 rgba(219, 39, 119, 0.08);
}

.nav-shell { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 48px), var(--shell)); min-height: var(--header-height); margin: 0 auto; gap: 18px; }

.brand { display: inline-flex; align-items: center; min-width: max-content; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.brand img { width: 36px; height: 36px; border: 2px solid #fff; border-radius: 12px; background: var(--blush); box-shadow: 0 2px 8px rgba(219, 39, 119, 0.16); object-fit: contain; }

.primary-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.2vw, 30px); padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: inline-block; padding: 6px 0; color: var(--muted); font-size: 13.5px; font-weight: 700; border-bottom: 2px dotted transparent; }
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--pink-deep); border-bottom-color: var(--pink-soft); }

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-download { min-width: 128px; padding: 0 15px; color: #fff; background: var(--pink); box-shadow: 0 4px 0 var(--pink-deep); }
.nav-download .icon,
.button-primary .icon { filter: brightness(0) invert(1); }
.nav-download:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--pink-deep); }

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

/* ===== 英雄区：板块列表 + 贴纸 ===== */
.hero {
  padding: 54px 0 62px;
  background:
    radial-gradient(320px 220px at 92% 4%, #FCE7F3 0%, rgba(252, 231, 243, 0) 70%),
    radial-gradient(280px 200px at 6% 90%, #FCE7F3 0%, rgba(252, 231, 243, 0) 68%),
    var(--paper);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

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

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 10px;
  border: 2px dashed var(--pink-soft);
  border-radius: 8px;
  color: var(--pink-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  transform: rotate(-1.2deg);
}

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

.hero-title { margin: 14px 0 14px; font-size: clamp(22px, 2.5vw, 29px); font-weight: 800; color: var(--pink-deep); line-height: 1.35; }
.hero-title::after { content: ""; display: block; width: 96px; height: 6px; margin-top: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--pink-soft), #F9A8D4); }

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

.button { min-width: 168px; padding: 0 22px; }

.button-primary { color: #fff; background: var(--pink); box-shadow: 0 5px 0 var(--pink-deep); }
.button-primary:hover { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-deep); }

/* 板块列表 */
.boardList {
  width: 100%;
  max-width: 510px;
  margin-left: auto;
  padding: 18px 18px 22px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 8px 10px 0 rgba(219, 39, 119, 0.09);
}

.blHead { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 12px; border-bottom: 2px dotted var(--line); }
.blHead b { font-size: 15px; }
.blHead span { margin-left: auto; color: var(--muted); font-size: 10.5px; }

.blRows { display: grid; gap: 6px; padding: 12px 0 4px; }

.blRow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; background: #FFF7FB; transition: background 160ms ease, transform 160ms ease; }
.blRow:hover { background: #FCE7F3; transform: translateX(2px); }

.blDot { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #fff; border-radius: 11px; color: #fff; background: var(--pink); font-size: 14px; font-weight: 800; box-shadow: 0 2px 6px rgba(219, 39, 119, 0.22); }
.blDot.b { background: #F472B6; }
.blDot.c { background: #C026D3; }
.blDot.d { background: #BE185D; }

.blRow b { display: block; font-size: 12.5px; line-height: 1.35; }
.blRow small { display: block; margin-top: 1px; color: var(--muted); font-size: 9.5px; }
.blRow em { color: var(--pink); font-size: 10px; font-style: normal; font-weight: 700; }
.blRow em::after { content: " 帖"; font-weight: 400; color: #B98AA0; }

.stickers { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }

.stk { padding: 4px 11px; border-radius: 5px; color: #fff; background: var(--pink); font-size: 10px; font-weight: 700; letter-spacing: 0.5px; box-shadow: 2px 2px 0 rgba(157, 23, 77, 0.28); transform: rotate(-3deg); }
.stk.b { background: #F472B6; transform: rotate(2deg); }
.stk.c { background: #C026D3; transform: rotate(-1.5deg); }
.stk.d { background: #BE185D; transform: rotate(3deg); }
.stk.e { background: #EC4899; transform: rotate(-2deg); }

/* ===== 核心特色 ===== */
.routes { padding: 62px 0 66px; background: var(--blush); scroll-margin-top: calc(var(--header-height) + 12px); }

.section-heading { max-width: 640px; margin-bottom: 32px; }
.section-heading h2 { display: inline-block; margin: 0; font-size: clamp(27px, 3.1vw, 36px); font-weight: 900; line-height: 1.28; letter-spacing: 0.5px; }
.section-heading h2::after { content: ""; display: block; height: 8px; margin-top: -9px; margin-left: -2px; border-radius: 4px; background: rgba(251, 207, 232, 0.85); position: relative; z-index: -1; }
.section-heading h2 { position: relative; z-index: 0; }
.section-heading > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

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

.four { min-width: 0; padding: 20px 18px; border: 2px dashed #F5C2D9; border-radius: 18px; background: #fff; }
.four:nth-child(2) { transform: rotate(-0.6deg); }
.four:nth-child(3) { transform: rotate(0.7deg); }

.four .n { display: inline-block; margin-bottom: 9px; padding: 1px 8px; border-radius: 6px; color: var(--pink-deep); background: var(--blush); font-size: 11px; font-weight: 800; }
.four h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: 0.3px; }
.four p { margin: 0; color: var(--muted); font-size: 13.4px; }

/* ===== 界面展示 ===== */
.screens { padding: 62px 0 68px; background: #fff; scroll-margin-top: calc(var(--header-height) + 12px); }

.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.covers figure { min-width: 0; margin: 0; padding: 7px 7px 10px; border: 2px solid var(--line); border-radius: 18px; background: #FFF9FC; }
.covers img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top center; border-radius: 12px; background: var(--blush); }
.covers b { display: block; margin-top: 8px; color: var(--pink-deep); font-size: 12.5px; }
.covers small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }

/* ===== FAQ ===== */
.faq { padding: 62px 0 16px; background: var(--blush); scroll-margin-top: calc(var(--header-height) + 12px); }

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

.faq-item { border: 2px solid #FAD6E6; border-radius: 14px; background: #fff; overflow: hidden; }
.faq-item[open] { border-style: solid; border-color: var(--pink-soft); }

.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 11px 16px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.5; }
.faq-item summary .icon { width: 13px; height: 13px; transition: transform 180ms ease; filter: invert(31%) sepia(69%) saturate(2806%) hue-rotate(313deg) brightness(90%) contrast(96%); }
.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer { padding: 0 16px 14px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 13.4px; }

/* ===== 官方入口 ===== */
.official { padding: 20px 0 60px; background: var(--blush); }

.official-fold { border: 2px dashed var(--pink); border-radius: 16px; background: #fff; }
.official-fold summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 17px; color: var(--pink-deep); cursor: pointer; list-style: none; font-size: 14px; font-weight: 800; }
.official-fold summary::-webkit-details-marker { display: none; }
.official-fold summary::after { content: "＋"; margin-left: auto; font-size: 16px; }
.official-fold[open] summary::after { content: "－"; }
.official-link { padding: 9px 17px 15px; border-top: 2px dotted var(--line); }
.official-link p { margin: 0; font-size: 13.5px; }
.official-link a { color: var(--pink); font-weight: 800; word-break: break-all; }

/* ===== 用户评价 ===== */
.reviews { padding: 62px 0 68px; background: #FBE4F1; scroll-margin-top: calc(var(--header-height) + 12px); }

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

.rv { display: flex; min-height: 228px; flex-direction: column; padding: 20px; border: 2px solid #F6C6DD; border-radius: 18px; background: #fff; box-shadow: 4px 5px 0 rgba(219, 39, 119, 0.07); }
.rv header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who b { display: inline-block; padding: 2px 9px; border-radius: 6px; color: #fff; background: var(--pink); font-size: 11px; font-weight: 700; transform: rotate(-1.5deg); }
.rv time { color: #B9839A; font-size: 9.5px; }
.rv > p { margin: 13px 0 12px; color: #5C2A3E; font-size: 13.2px; line-height: 1.85; }
.rv-site { margin-top: auto; padding-top: 9px; border-top: 2px dotted var(--line); color: var(--pink-deep); font-size: 10px; }

/* ===== 下载 CTA ===== */
.download-cta { padding: 62px 0 66px; background: linear-gradient(160deg, #FCE7F3 0%, #FBCFE8 100%); text-align: center; scroll-margin-top: calc(var(--header-height) + 12px); }
.download-cta .section-heading { max-width: 650px; margin-right: auto; margin-left: auto; text-align: center; }
.download-cta .eyebrow { background: #fff; border-color: #F9A8D4; }
.disclaimer { margin: 18px 0 0; color: #8A5A70; font-size: 11.5px; }

/* ===== 页脚 ===== */
.site-footer { padding: 32px 0 20px; background: #3B0A22; color: #E3BCCF; text-align: center; }
.site-footer p { margin: 0 0 7px; font-size: 12px; }
.site-footer a { color: #FBCFE8; }
.site-footer .icp { margin: 0; color: #A97B92; }

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 150px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 13px;
  background: var(--pink);
  box-shadow: 0 3px 0 var(--pink-deep);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}
.to-top::before { content: ""; width: 8px; height: 8px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg) translate(1px, 1px); }
.to-top.is-show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-copy { max-width: 640px; }
  .boardList { max-width: 540px; margin: 0 auto; }
  .fours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --header-height: 64px; }

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

  .site-header { position: fixed; right: 0; left: 0; width: 100%; background: var(--paper); }

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

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

  .brand { grid-row: 1; grid-column: 1; gap: 7px; font-size: 16px; }
  .brand img { width: 29px; height: 29px; border-radius: 9px; }

  .primary-nav { display: none; grid-row: 2; grid-column: 1 / -1; margin: 0 -16px; padding: 0 16px 12px; background: var(--paper); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 10px; }
  .primary-nav a { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12.5px; }

  .nav-download { grid-row: 1; grid-column: 3; min-width: auto; min-height: 34px; margin-left: auto; padding: 0 9px; border-radius: 10px; font-size: 11.5px; box-shadow: 0 3px 0 var(--pink-deep); }
  .nav-download .icon { width: 14px; height: 14px; }
  .menu-toggle { display: inline-flex; grid-row: 1; grid-column: 4; width: 34px; height: 34px; }

  .hero { padding: 34px 0 42px; }
  .hero h1 { font-size: 38px; }
  .hero-title { font-size: 21px; }
  .hero-summary { font-size: 13.4px; }

  .boardList { padding: 13px 13px 18px; border-radius: 20px; box-shadow: 5px 6px 0 rgba(219, 39, 119, 0.09); }
  .blRow { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 8px 6px; }
  .blDot { width: 32px; height: 32px; border-radius: 9px; font-size: 12.5px; }

  .routes { padding: 44px 0 48px; }
  .screens { padding: 44px 0 48px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 26px; }
  .fours { grid-template-columns: minmax(0, 1fr); }
  .four:nth-child(2),
  .four:nth-child(3) { transform: none; }

  .covers { gap: 10px; }
  .covers figure { border-radius: 14px; }
  .covers img { border-radius: 10px; }

  .faq { padding: 44px 0 14px; }
  .official { padding: 16px 0 44px; }
  .reviews { padding: 44px 0 46px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .rv { min-height: auto; }
  .download-cta { padding: 44px 0 48px; }
  .download-cta .button-primary { width: 100%; }
  .to-top { right: 16px; bottom: 136px; width: 38px; height: 38px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 14px; }
  .nav-download span { display: none; }
  .nav-download { width: 34px; padding: 0; }
  .hero h1 { font-size: 32px; }
  .primary-nav ul { grid-template-columns: 1fr; }
}
