/* ============================================================
   东吴摄影 · 免费软件 (/free) — 沉浸式深色版
   变量覆盖仅作用于本页 body；与 /showcase 同一暗房基调
   依赖：site.css 变量体系 + free.js 的渐进增强类名
   ============================================================ */

/* ── 页面级深色变量（覆盖 site.css :root，含导航/页脚） ── */
.free-body {
  --bg: #0c0b0e;
  --bg-elev: #16151a;
  --bg-soft: #1c1b21;
  --text: #ece8df;
  --text-2: #b0a99b;
  --text-3: #7d7769;
  --line: rgba(236, 232, 223, .16);
  --line-soft: rgba(236, 232, 223, .08);
  --accent: #c9a468;
  --accent-strong: #e0c08c;
  --accent-soft: rgba(201, 164, 104, .14);
  --nav-bg: rgba(12, 11, 14, .72);
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
  background: var(--bg);
  color: var(--text);
}
/* 页面始终深色，暗色切换按钮在此页无意义 */
.free-body .nav-dark-toggle { display: none; }
.free-page { padding-top: 0; }

/* ── 共用排版 ─────────────────────────────── */
.fr-kicker {
  font-size: .74rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(236, 232, 223, .62);
  margin-bottom: 22px;
}
.fr-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.2;
}
.fr-desc {
  margin-top: 18px;
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  letter-spacing: .12em;
  color: rgba(236, 232, 223, .85);
}
.fr-sub { color: var(--text-2); font-size: .95rem; margin-top: 14px; }
.fr-hint {
  margin-top: 46px;
  font-size: .78rem;
  letter-spacing: .3em;
  color: rgba(236, 232, 223, .5);
  animation: frHintFloat 2.6s ease-in-out infinite;
}
@keyframes frHintFloat {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(8px); opacity: 1; }
}
.fr-cta { margin-top: 44px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.fr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-size: .82rem;
  letter-spacing: .2em;
  text-decoration: none;
  border-radius: var(--r-sm);
  border: 1px solid rgba(236, 232, 223, .5);
  color: #ece8df;
  transition: transform .35s var(--ease-out), background-color .35s ease, color .35s ease, border-color .35s ease;
}
.fr-btn:hover { transform: translateY(-2px); background: #ece8df; color: #17161a; border-color: #ece8df; }
.fr-btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.fr-btn--solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

/* ── 第 1 幕 · 3D 软件长廊 ─────────────────── */
.fr-corridor { position: relative; background: #0c0b0e; }
.fr-corridor-stage { display: none; position: relative; height: 100vh; overflow: hidden; }
.fr-corridor--live .fr-corridor-stage { display: block; }
.fr-corridor--live .fr-corridor-static { display: none; }
#frGl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fr-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.fr-overlay.fr-on { pointer-events: auto; }
.fr-overlay .fr-title, .fr-overlay .fr-desc { text-shadow: 0 4px 40px rgba(0, 0, 0, .65); }
.fr-corridor-static {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(201, 164, 104, .16), transparent 70%),
    radial-gradient(50% 40% at 25% 75%, rgba(122, 140, 201, .14), transparent 70%),
    #0c0b0e;
}
.fr-corridor-static-inner { position: relative; z-index: 1; padding: 90px 24px; }

/* ── 第 2 幕 · 旗舰软件 · 装裱缩放 ───────────── */
.fr-mat { position: relative; background: #0c0b0e; }
.fr-mat-stage {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 24px;
}
.fr-window {
  width: min(88vw, 920px);
  border-radius: 14px;
  overflow: hidden;
  background: #15151c;
  border: 1px solid rgba(236, 232, 223, .14);
  box-shadow: 0 50px 110px -35px rgba(0, 0, 0, .9);
  line-height: 0;
  will-change: transform;
}
.fr-window-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: #1b1b23;
  border-bottom: 1px solid rgba(236, 232, 223, .08);
}
.fr-window-bar i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.fr-window-bar i:nth-child(1) { background: #ff5f57; }
.fr-window-bar i:nth-child(2) { background: #febc2e; }
.fr-window-bar i:nth-child(3) { background: #28c840; }
.fr-window-bar span {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: rgba(236, 232, 223, .45);
}
.fr-window-body {
  position: relative;
  min-height: 320px;
  height: min(46vh, 500px);
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 64px);
  overflow: hidden;
}
.fr-grad--gold { background: linear-gradient(128deg, #191510, #2e2416 48%, #4a3a22); }
.fr-grad--violet { background: linear-gradient(128deg, #12131c, #1f2340 48%, #323a66); }
.fr-watermark {
  position: absolute;
  right: -2%;
  bottom: -14%;
  font-family: var(--font-serif);
  font-size: clamp(160px, 30vh, 300px);
  line-height: 1;
  color: rgba(255, 255, 255, .07);
  pointer-events: none;
  user-select: none;
}
.fr-feat { position: relative; z-index: 1; list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.fr-feat li {
  font-size: clamp(.95rem, 1.9vw, 1.35rem);
  letter-spacing: .1em;
  color: rgba(236, 232, 223, .92);
  padding: 8px 0;
  border-bottom: 1px solid rgba(236, 232, 223, .1);
}
.fr-feat li:last-child { border-bottom: 0; }
.fr-mat-caption { text-align: center; margin-top: clamp(22px, 4vh, 40px); }
.fr-mat-caption .fr-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.fr-stats { margin-top: 16px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.fr-stats span {
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--accent);
  border: 1px solid rgba(201, 164, 104, .35);
  border-radius: 999px;
  padding: 7px 18px;
}
.fr-stats i { font-style: normal; color: rgba(236, 232, 223, .7); }
.fr-mat-caption .fr-btn { margin-top: 24px; }

/* ── 第 3 幕 · 更多工具 ────────────────────── */
.fr-more { padding: 120px 24px 60px; max-width: 1240px; margin: 0 auto; }
.fr-section-head { text-align: center; margin-bottom: 56px; }
.fr-section-head .fr-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.fr-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding-bottom: 60px; }
.fr-mini {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color .35s ease, box-shadow .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.fr-mini:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.fr-mini h3 { font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.fr-mini .d { color: var(--text-2); font-size: .88rem; flex: 1; }
.fr-mini .u { margin-top: 20px; font-family: var(--font-mono); font-size: .76rem; color: var(--accent); word-break: break-all; }
.fr-mini .v { margin-top: 8px; font-size: .8rem; letter-spacing: .14em; color: var(--text-3); transition: color .3s; }
.fr-mini:hover .v { color: var(--accent); }

/* ── 第 4 幕 · 开源项目 · 3D 翻页卡 ───────────── */
.fr-oss { padding: 60px 24px 140px; max-width: 1060px; margin: 0 auto; }
.fr-oss-list { display: flex; flex-direction: column; gap: 48px; }
.fr-oss-flip { perspective: 1400px; }
.fr-oss-card {
  position: relative;
  display: block;
  padding: clamp(28px, 4.5vw, 48px);
  background: linear-gradient(150deg, #17161d, #100f14);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  text-decoration: none;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.fr-oss-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.fr-oss-badge {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .28em;
  color: var(--accent);
  border: 1px solid rgba(201, 164, 104, .4);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.fr-oss-star {
  position: absolute;
  top: clamp(28px, 4.5vw, 48px);
  right: clamp(28px, 4.5vw, 48px);
  font-size: .9rem;
  color: var(--accent);
  letter-spacing: .08em;
}
.fr-oss-card h3 { font-family: var(--font-mono); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: .02em; margin-bottom: 16px; }
.fr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fr-chips span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(236, 232, 223, .65);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 12px;
}
.fr-oss-card .d { color: var(--text-2); font-size: .9rem; max-width: 760px; }
.fr-oss-card .u { display: block; margin-top: 22px; font-family: var(--font-mono); font-size: .78rem; color: var(--accent); word-break: break-all; }
.fr-oss-card .v { display: inline-block; margin-top: 8px; font-size: .8rem; letter-spacing: .14em; color: var(--text-3); transition: color .3s; }
.fr-oss-card:hover .v { color: var(--accent); }

/* ── 移动端 ─────────────────────────────── */
@media (max-width: 720px) {
  .fr-title { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .fr-overlay { padding: 80px 20px; }
  .fr-window-body { min-height: 220px; height: min(38vh, 340px); }
  .fr-feat li { letter-spacing: .04em; padding: 6px 0; }
  .fr-watermark { font-size: clamp(120px, 22vh, 200px); }
  .fr-stats { gap: 12px; }
  .fr-more, .fr-oss { padding-left: 18px; padding-right: 18px; }
}
