/*
 * [INPUT]: 依赖 styles.css 的深色 token 与 index.html 中的应用示意结构。
 * [OUTPUT]: 提供首屏深色应用窗口、转换流水线、设备书库及产品巡览的 CSS 复刻。
 * [POS]: 与主样式并列的界面示意层；不承载真实书籍转换或设备操作。
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */

/* ── Hero app window ── */
.window { overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: #1a1a1d; box-shadow: 0 30px 70px #0007,0 0 0 1px #fff1; }
.win-bar { display: flex; align-items: center; gap: .8rem; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--border); background: #1d1d20; white-space: nowrap; }
.lights { display: flex; gap: 5px; flex: none; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win-title { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; }
.win-title img { width: 17px; height: 17px; border-radius: 4px; }
.win-nav { display: flex; gap: .9rem; margin: auto; color: var(--ink-faint); font-size: .72rem; }
.win-nav b { color: var(--ink); }
.win-status { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .55rem; border: 1px solid #27543b; border-radius: 99px; color: #78d99c; font-size: .68rem; }
.win-status i,.demo-done i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px #30d1589a; }
.win-body { padding: 18px; }
.demo-top { display: flex; align-items: start; justify-content: space-between; gap: .6rem; }
.demo-top > div { display: grid; }
.demo-top strong { font-size: .94rem; }
.demo-top small { color: var(--ink-faint); font-size: .7rem; }
.demo-device { color: #95d9ae; font: .68rem var(--mono); white-space: nowrap; }
.demo-switch { display: inline-flex; gap: 3px; margin-top: 17px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: #141416; }
.demo-switch button { padding: .38rem .7rem; border: 0; border-radius: 5px; background: transparent; color: var(--ink-faint); cursor: pointer; font-size: .71rem; }
.demo-switch button.active { background: #343034; color: #ffbf91; box-shadow: 0 1px 4px #0005; }
.demo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 133px; margin-top: 14px; border: 1px dashed #555055; border-radius: 10px; background: linear-gradient(150deg,#1e1c1e,#19191b); text-align: center; }
.demo-drop-icon { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: .35rem; border-radius: 8px; background: #3b2921; color: var(--accent); font-size: 1.2rem; }
.demo-drop strong { font-size: .78rem; }
.demo-drop > span:last-child { color: var(--ink-faint); font: .65rem var(--mono); }
.demo-list-title { display: flex; justify-content: space-between; align-items: center; margin: 16px 2px 8px; }
.demo-list-title b { font-size: .76rem; }
.demo-list-title span { color: var(--ink-faint); font-size: .68rem; }
.demo-row { display: flex; align-items: center; gap: .7rem; min-width: 0; margin-top: 6px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; background: #212124; }
.demo-cover { display: grid; place-items: center; width: 26px; height: 35px; flex: none; border-radius: 2px 4px 4px 2px; box-shadow: inset 3px 0 #0004,1px 2px 5px #0006; color: #f5eadd; text-align: center; font: .52rem/1.15 serif; letter-spacing: .1em; }
.cover-a { background: linear-gradient(145deg,#466e72,#1e3944); }
.cover-b { background: linear-gradient(145deg,#b87a58,#754136); }
.demo-row-copy { display: grid; min-width: 0; }
.demo-row-copy b { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-row-copy small { overflow: hidden; color: var(--ink-faint); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-done { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; color: #8bdaaa; font-size: .62rem; white-space: nowrap; }
.demo-wait { margin-left: auto; color: #d3a889; font-size: .62rem; white-space: nowrap; }

/* ── Feature visuals ── */
.pipeline,.device-visual,.library-visual { padding: clamp(1.35rem,3vw,2rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.pipeline { display: grid; gap: 0; }
.pipe-row { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 0 1rem 1.5rem; border-left: 1px solid #985134; }
.pipe-row:last-child { border-left-color: transparent; }
.pipe-row::before { content: ""; position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #ff9c5280; }
.pipe-no { color: var(--accent); font: .75rem var(--mono); }
.pipe-row > div { display: grid; }
.pipe-row b { font-size: 1rem; }
.pipe-row small { color: var(--ink-muted); font-size: .82rem; }
.pipe-check { margin-left: auto; color: #8ed6a3; }
.device-visual { display: grid; gap: .65rem; }
.visual-heading { display: flex; align-items: center; gap: .5rem; padding: .4rem .2rem .8rem; }
.visual-heading b { font-size: .95rem; }
.visual-heading small { margin-left: auto; color: var(--ink-faint); font-size: .72rem; }
.visual-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.device-entry { display: flex; align-items: center; gap: .85rem; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.entry-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 8px; background: #2f2d2a; color: var(--accent); font-size: 1.2rem; }
.device-entry > span:nth-child(2) { display: grid; }
.device-entry b { font-size: .91rem; }
.device-entry small { color: var(--ink-faint); font-size: .75rem; }
.device-entry em { margin-left: auto; color: #7fd9a2; font-size: .72rem; white-space: nowrap; }
.visual-foot { padding: .55rem .2rem 0; color: var(--ink-faint); font-size: .78rem; }
.library-visual { overflow: hidden; padding: 0; }
.library-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.library-head b { font-size: .95rem; }
.library-head span { color: var(--ink-muted); font-size: .74rem; }
.library-item { display: flex; align-items: center; gap: .8rem; margin: .7rem 1rem 0; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.lib-cover { width: 26px; height: 35px; flex: none; border-radius: 2px 4px 4px 2px; box-shadow: inset 3px 0 #0005; }
.lib-one { background: #3c686d; }.lib-two { background: #af6a4f; }.lib-three { background: #6f7060; }
.library-item > span { display: grid; }
.library-item b { font-size: .85rem; }
.library-item small { color: var(--ink-faint); font-size: .72rem; }
.library-item em { margin-left: auto; color: var(--ink-faint); font: .67rem var(--mono); }
.library-bottom { display: flex; justify-content: space-between; margin: .9rem 1rem 1rem; color: var(--ink-faint); font-size: .72rem; }
.library-bottom span:last-child { color: var(--accent); }

/* ── Tour mini windows ── */
.tour-visual { height: 182px; border-bottom: 1px solid var(--border); background: #111113; }
.tour-queue { padding: 1.2rem; }
.mini-title { display: flex; justify-content: space-between; color: var(--ink); font-size: .78rem; font-weight: 650; }
.mini-title span { color: var(--ink-faint); font-weight: 400; }
.mini-task { display: flex; align-items: center; gap: .6rem; margin-top: .55rem; padding: .45rem .55rem; border: 1px solid var(--border); border-radius: 7px; background: #212124; font-size: .7rem; }
.mini-task i { width: 19px; height: 27px; border-radius: 2px; background: #477075; }
.mini-task:nth-child(3) i { background: #ab7050; }
.mini-task span { display: grid; }
.mini-task small { color: var(--ink-faint); font-size: .59rem; }
.mini-task b { margin-left: auto; color: #8bd6a4; font-size: .62rem; }
.mini-task:nth-child(3) b { color: var(--accent); }
.tour-inspector { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.mini-book { display: grid; place-items: center; width: 75px; height: 108px; border-radius: 3px 7px 7px 3px; background: linear-gradient(150deg,#4a7679,#1f3c48); box-shadow: inset 5px 0 #0004,7px 8px 15px #0008; color: #f1e9df; text-align: center; font: 1rem/1.4 serif; letter-spacing: .16em; }
.mini-fields { display: grid; gap: .35rem; color: var(--ink-muted); font-size: .72rem; }
.mini-fields b { margin-bottom: .25rem; color: var(--ink); font-size: .88rem; }
.tour-output { display: grid; grid-template-columns: 1fr auto 1fr auto; align-content: center; align-items: center; gap: .7rem .6rem; padding: 1.4rem; font: .72rem var(--mono); }
.tour-output span,.tour-output strong { padding: .45rem .55rem; border: 1px solid var(--border-strong); border-radius: 6px; text-align: center; }
.tour-output strong { border-color: #794b34; color: var(--accent); background: #2a211e; }
.tour-output i { color: var(--accent); font-style: normal; }
.tour-output small { color: var(--ink-faint); font-size: .63rem; white-space: nowrap; }
.tour-output hr { grid-column: 1/-1; border: 0; border-top: 1px solid var(--border); }

@media(max-width:560px) { .win-bar { gap: .4rem; padding-inline: 9px; height: 40px; } .lights { gap: 3px; } .lights i { width: 7px; height: 7px; } .win-title { font-size: .66rem; } .win-title img { width: 14px; height: 14px; } .win-nav { gap: .4rem; font-size: .57rem; } .win-status { font-size: .55rem; padding: .14rem .35rem; } .win-body { padding: 12px; } .demo-top strong { font-size: .72rem; } .demo-top small { font-size: .55rem; } .demo-device { font-size: .53rem; } .demo-drop { height: 112px; } .demo-row { gap: .4rem; } .demo-row-copy small { font-size: .5rem; } .demo-done,.demo-wait { font-size: .52rem; } .device-entry { padding: .7rem; gap: .5rem; } .device-entry b { font-size: .78rem; } .device-entry small,.device-entry em { font-size: .61rem; } .tour-output { padding: 1rem; gap: .6rem .35rem; font-size: .6rem; } .tour-output small { font-size: .53rem; } }
