/* 归星：2026-10-17 快照。保留原有功能组件，集中管理当前主题与首页布局。 */
:root {
  --paper: #faf7f0;
  --ink: #303a34;
  --muted: #626b62;
  --green: #397363;
  --line: #e7e3d8;
  --gold: #b39255;
}
html { scroll-padding-bottom: 100px; }
body { background: #eae7df; color: var(--ink); }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #518b7a; outline-offset: 3px; }
.phone {
  max-width: 480px;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 0 50px #45473512;
}
.phone.welcome-shell { padding-bottom: 0; }
.phone .site-header { padding: 19px 20px 18px; gap: 12px; }
.phone .logo { color: #364c40; font-size: 21px; letter-spacing: 2px; }
.phone .logo-mark { color: #52745d; background: #e7eddf; box-shadow: inset 0 1px #fff; }
.phone .logo small { color: #626d5e; font-size: 9px; letter-spacing: 2px; }
.phone .header-note { color: #626b59; background: #fffdf8; border-color: #e8e4d7; font-size: 10px; }
.phone .header-note i { background: #71957b; }
.phone .grouped-directory { padding: 0 18px; }
.phone .section-heading { margin-bottom: 12px; }
.phone .section-heading h2, .phone .text-directory .section-heading h2 {
  color: #35453a; font-size: 16px; font-weight: 650; letter-spacing: .3px;
}
.phone .section-meta { font-size: 11px; color: #6e7468; }

/* 暖纸、朱红文字、星章飘带；横幅不依赖外部图片。 */
.gather-banner {
  position: relative;
  margin: 0 0 24px;
  border: 1px solid #e8dec7;
  border-radius: 18px;
  overflow: hidden;
  background-color: #f7efdd;
  background-image: radial-gradient(#b7a57b15 .65px, transparent .65px), linear-gradient(115deg, #fbf5e9, #f3e7d0);
  background-size: 4px 4px, 100% 100%;
  box-shadow: 0 4px 14px #6d533b05;
}
.gather-main { display: flex; align-items: center; justify-content: space-between; padding: 19px 12px 17px 19px; min-height: 166px; gap: 0; }
.gather-copy { position: relative; z-index: 1; flex: 1; min-width: 0; }
.gather-label { color: #836b48; display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .6px; white-space: nowrap; }
.gather-label i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: #b79a5c; }
.gather-copy h1 { margin: 12px 0 9px; font-size: clamp(29px, 8vw, 36px); font-weight: 750; line-height: 1.23; color: #a03931; letter-spacing: 1.5px; }
.gather-copy p { color: #715c44; font-size: 11px; line-height: 1.7; margin: 0; white-space: nowrap; }
.gather-art { width: 119px; height: 143px; flex: none; margin-right: -2px; }
.gather-values { border-top: 1px solid #e1d5ba; display: flex; align-items: center; padding: 12px 8px; background: #fffaf04d; }
.gather-values span { flex: 1; display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 10px; color: #806746; }
.gather-values span + span { border-left: 1px solid #e3d8c1; }
.gather-values svg { color: #ae8550; flex: none; }

/* 功能栏目按类型自动分区，新增加的栏目延续三列。 */
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.phone .feature-directory { margin-bottom: 24px; }
.phone .feature-card {
  min-height: 107px; padding: 13px 4px 12px; border-radius: 14px;
  background: #f8ecdb; border-color: #ecdbc0; box-shadow: none;
}
.phone .feature-card:hover { transform: translateY(-1px); background: #f8ecdb; border-color: #cfb98e; box-shadow: none; }
.phone .feature-card .feature-icon { width: 36px; height: 36px; margin-bottom: 7px; border-radius: 12px; color: #9c6a35; background: #f3dfc0; }
.phone .feature-card h3 { font-size: 14px; color: #654f33; line-height: 1.5; letter-spacing: 0; }
.phone .feature-action { margin-top: 3px; font-size: 10px; color: #78634a; }
.phone .feature-card.mint { background: #e8f1e9; border-color: #d4e4d7; }
.phone .feature-card.mint:hover { border-color: #a3c5ad; }
.phone .feature-card.mint .feature-icon { color: #407c69; background: #d8e9dc; }
.phone .feature-card.mint h3 { color: #3e6454; }
.phone .feature-card.mint .feature-action { color: #567464; }
.phone .feature-card.lilac { background: #eeebf5; border-color: #e0d9ed; }
.phone .feature-card.lilac:hover { border-color: #bfb0d2; }
.phone .feature-card.lilac .feature-icon { color: #806699; background: #e3dced; }
.phone .feature-card.lilac h3 { color: #615074; }
.phone .feature-card.lilac .feature-action { color: #746481; }

/* 每项约 74px，始终双列，不把奇数项拉成整行。 */
.text-directory { scroll-margin-top: 18px; }
.compact-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.compact-guide {
  --guide-color: #5d83a2; --guide-bg: #edf2f5;
  position: relative; height: 74px; min-width: 0;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 10px;
  align-items: center; gap: 7px; padding: 9px 9px 9px 11px;
  text-align: left; border: 1px solid #e7e5dd; border-radius: 12px;
  background: #fffefa; color: #38473c; overflow: hidden;
}
.compact-guide::before { content: ''; position: absolute; left: 0; top: 17px; bottom: 17px; width: 3px; border-radius: 0 3px 3px 0; background: var(--guide-color); }
.compact-guide:hover { border-color: var(--guide-color); }
.compact-guide.guide-tone-1 { --guide-color: #668d76; --guide-bg: #edf3ed; }
.compact-guide.guide-tone-2 { --guide-color: #a88755; --guide-bg: #f7f0e5; }
.compact-guide.guide-tone-3 { --guide-color: #947ba4; --guide-bg: #f2edf5; }
.compact-guide .guide-icon { width: 30px; height: 33px; margin: 0; border-radius: 9px; display: grid; place-items: center; background: var(--guide-bg); color: var(--guide-color); }
.compact-guide .guide-copy { min-width: 0; }
.compact-guide .guide-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; color: #3a463d; font-weight: 600; }
.compact-guide .guide-copy > span { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; line-height: 1.3; color: #72776d; }
.guide-arrow { color: #879084; display: flex; align-items: center; }
.home-warmth { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 27px 0 0; color: #b49c75; }
.home-warmth span { color: #bd9380; transform: rotate(-14deg); }
.home-warmth span:last-child { transform: rotate(13deg); }
.home-warmth i { width: 28px; height: 1px; background: #e3d9c6; }
.phone .site-footer { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 0; padding: 15px 16px 18px; color: #656e5d; letter-spacing: 1px; font-size: 11px; }
.phone .site-footer small { margin: 0; color: #7a8073; font-size: 10px; letter-spacing: .5px; }
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 35;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 480px); padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
  background: #fffdf8f5; backdrop-filter: blur(12px); border-top: 1px solid #e7e3d8;
}
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 43px; background: none; border: 0; color: #737b6c; font-size: 10px; line-height: 1.3; }
.bottom-nav.has-redpack { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bottom-nav button[data-act="redpack"][aria-current] { color: #b73736; }
.bottom-nav button[data-act="redpack"][aria-current]::before { background: #fce9df; }
.bottom-nav button[aria-current] { color: #3d705b; font-weight: 600; }
.bottom-nav button[aria-current]::before { content: ''; width: 30px; height: 27px; position: absolute; top: 6px; background: #eaf0e5; border-radius: 9px; z-index: -1; }

/* 功能、正文使用深色文字，保留已有蓝色转盘等点缀。 */
.phone .reading-section h1 { color: #35473a; }
.phone .back { color: #526b56; }
.phone .eyebrow, .phone .muted, .phone .fine, .phone .empty { color: #646d61; }
.phone .article-body { color: #3c473e; }
.phone .article-list { border-color: #e3e6da; }
.phone .article-list strong, .phone .game-description h2 { color: #3d5845; }
.phone .game-description { background: #fffefa; border-color: #e4e6d9; }
.phone .game-description > div { color: #4d594c; white-space: pre-wrap; overflow-wrap: anywhere; }
.phone .reader-note { background: #edf1e6; color: #596f53; }
.phone .primary { background: #4c7d69; box-shadow: 0 4px 12px #375d4820; }
/* iOS 聚焦小字号输入框会自动放大；输入前后统一使用 16px。 */
.phone .feedback-form input, .phone .feedback-form textarea { font-size: 16px; }
/* 原生文件控件直接接收点击，兼容不接受脚本唤起选择器的 App WebView。 */
.phone .feedback-form .add-upload { position: relative; margin: 0; overflow: hidden; color: #a0badb; }
.phone .feedback-form .add-upload:focus-within { outline: 2px solid #518b7a; outline-offset: 3px; }
.phone .feedback-form .add-upload.is-disabled { opacity: .65; }
.phone .feedback-form .add-upload .fb-file-input {
  position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer;
}
.phone .feedback-form .add-upload .fb-file-input:disabled { cursor: not-allowed; }
.phone .feedback-followup { margin-top: 16px; padding: 14px; border-radius: 10px; background: #f5f3eb; color: #465547; font-size: 12px; }
.phone .feedback-followup b { font-weight: 500; }
.phone .feedback-followup p { margin: 9px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.phone .feedback-reply small, .phone .feedback-followup small { display: block; margin-top: 6px; color: #6f7a71; font-size: 10px; line-height: 1.7; }
.phone .feedback-thread-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e4e9e0; }
.phone .feedback-thread-form label { margin-bottom: 12px; }
.phone .feedback-thread-note { margin: 16px 0 0; color: #6b756b; font-size: 12px; line-height: 1.8; }
.phone .history-refresh { display: block; margin: 12px 0 0 auto; padding: 6px 0 6px 12px; color: #526b56; font-size: 12px; }
.phone .welcome-new { background: radial-gradient(ellipse at 50% 37%, #f9eed4, transparent 65%), #faf7f0; }
.phone .welcome-brand, .phone .welcome-copy h1 { color: #556b53; }
.phone .welcome-brand span, .phone .welcome-copy .eyebrow { color: #807250; }
.phone .welcome-copy p, .phone .welcome-bottom, .phone .welcome-bottom small { color: #6b725f; }
.phone .progress { background: #e8e2cd; }
.phone .progress i { background: #9fa77e; }
.lucky-amount strong { overflow-wrap: anywhere; }
.lucky-amount strong.is-snapshot { font-size: 24px; line-height: 1.6; }
@media (max-width: 350px) {
  .phone .site-header { padding: 17px 15px; }
  .phone .grouped-directory { padding: 0 13px; }
  .gather-main { padding-left: 15px; padding-right: 5px; }
  .gather-art { width: 100px; height: 134px; }
  .gather-label { font-size: 9px; }
  .gather-copy p { font-size: 10px; }
  .compact-guides { gap: 7px; }
  .compact-guide { gap: 5px; padding-left: 9px; padding-right: 6px; grid-template-columns: 25px minmax(0, 1fr) 8px; }
  .compact-guide .guide-icon { width: 25px; }
  .compact-guide .guide-copy strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .compact-guide, .phone .feature-card { transition: none; }
}
