Files

55 lines
7.7 KiB
CSS

:root { color-scheme: light dark; font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; color: #101828; background: #f5f7fc; font-synthesis: none; }
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; overflow-x: hidden; background: #f5f7fc; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.demo-app { position: relative; min-height: 100vh; overflow: hidden; background: #f5f7fc; }
.demo-header { position: relative; z-index: 2; border-bottom: 1px solid #e8edf5; background: #fff; box-shadow: 0 6px 24px rgba(15,23,42,.035); }
.demo-header__inner { width: calc(100% - 40px); max-width: 1120px; min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.demo-brand { display: flex; align-items: center; gap: 12px; }
.demo-brand__mark { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff; background: #2475fc; box-shadow: 0 10px 24px rgba(61,105,235,.24); }
.demo-brand__mark svg { width: 20px; height: 20px; }
.demo-brand > span:last-child { display: flex; flex-direction: column; }
.demo-brand strong { font-size: 15px; line-height: 21px; }
.demo-brand small { color: #667085; font-size: 11px; line-height: 16px; }
.demo-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #b7ebd0; border-radius: 999px; color: #087a55; background: rgba(236,253,245,.88); box-shadow: 0 3px 10px rgba(16,185,129,.08); font-size: 12px; font-weight: 600; }
.demo-status i { width: 8px; height: 8px; border-radius: 50%; background: #24b47e; box-shadow: 0 0 0 4px rgba(36,180,126,.12); }
.demo-status.error { color: #b42318; border-color: #fecaca; background: #fff1f2; }
.demo-status.error i { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.demo-hero { position: relative; z-index: 1; width: calc(100% - 40px); max-width: 1120px; min-height: calc(100vh - 72px); margin: 0 auto; padding: 76px 0 92px; display: grid; grid-template-columns: 1fr 380px; align-items: center; gap: 72px; }
.demo-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid rgba(37,99,235,.18); border-radius: 999px; color: #2463d4; background: #eff6ff; box-shadow: 0 3px 10px rgba(37,99,235,.06); font-size: 12px; font-weight: 600; }
.demo-eyebrow svg { width: 14px; height: 14px; }
.demo-hero h1 { max-width: 650px; margin: 22px 0 0; font-size: 52px; font-weight: 700; line-height: 1.13; letter-spacing: -.045em; }
.demo-hero__copy > p { max-width: 640px; margin: 22px 0 0; color: #5e6b80; font-size: 17px; line-height: 1.75; }
.demo-hero code { padding: 2px 5px; border-radius: 6px; color: #335fbd; background: rgba(37,99,235,.07); font-size: .88em; }
.identity-grid { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.identity-grid > div { min-width: 150px; max-width: 260px; padding: 11px 14px; border: 1px solid #e8edf5; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.055); }
.identity-grid span { display: block; color: #98a2b3; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.identity-grid strong { display: block; margin-top: 4px; overflow: hidden; color: #475467; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.action-hint { max-width: 650px; margin-top: 28px; padding: 12px 15px; display: flex; align-items: center; gap: 11px; border: 1px solid #e8edf5; border-radius: 16px; color: #5e6b80; background: #fff; box-shadow: 0 12px 34px rgba(15,23,42,.075); font-size: 13px; }
.action-hint > span { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 11px; color: #2563eb; background: #eff6ff; }
.action-hint svg { width: 17px; height: 17px; }
.feature-list { display: grid; gap: 16px; }
.feature-list article { padding: 21px; display: flex; gap: 16px; border: 1px solid #e8edf5; border-radius: 21px; background: #fff; box-shadow: 0 16px 42px rgba(15,23,42,.075); }
.feature-list i { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 12px; }
.feature-list i svg { width: 19px; height: 19px; }
.feature-list .blue { color: #2563eb; background: #eff6ff; }
.feature-list .violet { color: #7c3aed; background: #f5f3ff; }
.feature-list .green { color: #059669; background: #ecfdf5; }
.feature-list h2 { margin: 1px 0 0; font-size: 15px; line-height: 22px; }
.feature-list p { margin: 5px 0 0; color: #667085; font-size: 13px; line-height: 21px; }
.widget-launcher { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: 64px; height: 64px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 50%; color: #fff; background: #2475fc; box-shadow: 0 18px 42px rgba(37,99,235,.28); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.widget-launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(37,99,235,.34); }
.widget-launcher:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.widget-launcher svg { width: 23px; height: 23px; }
.widget-launcher span { font-size: 12px; font-weight: 650; }
.widget-frame-shell { position: fixed; z-index: 29; right: 12px; bottom: 96px; width: calc(100vw - 24px); max-width: 380px; height: calc(100vh - 112px); max-height: 720px; overflow: hidden; border: 1px solid #e8edf5; border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(15,35,65,.26); transform-origin: right bottom; animation: frame-in .24s ease-out; }
.widget-frame-shell iframe { width: 100%; height: 100%; display: block; border: 0; background: #fff; }
@keyframes frame-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (max-width: 820px) { .demo-hero { padding-top: 48px; grid-template-columns: 1fr; gap: 42px; } .feature-list { grid-template-columns: 1fr 1fr 1fr; } .feature-list article { display: block; } .feature-list article > div { margin-top: 12px; } }
@media (max-width: 620px) { .demo-header__inner, .demo-hero { width: calc(100% - 28px); } .demo-status span { display: none; } .demo-status { width: 32px; height: 32px; padding: 0; justify-content: center; } .demo-status i { width: 9px; height: 9px; } .demo-hero { padding: 42px 0 110px; } .demo-hero h1 { font-size: 36px; } .demo-hero h1 br { display: none; } .demo-hero__copy > p { font-size: 15px; } .feature-list { grid-template-columns: 1fr; } .feature-list article { display: flex; } .feature-list article > div { margin-top: 0; } .widget-launcher { right: 16px; bottom: 16px; } .widget-frame-shell { right: 8px; bottom: 88px; width: calc(100vw - 16px); height: calc(100vh - 104px); } }
@media (prefers-color-scheme: dark) { :root { color: #f8fafc; background: #0f1726; } body, .demo-app { background: radial-gradient(circle at 8% 8%,rgba(37,99,235,.16),transparent 30%),radial-gradient(circle at 92% 14%,rgba(109,93,252,.13),transparent 28%),#0f1726; } .demo-header { border-color: rgba(255,255,255,.07); background: rgba(15,23,38,.78); } .demo-brand small, .demo-hero__copy > p, .feature-list p, .action-hint { color: #9aa7ba; } .identity-grid > div, .action-hint, .feature-list article { border-color: rgba(255,255,255,.08); background: rgba(22,31,48,.78); } .identity-grid strong { color: #cbd5e1; } .widget-frame-shell { border-color: rgba(255,255,255,.1); background: #111827; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }