:root {
  --ink: #171a2f;
  --muted: #657084;
  --line: #e3e8f0;
  --bg: #f7fafc;
  --panel: #ffffff;
  --blue: #2862f2;
  --green: #13c875;
  --mint: #dff9ea;
  --lav: #ede9ff;
  --peach: #ffe7da;
  --shadow: 18px 22px 48px rgba(25, 39, 66, .12), -10px -10px 28px rgba(255, 255, 255, .9);
  --inner: inset 4px 5px 14px rgba(255,255,255,.72), inset -7px -9px 18px rgba(55,77,110,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 15% 8%, #eef5ff 0 24%, transparent 25%),
    radial-gradient(circle at 92% 18%, #fff3e7 0 18%, transparent 19%),
    linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
  font-family: ui-rounded, "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.clay {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(219, 226, 236, .9);
  border-radius: 24px;
  box-shadow: var(--shadow), var(--inner);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 72px);
  background: rgba(255,255,255,.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 18px rgba(40,98,242,.22), inset 2px 3px 8px rgba(255,255,255,.3);
  font-size: 14px;
}
.brand strong { display: block; font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: #4b5568;
  transition: .2s ease;
  font-size: 14px;
}
.nav a:hover, .nav a.active { color: var(--blue); background: #eef4ff; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.mobile-toggle { display: none; border: 0; background: #eef4ff; border-radius: 14px; padding: 10px; }
.mobile-nav { display: none; }
.icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: inset 4px 5px 12px rgba(21,35,70,.16); }
.btn-primary { color: white; background: var(--blue); box-shadow: 0 14px 30px rgba(40,98,242,.22), inset 4px 5px 12px rgba(255,255,255,.22); }
.btn-soft { color: var(--ink); background: white; border-color: var(--line); box-shadow: var(--inner); }
.btn-green { color: white; background: var(--green); box-shadow: 0 16px 28px rgba(19,200,117,.24), inset 3px 4px 12px rgba(255,255,255,.25); }
.btn-danger { color: #d21f1f; background: #fff7f7; border-color: #ffd0d0; }
.small { padding: 10px 16px; }
.wide { width: 100%; }
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  padding: clamp(36px, 5vw, 72px) clamp(22px, 6vw, 96px);
}
.clay-band {
  background: linear-gradient(145deg, rgba(248,251,255,.96), rgba(241,246,252,.88));
  border-bottom: 1px solid var(--line);
}
.eyebrow { color: var(--blue); font-weight: 900; letter-spacing: 0; font-size: 13px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: 0;
  margin: 12px 0 18px;
}
.hero h1 span { color: var(--blue); }
.lead { color: #46546a; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-choices { display: grid; gap: 16px; }
.choice-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 14px 16px 40px rgba(31,48,77,.08), var(--inner);
  transition: transform .24s ease;
}
.choice-card:hover { transform: translateY(-3px) scale(1.01); }
.choice-card strong { display: block; font-size: 16px; }
.choice-card small { color: var(--muted); margin-top: 4px; display: block; font-size: 13px; }
.choice-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf3ff;
  color: var(--blue);
  font-size: 20px;
  box-shadow: var(--inner);
}
.rocket { background: var(--lav); }
.section { padding: clamp(36px, 5vw, 64px) clamp(22px, 6vw, 96px); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section h2 { font-size: clamp(22px, 3vw, 34px); line-height: 1.2; margin-bottom: 12px; }
.muted { color: var(--muted); line-height: 1.7; font-size: 14px; }
.role-grid, .feature-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.role-card {
  min-height: 140px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  border: 0;
  color: var(--ink);
}
.role-card small { color: var(--muted); font-size: 12px; }
.avatar {
  --avatar: var(--blue);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--avatar);
  font-weight: 900;
  box-shadow: 0 12px 20px color-mix(in srgb, var(--avatar) 26%, transparent), inset 3px 4px 11px rgba(255,255,255,.22);
}
.avatar.small { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.avatar.portrait { width: 72px; height: 72px; border-radius: 10px; background: #fff; color: var(--ink); border: 2px solid var(--avatar); font-size: 22px; }
.avatar.old { background: #98a2b3; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}
.mini-form {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 10px;
  margin-top: 24px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
  padding: 14px 16px;
  outline: none;
  box-shadow: inset 5px 6px 14px rgba(44,64,90,.08), inset -5px -5px 12px rgba(255,255,255,.9);
}
textarea { min-height: 170px; resize: vertical; }
.demo-panel { padding: 26px; display: grid; gap: 18px; }
.chat-preview { display: grid; gap: 12px; }
.bubble { max-width: 82%; padding: 14px 16px; border-radius: 18px; white-space: pre-line; line-height: 1.6; }
.bubble.ai { background: #edf8f1; }
.bubble.user { background: #eef4ff; justify-self: end; }
.progress-card { padding: 18px; border-radius: 18px; background: #f7fafc; }
.progress-card span { float: right; font-weight: 900; color: var(--green); }
.progress-card div { clear: both; height: 10px; margin-top: 12px; border-radius: 999px; background: #e6edf3; overflow: hidden; }
.progress-card i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--blue)); }
.course-result { line-height: 1.6; }
.course-result details { margin: 8px 0; padding: 10px 12px; border-radius: 14px; background: #f8fbff; }
.soft { background: rgba(255,255,255,.42); }
.feature-card, .price-card { padding: 18px; }
.feature-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: #eef4ff;
  font-weight: 900;
  margin-bottom: 12px;
  font-size: 16px;
}
.feature-card h3, .price-card h3 { font-size: 16px; }
.feature-card p, .price-card p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: white;
  box-shadow: var(--inner);
  color: var(--muted);
}
.tabs button.active { color: white; background: var(--blue); }
.use-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px; }
.use-panel span { padding: 18px; background: #f8fbff; border-radius: 18px; font-weight: 800; text-align: center; }
.workflow div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.workflow article { padding: 24px; border-left: 3px solid var(--green); background: white; border-radius: 20px; box-shadow: var(--shadow); }
.workflow b { color: var(--green); display: block; margin-bottom: 16px; }
.workflow p { color: var(--muted); line-height: 1.6; }
.switch { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; color: var(--muted); }
.switch input { display: none; }
.switch i { width: 58px; height: 32px; border-radius: 999px; background: #dfe7f1; position: relative; box-shadow: var(--inner); }
.switch i::after { content: ""; position: absolute; width: 24px; height: 24px; top: 4px; left: 5px; border-radius: 50%; background: white; box-shadow: 0 6px 12px rgba(0,0,0,.16); transition: .2s; }
.switch input:checked + i::after { left: 29px; }
.price-card { display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border-color: rgba(40,98,242,.45); transform: translateY(-8px); }
.price { font-size: 28px; font-weight: 900; }
.price small { color: var(--muted); font-size: 13px; }
.price-card ul { padding: 0; margin: 0 0 10px; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 6px; }
.stats-band { background: linear-gradient(145deg, rgba(248,251,255,.96), rgba(241,246,252,.88)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; padding: 16px 0; }
.stat-item strong { display: block; font-size: clamp(24px, 4vw, 40px); font-weight: 900; color: var(--blue); line-height: 1.1; }
.stat-item span { color: var(--muted); font-size: 13px; margin-top: 4px; display: block; }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.testimonial-card { padding: 18px; }
.testimonial-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.testimonial-head strong { display: block; font-size: 15px; }
.testimonial-head small { color: var(--muted); font-size: 12px; }
.testimonial-card p { color: #46546a; line-height: 1.7; font-size: 13px; }

.faq details { margin-top: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 15px; }
.faq p { color: var(--muted); line-height: 1.7; margin: 12px 0 0; font-size: 14px; }
.footer {
  padding: 24px clamp(16px, 4vw, 72px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.footer strong { color: var(--ink); font-size: 18px; }
.footer div:last-of-type { display: flex; gap: 16px; }
.footer small { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; }
.workspace {
  height: 100vh;
  display: grid;
  grid-template-columns: 72px 300px 1fr;
  background: #fff;
  overflow: hidden;
}
.rail {
  background: #edf0f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}
.rail a {
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  border-radius: 10px;
  color: #5f6670;
  font-size: 14px;
  text-decoration: none;
}
.rail-icon { font-size: 18px; line-height: 1; }
.rail-label { font-size: 10px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.rail a.active { color: var(--green); background: #e7fff2; }
.rail-home { color: var(--green) !important; background: white; font-weight: 900; }
.rail-avatar {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue); color: white;
  font-weight: 900; font-size: 15px;
  box-shadow: 0 6px 12px rgba(40,98,242,.22), inset 2px 3px 8px rgba(255,255,255,.3);
}
.rail-user { margin-top: auto; }
.rail-label.rail-user { font-size: 9px; max-width: 56px; overflow: hidden; text-overflow: ellipsis; }

.topbar-user {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: #eef4ff; border: 1px solid var(--line);
  transition: .2s;
}
.topbar-user:hover { background: #dce8ff; }
.topbar-avatar {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue); color: white;
  font-weight: 900; font-size: 13px;
  box-shadow: 0 4px 8px rgba(40,98,242,.18);
}
.topbar-username { font-weight: 800; font-size: 13px; color: var(--ink); }
.agent-list {
  position: relative;
  overflow: auto;
  border-right: 1px solid #d9dde4;
  background: #f7f7f8;
}
.search-box { margin: 12px; display: flex; align-items: center; gap: 8px; }
.search-box input { background: white; font-size: 16px; font-weight: 800; }
.add-role {
  position: absolute;
  top: 18px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #4a515b;
}
.agent-list h4 {
  margin: 12px 18px 8px;
  color: #777d86;
  font-size: 12px;
}
.expert-heading { display: flex; align-items: center; gap: 6px; color: #1e40af !important; font-size: 13px !important; font-weight: 800 !important; margin-top: 16px !important; }
.expert-badge { background: #eef4ff; color: var(--blue); padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.expert-toggle {
  width: calc(100% - 36px);
  margin: 4px 18px 12px;
  border: 1px dashed #c0c8d4;
  border-radius: 8px;
  background: transparent;
  padding: 8px 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}
.expert-toggle:hover { background: #eef4ff; border-color: var(--blue); }
.tz-heading { color: #b45309 !important; font-size: 13px !important; font-weight: 800 !important; margin-top: 14px !important; display: flex; align-items: center; gap: 4px; }
.conv-heading { color: #1e40af !important; font-size: 13px !important; font-weight: 800 !important; margin-top: 8px !important; }
.conv-empty { color: #999; font-size: 13px; padding: 20px 18px; text-align: center; line-height: 1.6; }
.agent-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e0e3e7;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  text-align: left;
}
.agent-item.active { background: white; box-shadow: inset 4px 0 0 var(--green); }
.agent-item strong { display: block; font-size: 15px; }
.agent-item small { display: block; color: #7a8089; font-size: 12px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-count { position: sticky; bottom: 0; padding: 10px 18px; background: white; border-top: 1px solid var(--line); font-weight: 900; font-size: 13px; }
.profile {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr) 220px;
  overflow: auto;
  height: 100vh;
}
.profile-main, .knowledge, .identity { padding: 28px 24px; }
.profile-head { display: flex; gap: 16px; align-items: start; }
.profile h1 { font-size: 22px; margin: 0 0 6px; }
.profile h2 { font-size: 18px; margin: 22px 0 14px; }
.info-block { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
dl { display: grid; grid-template-columns: 80px 1fr; gap: 10px; font-size: 14px; }
dt { color: #777d86; }
dd { margin: 0; }
.manage-list button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
}
.manage-list button.active { background: #e6f9ef; color: #142017; }
.knowledge { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.knowledge h2 small { color: #777; font-size: 13px; }
.network {
  height: 280px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background-image: linear-gradient(#edf1f4 1px, transparent 1px), linear-gradient(90deg, #edf1f4 1px, transparent 1px);
  background-size: 48px 48px;
}
.network::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20,127,113,.12), transparent 30%);
}
.network b {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #147f73;
  color: white;
  font-size: 13px;
  box-shadow: 0 0 0 8px white;
}
.network span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 5px solid #167f75;
  background: #d8fff2;
  color: #12695f;
  font-size: 10px;
  font-weight: 900;
}
.related { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.related div { color: #777; border-top: 1px solid var(--line); padding: 20px 0; font-size: 13px; }
.identity { color: #666; font-size: 13px; }
.status-dot { width: 10px; height: 10px; display: inline-block; border-radius: 50%; background: var(--green); margin-right: 6px; }
.identity code { display: block; background: #eee; padding: 14px; border-radius: 6px; color: #777; margin: 20px 0; overflow-wrap: anywhere; font-size: 11px; }
.chat-room {
  min-width: 0;
  display: grid;
  grid-template-rows: 52px 1fr auto;
  height: 100vh;
}
.chat-room header {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
}
.chat-room header h2 { font-size: 16px; margin: 0; }
.chat-room header button {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: transparent;
  font-weight: 800;
  font-size: 13px;
}
.chat-room header button.active { color: var(--green); background: #e6f9ef; }
.messages { overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.message {
  max-width: min(620px, 86%);
  padding: 10px 14px;
  border-radius: 14px;
  white-space: pre-line;
  line-height: 1.6;
  font-size: 14px;
}
.message.ai { background: #f0fbf5; align-self: flex-start; }
.message.user { background: #eef4ff; align-self: flex-end; }
.composer {
  margin: 0 14px 14px;
  border: 1px solid #d8dce4;
  border-radius: 14px;
  padding: 8px 10px;
  position: relative;
  background: white;
}
.composer-meta { color: #777; display: flex; gap: 10px; align-items: center; padding-bottom: 6px; font-size: 12px; }
.composer-meta i { flex: 0 0 60px; height: 3px; border-radius: 999px; background: #d7d7d7; }
.composer-meta b { font-weight: 500; }
.composer textarea { border: 0; box-shadow: none; background: white; padding-right: 50px; min-height: 60px; font-size: 14px; }
.send {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #b7b7b7;
  color: white;
  font-size: 16px;
}
.topic-pane { border-left: 1px solid var(--line); padding: 14px 12px; font-size: 13px; }
.topic-pane h3 { font-size: 14px; margin: 0 0 12px; display: flex; align-items: center; }
.topic-card { border-left: 3px solid var(--green); background: #f2f2f2; border-radius: 8px; padding: 10px 12px; display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.topic-card em { color: var(--green); background: #d7f9e5; font-style: normal; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.new-topic { width: 100%; padding: 10px; margin-top: 10px; border: 1px dashed #aeb4bd; border-radius: 8px; background: white; color: #777; font-weight: 800; font-size: 13px; }
.chat-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 16px; text-align: center; flex: 1; }
.chat-welcome h2 { margin: 6px 0 4px; font-size: 20px; }
.chat-welcome p { color: var(--muted); margin: 0; font-size: 14px; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.quick-btn { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: white; color: var(--ink); font-size: 13px; box-shadow: var(--inner); transition: .2s; }
.quick-btn:hover { background: #eef4ff; border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.msg-time { display: block; font-size: 11px; color: #aab3c0; margin-top: 6px; }
.topic-refresh { border: 0; background: transparent; font-size: 18px; color: var(--muted); cursor: pointer; margin-left: 8px; }
.topic-card.current { border-left-color: var(--green); background: #e6f9ef; }

.account-page { grid-column: 2 / -1; overflow: auto; background: var(--bg); padding: 24px; }
.account-hero { display: flex; align-items: center; gap: 22px; padding: 28px; margin-bottom: 20px; }
.avatar.account { width: 56px; height: 56px; font-size: 22px; background: var(--blue); }
.account-hero h1 { font-size: 28px; margin-bottom: 10px; }
.account-hero p { font-size: 14px; }
.account-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.account-card { padding: 22px; }
.account-card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 17px; }
.account-card p { font-size: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid div { background: #f4f7fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.field-grid span { color: var(--muted); display: block; margin-bottom: 6px; font-size: 12px; }
.field-grid strong, .field-grid b { font-size: 14px; }
.balance strong { display: block; font-size: 36px; margin: 6px 0 12px; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; overflow: hidden; border-radius: 10px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); background: #f8fbff; font-size: 13px; }
th { background: #e8edf5; color: var(--muted); font-size: 12px; }
.green { color: #087f50; font-weight: 900; }
.danger { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.modal-card { width: min(380px, 90%); padding: 28px; text-align: center; }
.modal-card h2 { margin: 0 0 6px; font-size: 20px; }
.modal-card p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.recharge-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.recharge-btn { padding: 14px; font-size: 18px; font-weight: 900; transition: .2s; border-radius: 16px; }
.recharge-btn:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.recharge-btn.selected { border-color: var(--blue); background: #eef4ff; color: var(--blue); }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }

.qr-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.qr-card { width: min(360px, 90%); padding: 32px 28px; text-align: center; }
.qr-card h2 { margin: 0 0 18px; font-size: 20px; }
.qr-code-box { width: 180px; height: 180px; margin: 0 auto 14px; border: 2px solid var(--line); border-radius: 16px; background: white; display: grid; place-items: center; box-shadow: var(--inner); position: relative; overflow: hidden; }
.qr-pattern {
  width: 140px; height: 140px;
  background:
    repeating-conic-gradient(#333 0% 25%, #fff 0% 50%) 0 0 / 14px 14px,
    repeating-conic-gradient(#333 0% 25%, #fff 0% 50%) 7px 7px / 14px 14px;
  background-size: 14px 14px;
  border-radius: 4px;
  position: relative;
}
.qr-pattern::after {
  content: ""; position: absolute; inset: 30%; background: white; border-radius: 8px;
  box-shadow: 0 0 0 3px var(--blue), 0 0 0 6px white;
}
.qr-hint { color: var(--muted); font-size: 13px; margin: 0; }
.qr-status { font-weight: 800; font-size: 14px; color: var(--blue); margin: 12px 0 6px; min-height: 22px; }
.qr-status.success { color: var(--green); }
.qr-actions { margin-top: 14px; }

.auth-page, .simple-page { min-height: calc(100vh - 78px); }
.auth-page { display: grid; place-items: center; padding: 42px; }
.auth-card { width: min(940px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 42px; }
.auth-card h1, .simple-page h1 { font-size: clamp(42px, 6vw, 72px); }
.auth-card form { display: grid; gap: 18px; }
.auth-card label { display: grid; gap: 8px; font-weight: 900; color: var(--muted); }
.form-status { min-height: 22px; color: var(--blue); font-weight: 800; }
.auth-hero { padding-right: 18px; }
.auth-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 12px 0 16px; }
.auth-features { display: grid; gap: 12px; margin-top: 24px; }
.auth-feature { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #46546a; }
.auth-check { color: var(--green); font-weight: 900; font-size: 16px; }
.auth-form { display: grid; gap: 18px; align-content: start; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-social { display: grid; gap: 10px; }
.auth-social.compact { grid-template-columns: 1fr 1fr; }
.auth-hint { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.solution-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.solution-head { display: flex; align-items: center; gap: 14px; }
.solution-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; box-shadow: var(--inner); }
.solution-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.solution-list li { padding-left: 18px; position: relative; color: #46546a; font-size: 14px; line-height: 1.6; }
.solution-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.solution-benefit { color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 14px; background: #f0fbf5; border-radius: 12px; }

.guide-steps { display: grid; gap: 18px; }
.guide-step { display: flex; gap: 24px; padding: 28px; align-items: start; }
.guide-step-num { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; border-radius: 18px; background: var(--blue); color: white; font-weight: 900; font-size: 24px; box-shadow: 0 14px 24px rgba(40,98,242,.22), inset 3px 4px 12px rgba(255,255,255,.22); }
.guide-step-body h3 { margin: 0 0 8px; font-size: 20px; }
.guide-step-body p { color: #46546a; line-height: 1.7; margin: 0 0 8px; }
.guide-tip { background: #fff8ed; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #8a6914; }

.reveal { opacity: 0; transform: translateY(18px); transition: .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .16s; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d8e4; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b0bac8; }

input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: inset 5px 6px 14px rgba(44,64,90,.08), inset -5px -5px 12px rgba(255,255,255,.9), 0 0 0 3px rgba(40,98,242,.12); }

.role-card { cursor: pointer; transition: transform .24s ease, box-shadow .24s ease; }
.role-card:hover { transform: translateY(-6px) scale(1.02); }
.role-card:active { transform: translateY(0) scale(.98); }

.messages { scroll-behavior: smooth; }
.messages .message { animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .nav { display: none; }
  .mobile-toggle { display: inline-grid; }
  .mobile-nav.open {
    display: grid;
    position: fixed;
    z-index: 30;
    top: 56px;
    right: 16px;
    left: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .mobile-nav a { padding: 14px; border-radius: 12px; }
  .hero, .split, .auth-card { grid-template-columns: 1fr; }
  .role-grid, .feature-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-step { flex-direction: column; gap: 16px; }
  .workflow div { grid-template-columns: repeat(2, 1fr); }
  .workspace { grid-template-columns: 68px 360px 1fr; }
  .profile { grid-template-columns: 1fr; }
  .identity { display: none; }
}

@media (max-width: 780px) {
  .topbar { padding: 0 16px; }
  .brand small { display: none; }
  .hero { min-height: auto; padding-top: 54px; }
  .choice-card { grid-template-columns: 52px 1fr; }
  .choice-card > .icon:last-child { display: none; }
  .section-head { align-items: start; flex-direction: column; }
  .role-grid, .feature-grid, .pricing-grid, .use-panel, .workflow div, .mini-form, .field-grid, .account-grid, .stats-grid, .testimonial-grid, .solution-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .workspace { height: auto; min-height: 100vh; grid-template-columns: 1fr; overflow: auto; }
  .rail { height: 64px; flex-direction: row; padding: 8px 12px; position: sticky; top: 0; z-index: 10; }
  .rail-home { margin-top: 0; margin-left: auto; }
  .agent-list { max-height: 420px; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile, .chat-room { height: auto; min-height: 70vh; }
  .profile-main, .knowledge, .identity, .account-page { padding: 24px; }
  .topic-pane { display: none; }
  .chat-room { grid-template-rows: 72px minmax(420px, 1fr) auto; }
  .account-page { grid-column: auto; }
  .account-hero, .danger { flex-direction: column; align-items: start; }
  .auth-page { padding: 20px; }
  .auth-card { padding: 26px; }
}
