/* Lane 的介绍和下载页。结构和分寸照伙伴云 NAS 的下载页（~/code/NAS/web/src/app/app.css）：首屏渐变底，左边一句话和下载，右边 MacBook 加手机；
   下面一排功能入口，每块左文右图。颜色、字号照 Lane 的页面（web/app.css 的 :root），强调色只在 --primary 一处定，用在下载按钮、图标和小标题上。
   深色跟系统；截图保持原样。不用框架、不引外部资源 */

:root {
  --bg: #fcfcfc;
  --fg: #18181b;
  --fg-2: #52525b;
  --fg-muted: #71717a;
  --card: #ffffff;
  --line: #e4e4e7;
  --subtle: #f4f4f5;
  --code: #f7f7f8;
  --primary: #4e5bd8;
  --primary-hover: #3f4bc2;
  --primary-fg: #ffffff;
  --soft: rgb(78 91 216 / 10%);
  --page: 1120px;
  --gutter: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #f5f5f5;
    --fg-2: #a3a3a3;
    --fg-muted: #8a8a8a;
    --card: #111111;
    --line: rgb(255 255 255 / 9%);
    --subtle: rgb(255 255 255 / 5%);
    --code: #141414;
    --primary: #7c87f0;
    --primary-hover: #8d97f3;
    --soft: rgb(124 135 240 / 14%);
  }
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
code { white-space: nowrap; font-family: var(--mono); font-size: 0.9em; background: var(--code); border: 1px solid var(--line); border-radius: 0.3rem; padding: 0 0.3rem; }

/* 导航 */
.nav { display: flex; align-items: center; max-width: var(--page); height: 60px; margin: 0 auto; padding: env(safe-area-inset-top) var(--gutter) 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.brand img { width: 28px; height: 28px; }

/* 按钮：实心只给下载 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--fg); font-size: 16px; font-weight: 600; transition: background 0.15s; }
.btn .i { width: 18px; height: 18px; }
.btn.primary { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); box-shadow: 0 8px 20px rgb(78 91 216 / 28%); }
.btn.primary:hover { background: var(--primary-hover); }
.btn[aria-disabled] { color: var(--fg-muted); background: var(--subtle); box-shadow: none; }

/* 首屏：渐变铺满整个窗口宽，导航在渐变里；左边名字、一句话、下载，右边 MacBook 里是 Lane 应用，前面压一部手机；下面一排功能入口 */
.band { background: radial-gradient(120% 140% at 0% 0%, #eceeff 0%, #f1f0ff 48%, #f7f7fb 100%); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: center; max-width: var(--page); margin: 0 auto; padding: 40px var(--gutter) 64px; }
.hero h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero-sub { margin-top: 14px; max-width: 16em; color: var(--fg-2); font-size: 20px; line-height: 1.5; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
.meta { color: var(--fg-muted); font-size: 13px; }

.devices { position: relative; width: min(600px, 48vw); margin-right: 44px; }
.mbp .lid { padding: 14px 14px 18px; border-radius: 22px 22px 6px 6px; background: #1b1c20; box-shadow: 0 0 0 1.5px #3a3b40 inset, 0 30px 60px -20px rgb(30 32 70 / 35%); }
.mbp .scr { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #fcfcfc; }
.mbp .scr::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 0; width: 76px; height: 9px; margin-left: -38px; border-radius: 0 0 6px 6px; background: #1b1c20; }
.mbp .scr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.mbp .base { position: relative; height: 14px; margin: 0 -44px; border-radius: 2px 2px 14px 14px; background: linear-gradient(#e7e8ec, #c6c8ce); box-shadow: 0 12px 24px -10px rgb(30 32 70 / 35%); }
.mbp .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 96px; height: 5px; margin-left: -48px; border-radius: 0 0 6px 6px; background: #b4b6bd; }
/* 手机：深色边框加圆角，图是 390×844 的界面 */
.phone { width: 100%; padding: 7px; border-radius: 30px; background: #1b1c20; box-shadow: 0 0 0 1.5px #3a3b40 inset, 0 24px 48px -16px rgb(30 32 70 / 40%); }
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.devices .phone { position: absolute; right: -56px; bottom: -28px; width: 27%; }

.feat { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.fc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgb(255 255 255 / 72%); box-shadow: 0 1px 2px rgb(17 24 39 / 4%); transition: background 0.15s, transform 0.15s; }
.fc:hover { background: #fff; transform: translateY(-2px); }
.fc-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--primary); }
.fc-ic .i { width: 22px; height: 22px; }
.fc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-t b { font-size: 16px; white-space: nowrap; }
.fc-t > span { overflow: hidden; color: var(--fg-muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }

/* 一块功能：左边小标题、标题、要点，右边截图；每块都这样，文字落在同一条竖线上 */
.show { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 88px; align-items: center; max-width: var(--page); margin: 140px auto 0; padding: 0 var(--gutter); scroll-margin-top: 24px; }
.show > :not(.big) { grid-column: 1; }
.show > .big { grid-column: 2; grid-row: 1 / span 4; justify-self: end; width: 100%; }
.eyebrow { margin-bottom: 8px; color: var(--primary); font-size: 14px; font-weight: 600; }
.show h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.pts { display: flex; flex-direction: column; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.pts li { display: flex; align-items: flex-start; gap: 8px; color: var(--fg-2); font-size: 14.5px; line-height: 1.6; }
.pts .i { margin-top: 3px; width: 17px; height: 17px; color: var(--primary); stroke-width: 2.2; }
.pts b { margin-right: 8px; color: var(--fg); font-weight: 600; }
.big > img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px rgb(17 24 39 / 14%), 0 0 0 1px var(--line); }
/* 两部手机并排；只有一部时居中 */
.big.pair { display: flex; justify-content: center; gap: 28px; }
.big.pair .phone { width: min(260px, 44%); }
.big.pair.one .phone { width: min(280px, 60%); }

/* 分节：安装步骤、更新说明、常见问题 */
.sec { max-width: var(--page); margin: 120px auto 0; padding: 0 var(--gutter); }
.sec + .sec { margin-top: 80px; }
.sec h2 { font-size: 24px; font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 24px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 50%; background: var(--soft); color: var(--primary); font-size: 13px; font-weight: 700; }
.steps b { font-size: 15px; }
.steps span { color: var(--fg-muted); font-size: 14px; }
.notes { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.notes h3 { font-size: 15px; font-weight: 600; }
.notes h3 small { margin-left: 8px; color: var(--fg-muted); font-size: 13px; font-weight: 400; }
.notes p { margin-top: 4px; color: var(--fg-2); font-size: 14px; white-space: pre-line; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 48px; margin-top: 20px; }
.faq dt { font-weight: 600; }
.faq dd { margin-top: 4px; color: var(--fg-muted); font-size: 14px; }

.foot { max-width: var(--page); margin: 80px auto 0; padding: 28px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--fg-muted); font-size: 13px; text-align: center; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .devices { width: calc(100% - 56px); max-width: 620px; margin: 0 auto 0 0; }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .show { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .show > .big { grid-column: 1; grid-row: auto; justify-self: stretch; margin-top: 32px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
  .steps li::before { grid-row: 1 / span 2; margin: 0; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: 24px var(--gutter) 32px; row-gap: 40px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .hero-cta, .hero-cta .btn { width: 100%; }
  .mbp .lid { padding: 8px 8px 10px; border-radius: 14px 14px 4px 4px; }
  .mbp .base { height: 9px; margin: 0 -16px; }
  .devices .phone { right: -48px; bottom: -20px; padding: 4px; border-radius: 16px; }
  .devices .phone img { border-radius: 13px; }
  .feat { gap: 10px; }
  .fc { padding: 12px 14px; gap: 12px; }
  .fc-ic { width: 38px; height: 38px; }
  .show { margin-top: 88px; }
  .show h2 { font-size: 24px; white-space: normal; }
  .sec { margin-top: 72px; }
}
/* 深色：底、字、线跟系统；截图保持原样 */
@media (prefers-color-scheme: dark) {
  .band { background: radial-gradient(120% 140% at 0% 0%, #1d1f36 0%, #191830 48%, #0b0b0f 100%); }
  .fc { background: rgb(255 255 255 / 5%); box-shadow: none; }
  .fc:hover { background: rgb(255 255 255 / 9%); }
  .mbp .base { background: linear-gradient(#5a5c63, #3c3e44); }
  .mbp .base::before { background: #2e3035; }
  .btn.primary { box-shadow: 0 8px 20px rgb(0 0 0 / 40%); }
}
