* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #1f2937; background: #fff; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ---------- landing nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #e5e7eb; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: #111827; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: #4b5563; }
.nav-links a:hover { color: #111827; text-decoration: none; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-block; padding: 9px 18px; border-radius: 8px; font-size: 15px; border: 1px solid transparent; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; text-decoration: none; }
.btn-ghost { border-color: #d1d5db; color: #374151; background: #fff; }
.btn-ghost:hover { border-color: #9ca3af; text-decoration: none; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 84px 24px 56px; background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.hero h1 { font-size: 46px; line-height: 1.25; letter-spacing: -1px; color: #111827; max-width: 720px; margin: 0 auto 18px; }
.hero p { font-size: 18px; color: #4b5563; max-width: 620px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; }
.hero-cta .btn { padding: 12px 26px; font-size: 16px; }
.hero-shot { max-width: 860px; margin: 56px auto 0; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.10); overflow: hidden; text-align: left; background: #fff; }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d1d5db; display: block; }
.shot-bar i:first-child { background: #f87171; } .shot-bar i:nth-child(2) { background: #fbbf24; } .shot-bar i:nth-child(3) { background: #34d399; }
.shot-body { display: flex; min-height: 220px; }
.shot-side { width: 190px; border-right: 1px solid #e5e7eb; padding: 16px; background: #fcfcfd; }
.shot-side b { display: block; font-size: 13px; margin-bottom: 10px; color: #374151; }
.shot-side span { display: block; font-size: 13px; color: #6b7280; padding: 5px 8px; border-radius: 6px; }
.shot-side span.on { background: #dbeafe; color: #1d4ed8; }
.shot-main { flex: 1; padding: 22px 26px; }
.shot-main h3 { font-size: 19px; margin-bottom: 10px; }
.shot-main p { font-size: 14px; color: #4b5563; margin-bottom: 8px; }
.shot-main .tag { display: inline-block; font-size: 12px; background: #ecfdf5; color: #047857; border-radius: 999px; padding: 2px 10px; margin-top: 8px; }

/* ---------- sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.section h2 { font-size: 30px; text-align: center; margin-bottom: 10px; color: #111827; }
.section .sub { text-align: center; color: #6b7280; margin-bottom: 40px; font-size: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px 20px; background: #fff; }
.card h3 { font-size: 17px; margin: 12px 0 6px; }
.card p { font-size: 14px; color: #6b7280; }
.card .ic { font-size: 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px 20px; }
.step b { display: block; font-size: 14px; color: #2563eb; margin-bottom: 6px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: #6b7280; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price { border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px 24px; }
.price.hot { border-color: #2563eb; box-shadow: 0 8px 30px rgba(37,99,235,.12); }
.price h3 { font-size: 18px; }
.price .amt { font-size: 34px; font-weight: 700; margin: 10px 0 4px; }
.price .amt small { font-size: 14px; font-weight: 400; color: #6b7280; }
.price ul { list-style: none; margin: 18px 0 22px; font-size: 14px; color: #4b5563; }
.price li { padding: 5px 0; }
.price li:before { content: "✓ "; color: #16a34a; }
.price .btn { width: 100%; text-align: center; }
.trust { text-align: center; color: #9ca3af; font-size: 14px; padding: 10px 0 40px; }
.footer { border-top: 1px solid #e5e7eb; padding: 36px 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; color: #6b7280; font-size: 14px; background: #f9fafb; }
.footer .cols { display: flex; gap: 56px; }
.footer b { display: block; color: #374151; margin-bottom: 8px; font-size: 14px; }
.footer a { display: block; color: #6b7280; padding: 3px 0; }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, #eff6ff, #fff); padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 32px 30px; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.auth-card h1 { font-size: 22px; margin: 14px 0 4px; text-align: center; }
.auth-card .hint { text-align: center; color: #6b7280; font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.field input { width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; outline: none; }
.field input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.auth-card .btn-primary { width: 100%; padding: 12px; font-size: 16px; text-align: center; border: none; }
.auth-err { display: none; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.auth-ok { display: none; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.auth-foot { text-align: center; font-size: 14px; color: #6b7280; margin-top: 20px; }
.auth-foot a { margin: 0 4px; }
.auth-logo { display: flex; justify-content: center; }

/* ---------- workspace ---------- */
.app { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 264px; flex-shrink: 0; background: #f9fafb; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.side-head { padding: 16px 18px 10px; }
.side-head .logo { font-size: 18px; }
.side-search { padding: 0 14px 10px; }
.side-search input { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; outline: none; background: #fff; }
.side-new { margin: 0 14px 10px; padding: 9px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; font-size: 14px; text-align: center; }
.side-new:hover { border-color: #2563eb; color: #2563eb; }
.doc-list { flex: 1; overflow-y: auto; padding: 0 8px; }
.doc-item { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.doc-item:hover { background: #f3f4f6; }
.doc-item.on { background: #dbeafe; }
.doc-item b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item span { font-size: 12px; color: #6b7280; }
.side-user { border-top: 1px solid #e5e7eb; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.side-user .who { flex: 1; overflow: hidden; }
.side-user .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { color: #6b7280; font-size: 12px; }
.link-btn { background: none; border: none; color: #2563eb; font-size: 13px; padding: 0; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid #e5e7eb; }
.topbar input.title { flex: 1; border: none; outline: none; font-size: 19px; font-weight: 700; color: #111827; min-width: 0; }
.presence { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; }
.presence .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.save-state { font-size: 13px; color: #9ca3af; min-width: 90px; text-align: right; }
.editor { flex: 1; overflow-y: auto; padding: 28px 40px 60px; }
.editor-body { max-width: 760px; margin: 0 auto; outline: none; font-size: 16px; line-height: 1.8; }
.editor-body h2 { font-size: 20px; margin: 22px 0 8px; }
.editor-body p { margin-bottom: 10px; }
.editor-body ul { margin: 0 0 12px 22px; }
.editor-body li { margin-bottom: 4px; }
.empty { color: #9ca3af; text-align: center; padding-top: 120px; }
@media (max-width: 860px) { .grid4, .steps, .price-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } .nav-links { display: none; } .sidebar { width: 210px; } }
