/* ============================================================
   Crystal Launcher — Landing Page
   极简 · 大留白 · 单蓝点缀 · 无装饰
   ============================================================ */

:root {
  --bg: #0d1017;
  --ink: #e9edf4;
  --ink-soft: #8b94a3;
  --ink-dim: #565f6d;
  --blue: #0A84FF;
  --blue-deep: #0060DF;
  --hairline: rgba(255, 255, 255, 0.08);
  --r: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { 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;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
i { font-style: normal; }

/* 仅供读屏与爬虫的结构化标题，不占视觉版面 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

::selection { background: var(--blue); color: #fff; }

/* 图标：内联 SVG 遮罩，省掉 unpkg 的第三方阻塞样式表 */
.ph {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.14em;
  background-color: currentColor;
}
.ph-windows-logo {
  -webkit-mask: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'><path%20d='M104%2048v64H40V48zM216%2048v64h-64V48zM104%20144v64H40v-64zM216%20144v64h-64v-64z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'><path%20d='M104%2048v64H40V48zM216%2048v64h-64V48zM104%20144v64H40v-64zM216%20144v64h-64v-64z'/></svg>") center / contain no-repeat;
}
.ph-apple-logo {
  -webkit-mask: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'><path%20d='M17.05%2012.53c-.02-2.2%201.8-3.26%201.88-3.31-1.02-1.5-2.61-1.7-3.18-1.72-1.35-.14-2.64.79-3.32.79-.69%200-1.75-.77-2.87-.75-1.48.02-2.84.86-3.6%202.18-1.54%202.67-.39%206.62%201.11%208.79.73%201.06%201.61%202.25%202.76%202.21%201.11-.04%201.53-.72%202.87-.72%201.34%200%201.72.72%202.89.7%201.19-.02%201.95-1.09%202.68-2.15.84-1.23%201.19-2.42%201.21-2.48-.03-.01-2.32-.89-2.34-3.54zM14.88%205.9c.61-.74%201.02-1.77.91-2.79-.88.04-1.94.59-2.57%201.32-.56.65-1.05%201.7-.92%202.7.98.08%201.98-.5%202.58-1.23z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'><path%20d='M17.05%2012.53c-.02-2.2%201.8-3.26%201.88-3.31-1.02-1.5-2.61-1.7-3.18-1.72-1.35-.14-2.64.79-3.32.79-.69%200-1.75-.77-2.87-.75-1.48.02-2.84.86-3.6%202.18-1.54%202.67-.39%206.62%201.11%208.79.73%201.06%201.61%202.25%202.76%202.21%201.11-.04%201.53-.72%202.87-.72%201.34%200%201.72.72%202.89.7%201.19-.02%201.95-1.09%202.68-2.15.84-1.23%201.19-2.42%201.21-2.48-.03-.01-2.32-.89-2.34-3.54zM14.88%205.9c.61-.74%201.02-1.77.91-2.79-.88.04-1.94.59-2.57%201.32-.56.65-1.05%201.7-.92%202.7.98.08%201.98-.5%202.58-1.23z'/></svg>") center / contain no-repeat;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(13, 16, 23, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo-img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }

.nav-right { display: flex; align-items: center; gap: 22px; }

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

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

.nav-login:hover { color: var(--blue); }

.lang-select {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background-color: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  outline: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lang-select:hover,
.lang-select:focus {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.24);
}

.lang-select option {
  background: #151a24;
  color: #e9edf4;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.3);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 132, 255, 0.4);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }
.btn-xl { padding: 18px 44px; font-size: 1.12rem; }

/* ============================================================
   HERO — 居中 · 大标题 · 大留白
   ============================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero-accent { color: var(--blue); }

.hero-desc {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 38px;
}

.hero-cta { margin-bottom: 72px; }

/* ---- launcher window ---- */
.hero-window {
  width: min(620px, 100%);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.win {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: #10141d;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* screenshot already includes its own title bar */
.win-shot {
  display: block;
  width: 100%;
  /* width/height 属性用来占位防抖（CLS），但必须让高度跟着比例走，
     否则 height="1202" 会被当成固定高度把图拉变形 */
  height: auto;
  aspect-ratio: 1800 / 1202;
  object-fit: cover;
  object-position: top center;
}

/* ============================================================
   FEATURES — 细线分隔列表
   ============================================================ */
.features {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 130px;
}

.feature-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  border-top: 1px solid var(--hairline);
}

.feature-row:last-child { border-bottom: 1px solid var(--hairline); }

h2.feat-name { margin: 0; }

.feat-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.feat-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ============================================================
   DOWNLOAD — 居中
   ============================================================ */
.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 24px 130px;
  gap: 20px;
}

.dl-meta {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.dl-langs {
  font-size: 0.74rem;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}

/* ============================================================
   FAQ — 细线分隔，无卡片
   ============================================================ */
.faq {
  max-width: 780px;
  margin: 0 auto;
  padding: 10px 24px 130px;
}

.faq-item {
  border-top: 1px solid var(--hairline);
}

.faq-item:last-child { border-bottom: 1px solid var(--hairline); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-dim);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--blue);
}

.faq-item p {
  padding: 0 4px 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 56ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 24px 40px;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.footer-logo-img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }

.footer-legal {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-legal a { color: var(--ink-soft); border-bottom: 1px solid var(--hairline); transition: color 0.25s var(--ease); }
.footer-legal a:hover { color: var(--blue); }

.footer-disclaimer {
  font-size: 0.7rem;
  color: var(--ink-dim);
}

/* （背景为纯色，见 body { background: var(--bg) }） */

/* ============================================================
   BLUR TEXT（ReactBits BlurText 灵感：逐词模糊→清晰）
   ============================================================ */
.blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease);
}

.blur-word.in-view {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* ============================================================
   MAGNET（ReactBits Magnet 灵感：磁吸按钮）
   ============================================================ */
.magnet { transition: transform 0.3s var(--ease); will-change: transform; }
.magnet.moving { transition: none; }

/* ============================================================
   TILT + BORDER GLOW（ReactBits TiltedCard + BorderGlow 灵感）
   ============================================================ */
.hero-window { perspective: 1100px; }

.hero-window .win {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.hero-window.tilting .win { transition: none; }

.hero-window .win::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(10, 132, 255, 0.55), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.hero-window:hover .win::before { opacity: 1; }

/* ============================================================
   SHINY TEXT（ReactBits ShinyText 灵感：光泽扫过）
   ============================================================ */
.shiny {
  background: linear-gradient(100deg, var(--ink-soft) 40%, #ffffff 50%, var(--ink-soft) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 7s ease-in-out infinite;
}

@keyframes shine {
  0%        { background-position: 140% 0; }
  55%, 100% { background-position: -60% 0; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-up.in-view { opacity: 1; transform: none; }

.reveal-fade {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.reveal-fade.in-view { opacity: 1; }

/* staggered feature rows */
.feature-row:nth-child(2) { transition-delay: 0.08s; }
.feature-row:nth-child(3) { transition-delay: 0.16s; }
.feature-row:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 110px 18px 70px; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-cta { margin-bottom: 56px; }
  .features { padding: 20px 18px 90px; }
  .download { padding: 20px 18px 90px; }
  .feature-row { flex-direction: column; gap: 6px; }
  .feat-desc { text-align: left; }
  .hero-window { width: 100%; }
  /* 手机端导航精简，避免溢出 */
  .nav-logo span { display: none; }
  .nav-right { gap: 9px; }
  .nav-link { font-size: 0.85rem; }
  .nav-link[href="#features"],
  .nav-link[href="index.html#features"] { display: none; }
  .lang-select { font-size: 0.76rem; padding: 6px 8px; max-width: 84px; }
}

@media (max-width: 380px) {
  .btn-xl { padding: 16px 34px; font-size: 1rem; }
  .nav-right { gap: 8px; }
  .lang-select { max-width: 72px; padding: 5px 6px; }
}

/* ============================================================
   NAV AUTH STATE
   ============================================================ */
.nav-user {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* ============================================================
   AUTH MODAL — 极简表单
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 13, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  width: min(400px, 100%);
  background: #141924;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 30px 30px 26px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.35s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-dim);
  transition: color 0.25s var(--ease);
}

.auth-close:hover { color: var(--ink); }

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--hairline);
  margin: 14px 0 6px;
}

.auth-tab {
  padding: 10px 2px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.auth-tab:hover { color: var(--ink); }

.auth-tab.active {
  color: var(--ink);
  border-bottom-color: var(--blue);
}

.auth-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 14px 0 6px;
}

.auth-form input {
  width: 100%;
  padding: 11px 14px;
  background: #0d1017;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.auth-form input::placeholder { color: var(--ink-dim); }

.auth-form input:focus { border-color: var(--blue); }

.code-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.code-row input { flex: 1; }

.code-btn {
  flex-shrink: 0;
  padding: 9px 14px;
  font-size: 0.82rem;
}

.auth-msg {
  min-height: 1.4em;
  font-size: 0.8rem;
  color: #ff5f57;
  margin: 10px 0 4px;
}

.btn-block {
  width: 100%;
  padding: 13px;
  margin-top: 6px;
}

.auth-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-dim);
}

/* ============================================================
   DISABLED DOWNLOAD + BETA APPLICATION
   ============================================================ */
.btn-disabled {
  background: #232936;
  color: var(--ink-dim);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-outline:hover {
  background: rgba(10, 132, 255, 0.12);
  transform: translateY(-1px);
}

.dl-note {
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--ink-dim);
}

/* ============ FEEDBACK PAGE ============ */
.fb-page {
  min-height: 100vh;
}

.fb-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

.fb-back {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.fb-back:hover {
  color: var(--blue);
}

.fb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.fb-heading {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.fb-sub {
  color: var(--ink-soft);
  margin-top: 8px;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

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

.fb-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.fb-card textarea,
.fb-card input {
  width: 100%;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.fb-card textarea {
  resize: vertical;
  min-height: 140px;
}

.fb-card textarea:focus,
.fb-card input:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.fb-card textarea::placeholder,
.fb-card input::placeholder {
  color: var(--ink-dim);
}

.fb-submit {
  align-self: flex-start;
  margin-top: 4px;
}

.fb-msg {
  min-height: 1.4em;
  font-size: 0.84rem;
  color: #ff5f57;
}

/* ============ FEEDBACK BOARD ============ */
.fb-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 80px; /* 给 fixed 导航让位（同首页 hero 的 padding-top） */
  border-top: 1px solid var(--hairline);
}

.fb-sidebar {
  border-right: 1px solid var(--hairline);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fb-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fb-side-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fb-filters { display: flex; gap: 6px; }

.fb-filter {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.fb-filter:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.2); }
.fb-filter.active { background: rgba(10, 132, 255, 0.14); border-color: var(--blue); color: var(--blue); }

.fb-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.fb-li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.fb-li:hover { border-color: rgba(255, 255, 255, 0.18); }
.fb-li.active { border-color: var(--blue); background: rgba(10, 132, 255, 0.08); }
.fb-li-empty { cursor: default; color: var(--ink-dim); font-size: 0.82rem; }

.fb-li-row1 { display: flex; align-items: center; gap: 8px; }

.fb-li-type {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 5px;
  padding: 2px 7px;
  text-transform: uppercase;
}

.fb-li-type.bug { background: rgba(255, 95, 87, 0.14); color: #ff8a84; }
.fb-li-type.proposal { background: rgba(10, 132, 255, 0.14); color: var(--blue); }
.fb-li-id { font-weight: 600; color: var(--ink-soft); font-size: 0.78rem; }

.fb-li-text {
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fb-li-meta { font-size: 0.7rem; color: var(--ink-dim); }

.fb-dots { font-size: 0.62rem; letter-spacing: 1px; margin-left: auto; }
.fb-li-type.bug + .fb-li-id + .fb-dots { color: #ff8a84; }
.fb-li-type.proposal + .fb-li-id + .fb-dots { color: var(--blue); }

.fb-detail {
  padding: 32px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fb-empty { color: var(--ink-dim); font-size: 0.9rem; }

.fb-detail-head {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-detail-id {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-sev-tag { color: #ff8a84; font-size: 0.78rem; }
.fb-detail-meta { color: var(--ink-dim); font-size: 0.78rem; }

.fb-detail-body {
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.fb-replies { display: flex; flex-direction: column; gap: 10px; }
.fb-replies-title { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.fb-replies-empty { color: var(--ink-dim); font-size: 0.8rem; }

.fb-reply {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
}

.fb-reply-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-dim);
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.fb-reply-head b { color: var(--ink-soft); font-weight: 600; }
.fb-reply-body { line-height: 1.6; white-space: pre-wrap; }

.fb-reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}

.fb-reply-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 10px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.fb-reply-form textarea:focus { border-color: var(--blue); }
.fb-reply-form textarea:disabled { opacity: 0.45; }
.fb-reply-form .btn { align-self: flex-end; }

.fb-type-row,
.fb-sev-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.fb-type,
.fb-sev-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.fb-type:hover,
.fb-sev-btn:hover { color: var(--ink); }
.fb-type.active { background: rgba(10, 132, 255, 0.14); border-color: var(--blue); color: var(--blue); }
.fb-sev-btn.active { background: rgba(255, 95, 87, 0.14); border-color: #ff5f57; color: #ff8a84; }

.auth-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.auth-form textarea:focus { border-color: var(--blue); background: rgba(255, 255, 255, 0.07); }
.auth-form textarea::placeholder { color: var(--ink-dim); }

@media (max-width: 860px) {
  .fb-layout { grid-template-columns: 1fr; }
  .fb-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    max-height: 320px;
    overflow-y: auto;
  }
  .fb-detail { padding: 24px 18px 40px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up { opacity: 1; transform: none; }
}