/* ===== Landing & login ===== */
.site-body { background: #f7f8fc; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 248, 252, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.site-nav { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.2px; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #4f46e5, #7c3aed 60%, #0d9488); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .8); }
.brand-mark .icon { width: 19px; height: 19px; }
.brand-name { font-size: 16.5px; }
.brand-sub { font-size: 10.5px; font-weight: 500; color: var(--muted-2); letter-spacing: 1.2px; margin-top: -2px; }
.site-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-link { padding: 8px 12px; border-radius: 9px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.site-link:hover { color: var(--ink); background: #eef2f7; }
.nav-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #15803d; background: var(--green-soft); border: 1px solid #bbf7d0; padding: 4px 9px; border-radius: 999px; }

.hero { max-width: 1180px; margin: 0 auto; padding: 72px 24px 48px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--brand); text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -2.2px; font-weight: 800; }
.hero h1 .gradient { background: linear-gradient(120deg, var(--brand) 10%, #7c3aed 45%, var(--teal) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 20px; font-size: 16px; color: var(--muted); max-width: 520px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { font-size: 15px; }
.hero-meta span { font-size: 12px; color: var(--muted-2); }

.hero-visual { position: relative; }
.hero-glow { position: absolute; inset: 5% -8% -5% 8%; background: radial-gradient(circle at 40% 30%, rgba(99, 102, 241, .28), transparent 62%), radial-gradient(circle at 80% 80%, rgba(13, 148, 136, .18), transparent 55%); filter: blur(18px); z-index: 0; }
.mock-window { position: relative; z-index: 1; background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; box-shadow: 0 40px 90px -30px rgba(15, 23, 42, .35); overflow: hidden; transform: rotate(-1.2deg); }
.mock-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #eef2f7; background: #fbfcfe; }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; }
.mock-dots i:first-child { background: #fca5a5; }
.mock-dots i:nth-child(2) { background: #fcd34d; }
.mock-dots i:nth-child(3) { background: #86efac; }
.mock-title { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.mock-live { margin-left: auto; font-size: 10.5px; color: #15803d; background: var(--green-soft); padding: 2px 7px; border-radius: 99px; display: inline-flex; align-items: center; gap: 4px; }
.mock-body { padding: 18px 16px 20px; background: linear-gradient(180deg, #fbfcff, #f6f8fd); }
.mock-agent { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #eef2f7; }
.mock-agent .avatar { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.mock-agent strong { font-size: 13px; display: block; }
.mock-agent small { font-size: 11px; color: var(--muted-2); }
.mock-messages { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 4px; }
.mock-bubble { max-width: 82%; padding: 9px 12px; border-radius: 13px; font-size: 12.5px; line-height: 1.6; box-shadow: 0 2px 6px rgba(15,23,42,.03); }
.mock-bubble.left { background: #fff; border: 1px solid #eef2f7; border-bottom-left-radius: 4px; align-self: flex-start; color: #334155; }
.mock-bubble.right { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.mock-time { font-size: 10px; color: var(--muted-2); margin-top: 3px; }
.mock-typing { display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; background: #fff; border: 1px solid #eef2f7; border-radius: 13px; border-bottom-left-radius: 4px; width: fit-content; }
.mock-typing i { width: 5px; height: 5px; border-radius: 50%; background: #a5b4fc; animation: typing 1.2s infinite; }
.mock-typing i:nth-child(2) { animation-delay: .15s; }
.mock-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.mock-input { margin-top: 12px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 9px 11px; font-size: 11.5px; color: #a2adc0; }
.mock-send { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.mock-send .icon { width: 14px; height: 14px; }

.floating-card { position: absolute; z-index: 2; background: #fff; border: 1px solid #e8edf5; border-radius: 14px; padding: 11px 14px; box-shadow: 0 18px 40px -18px rgba(15,23,42,.3); display: flex; align-items: center; gap: 10px; }
.floating-card strong { font-size: 12.5px; display: block; }
.floating-card span { font-size: 10.5px; color: var(--muted-2); }
.floating-card .mini-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.floating-card .mini-icon .icon { width: 16px; height: 16px; }
.float-a { top: 18px; right: -18px; animation: float 5s ease-in-out infinite; }
.float-b { bottom: 34px; left: -26px; animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-7px); } }

.section { max-width: 1180px; margin: 0 auto; padding: 54px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -1px; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
/* ===== 入口页（根目录） ===== */
.entry-body { min-height: 100vh; display: flex; flex-direction: column; }
.entry-head { width: 100%; max-width: 680px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 14px; }
.entry-head .nav-status { margin-left: auto; white-space: nowrap; }
.entry-head .brand span { white-space: nowrap; }
.entry-main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 11vh 24px 72px; display: flex; flex-direction: column; }
.entry-intro { text-align: center; margin-bottom: 26px; }
.entry-intro h1 { font-size: clamp(22px, 3.2vw, 30px); letter-spacing: -.6px; }
.entry-intro p { margin-top: 9px; font-size: 13.5px; color: var(--muted); }

.channel-grid { display: flex; flex-direction: column; gap: 12px; }
.channel-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; text-decoration: none; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.channel-card:hover { transform: translateY(-1px); border-color: #c7d2fe; box-shadow: var(--shadow-lg); }
.channel-card .channel-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #eef2ff; color: var(--brand); }
.channel-card .channel-ico .icon { width: 20px; height: 20px; }
.channel-card .channel-body { flex: 1; min-width: 0; }
.channel-card h3 { font-size: 15.5px; letter-spacing: -.2px; }
.channel-card p { margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-card .channel-go { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef2ff; color: var(--brand); transition: background .16s ease, color .16s ease; }
.channel-card:hover .channel-go { background: var(--brand); color: #fff; }
.channel-card .channel-go .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.channel-card.channel-placeholder,
.channel-card.channel-empty { justify-content: center; min-height: 96px; text-align: center; color: var(--muted); font-size: 13px; background: rgba(255,255,255,.7); border-style: dashed; }
.channel-card.channel-placeholder:hover,
.channel-card.channel-empty:hover { transform: none; box-shadow: none; border-color: var(--line); }

@media (max-width: 520px) {
  .entry-head { padding: 16px 16px; gap: 10px; }
  .brand-sub { display: none; }
  .entry-head .nav-status { font-size: 11px; padding: 3px 8px; }
  .entry-main { padding: 7vh 16px 56px; }
  .entry-intro h1 { font-size: 21px; }
  .entry-intro p { font-size: 12.5px; }
  .channel-card { padding: 14px 14px; gap: 12px; }
  .channel-card h3 { font-size: 15px; }
  .channel-card p { font-size: 12px; }
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd6e6; }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon .icon { width: 22px; height: 22px; }
.feature-icon.indigo { background: #eef2ff; color: var(--brand); }
.feature-icon.teal { background: var(--teal-soft); color: var(--teal); }
.feature-icon.amber { background: var(--amber-soft); color: var(--amber); }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.75; }
.feature-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.feature-card li { font-size: 12px; color: #475569; display: flex; align-items: center; gap: 7px; }
.feature-card li .icon { width: 13px; height: 13px; color: var(--green); }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: flow; }
.flow-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.flow-num { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.flow-step h3 { font-size: 15px; margin-bottom: 6px; }
.flow-step p { font-size: 12.5px; color: var(--muted); }
.flow-step::after { content: "→"; position: absolute; right: -14px; top: 36px; color: #cbd5e1; font-size: 18px; }
.flow-step:last-child::after { display: none; }

.demo-panel { margin: 16px auto 64px; max-width: 1132px; background: linear-gradient(120deg, #101a33, #1b2450 60%, #0f3a3a); color: #e2e8f0; border-radius: 24px; padding: 30px 34px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; box-shadow: var(--shadow-lg); }
.demo-panel h3 { font-size: 20px; color: #fff; }
.demo-panel p { font-size: 13px; color: #a9b5cc; margin-top: 6px; max-width: 620px; }
.demo-accounts { display: flex; gap: 24px; flex-wrap: wrap; }
.demo-accounts div { display: flex; flex-direction: column; gap: 3px; }
.demo-accounts span { font-size: 11px; color: #8ea0bd; }
.demo-accounts code { color: #fff; background: rgba(255,255,255,.1); padding: 3px 8px; border-radius: 6px; font-size: 12px; width: fit-content; }
.demo-login { display: flex; gap: 8px; }
.demo-login .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); color: #fff; }
.demo-login .btn:hover { background: rgba(255,255,255,.16); }
.demo-login .btn-primary { background: #fff; border-color: #fff; color: #111a2e; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); font-weight: 600; }
.demo-login .btn-primary:hover { background: #eef2ff; border-color: #eef2ff; color: #111a2e; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 24px; text-align: center; color: var(--muted-2); font-size: 12px; }

/* ===== Login ===== */
.auth-body { min-height: 100%; background: radial-gradient(circle at 10% 10%, #eef2ff, transparent 45%), radial-gradient(circle at 95% 90%, #ecfdf5, transparent 40%), #f7f8fc; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-brand { background: linear-gradient(150deg, #111c3a 0%, #1e1b4b 52%, #0f3a3a 100%); color: #fff; padding: 54px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-brand::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); right: -180px; top: -120px; }
.auth-brand::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); left: -120px; bottom: -140px; }
.auth-brand .brand { position: relative; z-index: 1; color: #fff; }
.auth-brand-main { position: relative; z-index: 1; margin: auto 0; max-width: 440px; }
.auth-brand-main h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -1.5px; }
.auth-brand-main h1 span { color: #a5b4fc; }
.auth-brand-main p { color: #a9b5cc; font-size: 14px; line-height: 1.85; margin-top: 16px; }
.auth-points { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.auth-points div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cbd5e1; }
.auth-points .icon { width: 16px; height: 16px; color: #5eead4; }
.auth-brand-foot { position: relative; z-index: 1; font-size: 11.5px; color: #7c8aa5; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(100%, 400px); }
.auth-card-head { margin-bottom: 26px; }
.auth-card-head h2 { font-size: 26px; letter-spacing: -.8px; }
.auth-card-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #94a3b8; }
.input-icon .input { padding-left: 40px; }
.auth-extra { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted-2); }
.auth-submit { margin-top: 2px; }
.auth-demo { margin-top: 24px; border: 1px dashed var(--line-2); border-radius: 13px; padding: 13px 14px; background: #fbfcff; }
.auth-demo-title { font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--muted-2); margin-bottom: 8px; }
.auth-demo-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0; color: var(--muted); }
.auth-demo-row code { margin-left: auto; font-size: 11.5px; color: var(--ink-2); background: #eef2f7; padding: 2px 7px; border-radius: 5px; }
.auth-demo-row button { border: 0; background: none; color: var(--brand); font-size: 11.5px; padding: 0 2px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--muted-2); }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--brand); }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 50px; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .feature-grid, .flow { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
  .demo-panel { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}
@media (max-width: 640px) {
  .site-nav { padding: 12px 16px; gap: 12px; }
  .site-links .site-link { display: none; }
  .hero { padding: 40px 18px 34px; }
  .hero h1 { letter-spacing: -1.4px; }
  .hero-lead { font-size: 14.5px; }
  .section { padding: 40px 18px; }
  .demo-panel { margin: 8px 16px 40px; padding: 24px 22px; }
  .floating-card { display: none; }
  .mock-window { transform: none; }
  .auth-panel { padding: 28px 18px; }
}
