/* 茶馆小仓库 - 公共样式表
   全站共用：设计令牌 / 骨架 / 首页 / 详情页 / 说明页 / 书签 / 私人飞机 / 登机工具 / 弹窗 / 暗号门禁
   页面专有样式不再内联，统一维护在这里。 */

/* 1. 设计令牌 */
:root {
  --ink: #192522;
  --muted: #7b8984;
  --line: #e6ebe5;
  --paper: #f7f9f5;
  --card: rgba(255, 255, 255, .8);
  --white: #fff;
  --mint: #c9f36b;
  --mint-deep: #8ac53f;
  --blue: #b8ddff;
  --peach: #ffd8bc;
  --lavender: #d8d3ff;
  --shadow: 0 18px 45px rgba(43, 69, 50, .11);
  --shadow-card: 0 8px 25px rgba(43, 69, 50, .035);
  --shadow-lift: 0 18px 46px rgba(43, 69, 50, .08);
  --radius-lg: 28px;
  --radius-md: 18px;
}

/* 2. 基础 */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 243, 107, .28), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(231, 211, 162, .22), transparent 27%),
    var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.bg-cool {
  background:
    radial-gradient(circle at 9% 4%, rgba(201, 243, 107, .27), transparent 21rem),
    radial-gradient(circle at 93% 10%, rgba(184, 221, 255, .34), transparent 24rem),
    linear-gradient(180deg, #fbfcf9 0%, var(--paper) 58%, #f2f7ee 100%);
}
body.bg-alt {
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 243, 107, .28), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(184, 221, 255, .24), transparent 27%),
    var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a, button, .app-card, .tab, input { -webkit-tap-highlight-color: transparent; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
@media (hover: none) {
  a:active { text-decoration: underline; text-underline-offset: 3px; }
  button:active, .back:active, .back-link:active, .download-button:active, .config-button:active,
  .source-button:active, .official-button:active, .copy-button:active, .launch-button:active,
  .modal-close:active, .tool-button:active, .self-bookmark-card:active { filter: brightness(.9); text-decoration: none; }
  .app-card:active, .bookmark-card:active { background: #eaf2e5; }
}

/* 3. 骨架 */
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(230, 235, 229, .8); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: block; width: 42px; height: 42px; object-fit: contain; border-radius: 13px; background: #fff6df; box-shadow: 4px 5px 0 rgba(201, 243, 107, .55); }
.back { padding: 10px 15px; color: #6c7c73; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .65); font-size: 12px; font-weight: 700; transition: .2s ease; }
.back:hover { color: var(--ink); border-color: #cdddc6; transform: translateX(-3px); }
main { min-height: calc(100vh - 153px); display: grid; place-items: center; padding: 65px 0 80px; }
main.block { display: block; place-items: normal; }
/* 部分页面留白比详情页紧凑（原值 54~56 / 72），保持各自观感 */
main.pad-tight { padding: 56px 0 72px; }
footer { padding: 0 0 25px; color: #98a49d; font-size: 12px; }
.eyebrow { margin-bottom: 13px; color: var(--mint-deep); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(30px, 6vw, 46px); letter-spacing: -.065em; }

/* 4. 首页 */
body.home .shell { width: min(1180px, calc(100% - 40px)); }
body.home .topbar { height: 88px; border-bottom: 0; }
body.home main { display: block; place-items: normal; justify-items: normal; min-height: 0; padding: 0; }
body.home footer { display: flex; justify-content: space-between; padding: 26px 0 38px; }
.footer strong { color: var(--ink); }
.footer-links { display: flex; gap: 20px; }
body.home .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 0; color: var(--mint-deep); font-size: 12px; letter-spacing: .13em; }
body.home .eyebrow::before { content: ''; width: 25px; height: 2px; background: var(--mint-deep); }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 0; font-size: 13px; color: #66746f; }
.nav a { white-space: nowrap; transition: color .2s ease; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .submit { border: 0; padding: 11px 16px; border-radius: 999px; color: var(--ink); background: var(--mint); font-weight: 700; box-shadow: 0 6px 18px rgba(138, 197, 63, .22); transition: color .2s ease, transform .2s ease, box-shadow .2s ease; }
.nav .submit:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 9px 20px rgba(138, 197, 63, .28); }
.nav .submit:active, .passcode-submit:active, .modal-close:active { background: #a7d64f; }
.hero { padding: 55px 0 42px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; }
.hero h1 { margin: 20px 0 19px; max-width: 700px; font-size: clamp(44px, 7vw, 80px); line-height: .98; letter-spacing: -.075em; font-weight: 800; }
.hero h1 em { color: var(--mint-deep); font-style: normal; }
.hero-copy { max-width: 520px; color: var(--muted); line-height: 1.8; font-size: 15px; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0 19px; border-top: 1px solid var(--line); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; padding: 10px 15px; border-radius: 999px; color: #7b8984; background: transparent; white-space: nowrap; transition: .2s ease; }
.tab:hover { background: #edf2e9; color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; box-shadow: 0 7px 16px rgba(25, 37, 34, .13); }
.search { width: 225px; display: flex; gap: 8px; align-items: center; padding: 10px 13px; color: #83908a; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 999px; }
.search svg { flex: 0 0 auto; }
.search input { width: 100%; outline: 0; border: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search input::placeholder { color: #a2ada7; }
.category-section { margin-top: 29px; }
.category-section[hidden] { display: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 17px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.05em; }
.section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.app-card { position: relative; min-height: 208px; display: flex; flex-direction: column; padding: 20px; background: var(--card); border: 1px solid rgba(230, 235, 229, .92); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: visible; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; animation: rise .55s both; }
.app-card[hidden] { display: none; }
.app-card.category-refresh { animation: category-rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.app-card.tip-active { z-index: 10; }
.app-card::after { content: ''; position: absolute; width: 90px; height: 90px; right: -42px; bottom: -46px; clip-path: inset(0 42px 46px 0 round 0 0 var(--radius-md) 0); border-radius: 50%; background: rgba(201, 243, 107, .25); }
.app-card:hover, .app-card:focus-visible { transform: translateY(-5px); border-color: #d8e6ce; box-shadow: var(--shadow-lift); }
.app-card[data-url] { cursor: pointer; }
.app-card:focus-visible { outline: 3px solid rgba(138, 197, 63, .45); outline-offset: 3px; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; }
.app-icon { display: grid; place-items: center; width: 47px; height: 47px; color: #fff; border-radius: 14px; font-size: 17px; font-weight: 800; letter-spacing: -.04em; box-shadow: inset 0 -5px 12px rgba(0, 0, 0, .1); overflow: hidden; }
.app-icon.image { background: #fff; }
.app-icon.image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-save { position: relative; z-index: 1; border: 0; background: transparent; color: #a0aaa4; font-size: 19px; line-height: 1; transition: color .2s ease, transform .2s ease; }
.app-save::after { content: '这按钮没啥用，纯粹是为了好看'; position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 3; color: #68766e; font-size: 10px; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 4px) scale(.96); }
.app-save.tip-visible::after { animation: heart-tip 3s ease both; }
.app-save:hover, .app-save.saved { color: var(--mint-deep); transform: scale(1.14); }
.app-name { margin: 21px 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.045em; }
.app-desc { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.app-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 21px; }
.tag { padding: 5px 9px; border-radius: 7px; color: #77847d; background: #f0f4ee; font-size: 10px; line-height: 1.2; }
.tag.platform { color: #637a45; background: #edf6dc; }
.empty { display: none; padding: 55px 20px; text-align: center; color: var(--muted); border: 1px dashed #d4ddd2; border-radius: var(--radius-md); }
.empty.show { display: block; }
.spotlight { margin: 66px 0 29px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.spot-card { min-height: 245px; position: relative; padding: 28px; border-radius: var(--radius-lg); overflow: hidden; }
.spot-card.lime { background: var(--mint); }
.spot-card.ink { color: #fff; background: var(--ink); }
.spot-card h3 { max-width: 270px; margin: 0 0 15px; font-size: 29px; line-height: 1.08; letter-spacing: -.06em; }
.spot-card p { max-width: 290px; margin: 0; font-size: 13px; line-height: 1.7; opacity: .73; }
.spot-card a { position: absolute; bottom: 25px; left: 28px; padding: 10px 15px; border-radius: 999px; background: rgba(255, 255, 255, .64); color: var(--ink); font-size: 12px; font-weight: 700; }
.spot-card.ink a { color: var(--ink); background: var(--mint); }
.orbit { position: absolute; width: 165px; height: 165px; right: 38px; bottom: -58px; border: 1px solid rgba(25, 37, 34, .16); border-radius: 50%; }
.orbit::before, .orbit::after { content: ''; position: absolute; inset: 23px; border: 1px solid rgba(25, 37, 34, .14); border-radius: 50%; }
.orbit::after { inset: 51px; background: rgba(255, 255, 255, .42); border: 0; }
.spot-card.lime .orbit { width: 52%; height: 112%; right: -1%; bottom: -24%; border: 0; border-radius: 0; background: url('bookmark-line-art.webp') center / cover no-repeat; mix-blend-mode: multiply; opacity: .17; transform: rotate(-5deg); }
.spot-card.ink .orbit { width: 52%; height: 112%; right: -1%; bottom: -24%; border: 0; border-radius: 0; background: url('private-plane-line-art.webp') center / cover no-repeat; transform: rotate(-5deg); }
.spot-card.lime .orbit::before, .spot-card.lime .orbit::after,
.spot-card.ink .orbit::before, .spot-card.ink .orbit::after { display: none; }

/* 5. 资源详情页 */
.download-panel { width: min(640px, 100%); padding: 42px; text-align: center; background: rgba(255, 255, 255, .8); border: 1px solid rgba(230, 235, 229, .95); border-radius: 28px; box-shadow: var(--shadow); animation: rise .55s both; }
.file-icon { width: 105px; height: 105px; margin: 0 auto 24px; padding: 14px; border-radius: 25px; background: #fff7e8; box-shadow: inset 0 -7px 14px rgba(0, 0, 0, .06); }
.file-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.intro { margin: 13px auto 30px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.update-note { margin: 0 0 22px; padding: 14px 16px; color: #66756c; text-align: left; border: 1px solid #dfe9d9; border-radius: 14px; background: #f5f9ef; font-size: 12px; line-height: 1.85; white-space: pre-line; }
.download-list { display: grid; gap: 10px; margin-top: 4px; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 15px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .7); }
.download-row-info { min-width: 0; flex: 1; }
.download-row-name { display: block; font-size: 13px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; }
.download-row-size { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.download-button, .source-button, .config-button, .official-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 12px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.download-button { flex: 0 0 auto; min-width: 104px; padding: 10px 15px; color: var(--ink); background: var(--mint); box-shadow: 0 8px 20px rgba(138, 197, 63, .2); }
.download-button:hover { background: #b9ec57; box-shadow: 0 11px 25px rgba(138, 197, 63, .28); transform: translateY(-3px); }
.download-button:active, .config-button:active { background: #c5e695; }
.resource-extra, .music-source { margin-top: 30px; padding-top: 25px; text-align: left; border-top: 1px solid var(--line); }
.resource-extra h2, .music-source h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.04em; }
.resource-extra p, .music-source-intro { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.action-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.config-button, .source-button { padding: 11px 17px; text-align: center; }
.config-button { color: var(--ink); background: #e8f5c9; border: 1px solid #d6e9ae; }
.config-button:hover { background: #dff0b7; box-shadow: 0 9px 20px rgba(138, 197, 63, .16); transform: translateY(-3px); }
.source-button { gap: 9px; color: #fff; background: var(--ink); }
.source-button:hover { background: #2d4039; box-shadow: 0 9px 20px rgba(25, 37, 34, .18); transform: translateY(-3px); }
.source-button:active { background: #16241f; }
.download-panel > .source-button { margin-top: 18px; }
.official-button { padding: 11px 17px; color: #fff; background: var(--ink); box-shadow: 0 8px 20px rgba(25, 37, 34, .14); }
.official-button:hover { background: #2d4039; box-shadow: 0 11px 25px rgba(25, 37, 34, .2); transform: translateY(-3px); }
.github-mark { width: 16px; height: 16px; fill: currentColor; }
.source-row { display: flex; align-items: center; gap: 9px; margin-top: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .7); }
.source-label { flex: 0 0 auto; min-width: 28px; color: var(--ink); font-size: 11px; }
.source-url { min-width: 0; flex: 1; overflow-wrap: anywhere; word-break: break-word; color: #647d49; font-size: 11px; line-height: 1.5; }
.copy-button { flex: 0 0 auto; border: 0; padding: 8px 11px; color: var(--ink); border-radius: 999px; background: var(--mint); font-size: 11px; font-weight: 800; }
.copy-button:hover { background: #b9ec57; }
.copy-button:active { background: #a7d64f; }
.copy-button:focus-visible { outline: 3px solid rgba(138, 197, 63, .45); outline-offset: 3px; }
.notice { margin: 24px 0 0; color: #a0aaa4; font-size: 11px; line-height: 1.7; }

/* 6. 说明页（关于 / 声明 / 联系） */
.about-panel, .contact-panel, .disclaimer-panel { width: min(860px, 100%); display: grid; grid-template-columns: minmax(250px, .9fr) minmax(300px, 1.1fr); align-items: center; gap: 42px; padding: 28px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(230, 235, 229, .95); border-radius: 28px; box-shadow: var(--shadow); animation: rise .55s both; }
.about-image, .contact-image, .disclaimer-image { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 21px; background: #f4eee6; }
.about-image img, .contact-image img, .disclaimer-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-panel h1, .contact-panel h1, .disclaimer-panel h1 { margin: 0 0 20px; font-size: clamp(34px, 6vw, 54px); letter-spacing: -.07em; }
.about-panel .eyebrow, .contact-panel .eyebrow, .disclaimer-panel .eyebrow { margin-bottom: 15px; }
.copy { margin: 0; color: #56665d; font-size: 16px; line-height: 2; }
.contact-panel .copy { white-space: pre-line; }
.disclaimer-note { margin: 18px 0 0; color: #56665d; font-size: 15px; line-height: 1.9; }
.disclaimer-note strong { color: #d83b3b; font-weight: 800; }
.back-link { display: inline-flex; margin-top: 28px; padding: 12px 17px; color: var(--ink); border-radius: 999px; background: var(--mint); box-shadow: 0 8px 20px rgba(138, 197, 63, .2); font-size: 12px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.back-link:hover { box-shadow: 0 11px 25px rgba(138, 197, 63, .28); transform: translateY(-3px); }

/* 7. 书签页 */
.page-intro { margin-bottom: 27px; text-align: center; }
.page-intro h1 { margin: 0 0 12px; font-size: clamp(34px, 9vw, 48px); letter-spacing: -.08em; line-height: 1; }
.page-intro p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.8; }
.bookmark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bookmark-card { position: relative; min-height: 116px; display: flex; align-items: center; padding: 16px 18px; overflow: hidden; background: var(--card); border: 1px solid rgba(230, 235, 229, .94); border-radius: 20px; box-shadow: var(--shadow-card); animation: rise .55s both; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.bookmark-card::after { content: ''; position: absolute; width: 92px; height: 92px; right: -46px; bottom: -46px; border-radius: 50%; background: rgba(201, 243, 107, .28); }
.bookmark-card:hover, .bookmark-card:focus-visible { transform: translateY(-4px); border-color: #d8e6ce; box-shadow: var(--shadow); }
.bookmark-card:focus-visible { outline: 3px solid rgba(138, 197, 63, .45); outline-offset: 3px; }
.bookmark-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.bookmark-icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(230, 235, 229, .85), 0 7px 15px rgba(43, 69, 50, .07); }
.bookmark-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bookmark-icon-fallback { color: var(--mint-deep); font-size: 18px; font-weight: 800; }
.bookmark-content { min-width: 0; }
.bookmark-name { margin: 0 0 5px; font-size: 17px; font-weight: 800; letter-spacing: -.05em; overflow-wrap: anywhere; }
.bookmark-desc { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.self-bookmark-card { border: 1px solid rgba(201, 243, 107, .55); cursor: pointer; }
.self-bookmark-card .bookmark-name, .self-bookmark-card .bookmark-desc { display: block; }
.self-bookmark-card:hover { border-color: var(--mint-deep); }

/* 8. 私人飞机页 */
.plane-panel { width: min(860px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 48px); background: rgba(255, 255, 255, .82); border: 1px solid rgba(230, 235, 229, .95); border-radius: 28px; box-shadow: var(--shadow); animation: rise .55s both; }
.plane-panel h1 { margin: 0 0 28px; font-size: clamp(38px, 7vw, 62px); letter-spacing: -.08em; }
.plane-panel .eyebrow { margin-bottom: 15px; }
.document { color: #56665d; font-size: 16px; line-height: 2; }
.document h2 { margin: 26px 0 5px; color: var(--ink); font-size: 20px; letter-spacing: -.04em; }
.document h2:first-child { margin-top: 0; }
.document p { margin: 0 0 10px; }
.document-image { display: block; width: 100%; max-height: 430px; margin: 24px 0 28px; border-radius: 18px; object-fit: cover; }
.document .closing { margin-top: 18px; }
.plane-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.launch-button { display: flex; width: fit-content; margin: 0; padding: 13px 19px; color: var(--ink); border: 0; border-radius: 999px; background: var(--mint); box-shadow: 0 8px 20px rgba(138, 197, 63, .2); font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.launch-button:hover { box-shadow: 0 11px 25px rgba(138, 197, 63, .28); transform: translateY(-3px); }
.launch-button:active { background: #a7d64f; }
.launch-button.launch-button-dark { color: #fff; background: #000; }
.launch-button.launch-button-dark:hover { color: #fff; background: #292929; }

/* 9. 登机工具页 */
.tool-panel { width: min(760px, 100%); padding: 42px; text-align: center; background: rgba(255, 255, 255, .8); border: 1px solid rgba(230, 235, 229, .95); border-radius: 28px; box-shadow: var(--shadow); animation: rise .55s both; }
.tool-panel h1 { margin: 0 0 12px; font-size: 25px; text-align: left; letter-spacing: -.08em; }
.tool-panel-lead { margin: 0 auto 22px; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: left; }
.boarding-hero { display: block; width: 100%; max-height: 330px; margin: 0 0 24px; object-fit: cover; border-radius: 18px; }
.tool-list { display: grid; gap: 10px; }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 15px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .7); }
.tool-row-main { min-width: 0; flex: 1; }
.tool-row-info { min-width: 0; display: flex; align-items: center; gap: 12px; }
.tool-icons { display: flex; flex: 0 0 auto; gap: 6px; align-items: center; }
.tool-icon { width: 46px; height: 46px; flex: 0 0 46px; object-fit: cover; border-radius: 12px; }
.tool-platform { display: block; font-size: 14px; font-weight: 800; }
.tool-copy { margin: 5px 0 0; color: #56665d; font-size: 12px; line-height: 1.65; }
.tool-copy-inline { display: block; min-width: 0; max-width: none; margin-top: 7px; color: #56665d; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.tool-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 11px; border: 0; border-radius: 999px; color: var(--ink); background: var(--mint); font-size: 11px; font-weight: 800; text-align: center; transition: transform .2s ease, background .2s ease, color .2s ease; }
.tool-button:hover { background: #b9ec57; transform: translateY(-2px); }
.tool-button.tool-button-dark { color: #fff; background: #000; }
.tool-button.tool-button-dark:hover { color: #fff; background: #292929; }

/* 10. 弹窗 */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(25, 37, 34, .52); backdrop-filter: blur(7px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.modal.open { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: min(500px, 100%); padding: 13px; background: #fffdf7; border: 1px solid rgba(255, 255, 255, .7); border-radius: 24px; box-shadow: 0 25px 70px rgba(25, 37, 34, .24); transform: translateY(14px) scale(.97); transition: transform .3s ease; }
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-card img { display: block; width: 100%; max-height: 56vh; object-fit: cover; border-radius: 16px; }
.modal-copy { margin: 17px 14px 12px; color: #59685f; font-size: 18px; line-height: 1.8; font-weight: 700; }
.modal-card.is-text { padding: 34px 30px 30px; border: 1px solid rgba(230, 235, 229, .95); border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: 0 22px 65px rgba(15, 32, 23, .25); }
.modal.open .modal-card.is-text { transform: translateY(0); }
.modal-card.is-text h2 { margin: 0 0 16px; font-size: 25px; letter-spacing: -.06em; }
.modal-card.is-text p { margin: 0; color: #56665d; font-size: 15px; line-height: 1.9; }
.modal-close { position: absolute; top: 23px; right: 23px; z-index: 1; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, .9); font-size: 20px; line-height: 1; }
.modal-close:hover { background: var(--mint); }
.modal-card.is-text .modal-close { top: 12px; right: 14px; background: #eef4e9; }
.self-bookmark-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(25, 37, 34, .52); backdrop-filter: blur(7px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.self-bookmark-modal.open { opacity: 1; visibility: visible; }
.self-bookmark-dialog { position: relative; width: min(520px, 100%); padding: 13px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 24px; background: #fffdf7; box-shadow: 0 25px 70px rgba(25, 37, 34, .24); transform: translateY(14px) scale(.97); transition: transform .3s ease; }
.self-bookmark-modal.open .self-bookmark-dialog { transform: translateY(0) scale(1); }
.self-bookmark-dialog img { display: block; width: 100%; max-height: 68vh; object-fit: cover; border-radius: 16px; }
.self-bookmark-dialog p { margin: 16px 10px 8px; color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.6; text-align: center; }
.self-bookmark-close { position: absolute; top: 23px; right: 23px; z-index: 1; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, .9); font-size: 20px; line-height: 1; }
.self-bookmark-close:hover { background: var(--mint); }

/* 登机指南图片轮播 */
.guide-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(25, 37, 34, .6); backdrop-filter: blur(7px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.guide-modal.open { opacity: 1; visibility: visible; }
.guide-card { position: relative; width: min(1060px, calc(100vw - 36px)); height: min(86vh, 820px); padding: 50px 82px 52px; }
.guide-card.guide-card-narrow { width: min(760px, calc(100vw - 36px)); }
.guide-stage { position: relative; width: 100%; height: 100%; min-height: 0; }
.guide-slide { position: absolute; inset: 0; display: grid; place-items: center; min-width: 0; min-height: 0; opacity: 0; transform: translateX(100%); transition: transform .35s ease, opacity .35s ease; pointer-events: none; overflow: hidden; }
.guide-slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 55px rgba(0, 0, 0, .34); }
.guide-slide.is-current { z-index: 3; opacity: 1; transform: translateX(0); pointer-events: auto; align-items: center; }
.guide-slide.is-current img { width: auto; max-width: calc(100vw - 220px); max-height: calc(86vh - 170px); margin: 0 auto; object-fit: contain; }
.guide-slide.is-enter-left { z-index: 4; opacity: 1; transform: translateX(-100%); }
.guide-slide.is-enter-right { z-index: 4; opacity: 1; transform: translateX(100%); }
.guide-slide.is-exit-left { z-index: 2; opacity: 0; transform: translateX(-100%); }
.guide-slide.is-exit-right { z-index: 2; opacity: 0; transform: translateX(100%); }
.guide-nav { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; border: 0; border-radius: 50%; color: var(--ink); background: var(--mint); box-shadow: 0 8px 20px rgba(138, 197, 63, .22); font-size: 25px; line-height: 1; transform: translateY(-50%); }
.guide-nav:hover { background: #b9ec57; }
.guide-nav:disabled { opacity: .28; cursor: not-allowed; box-shadow: none; }
.guide-prev { left: 20px; }
.guide-next { right: 20px; }
.guide-count { position: absolute; left: 50%; bottom: 17px; z-index: 5; color: rgba(255, 255, 255, .78); font-size: 12px; text-shadow: 0 1px 5px rgba(0, 0, 0, .5); transform: translateX(-50%); }
.guide-close { position: absolute; top: 12px; right: 14px; z-index: 6; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; background: rgba(25, 37, 34, .55); font-size: 21px; line-height: 1; }
.guide-close:hover { background: var(--mint); }

/* 11. 暗号门禁（弹层由 passcode-gate.js 在 body 开头注入，勿用 body 级隐藏，会导致整页空白） */
.passcode-gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; width: 100%; max-width: 100vw; padding: 22px; overflow: hidden; background: rgba(25, 37, 34, .58); backdrop-filter: blur(10px); }
.passcode-gate[hidden], .passcode-unlocked .passcode-gate { display: none; }
.passcode-card { position: relative; overflow: hidden; width: min(420px, 100%); max-width: calc(100vw - 32px); padding: 30px 26px 25px; border: 1px solid rgba(230, 235, 229, .95); border-radius: 24px; background: rgba(255, 255, 255, .97); box-shadow: 0 24px 70px rgba(15, 32, 23, .25); text-align: center; }
.passcode-card::before { content: ''; position: absolute; inset: 0; z-index: 0; background: url('passcode-background.webp') center / cover no-repeat; opacity: .2; pointer-events: none; }
.passcode-card > * { position: relative; z-index: 1; }
.passcode-card h2 { margin: 0 0 20px; color: var(--ink); font-size: 25px; letter-spacing: -.06em; }
.passcode-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); background: rgba(255, 255, 255, .52); text-align: center; }
.passcode-input:focus { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(138, 197, 63, .15); }
.passcode-submit { width: 100%; margin-top: 12px; padding: 12px 16px; border: 0; border-radius: 999px; color: var(--ink); background: var(--mint); font-weight: 800; }
.passcode-error { min-height: 21px; margin: 10px 0 0; color: #c65c4d; font-size: 12px; }

/* 12. 动画 */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes category-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heart-tip { 0%, 100% { opacity: 0; transform: translate(-50%, 4px) scale(.96); } 10%, 88% { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* 13. 响应式 */
@media (max-width: 940px) {
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { gap: 20px; }
}
@media (max-width: 760px) {
  .guide-card.guide-card-narrow { width: calc(100vw - 24px); }
  .guide-slide.is-current img { max-width: 100%; max-height: calc(86vh - 150px); }
  .tool-panel { width: 100%; padding: 28px 14px; border-radius: 22px; }
  .tool-row { align-items: flex-start; gap: 10px; padding: 10px; }
  .tool-row-info { align-items: flex-start; }
  .tool-platform { font-size: 13px; }
  .tool-copy-inline { max-width: none; }
  .tool-actions { max-width: 48%; }
  .tool-button { padding: 8px 9px; font-size: 10px; }
  .tool-row-computer { align-items: center; }
  .tool-row-computer .tool-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 54%; max-width: none; gap: 6px; }
  .tool-row-computer .tool-button { width: 100%; min-width: 0; padding-inline: 4px; }
  .tool-row-computer .tool-button:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .passcode-gate { padding: 16px; }
  .passcode-card { width: min(100%, 360px); padding: 25px 18px 21px; }
  .shell { width: min(100% - 28px, 560px); max-width: calc(100vw - 28px); }
  .topbar { height: 72px; min-height: 72px; padding: 10px 0; flex-direction: row; justify-content: space-between; gap: 8px; }
  .brand { position: static; min-width: max-content; justify-content: flex-start; transform: none; font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav { flex: 1; min-width: 0; height: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 5px; font-size: 10px; }
  .nav a:not(.submit) { display: block; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .nav .submit { padding: 7px 8px; font-size: 10px; white-space: nowrap; }
  .hero { display: block; padding: 38px 0 29px; }
  .hero h1 { font-size: clamp(48px, 15vw, 74px); max-width: 520px; }
  .hero-copy { font-size: 14px; }
  .controls { display: block; align-items: flex-start; padding-top: 17px; }
  .category-tabs { flex: 1; margin-bottom: 14px; }
  .search { width: 100%; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .app-card { min-height: 195px; padding: 16px; }
  .app-name { margin-top: 17px; font-size: 16px; }
  .app-desc { font-size: 11px; }
  .spotlight { grid-template-columns: 1fr; margin-top: 45px; }
  .spot-card { min-height: 210px; }
  footer { display: block; line-height: 2; }
  body.home footer { display: block; line-height: 2; }
}
@media (max-width: 700px) {
  main { padding: 56px 0 72px; }
  .about-panel, .contact-panel, .disclaimer-panel { grid-template-columns: 1fr; gap: 26px; padding: 18px; border-radius: 22px; }
  .about-image, .contact-image, .disclaimer-image { max-height: 420px; }
  .copy { font-size: 14px; }
  .plane-panel { padding: 24px 18px; border-radius: 22px; }
  .document { font-size: 14px; line-height: 1.9; }
  .document h2 { font-size: 18px; }
  .plane-actions { align-items: stretch; flex-direction: column; }
  .plane-actions .launch-button { width: 100%; justify-content: center; }
  .modal-card.is-text { padding: 30px 22px 24px; }
  .page-intro { margin-bottom: 23px; }
  .bookmark-grid { grid-template-columns: 1fr; gap: 12px; }
  .bookmark-card { min-height: 92px; padding: 14px; }
  .bookmark-row { gap: 12px; }
  .bookmark-icon { width: 42px; height: 42px; border-radius: 12px; }
  .bookmark-name { margin-bottom: 4px; font-size: 16px; }
  .bookmark-desc { font-size: 11px; }
}
@media (max-width: 600px) {
  main { padding: 36px 0 55px; }
  .download-panel { width: 100%; padding: 28px 14px; border-radius: 22px; }
  .update-note { padding: 12px 13px; font-size: 11px; }
  .download-row { align-items: flex-start; gap: 8px; padding: 10px; }
  .download-button { min-width: 82px; padding: 9px 10px; font-size: 11px; }
  .resource-extra, .music-source { margin-top: 24px; padding-top: 20px; }
  .action-row { gap: 8px; }
  .config-button, .source-button, .official-button { flex: 1 1 100%; }
  .source-row { align-items: flex-start; gap: 7px; }
  .source-url { font-size: 10px; }
  .copy-button { padding: 7px 9px; font-size: 10px; }
  .guide-card { width: calc(100vw - 24px); height: min(86vh, 760px); padding: 48px 48px 50px; }
  .guide-prev { left: 8px; }
  .guide-next { right: 8px; }
  .guide-nav { width: 38px; height: 38px; font-size: 20px; }
}
@media (max-width: 390px) {
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card { min-height: 175px; padding: 13px; }
  .app-name { font-size: 14px; }
  .app-desc { font-size: 10px; }
  .tag { padding: 4px 7px; font-size: 9px; }
}
