/* 显影 Develop Log 官网：暗房风格（和 App 首页一致：深色底、安全灯光晕、胶片边框、琥珀色日期戳） */
:root {
  color-scheme: dark;
  --bg: #0e0c0a;
  --panel: #171410;
  --panel-2: #1e1a15;
  --line: #2c2620;
  --fg: #ece5da;
  --muted: #9b9287;
  --amber: #f2a73b;
  --amber-dim: #b97b26;
  --safelight: rgba(196, 52, 28, 0.32);
  --radius: 14px;
  --max: 1120px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "PingFang TC", "Hiragino Sans", "Noto Sans CJK SC", sans-serif;
  overflow-x: hidden;
}
:lang(zh-Hant) body, body:lang(zh-Hant) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Helvetica Neue", sans-serif; }
:lang(ja) body, body:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Helvetica Neue", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 安全灯：页面顶部一团暗红的光 */
.safelight {
  position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 0%, var(--safelight), transparent 70%),
    radial-gradient(40% 40% at 10% 8%, rgba(242, 167, 59, 0.08), transparent 70%);
}

.top, main, footer { position: relative; z-index: 1; }
.top {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.langs { display: flex; gap: 4px; flex-wrap: wrap; font-size: 13px; }
.langs a, .langs span { padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.langs span { color: var(--fg); background: var(--panel-2); }
.langs a:hover { color: var(--fg); text-decoration: none; }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
.eyebrow {
  margin: 0 0 14px; color: var(--amber); font: 600 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.lead, .section-lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 720px; }
.lead { margin: 22px 0 0; }
.section-lead { margin: 16px 0 0; }
.fine { color: var(--muted); font-size: 13px; margin: 20px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* 首屏 */
.hero { padding-top: 56px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; align-items: center; }
.soon {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--amber); color: #1b1206; font-weight: 700; font-size: 15px;
}
.ghost { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font-size: 15px; }
.ghost:hover { text-decoration: none; border-color: var(--amber-dim); }

/* 前后对比：拖动看 Log 原片和调色后 */
.compare {
  position: relative; margin: 48px 0 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: #000; user-select: none; -webkit-user-select: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.compare > img, .compare .before img { width: 100%; height: 100%; object-fit: cover; }
.compare .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(14, 12, 10, 0.75); border: 2px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.compare input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.stamp {
  position: absolute; bottom: 14px; padding: 2px 6px; pointer-events: none;
  color: #ff9a2e; font: 700 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em;
  text-shadow: 0 0 6px rgba(255, 120, 20, 0.6);
}
.stamp.left { left: 14px; }
.stamp.right { right: 14px; }
.note { color: var(--muted); font-size: 13px; margin: 14px 0 0; text-align: center; }

/* 胶片条：同一帧，四种结果 */
.strip {
  list-style: none; padding: 18px 14px; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: #050403; border-radius: 10px; position: relative;
}
.strip::before, .strip::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 8px;
  background: repeating-linear-gradient(90deg, #2a241d 0 12px, transparent 12px 24px); border-radius: 2px;
}
.strip::before { top: 5px; }
.strip::after { bottom: 5px; }
.strip li { display: flex; flex-direction: column; gap: 8px; }
.strip img { border-radius: 3px; aspect-ratio: 16 / 9; object-fit: cover; }
.strip b { color: #ff9a2e; font: 700 12px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.strip span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* 左右分栏：文字 + 手机截图 */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.split.reverse .copy { order: 2; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.points li { padding-left: 26px; position: relative; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 2px;
  background: var(--amber); box-shadow: 0 0 10px rgba(242, 167, 59, 0.5);
}
.phone {
  justify-self: center; width: min(320px, 78vw); padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #2b2620, #121010); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img { border-radius: 37px; width: 100%; }

/* 功能卡片 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 0; }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid p { color: var(--muted); margin: 10px 0 0; font-size: 15px; line-height: 1.6; }

.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font: 600 14px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em;
}

/* 价格 */
.pricing h2, .pricing > .section-lead { text-align: center; margin-left: auto; margin-right: auto; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.plan.featured { border-color: var(--amber-dim); box-shadow: 0 0 0 1px var(--amber-dim), 0 20px 60px rgba(242, 167, 59, 0.08); }
.price { font-size: 40px; font-weight: 800; margin: 10px 0 0; letter-spacing: -0.02em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 15px; color: #d6cec2; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }

footer {
  max-width: var(--max); margin: 40px auto 0; padding: 36px var(--gutter) 48px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--muted); font-size: 14px;
}
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; }
.foot-brand img { border-radius: 6px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer .copy { margin: 0; width: 100%; font-size: 12px; }

@media (max-width: 900px) {
  section { padding: 56px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .copy { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 28px; }
  .grid { grid-template-columns: 1fr; }
  .compare { margin-top: 36px; border-radius: 10px; }
  .stamp { font-size: 11px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
