/* ==========================================================================
   木一的工具箱 — 设计系统
   风格：浅色 + 大圆角 + 浅渐变 + 单一强调色（靛紫）
   ========================================================================== */

:root {
  /* 底色 */
  --bg: #fafafc;
  --surface: #ffffff;
  --surface-soft: #f4f3fb;

  /* 强调色 */
  --accent: #5b54e8;
  --accent-soft: #eeecfd;
  --accent-ink: #4a44c4;

  /* 语义色 */
  --green: #2f6b4f;
  --green-soft: #e4f1ea;
  --amber: #b4741a;
  --amber-soft: #fff9f0;
  --amber-line: #d9a441;

  /* 文字 */
  --ink: #1d1b2e;
  --ink-2: #6a6880;
  --ink-3: #9a97ad;

  /* 圆角 */
  --r-xl: 40px;
  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 14px;
  --r-pill: 999px;

  /* 阴影 */
  --sh-sm: 0 6px 20px rgba(43, 38, 76, 0.05);
  --sh-md: 0 10px 34px rgba(43, 38, 76, 0.07);
  --sh-lg: 0 22px 60px rgba(43, 38, 76, 0.1);
  --sh-accent: 0 8px 22px rgba(91, 84, 232, 0.28);

  /* 字体 */
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;

  /* 布局 */
  --wrap: 1312px;
  --gutter: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   背景光斑（替代设计稿里的渐变图）
   ========================================================================== */

.aurora {
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.aurora .a {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -60px;
  background: rgba(150, 140, 255, 0.4);
}

.aurora .b {
  width: 520px;
  height: 520px;
  top: 220px;
  left: -120px;
  background: rgba(150, 235, 210, 0.34);
}

.aurora .c {
  width: 460px;
  height: 460px;
  top: 420px;
  right: 180px;
  background: rgba(255, 214, 170, 0.32);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 252, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(29, 27, 46, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--r-pill);
  padding: 5px;
}

.nav a {
  padding: 9px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.18s, background 0.18s;
}

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

.nav a.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

/* ==========================================================================
   导航下拉 —— hover 与 focus-within 双通道，保证键盘可达
   ========================================================================== */

.has-menu {
  position: relative;
}

.has-menu > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 小箭头：默认朝下，展开时翻转 */
.has-menu > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.45;
  transition: transform 0.2s, opacity 0.2s;
}

.has-menu:hover > a::after,
.has-menu:focus-within > a::after {
  transform: rotate(225deg) translateY(-2px);
  opacity: 0.9;
}

.menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: 460px;
  padding: 10px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.07);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.has-menu:hover .menu,
.has-menu:focus-within .menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 两列网格：六个软件排 3 行，整体高度比单列矮一半 */
.menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 0.15s;
  min-width: 0;
}

.menu__item:hover {
  background: var(--surface-soft);
}

/* 当前所在软件高亮，让人知道自己在哪 */
.menu__item.is-current {
  background: var(--accent-soft);
}

.menu__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 20px;
}

.menu__text {
  min-width: 0;
}

.menu__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu__meta {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   独立页面：关于我 / 常见问题
   ========================================================================== */

.page-head {
  padding: 28px var(--gutter) 44px;
}

.page-head h1 {
  font-size: 44px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -1.2px;
}

.page-head__sub {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-2);
}

.page-body {
  padding: 0 var(--gutter) 56px;
}

/* 作者信息 */

.author {
  display: flex;
  align-items: center;
  gap: 24px;
}

.author__avatar {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--sh-accent);
}

.author__id h1 {
  font-size: 40px;
}

.author__title {
  margin: 6px 0 0;
  font-size: 16px;
  color: var(--ink-2);
}

/* 原则卡 */

.creed {
  display: flex;
  gap: 20px;
  padding: 32px 36px;
  border-radius: 28px;
  background: var(--accent-soft);
}

.creed__mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--mono);
}

.creed h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.creed p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.82;
  color: #4a4478;
}

/* 联系方式 */

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

.contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.07);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.contact:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: rgba(91, 84, 232, 0.3);
}

.contact__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact__icon svg {
  width: 20px;
  height: 20px;
}

.contact__label {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}

.contact__value {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 500;
  word-break: break-all;
}

/* FAQ 列表页 */

.faq-page {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-page details {
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.07);
  border-radius: 22px;
  padding: 24px 28px;
}

.faq-page summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faq-page summary::-webkit-details-marker {
  display: none;
}

.faq-page summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-page details[open] summary::after {
  transform: rotate(45deg);
}

.faq-page p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

.ask-card {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  padding: 32px 36px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
}

.ask-card h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.ask-card p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #a9a6c4;
}

.ask-card .btn--primary {
  background: #fff;
  color: var(--ink);
}

/* ==========================================================================
   移动端抽屉 —— 默认隐藏，820px 以下才启用
   ========================================================================== */

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.1);
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 17px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.22s, opacity 0.18s;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s;
}

.burger span::before {
  top: -5.5px;
}

.burger span::after {
  top: 5.5px;
}

.burger.is-on span {
  transform: rotate(45deg);
}

.burger.is-on span::before {
  transform: rotate(-90deg) translateX(-5.5px);
}

.burger.is-on span::after {
  opacity: 0;
}

.drawer {
  display: none;
}

/* ==========================================================================
   详情页底部：其他工具
   ========================================================================== */

.more {
  padding: 0 var(--gutter) 72px;
}

.more__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.more__head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.more__all {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.more__all:hover {
  text-decoration: underline;
}

.more__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.more__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.07);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.more__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: rgba(91, 84, 232, 0.28);
}

.more__icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.more__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.more__meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--mono);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: var(--surface);
  border-color: rgba(29, 27, 46, 0.1);
  color: var(--ink);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--sh-accent);
}

.btn--primary:hover {
  background: var(--accent-ink);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn--outline {
  background: transparent;
  border-color: rgba(29, 27, 46, 0.14);
  border-width: 1.5px;
  color: #4a4860;
}

.btn--outline:hover {
  background: rgba(29, 27, 46, 0.03);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 56px var(--gutter) 72px;
}

.hero__box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-lg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.hero h1 {
  margin: 24px 0 0;
  font-size: 50px;
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: -1.4px;
}

.hero__sub {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-2);
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Hero 右侧：六宫格工具图标 */

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

.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  aspect-ratio: 1;
  /* 内容占卡片 85%：四周留 7.5% 内边距 */
  padding: 7.5%;
  text-align: center;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.07);
  box-shadow: var(--sh-sm);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.tile__name {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}

.hero__note {
  margin: 16px 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.07);
  box-shadow: var(--sh-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  justify-self: end;
}

/* ==========================================================================
   Section 通用
   ========================================================================== */

.section {
  padding: 24px var(--gutter) 72px;
}

.section__head {
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--accent);
}

.section__head h2 {
  margin: 10px 0 0;
  font-size: 38px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.9px;
}

.section__head p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.75;
  white-space: pre-line;
}

/* ==========================================================================
   工具卡片
   ========================================================================== */

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

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.06);
  box-shadow: var(--sh-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.card__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card__icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 32px;
}

.card__title {
  font-size: 21px;
  font-weight: 600;
}

.card__desc {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
}

.card__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}

.card__meta span:first-child {
  font-family: var(--mono);
  font-weight: 500;
}

.card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s;
}

.card:hover .card__link {
  background: var(--accent);
  color: #fff;
}

/* ==========================================================================
   About + FAQ
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.panel {
  padding: 48px;
  border-radius: 36px;
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.06);
  box-shadow: var(--sh-sm);
}

.panel h3 {
  margin: 14px 0 0;
  font-size: 32px;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.panel p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.87;
  color: var(--ink-2);
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.tag {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 500;
  color: #4a4860;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq details {
  background: #f7f6fd;
  border-radius: 20px;
  padding: 22px 24px;
}

.faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ==========================================================================
   深色 CTA
   ========================================================================== */

.cta {
  padding: 0 var(--gutter) 72px;
}

.cta__box {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px 60px;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
}

.cta__box h2 {
  font-size: 32px;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.cta__box p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #a9a6c4;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cta .btn--ghost {
  background: #fff;
  border-color: transparent;
  color: var(--ink);
}

.cta .btn--outline {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.cta .btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 0 var(--gutter) 56px;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(29, 27, 46, 0.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__brand strong {
  font-size: 15px;
  font-weight: 600;
}

.footer__brand span {
  font-size: 13px;
  color: var(--ink-3);
}

.footer__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__icp {
  font-size: 12px;
  color: var(--ink-3);
}

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

.footer__icp a:hover {
  color: var(--accent);
}

/* ==========================================================================
   详情页
   ========================================================================== */

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px var(--gutter) 0;
  font-size: 13px;
  color: var(--ink-3);
}

.crumb a:hover {
  color: var(--ink-2);
}

.crumb .sep {
  color: #c4c0d8;
}

.crumb .cur {
  color: var(--accent);
}

.detail-hero {
  padding: 28px var(--gutter) 40px;
}

.detail-hero__head {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.detail-hero__icon {
  width: 76px;
  height: 76px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 40px;
}

.detail-hero__titles {
  flex: 1;
  min-width: 280px;
}

.detail-hero h1 {
  font-size: 44px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -1.2px;
}

.detail-hero__sub {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.detail-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Quick Facts */

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

.fact {
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.07);
}

.fact__label {
  font-size: 12px;
  color: var(--ink-3);
}

.fact__value {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
}

.fact__value.is-free {
  color: var(--green);
}

/* 详情页主体 */

.detail-body {
  display: grid;
  grid-template-columns: 1fr 384px;
  gap: 28px;
  padding: 0 var(--gutter) 80px;
  align-items: start;
}

.detail-main > * + * {
  margin-top: 24px;
}

.detail-main h2 {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.shot {
  height: 400px;
  border-radius: var(--r-lg);
  background: #eeebfb;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.feat {
  padding: 24px 26px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.07);
}

.feat h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.feat p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step__num {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  font-family: var(--mono);
}

.step h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.step p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
}

/* 侧栏 */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-risk {
  background: var(--amber-soft);
  border: 1px solid rgba(212, 164, 65, 0.28);
  border-radius: 28px;
  padding: 28px 30px;
}

.card-risk .eyebrow {
  color: var(--amber);
}

.card-risk h3 {
  margin: 12px 0 0;
  font-size: 19px;
  font-weight: 600;
}

.card-risk p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.79;
  color: #6a5b47;
}

.side-card {
  background: var(--surface);
  border: 1px solid rgba(29, 27, 46, 0.07);
  border-radius: 28px;
  padding: 28px 30px;
}

.side-card .eyebrow {
  color: var(--ink-3);
}

.side-card > * + * {
  margin-top: 14px;
}

.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 7px 0;
}

.kv__k {
  color: var(--ink-2);
}

.kv__v {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}

.side-card hr {
  border: 0;
  border-top: 1px solid rgba(29, 27, 46, 0.08);
  margin: 14px 0;
}

.side-card__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}

.log {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.log__v {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  width: 40px;
  flex-shrink: 0;
}

.log__v.is-old {
  color: var(--ink-3);
}

.log__t {
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-2);
}

.log__t.is-old {
  color: var(--ink-3);
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1180px) {
  :root {
    --gutter: 40px;
  }

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

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

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

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

@media (max-width: 820px) {
  :root {
    --gutter: 24px;
  }

  .header__inner {
    height: 72px;
    gap: 12px;
  }

  .nav {
    display: none;
  }

  .header .btn {
    margin-left: auto;
    padding: 10px 18px;
  }

  /* 手机上没有 hover，下拉菜单不可用，改成抽屉 */
  .burger {
    display: grid;
  }

  .drawer {
    display: block;
    position: fixed;
    inset: 72px 0 auto;
    z-index: 99;
    background: var(--surface);
    border-bottom: 1px solid rgba(29, 27, 46, 0.08);
    box-shadow: var(--sh-lg);
    padding: 18px var(--gutter) 26px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .drawer__group {
    margin-bottom: 18px;
  }

  .drawer__label {
    font-size: 12px;
    color: var(--ink-3);
    margin-bottom: 8px;
    letter-spacing: 0.6px;
  }

  .drawer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .drawer__item:active {
    background: var(--surface-soft);
  }

  .drawer__item.is-current {
    background: var(--accent-soft);
  }

  .drawer__link {
    display: block;
    padding: 11px 12px;
    border-radius: 14px;
    font-size: 15px;
    color: var(--ink);
  }

  .drawer__link:active {
    background: var(--surface-soft);
  }

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

  .page-head h1,
  .author__id h1 {
    font-size: 30px;
  }

  .author {
    gap: 18px;
  }

  .author__avatar {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    font-size: 30px;
  }

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

  .creed,
  .ask-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 26px 24px;
  }

  .faq-page details {
    padding: 20px 22px;
  }

  .faq-page summary {
    font-size: 16px;
  }

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

  .hero__box,
  .panel,
  .cta__box {
    padding: 32px 26px;
  }

  .hero__box {
    border-radius: 28px;
  }

  .cta__box {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .section__head h2,
  .panel h3 {
    font-size: 26px;
  }

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

  .cards,
  .split,
  .feat-grid {
    grid-template-columns: 1fr;
  }

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

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__links {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* ==========================================================================
   支持弹框（打赏收款码）
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* hidden 属性必须强制生效，否则 display:grid 会让弹框常显 */

.modal[hidden] {
  display: none;
}

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 34, 0.45);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid rgba(29, 27, 46, 0.08);
  box-shadow: var(--sh-lg);
  padding: 34px 36px;
}

.modal__box h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.modal__box p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(29, 27, 46, 0.1);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--surface-soft);
}

.support__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.support__code {
  margin: 0;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(29, 27, 46, 0.08);
  background: var(--surface-soft);
  text-align: center;
}

.support__code img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: #fff;
  display: grid;
  place-items: center;
}

/* 收款码图片还没放进来时显示占位说明 */
.support__code:not(:has(img))::before {
  content: "收款码待替换\A放入 support-*.png";
  white-space: pre;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-3);
  font-size: 13px;
}

.support__code figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.support__tip {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 820px) {
  .modal__box {
    padding: 28px 24px;
  }
}
