/* 产品首页与文档页样式(与 base.css 一起加载)。无外部资源;图标用 CSS 绘制。 */
.hero { background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%); padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.eyebrow { margin: 0 0 .6rem; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--primary); }
.hero h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--text); max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.fine { font-size: .875rem; color: var(--muted); }

.room-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 8px 32px rgba(37, 99, 235, .12); padding: 1.1rem 1.25rem 1rem; max-width: 22rem; margin-left: auto; }
.room-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); }
.room-head .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--ok); }
.room-tag { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: .1rem .55rem; }
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 4rem; margin: .9rem 0; }
.wave i { display: block; width: 5px; border-radius: 3px; background: var(--primary); opacity: .85; }
.wave i:nth-child(1) { height: 30%; } .wave i:nth-child(2) { height: 55%; } .wave i:nth-child(3) { height: 80%; }
.wave i:nth-child(4) { height: 45%; } .wave i:nth-child(5) { height: 95%; } .wave i:nth-child(6) { height: 60%; }
.wave i:nth-child(7) { height: 75%; } .wave i:nth-child(8) { height: 40%; } .wave i:nth-child(9) { height: 85%; }
.wave i:nth-child(10) { height: 50%; } .wave i:nth-child(11) { height: 65%; } .wave i:nth-child(12) { height: 28%; }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.slot { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; font-size: .75rem; color: #94a3b8; background: var(--bg-soft); border: 1px dashed var(--border-strong); }
.slot.on { color: #fff; background: var(--primary); border: 1px solid var(--primary); font-weight: 700; }
.room-note { margin: .8rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 1.75rem; }
.section-sub { color: var(--muted); margin-bottom: 1.75rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + .15rem); padding: 1.35rem; }
.feature h3 { margin-top: .85rem; }
.feature p { color: var(--text); font-size: .95rem; margin: 0; }

.icon { position: relative; display: block; width: 2.5rem; height: 2.5rem; border-radius: .7rem; background: var(--primary-soft); }
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-mic::before { left: 50%; top: .55rem; width: .7rem; height: 1.1rem; margin-left: -.35rem; border-radius: .4rem; background: var(--primary); }
.icon-mic::after { left: 50%; top: 1.1rem; width: 1.1rem; height: .7rem; margin-left: -.55rem; border: 2px solid var(--primary); border-top: 0; border-radius: 0 0 .6rem .6rem; }
.icon-slots::before { left: .6rem; top: .6rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--primary); box-shadow: .8rem 0 0 var(--primary), 0 .8rem 0 var(--primary), .8rem .8rem 0 #93b4f5; }
.icon-tenant::before { left: .55rem; top: .55rem; width: .75rem; height: .75rem; border: 2px solid var(--primary); border-radius: .2rem; box-shadow: .6rem .6rem 0 -2px #fff, .6rem .6rem 0 0 var(--primary); }
.icon-key::before { left: .6rem; top: .65rem; width: .8rem; height: 1rem; border: 2px solid var(--primary); border-radius: .25rem .25rem .5rem .5rem; background: #fff; }
.icon-key::after { left: 50%; top: .6rem; width: .6rem; height: .5rem; margin-left: -.3rem; border: 2px solid var(--primary); border-bottom: 0; border-radius: .4rem .4rem 0 0; top: .35rem; }

.step-card { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) + .15rem); padding: 1.35rem; }
.step-card p { font-size: .95rem; }
.step-card a { font-weight: 600; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-bottom: .6rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }

.dev-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.code-card { background: #0f172a; border-radius: calc(var(--radius) + .15rem); padding: 1.1rem 1.25rem; overflow-x: auto; }
.code-card pre { margin: 0; color: #e2e8f0; font: .85rem/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.code-card code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.5rem; }
.footer-grid h3 { font-size: .9rem; color: var(--ink); margin-bottom: .5rem; }
.footer-grid p { margin: 0; line-height: 1.9; }
.brand-sm { font-size: 1.1rem; margin-bottom: .4rem; }

/* 文档页 */
.doc-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; padding: 2.5rem 0 1rem; }
.doc-toc { position: sticky; top: 1rem; align-self: start; font-size: .92rem; }
.doc-toc strong { display: block; margin-bottom: .5rem; color: var(--ink); }
.doc-toc a { display: block; padding: .3rem .6rem; border-left: 2px solid var(--border); color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--primary); }
.doc h1 { font-size: 2rem; }
.doc h2 { margin-top: 2.5rem; padding-top: .5rem; font-size: 1.45rem; scroll-margin-top: 1rem; }
.doc h3 { margin-top: 1.5rem; }
.doc ol, .doc ul { padding-left: 1.4rem; margin: 0 0 1rem; }
.doc li { margin-bottom: .4rem; }
.doc pre { background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 1rem 1.15rem; overflow-x: auto; font: .85rem/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; margin: 0 0 1rem; }
.doc pre code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { min-width: 34rem; font-size: .92rem; }
.table-wrap tr:last-child td, .table-wrap tr:last-child th { border-bottom: 0; }
.callout { margin: 0 0 1.25rem; padding: .8rem 1rem; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid #bfdbfe; color: #1e3a8a; }
.callout.warn { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }

@media (max-width: 900px) {
  .hero-grid, .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .room-card { margin: 0; max-width: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .doc { min-width: 0; }
  .doc-toc { position: static; display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; }
  .doc-toc strong { width: 100%; margin: 0; }
  .doc-toc a { border: 1px solid var(--border); border-radius: 999px; padding: .2rem .7rem; background: var(--surface); }
}
@media (max-width: 640px) {
  .hero { padding: 2.25rem 0 2rem; }
  .hero h1 { font-size: 1.85rem; }
  .section { padding: 2.5rem 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
}
