/* LCR LIVE PHOTO — 独立控制台
 * 主题：绿色系 + 中性灰，严禁蓝/紫渐变
 * 含动效：页面入场、卡片递进浮现、hover 提升、导航滑动指示、播放中脉冲
 */
:root {
  --bg: #eef3ef;
  --surface: #ffffff;
  --surface-muted: #f5f9f6;
  --ink: #13231b;
  --muted: #5b6b62;
  --faint: #8fa199;
  --line: #dbe6de;
  --line-strong: #c2d4ca;
  --primary: #148a5e;
  --primary-strong: #0e6c48;
  --accent: #2fae79;
  --accent-soft: #dbf4e7;
  --warn: #b7791f;
  --warn-soft: #fbf2df;
  --danger: #c0392b;
  --danger-soft: #fbefed;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(19, 35, 27, .06), 0 1px 2px rgba(19, 35, 27, .04);
  --shadow: 0 10px 30px rgba(19, 35, 27, .10);
  --shadow-lg: 0 24px 60px rgba(19, 35, 27, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 174, 121, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(20, 138, 94, .07), transparent 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }

/* ---------- 动效基元 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.96); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulseLive { 0%, 100% { box-shadow: 0 0 0 rgba(255, 255, 255, .35); } 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* 路由切换动画 */
.route-enter { animation: fadeUp .45s var(--ease) both; }
/* 卡片递进浮现：父容器加 .stagger，子元素依次延时 */
.stagger > * { animation: fadeUp .55s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .03s; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .13s; }
.stagger > *:nth-child(4) { animation-delay: .18s; }
.stagger > *:nth-child(5) { animation-delay: .23s; }
.stagger > *:nth-child(6) { animation-delay: .28s; }
.stagger > *:nth-child(7) { animation-delay: .33s; }
.stagger > *:nth-child(8) { animation-delay: .38s; }
.stagger > *:nth-child(n+9) { animation-delay: .43s; }

/* ---------- 布局骨架 ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .4s var(--ease); }
body.scrolled .topbar::after { opacity: .6; }
body.scrolled .topbar { box-shadow: 0 8px 30px rgba(19, 35, 27, .10); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.2px; color: var(--ink); }
.brand .mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 16px rgba(20, 138, 94, .32);
  transition: transform .3s var(--ease-bounce);
}
.brand:hover .mark { transform: rotate(-8deg) scale(1.08); }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--faint); letter-spacing: .3px; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; position: relative; }
.nav button {
  background: transparent; border: none; padding: 8px 13px; border-radius: 9px;
  color: var(--muted); font-size: 14px; position: relative;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav button:hover { background: var(--surface-muted); color: var(--ink); }
.nav button.on { background: var(--accent-soft); color: var(--primary); font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 10px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 30px 24px 70px; width: 100%; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card + .card { margin-top: 16px; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.card-inner {
  background: var(--surface-muted); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card-inner:hover { border-color: var(--line-strong); transform: translateY(-1px); }
h1 { font-size: 30px; letter-spacing: -.7px; margin: 0 0 8px; line-height: 1.2; }
h2 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.3px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.grad-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid transparent; border-radius: 10px; padding: 10px 17px;
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 8px 20px rgba(20, 138, 94, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 138, 94, .38); background: linear-gradient(135deg, var(--primary-strong), var(--primary)); }
.btn-ghost { background: rgba(255, 255, 255, .6); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); background: #fff; }
.btn-soft { background: var(--accent-soft); color: var(--primary); }
.btn-soft:hover { background: #c9efda; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .9; transform: translateY(-1px); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- 输入 ---------- */
.input, .select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 13px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-1px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }
.code-input { font-family: var(--mono); letter-spacing: 2px; text-transform: uppercase; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .3s var(--ease); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.stat:hover::before { opacity: 1; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; color: var(--ink); }
.stat .v.small { font-size: 18px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-muted); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--surface-muted); vertical-align: middle; transition: background .2s var(--ease); }
.table tbody tr { transition: background .2s var(--ease); }
.table tbody tr:hover td { background: var(--accent-soft); }
.table tbody tr:last-child td { border-bottom: none; }
.mono { font-family: var(--mono); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-green { background: var(--accent-soft); color: var(--primary); }
.tag-gray { background: #edf1ee; color: var(--muted); }
.tag-red { background: var(--danger-soft); color: var(--danger); }
.tag-amber { background: var(--warn-soft); color: var(--warn); }

/* ---------- 实况图网格 ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #000; position: relative; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  animation: pop .4s var(--ease-bounce) both;
}
.photo video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.photo .live-host video { transition: transform .5s var(--ease); }
.photo .live-host { background: #0a0a0a; }
.photo:hover .live-host video { transform: scale(1.04); }
.photo .meta {
  background: var(--surface); padding: 11px 13px; position: relative; z-index: 2;
  transition: background .3s var(--ease);
}
.photo:hover .meta { background: var(--accent-soft); }
.photo .code { font-family: var(--mono); font-weight: 700; letter-spacing: 1.5px; font-size: 13px; }
.photo .sub { font-size: 12px; color: var(--faint); margin-top: 3px; }
.photo .acts {
  position: absolute; top: 9px; left: 9px; display: flex; gap: 6px; z-index: 3;
  opacity: 0; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.photo:hover .acts, .photo:focus-within .acts { opacity: 1; transform: none; }
.photo .acts button {
  width: 28px; height: 28px; display: grid; place-items: center; border: none; border-radius: 8px;
  background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-bounce), background .2s var(--ease);
}
.photo .acts button:hover { background: #fff; transform: scale(1.12); }
.badge-live {
  position: absolute; top: 9px; right: 9px; background: rgba(0, 0, 0, .5); color: #fff;
  font-size: 10px; padding: 3px 8px; border-radius: 6px; z-index: 3; letter-spacing: .5px;
  display: inline-flex; align-items: center; gap: 5px;
}
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3dffa0; animation: pulseLive 1.6s var(--ease) infinite; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 28px;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px;
  box-shadow: var(--shadow-lg); z-index: 999; display: flex; align-items: center; gap: 8px;
  animation: rise .3s var(--ease-bounce);
}
.toast::before { content: "✓"; font-weight: 800; color: var(--accent); }
.toast.err { background: var(--danger); }
.toast.err::before { content: "!"; color: #fff; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px) scale(.95); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* ---------- 空状态 ---------- */
.empty { text-align: center; color: var(--faint); padding: 60px 10px; animation: fadeUp .5s var(--ease) both; }
.empty .big { font-size: 16px; color: var(--muted); font-weight: 600; }

/* ---------- 认证卡片 ---------- */
.auth-card { max-width: 420px; margin: 48px auto; animation: pop .5s var(--ease-bounce) both; }
.auth-tabs { display: flex; gap: 6px; background: var(--surface-muted); padding: 4px; border-radius: 11px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 8px; font-weight: 600; color: var(--muted); transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.auth-tabs button.on { background: #fff; color: var(--primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.auth-tabs button:not(.on):hover { color: var(--ink); }

/* ---------- 分段代码 ---------- */
.code-block { background: #10231a; color: #d7f0e4; padding: 16px 18px; border-radius: var(--radius); font-family: var(--mono); font-size: 13px; overflow-x: auto; line-height: 1.6; position: relative; }
.code-block:hover { box-shadow: inset 0 0 0 1px rgba(47, 174, 121, .35); }
.code-block::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: linear-gradient(180deg, var(--accent), var(--primary)); }

/* ---------- 徽标/指标行 ---------- */
.divider { border: none; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------- 落地页 hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 24px 56px; border-radius: 22px; color: #fff;
  background:
    radial-gradient(900px 420px at 75% -20%, rgba(255, 255, 255, .18), transparent 55%),
    radial-gradient(700px 380px at 15% 110%, rgba(47, 174, 121, .55), transparent 60%),
    linear-gradient(135deg, #0b4d36, #148a5e 55%, #1fa972);
  box-shadow: var(--shadow-lg);
}
.hero .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; }
.hero .orb.o1 { width: 220px; height: 220px; background: #bdf3d7; top: -80px; right: -40px; animation: floaty 7s ease-in-out infinite; }
.hero .orb.o2 { width: 160px; height: 160px; background: #38d48d; bottom: -60px; left: -30px; animation: floaty 9s ease-in-out infinite reverse; }
.hero h1 { color: #fff; margin-top: 8px; }
.hero p.lead { color: rgba(255, 255, 255, .86); max-width: 620px; margin: 12px auto 26px; font-size: 16px; }
.hero .hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; border-color: #fff; }

/* 步骤卡 */
.step-card { text-align: left; }
.step-num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 14px rgba(20, 138, 94, .25); margin-bottom: 12px;
  transition: transform .3s var(--ease-bounce);
}
.step-card:hover .step-num { transform: scale(1.12) rotate(-6deg); }

/* ---------- 骨架屏占位 ---------- */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-muted) 25%, var(--line) 40%, var(--surface-muted) 60%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* ---------- 接入文档页 ---------- */
.docs-hero { padding: 40px 0 8px; }
.docs-hero h1 { font-size: 32px; letter-spacing: -1px; }
.docs-hero p { max-width: 640px; }
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; margin-top: 24px; }
.docs-toc {
  position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface-muted); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; font-size: 13px;
}
.docs-toc b { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); padding: 4px 6px; }
.docs-toc a { display: block; padding: 6px 8px; border-radius: 7px; color: var(--muted); }
.docs-toc a:hover { background: var(--accent-soft); color: var(--primary); }
.docs-toc a.docs-toc-on { background: var(--accent-soft); color: var(--primary); font-weight: 600; }
.docs-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.docs-section { scroll-margin-top: 84px; }
.docs-section h2 { font-size: 21px; letter-spacing: -.4px; display: flex; align-items: center; gap: 10px; }
.docs-section h3 { font-size: 15px; margin: 18px 0 8px; color: var(--ink); }
.docs-sub { color: var(--muted); font-size: 14px; margin: 6px 0 14px; line-height: 1.7; }
.fw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 6px; }
.fw-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.fw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.fw-card .fw-head { display: flex; align-items: center; justify-content: space-between; }
.fw-card .fw-name { font-weight: 700; font-size: 15px; }
.fw-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.fw-card a { font-size: 13px; font-weight: 600; }
.docs-steps { list-style: none; padding: 0; margin: 0; counter-reset: dstep; }
.docs-steps > li { position: relative; padding: 2px 0 14px 34px; counter-increment: dstep; }
.docs-steps > li::before {
  content: counter(dstep); position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  border-radius: 7px; background: var(--accent-soft); color: var(--primary); font-weight: 800;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.docs-tip { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--primary); font-size: 13px; line-height: 1.6; margin: 12px 0; }
.docs-tip.warn { background: var(--warn-soft); color: var(--warn); }
.docs-code { position: relative; font-family: var(--mono); }
.docs-code .code-lang {
  position: absolute; top: 8px; right: 10px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: rgba(215, 240, 228, .55); text-transform: uppercase;
}
.code-block.docs-copy { cursor: pointer; }
.code-block.docs-copy::after { content: "复制"; position: absolute; top: 8px; left: 10px; font-size: 11px; color: rgba(215,240,228,.5); letter-spacing: .5px; }
.code-block.docs-copy.copied::after { content: "已复制 ✓"; color: var(--accent); }
.docs-copybtn {
  position: absolute; top: 6px; right: 6px; border: 1px solid rgba(215,240,228,.25); background: rgba(255,255,255,.06);
  color: var(--accent-soft); font-size: 11px; padding: 3px 9px; border-radius: 6px; cursor: pointer; z-index: 2;
}
.docs-copybtn:hover { background: rgba(255,255,255,.14); }
.kbd { font-family: var(--mono); background: var(--surface-muted); border: 1px solid var(--line-strong); border-bottom-width: 2px; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.attr-table tr td:first-child { white-space: nowrap; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .docs-toc b { display: none; }
}
@media (max-width: 520px) {
  .docs-hero h1 { font-size: 25px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .topbar-inner, .wrap { padding-left: 14px; padding-right: 14px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  h1 { font-size: 24px; }
  .hero { padding: 48px 18px 40px; }
  .photos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}