/* 窗口图鉴官网。中性黑白灰（参考 usemagpie.ai 的克制风格），只在取景框处保留品牌青蓝。 */
:root {
  --bg: #fafafa;
  --bg2: #f1f1f2;
  --card: #ffffff;
  --ink: #111112;
  --ink2: #4a4a50;
  --ink3: #85858c;
  --line: #e4e4e7;
  --btn: #111112;
  --btn-ink: #fafafa;
  --code: #f4f4f5;
  --focus: #1f7ae0;
  --run: #16a36a;
  --wait: #d18a0a;
  --term: #111318;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px -12px rgba(0, 0, 0, .18);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "HarmonyOS Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c; --bg2: #121214; --card: #161618; --ink: #f2f2f3; --ink2: #b3b3ba; --ink3: #7a7a82;
    --line: #26262a; --btn: #f2f2f3; --btn-ink: #0b0b0c; --code: #151517; --focus: #5cb3ff;
    --run: #3ddc9a; --wait: #f5b84a; --term: #0e1015;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 60px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --bg2: #121214; --card: #161618; --ink: #f2f2f3; --ink2: #b3b3ba; --ink3: #7a7a82;
  --line: #26262a; --btn: #f2f2f3; --btn-ink: #0b0b0c; --code: #151517; --focus: #5cb3ff;
  --run: #3ddc9a; --wait: #f5b84a; --term: #0e1015;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 60px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .86em; background: var(--code); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.dim { color: var(--ink3); }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; height: 60px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand img { border-radius: 6px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--ink2); font-size: 14px; }
.links a:hover { color: var(--ink); }
.nav-act { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--ink2); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--bg2); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; font: 600 15px var(--font); text-decoration: none; border: 1px solid transparent; transition: opacity .15s, background .15s; }
.btn.solid { background: var(--btn); color: var(--btn-ink); }
.btn.solid:hover { opacity: .86; }
.btn.line { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn.line:hover { background: var(--bg2); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

/* 首屏 */
.hero { padding: 72px 0 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; }
.lede { font-size: 17px; color: var(--ink2); margin: 0 0 22px; max-width: 32em; }
.pills { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px var(--mono); padding: 6px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.pills em { font-style: normal; font-family: var(--font); color: var(--ink3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); flex: none; }
.dot.run { background: var(--run); }
.dot.wait { background: var(--wait); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta.center { justify-content: center; }
.meta { font-size: 13px; color: var(--ink3); margin: 16px 0 0; }
.meta a { text-decoration: underline; text-underline-offset: 3px; }
.hero-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }

/* 应用名称条 */
.strip { padding: 40px 0 24px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink3); margin: 0 0 14px; }
.kicker.center { text-align: center; }
.logos { list-style: none; padding: 0; margin: 0 auto 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; max-width: 860px; }
.logos li { font-weight: 600; font-size: 15px; color: var(--ink2); }

/* 区块 */
.sec { padding: 88px 0; }
.sec h2, .end h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 0 0 16px; }
.sec-lede { color: var(--ink2); font-size: 17px; max-width: 40em; margin: 0 0 40px; }

/* 怎么用：窗口墙演示 */
.how { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.wall { position: relative; aspect-ratio: 1.25; border-radius: 16px; padding: 16px 16px 34px; background: var(--bg2); border: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px; height: 100%; }
.tile { position: relative; border-radius: 8px; background: var(--term); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; display: flex; flex-direction: column; transition: opacity .4s; }
.tile.web { background: #f6f7f9; border-color: #e3e5e9; }
.tile .bar { height: 14px; display: flex; align-items: center; gap: 4px; padding: 0 6px; background: rgba(255, 255, 255, .05); flex: none; }
.tile.web .bar { background: #e7e9ee; }
.tile .bar i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.tile.web .bar i { background: rgba(0, 0, 0, .2); }
.tile .lines { padding: 6px 7px; display: flex; flex-direction: column; gap: 4px; }
.tile .lines span { height: 3px; border-radius: 2px; background: rgba(220, 225, 235, .26); }
.tile .lines span.g { background: rgba(61, 220, 154, .55); }
.tile .lines span.o { background: rgba(245, 133, 92, .55); }
.tile.web .lines span { background: rgba(17, 17, 18, .12); }
.tile.web .lines span.h { height: 6px; background: rgba(31, 122, 224, .3); width: 60%; }
.tile .name { margin-top: auto; padding: 3px 7px 5px; font: 600 8.5px/1.2 var(--mono); color: rgba(220, 225, 235, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.web .name { color: rgba(17, 17, 18, .5); }
.tile .st { position: absolute; top: 20px; right: 6px; width: 6px; height: 6px; border-radius: 50%; }
.tile .st.run { background: #3ddc9a; }
.tile .st.wait { background: #f5b84a; }
.wall.seeking .tile:not(.on) { opacity: .5; }
.focus { position: absolute; pointer-events: none; transition: all .55s cubic-bezier(.2, .8, .2, 1); }
.focus span { position: absolute; width: 16px; height: 16px; border: 2.5px solid var(--focus); }
.focus .tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; }
.focus .tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; border-radius: 0 5px 0 0; }
.focus .bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; border-radius: 0 0 0 5px; }
.focus .br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; border-radius: 0 0 5px 0; }
.focus-tag { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 600 12px var(--mono); white-space: nowrap; box-shadow: var(--shadow); }
.focus-tag .dot { background: var(--run); }
.steps-row { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps-row li { counter-increment: s; position: relative; padding-left: 42px; color: var(--ink2); }
.steps-row li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font: 700 13px var(--mono); color: var(--ink); }
.steps-row b, .leads b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* AI 编程：图文交替 */
.row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 56px; }
.row.flip .row-shot { order: 2; }
.row-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.row-text h3 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 18px; }
.row-text.wide { grid-column: 1 / -1; }
.leads { list-style: none; padding: 0; margin: 0; }
.leads li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink2); }
.leads.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }

/* 功能卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.cards article { padding: 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.cards h3 { font-size: 16px; margin: 0 0 6px; }
.cards p { margin: 0; color: var(--ink2); font-size: 14.5px; }

/* 安装 */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.way { min-width: 0; padding: 26px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.way h3 { font-size: 18px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.way p { color: var(--ink2); }
.tag { font-size: 11px; font-weight: 600; color: var(--run); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 9px 9px 9px 14px; margin: 12px 0; }
.cmd code { min-width: 0; flex: 1; border: 0; background: none; padding: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 12.5px; }
.cmd code::before { content: "$ "; color: var(--ink3); }
.copy { flex: none; font: 600 12px var(--font); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 5px 11px; cursor: pointer; }
.copy:hover { background: var(--bg2); }
.more-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.steps { padding-left: 20px; margin: 0; color: var(--ink2); }
.steps li { margin-bottom: 10px; }
.steps b { color: var(--ink); }
.steps a { text-decoration: underline; text-underline-offset: 3px; }
.note { font-size: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); margin: 14px 0 0; }
.after { color: var(--ink2); margin-top: 24px; font-size: 15px; }
.after a { text-decoration: underline; text-underline-offset: 3px; }

/* 隐私 */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* 问答 */
.faq { max-width: 760px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink3); font: 500 20px/1 var(--mono); }
details[open] summary::after { content: "−"; }
details p { color: var(--ink2); margin: 10px 0 0; }

.end { padding: 96px 0; border-top: 1px solid var(--line); }
.end-in { text-align: center; }
.end h2 { margin-bottom: 26px; }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: 44px 0 26px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand img { border-radius: 6px; }
.foot-brand p { margin: 2px 0 0; color: var(--ink3); font-size: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot-col h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; color: var(--ink3); font-weight: 600; }
.foot-col a { text-decoration: none; color: var(--ink2); font-size: 14px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 12.5px; }

/* 响应式 */
@media (max-width: 960px) {
  .links { display: none; }
  .nav-act { margin-left: auto; }
  .hero-in, .how, .row, .privacy, .ways { grid-template-columns: 1fr; }
  .row.flip .row-shot { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .leads.cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 32px; }
  .sec { padding: 64px 0; }
  .cards, .foot-in { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
  .wall { aspect-ratio: .9; }
  .cta .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .focus, .tile { transition: none; }
}
