/* ============================================================
   动效实验室 FX Lab · 设计系统
   taste-skill (design-taste-frontend) · mode: redesign-overhaul
   Dials: DESIGN_VARIANCE 6 / MOTION_INTENSITY 5 / VISUAL_DENSITY 3
   调色: off-white + off-black + 单一 burnt orange (monochrome + one pop)
   字体: 系统字体栈（面向国内网络环境，不外挂 webfont）
   主题: 用户要求仅浅色，锁定 light（skill 6.C 双模式默认被用户指令覆盖）
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --paper: #fafafa;
  --card: #fdfdfc;
  --stage: #f4f4f5;
  --ink: #18181b;
  --body: #52525b;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --accent: #d9542b;
  --accent-deep: #b64423;
  --tint: #fdeee4;
  --ok: #15803d;
  --shadow: 0 1px 2px rgba(24,24,27,.05), 0 10px 28px rgba(24,24,27,.06);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--paper); color: var(--ink); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: .92em; background: var(--stage); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px; color: var(--ink);
}

/* ---------- 详情页骨架 ---------- */
.wrap { max-width: 800px; margin: 0 auto; padding: 44px 16px 36px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 22px; transition: color .15s var(--ease); }
.back:hover { color: var(--accent-deep); }
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; margin-bottom: 10px; }
.sub { color: var(--body); font-size: 14.5px; line-height: 1.85; margin-bottom: 30px; max-width: 65ch; }
.sub b { color: var(--ink); font-weight: 600; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head .dot { display: none; }
.panel-head .spacer { flex: 1; }
.stage { border-radius: 12px; background: var(--stage); border: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fafafa; border: 1px solid var(--ink); padding: 9px 20px; border-radius: 9px; font-size: 14px; font-weight: 500; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(24,24,27,.16); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: var(--faint); border-color: var(--faint); cursor: not-allowed; box-shadow: none; transform: none; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--faint); }
.btn.small { padding: 5px 14px; font-size: 12px; border-radius: 7px; }
.btn.green { background: var(--ok); border-color: var(--ok); }

/* 提示词：整站唯一的深色组件（代码块性质，非主题反转） */
.prompt { position: relative; background: #18181b; color: #d4d4d8; border-radius: 12px; padding: 20px 18px 18px; font-size: 13.5px; line-height: 1.95; white-space: pre-line; }
.copy { position: absolute; top: 12px; right: 12px; background: rgba(250,250,250,.06); color: #e4e4e7; border: 1px solid rgba(250,250,250,.2); padding: 5px 14px; border-radius: 999px; font-size: 12px; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.copy:hover { background: rgba(250,250,250,.14); transform: translateY(-1px); }
.copy.ok { background: var(--ok); border-color: var(--ok); color: #fafafa; }
.tips { margin-top: 14px; font-size: 13px; color: var(--body); line-height: 2.05; }
.tips b { color: var(--ink); font-weight: 600; }
.tips li { margin-left: 18px; }
.hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.related a { font-size: 12.5px; color: var(--body); background: var(--card); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s, color .15s; }
.related a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--faint); color: var(--ink); }
footer.site { text-align: center; font-size: 12px; color: var(--muted); padding: 28px 16px 12px; line-height: 2; }
footer.site a { color: var(--body); text-decoration: none; }
footer.site a:hover { color: var(--accent-deep); }

/* ---------- 光晕边框（首页 hero + glow-card 页共用） ---------- */
@property --rot { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
/* z-index:0 建立层叠上下文，让 ::after 背光(z-index:-1)垫在卡片后但仍可见 */
.glow { position: relative; z-index: 0; width: 264px; min-height: 160px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.glow::before {
  content: ""; position: absolute; inset: -2px; border-radius: 16px; padding: 2px;
  background: conic-gradient(from var(--rot, 0deg), #18181b, #d9542b, #d4d4d8, #a1a1aa, #18181b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; animation: rot 3.2s linear infinite;
}
.glow::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: -16px; height: 28px;
  background: radial-gradient(ellipse at center, rgba(217,84,43,.4), transparent 70%);
  filter: blur(12px); pointer-events: none; z-index: -1; animation: breathe 2.4s ease-in-out infinite;
}
.glow h3 { font-size: 17px; letter-spacing: -.01em; color: var(--ink); margin-bottom: 8px; }
.glow p { font-size: 12.5px; color: var(--body); line-height: 1.8; }
.glow .chips { margin-top: 14px; }
.glow .chips span { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 12px; margin-right: 6px; background: var(--tint); color: var(--accent-deep); }
.glow .chips span:nth-child(2) { background: var(--stage); color: var(--body); }
.glow .chips span:nth-child(3) { background: var(--stage); color: var(--muted); }
@keyframes rot { to { --rot: 360deg; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- 无障碍：reduced motion 全部降级为静态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
