/* ============================================================
 * 精品软件网 · 样式
 * 前端为纯静态页面，内容全部取自接口
 * ========================================================== */

:root {
  --accent: #6d7cff;
  --bg: #f6f7fb;
  --bg-soft: #eef1f9;
  --surface: #ffffff;
  --surface-2: #f4f6fc;
  --line: #e5e8f2;
  --line-strong: #d4d9ea;
  --text: #0f1729;
  --muted: #5d6a85;
  --muted-2: #8b95ac;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 10px 30px rgba(18, 28, 60, .07);
  --shadow-lg: 0 26px 70px rgba(18, 28, 60, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg: #0a0e16;
  --bg-soft: #101725;
  --surface: #131b28;
  --surface-2: #18212f;
  --line: #232d3f;
  --line-strong: #2f3b52;
  --text: #e9edf7;
  --muted: #9aa6bd;
  --muted-2: #6f7c94;
  --shadow: 0 10px 30px rgba(0, 0, 0, .38);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
        "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
code {
  padding: 1px 6px; border-radius: 5px; font-size: .92em;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-family: ui-monospace, Consolas, monospace;
}

.wrap { width: min(1160px, 100% - 44px); margin: 0 auto; }

/* ------------------- 顶栏 ------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 16px; height: 63px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 16px; letter-spacing: .2px; flex: none; }
.brand img { width: 29px; height: 29px; border-radius: 9px; }
.nav-links { display: flex; gap: 2px; margin-left: 12px; }
.nav-links a {
  padding: 7px 12px; border-radius: 9px; font-size: 14px; color: var(--muted);
  transition: .18s var(--ease); white-space: nowrap;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }

/* 汉堡按钮：宽屏不出现，窄屏由媒体查询打开（必须写在 .icon-btn 之后才能压住它的 display:grid） */
.nav-toggle { display: none; }
.nav-toggle .ico-close { display: none; }
.nav.is-open .nav-toggle .ico-menu { display: none; }
.nav.is-open .nav-toggle .ico-close { display: block; }

.btn-line {
  padding: 7px 13px; border-radius: 10px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); transition: .18s var(--ease); white-space: nowrap;
}
.btn-line:hover { color: var(--text); border-color: var(--line-strong); }

/* ------------------- 通用 ------------------- */
.view { min-height: calc(100vh - 63px - 190px); padding: 32px 0 64px; }
.loading { padding: 90px 0; text-align: center; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.accent-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 43px; padding: 0 21px; border-radius: 12px;
  border: 1px solid transparent; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: .18s var(--ease);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:disabled {
  background: var(--surface-2); color: var(--muted-2); border-color: var(--line-strong);
  cursor: not-allowed; transform: none; filter: none;
}

.tag {
  padding: 3px 9px; border-radius: 7px; font-size: 11.5px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap;
}

/* ------------------- 首页 Hero ------------------- */
.hero { position: relative; padding: 26px 0 10px; overflow-x: clip; }
.hero::before {
  content: "";
  position: absolute; left: 50%; top: -180px; z-index: -1;
  width: min(1280px, 130vw); height: 620px; transform: translateX(-50%);
  background: radial-gradient(46% 46% at 50% 52%,
    color-mix(in srgb, var(--accent) 15%, transparent), transparent 74%);
  pointer-events: none;
}
.hero-wrap {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.12fr);
  align-items: center;
}
.hero h1 {
  margin: 16px 0 14px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.24;
  letter-spacing: -.6px; font-weight: 820;
}
.hero h1 em {
  display: block; font-style: normal; font-size: 1.06em; line-height: 1.14;
  background: linear-gradient(100deg, #8b5cf6, #5b8cff 52%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 span {
  display: block; margin-top: 8px;
  font-size: .62em; font-weight: 750; letter-spacing: -.2px; line-height: 1.4;
}
.hero-swap.swap > * { animation: heroIn .5s var(--ease) both; }
.hero-swap.swap > :nth-child(2) { animation-delay: .05s; }
.hero-swap.swap > :nth-child(3) { animation-delay: .1s; }
.hero-swap.swap > :nth-child(4) { animation-delay: .16s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero p.lead { margin: 0; max-width: 460px; font-size: 15.5px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 30px; }
.stat b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.4px; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* 轮播 */
.hero-stage { min-width: 0; }
.slider {
  position: relative;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 12px 12px 0;
  overflow: hidden;
}
.slider::before {
  content: "";
  position: absolute; inset: -30% -10% auto; height: 70%;
  background: radial-gradient(50% 60% at 50% 50%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  pointer-events: none;
}
.slider-view {
  position: relative; aspect-ratio: 16 / 10;
  border-radius: 12px; overflow: hidden; background: var(--bg-soft);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  transform: scale(1.015);
}
.slide.on { opacity: 1; transform: scale(1); }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.slide-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; }

/* 翻页按钮放在下方信息条里，不遮截图 */
.s-navs { display: flex; gap: 6px; flex: none; }
.s-nav {
  width: 27px; height: 27px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: .16s var(--ease);
}
.s-nav:hover { color: var(--accent); border-color: var(--accent); }

.slider-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 6px 9px;
}
.slider-meta { min-width: 0; display: flex; align-items: baseline; gap: 9px; }
.slider-meta b { font-size: 14.5px; font-weight: 700; }
.slider-meta span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slider-link { font-size: 12.5px; color: var(--accent); font-weight: 600; white-space: nowrap; }

.slider-dots { display: flex; gap: 6px; margin-left: auto; }
.dot {
  width: 6px; height: 6px; padding: 0; border: none; border-radius: 50%;
  background: var(--line-strong); cursor: pointer; transition: .2s var(--ease);
}
.dot.on { width: 18px; border-radius: 3px; background: var(--accent); }

/* ------------------- 区块标题 ------------------- */
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 46px 0 16px; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 780; letter-spacing: -.2px; }
.section-head span { font-size: 12.5px; color: var(--muted); }
.section-head .more {
  margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 600;
  padding: 4px 10px; border-radius: 8px; transition: .18s var(--ease);
}
.section-head .more:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ------------------- 软件卡片 ------------------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: .24s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }
.card > *:not(.card-glow):not(.card-cover) { position: relative; z-index: 1; }
.card-glow {
  position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, transparent); filter: blur(32px); z-index: 0;
  pointer-events: none;
}
.card-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.card:hover .card-cover img { transform: scale(1.035); }

.card-body { padding: 18px 20px; }
.card-top { display: flex; gap: 12px; align-items: center; }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.card-icon img { width: 36px; height: 36px; border-radius: 9px; }
.card-title { min-width: 0; }
.card-title h3 { margin: 0; font-size: 17px; font-weight: 740; }
.card-title p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.card-sum {
  margin: 13px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.card-foot {
  display: flex; align-items: center; gap: 10px; margin-top: auto;
  padding: 14px 20px 16px; border-top: 1px solid var(--line);
}
.ver { font-size: 12.5px; color: var(--muted); }
.ver b { color: var(--text); }
.card-date { font-size: 12px; color: var(--muted-2); }
.card-foot .go { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 600; }
.card.link { cursor: pointer; }

/* ------------------- 品牌条 ------------------- */
.brand-strip {
  margin-top: 40px; padding: 24px 26px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(90% 160% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--surface);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand-strip b { font-size: 16px; font-weight: 750; }
.brand-strip p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; max-width: 640px; }
.brand-strip .btn { margin-left: auto; }

/* ------------------- 软件详情 ------------------- */
.app-hero {
  position: relative; overflow: hidden; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface); padding: 30px;
}
.app-hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .55;
  background:
    radial-gradient(70% 120% at 6% 6%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 58%),
    radial-gradient(56% 100% at 98% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 58%);
}
.app-hero-in { position: relative; z-index: 1; display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.app-icon {
  width: 86px; height: 86px; border-radius: 21px; flex: none; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow);
}
.app-icon img { width: 64px; height: 64px; border-radius: 15px; }
.app-hero-txt { min-width: 260px; flex: 1; }
.app-hero h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.app-hero .tagline { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.app-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.app-hero-side { flex: none; min-width: 248px; }
.dl-box {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow);
}
.dl-ver { font-size: 12.5px; color: var(--muted); }
.dl-ver b { display: block; font-size: 20px; color: var(--text); font-weight: 800; letter-spacing: -.3px; }
.dl-size { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.dl-btns { display: grid; gap: 8px; margin-top: 14px; }
.dl-btns .btn { width: 100%; height: 40px; }
.dl-note { margin: 12px 0 0; font-size: 12px; color: var(--muted-2); line-height: 1.6; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-top: 20px;
}
.panel h2 { margin: 0 0 16px; font-size: 17.5px; font-weight: 750; }

/* 截图 */
.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
.shot {
  margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); background: var(--bg-soft);
  aspect-ratio: 16 / 10; transition: .22s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.shot:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.shot-tip { margin: 12px 0 0; font-size: 12px; color: var(--muted-2); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 22, .82);
  display: grid; place-items: center; padding: 30px; cursor: zoom-out;
  animation: lbIn .18s var(--ease);
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-close {
  position: absolute; top: 18px; right: 22px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
@keyframes lbIn { from { opacity: .4; } }

.feat { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.feat li {
  list-style: none; display: flex; gap: 10px; font-size: 13.5px; color: var(--muted);
  line-height: 1.7; padding: 13px 15px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line);
}
.feat li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}
ul { padding: 0; margin: 0; }

/* 更新历史 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 6%, transparent));
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-head b { font-size: 15px; }
.tl-notes { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.8; white-space: pre-wrap; }
.tl-notes .ln { display: block; padding-left: 14px; position: relative; }
.tl-notes .ln::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent); opacity: .75;
}

/* ------------------- 关于 ------------------- */
.about-page {
  max-width: 760px; padding: 6px 0 10px;
}
.about-page h1 { margin: 16px 0 12px; font-size: 32px; font-weight: 820; letter-spacing: -.6px; }
.about-page .about-lead { font-size: 16px; color: var(--text); line-height: 1.85; }
.about-page h2 { margin: 30px 0 8px; font-size: 17px; font-weight: 750; }
.about-page p { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); line-height: 1.9; }
.about-page b { color: var(--text); font-weight: 650; }
.inline-link { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.inline-link:hover { border-bottom-color: var(--accent); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.empty {
  padding: 54px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}

/* ------------------- 页脚 ------------------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; margin-top: 44px; }
.footer-in { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-logo { width: 32px; height: 32px; border-radius: 9px; }
.footer-brand b { font-size: 14.5px; font-weight: 750; }
.footer-slogan { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap; width: 100%;
  padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2);
}
.footer-meta a { color: var(--muted-2); }
.footer-meta a:hover { color: var(--accent); }

/* 备案号（工信部 + 公安）：版权行右侧，两项之间一条细竖线 */
.footer-beian {
  display: flex; align-items: center; flex-wrap: wrap; margin-left: auto;
  gap: 10px; font-size: 12px; line-height: 1.4; color: var(--muted-2); opacity: .92;
}
.footer-beian a {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted-2); text-decoration: none;
  transition: color .18s ease;
}
.footer-beian a:hover { color: var(--accent); opacity: 1; }
.footer-beian img { width: 14px; height: 14px; display: block; border-radius: 2px; }
.footer-beian .beian-sep { width: 1px; height: 11px; background: var(--line-strong); }

/* ------------------- 响应式 ------------------- */
@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-stage { order: 2; }
  .hero p.lead { max-width: none; }

  /* 窄屏导航：收进汉堡下拉，而不是整块消失 */
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; margin: 0; padding: 8px 16px 14px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 44px rgba(8, 11, 20, .16);
    max-height: calc(100vh - 63px); overflow-y: auto;
    animation: navDrop .18s var(--ease);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 15px; border-radius: 10px; }
  .nav-links a.on { font-weight: 650; }
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 27px; }
  .app-hero { padding: 20px; }
  .app-hero-side { width: 100%; }
  .stats { gap: 22px; }
  .brand-strip { padding: 20px; }
  .brand-strip .btn { margin-left: 0; }
  .slider-bar { flex-wrap: wrap; gap: 4px; }
}

/* ------------------- 反馈入口（软件详情页） ------------------- */
.fb-entry {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 11px 14px; width: 100%;
  border: 1px dashed var(--line-strong); border-radius: 14px;
  background: var(--surface-2); color: var(--muted);
  font: inherit; font-size: 13.5px; cursor: pointer; text-align: left;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.fb-entry:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.fb-entry svg { width: 17px; height: 17px; flex: none; }
.fb-entry b { color: var(--text); font-weight: 650; }
.fb-entry:hover b { color: var(--accent); }

/* 右下角悬浮按钮：滚到页面哪儿都能开反馈 */
.fb-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: none; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 650; color: #fff; background: var(--accent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 32%, transparent),
              0 2px 8px rgba(8, 11, 20, .2);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.fb-fab:hover { transform: translateY(-2px); filter: brightness(1.05); }
.fb-fab:active { transform: translateY(0); }
.fb-fab svg { width: 18px; height: 18px; }

/* ------------------- 反馈浮窗 ------------------- */
body.fb-open { overflow: hidden; }

.fb-mask {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8, 11, 20, .52); backdrop-filter: blur(5px);
  animation: fbFade .18s var(--ease);
}
.fb-mask[hidden] { display: none; }

.fb-dialog {
  display: flex; flex-direction: column; width: 100%; max-width: 620px;
  max-height: min(88vh, 780px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 26px 64px rgba(8, 11, 20, .34);
  animation: fbPop .22s var(--ease);
}
/* 输入框是 width:100% + 内边距，不设 border-box 会顶出右边界被裁掉 */
.fb-dialog, .fb-dialog * { box-sizing: border-box; }
/* display:flex / grid 会覆盖 [hidden]，这里显式兜住 */
.fb-mask[hidden], .fb-dfoot[hidden], .fb-done[hidden] { display: none !important; }
.fb-dhead {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 17px 20px 14px; border-bottom: 1px solid var(--line);
}
.fb-dhead h3 { margin: 0; font-size: 17px; letter-spacing: -.2px; }
.fb-dhead p { margin: 5px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.fb-close {
  flex: none; margin-left: auto; width: 34px; height: 34px; padding: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 19px; line-height: 1; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.fb-close:hover { color: var(--text); border-color: var(--line-strong); }

.fb-dbody { padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.fb-dfoot {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.fb-dfoot .grow { flex: 1; }

@keyframes fbFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes fbPop { from { opacity: 0; transform: translateY(12px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes fbUp { from { transform: translateY(28px) } to { transform: none } }

/* 提交成功那一屏 */
.fb-done { text-align: center; padding: 26px 4px 14px; }
.fb-done-ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: #2fa46a;
  background: color-mix(in srgb, #2fa46a 14%, transparent);
}
.fb-done-ico svg { width: 28px; height: 28px; }
.fb-done h4 { margin: 0 0 8px; font-size: 17px; }
.fb-done p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.fb-done code { padding: 2px 7px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); }
.fb-done-act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ------------------- 反馈表单（浮窗里用） ------------------- */
.fb-form { display: grid; gap: 16px; }
.fb-field { display: grid; gap: 7px; min-width: 0; }
.fb-field > span { font-size: 13.5px; font-weight: 600; color: var(--text); }
.fb-field > span em { color: var(--muted-2); font-style: normal; font-weight: 500; }
.fb-field .req { color: #d1483f; }

.fb-form input[type="text"], .fb-form input[type="email"],
.fb-form input[type="file"], .fb-form textarea, .fb-form select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 14.5px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.fb-form textarea { resize: vertical; min-height: 118px; line-height: 1.65; }
.fb-form input:focus, .fb-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.fb-form input::placeholder, .fb-form textarea::placeholder { color: var(--muted-2); }
/* 每个分类给一句自己的写法提示 */
.fb-tip { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted-2); }

.fb-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-cat {
  padding: 7px 14px; font-size: 13.5px; cursor: pointer; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  transition: all .18s var(--ease);
}
.fb-cat:hover { color: var(--text); border-color: var(--line-strong); }
.fb-cat.on {
  color: #fff; background: var(--accent); border-color: var(--accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 26%, transparent);
}

.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.fb-cap-in { display: flex; align-items: center; gap: 8px; }
.fb-q {
  flex: none; min-width: 96px; text-align: center; padding: 10px 12px;
  font-size: 15px; font-weight: 650; letter-spacing: .5px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 11px;
  color: var(--text); user-select: none; white-space: nowrap;
}
.fb-cap-in input { min-width: 0; }
.fb-refresh {
  flex: none; width: 40px; height: 40px; padding: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 17px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px;
  transition: all .18s var(--ease);
}
.fb-refresh:hover { color: var(--accent); border-color: var(--accent); }

.fb-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fb-pick {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 9px 15px; font-size: 14px; color: var(--muted);
  background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 12px;
  transition: all .18s var(--ease);
}
.fb-pick:hover { color: var(--accent); border-color: var(--accent); border-style: solid; }
.fb-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-thumb {
  position: relative; width: 74px; height: 74px; border-radius: 11px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
}
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-thumb button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0;
  display: grid; place-items: center; cursor: pointer; line-height: 1; font-size: 14px;
  color: #fff; background: rgba(12, 16, 28, .62); border: none; border-radius: 6px;
}
.fb-thumb button:hover { background: #d1483f; }
.fb-note { margin: 0; font-size: 12.5px; color: var(--muted-2); flex: 1 1 100%; }

.fb-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fb-count { font-size: 12.5px; color: var(--muted-2); }
.fb-count.over { color: #d1483f; }

.fb-alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 15px; border-radius: 13px; font-size: 14px; line-height: 1.6;
  border: 1px solid var(--line); background: var(--surface-2);
}
.fb-alert b { flex: none; }
.fb-alert.ok { border-color: color-mix(in srgb, #2fa46a 40%, transparent); background: color-mix(in srgb, #2fa46a 10%, transparent); color: #2fa46a; }
.fb-alert.err { border-color: color-mix(in srgb, #d1483f 40%, transparent); background: color-mix(in srgb, #d1483f 9%, transparent); color: #d1483f; }
.fb-alert code { background: rgba(125, 133, 160, .18); }

/* 蜜罐：真看不见，别 display:none —— 有些浏览器/助手会跳过 */
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 720px) {
  .fb-row { grid-template-columns: 1fr; }
  /* 窄屏把「题目 + 答案 + 换题」压在一行，别竖着占三格 */
  .fb-cap-in { flex-wrap: nowrap; }
  .fb-q { min-width: 0; flex: 0 0 auto; padding: 10px; font-size: 14px; }
  .fb-cap-in input { flex: 1 1 auto; width: auto; min-width: 0; }
  .fb-refresh { width: 38px; height: 38px; }
  .fb-thumb { width: 64px; height: 64px; }
}

/* 窄屏：浮窗贴着屏幕底部升起来，拇指够得着 */
@media (max-width: 640px) {
  .fb-mask { padding: 0; align-items: flex-end; }
  .fb-dialog {
    max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0;
    border-bottom: none; animation: fbUp .24s var(--ease);
  }
  .fb-dhead { padding: 15px 16px 12px; }
  .fb-dhead h3 { font-size: 16px; }
  .fb-dbody { padding: 16px; }
  .fb-dfoot { padding: 12px 16px; }
  .fb-dfoot .btn, .fb-dfoot .btn-line { flex: 1; text-align: center; justify-content: center; }
  .fb-fab { right: 14px; bottom: 14px; padding: 11px 15px; font-size: 13.5px; }
}
