:root {
  --brand: #2468f2;
  --brand-deep: #1557d8;
  --sidebar-w: 254px;
  --sidebar-bg: #f8faff;
  --sidebar-line: rgba(36, 104, 242, 0.06);
  --sidebar-text: #414957;
  --sidebar-hover: rgba(36, 104, 242, 0.06);
  --sidebar-active: rgba(36, 104, 242, 0.1);
  --sidebar-active-text: #1557d8;
  --main-bg: #ffffff;
  --chat-width: 880px;
  --composer-width: 800px;
  --composer-radius: 20px;
  --composer-border: #e1eafb;
  --composer-shadow: 0 12px 38px rgba(28, 74, 160, 0.085);
  --composer-focus-shadow: 0 0 0 4px rgba(36, 104, 242, 0.1);
  --user-bubble: #edf4ff;
  --user-text: #1d3354;
  --send-bg: linear-gradient(140deg, #3f8cff, #2468f2 58%, #05a9c8);
  --send-color: #ffffff;
  --avatar-bg: linear-gradient(140deg, #3f8cff, #2468f2 58%, #05a9c8);
  --top-link: #5e6674;
  --hrx-link: #1557d8;
  --hrx-hover: rgba(36, 104, 242, 0.08);
  --icon-color: #596270;
  --tool-color: #56606f;
  --placeholder: #9fa8b7;
  --assistant-avatar-size: 30px;
}

body {
  background: #ffffff;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(36, 104, 242, 0.55);
  outline-offset: 2px;
}

.composer textarea:focus-visible { outline: none; }

.sidebar {
  background:
    linear-gradient(180deg, rgba(36, 104, 242, 0.035), transparent 230px),
    var(--sidebar-bg);
}

.brand {
  color: #202b3c;
  font-size: 19px;
}

.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(36, 104, 242, 0.18);
}

.side-nav { padding-top: 12px; }

.side-item { border-radius: 10px; }

.history-item { border-radius: 9px; }

.main { isolation: isolate; }

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 400px at 50% -70px, rgba(36, 104, 242, 0.08), transparent 72%),
    radial-gradient(520px 360px at 102% -2%, rgba(5, 182, 206, 0.06), transparent 72%);
}

.topbar,
.chat-region {
  position: relative;
  z-index: 1;
}

.topbar {
  border-bottom: 1px solid rgba(36, 104, 242, 0.045);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(36, 104, 242, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #3d4757;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.model-pill:hover {
  border-color: rgba(36, 104, 242, 0.24);
  background: #f4f8ff;
}

.model-pill .icon { font-size: 14px; color: #919baa; }

.model-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(140deg, #3f8cff, #05a9c8);
  box-shadow: 0 0 0 3px rgba(36, 104, 242, 0.1);
}

.beta-badge {
  padding: 2px 6px;
  border-radius: 5px;
  background: linear-gradient(120deg, #eef4ff, #e8fbff);
  color: #3a78da;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(140deg, #eaf3ff, #dcf8fc);
  color: #1557d8;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(36, 104, 242, 0.1);
}

.chat-scroll {
  display: flex;
  flex-direction: column;
}

.welcome {
  flex: 1 0 auto;
  justify-content: center;
  gap: 21px;
  padding: 40px 24px 32px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(36, 104, 242, 0.2),
    0 4px 12px rgba(5, 169, 200, 0.12);
}

.hero-logo svg,
.brand-mark svg { width: 100%; height: 100%; display: block; }

.welcome-copy { display: flex; flex-direction: column; gap: 10px; }

.welcome h1 {
  background: linear-gradient(110deg, #16284a 10%, #2468f2 62%, #05a9c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.welcome p {
  color: #8b94a3;
  font-size: 15px;
}

.composer-hero-slot { margin-top: 2px; }

.wenxin-composer {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
}

.wenxin-composer textarea {
  min-height: 30px;
  font-size: 15px;
  line-height: 1.7;
}

.composer-tools { margin-top: 10px; }

.tool-chip {
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12.5px;
}

.tool-chip:hover { background: rgba(36, 104, 242, 0.07); color: #1557d8; }

.icon-btn:hover { background: rgba(36, 104, 242, 0.07); color: #1557d8; }

.send-btn {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(36, 104, 242, 0.22);
}

.send-btn .icon { font-size: 18px; }

.send-btn:disabled {
  background: #d8dfeb;
  box-shadow: none;
  opacity: 1;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  width: min(760px, 100%);
  margin-top: 4px;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 118px;
  padding: 15px 15px 14px;
  border: 1px solid rgba(36, 104, 242, 0.08);
  border-radius: 15px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9));
  text-align: left;
  box-shadow: 0 3px 12px rgba(28, 74, 160, 0.035);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.prompt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 104, 242, 0.22);
  box-shadow: 0 10px 24px rgba(36, 104, 242, 0.08);
}

.prompt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 17px;
}

.prompt-icon-blue { background: linear-gradient(140deg, #eaf2ff, #dceaff); color: #2468f2; }
.prompt-icon-cyan { background: linear-gradient(140deg, #e6fbff, #d5f6fc); color: #05a0be; }
.prompt-icon-indigo { background: linear-gradient(140deg, #eef0ff, #e0e5ff); color: #5766dd; }

.prompt-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prompt-text strong {
  color: #2c3545;
  font-size: 14px;
  font-weight: 600;
}

.prompt-text small {
  color: #949dac;
  font-size: 12px;
  line-height: 1.5;
}

.composer-bottom-slot { padding-top: 6px; }

.messages { padding-top: 30px; padding-bottom: 34px; }

.message.assistant { gap: 12px; }

.assistant-avatar {
  background: linear-gradient(140deg, #3f8cff, #2468f2 58%, #05a9c8);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(36, 104, 242, 0.16);
}

.assistant-head { color: #293445; }

.model-chip { background: #edf4ff; color: #5d7db3; }

.assistant-content { color: #2e3541; }

.assistant-content a { color: #1557d8; }

.assistant-content blockquote { border-left-color: #3f8cff; }

.message.user .bubble {
  background: #edf4ff;
  color: #1d3354;
  border-radius: 17px 17px 5px 17px;
}

.assistant-actions button:hover,
.user-actions button:hover {
  background: rgba(36, 104, 242, 0.07);
  color: #1557d8;
}

.message-error {
  background: #fff2f3;
  color: #c33a4a;
}

.typing-indicator i { background: #2468f2; }

@media (max-width: 860px) {
  .welcome { padding: 30px 16px 24px; gap: 18px; }
  .hero-logo { width: 62px; height: 62px; border-radius: 19px; }
  .welcome h1 { font-size: 26px; }
  .welcome p { font-size: 13.5px; padding: 0 8px; }
  .prompt-grid { gap: 9px; }
  .prompt-card { min-height: 106px; padding: 12px; border-radius: 13px; }
  .prompt-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
  .prompt-text strong { font-size: 13px; }
  .prompt-text small { font-size: 11px; }
  .topbar { background: rgba(255, 255, 255, 0.88); }
  .user-avatar { display: none; }
}

@media (max-width: 640px) {
  .prompt-grid { grid-template-columns: 1fr; width: 100%; max-width: 430px; }
  .prompt-card {
    flex-direction: row;
    align-items: center;
    min-height: 58px;
    gap: 11px;
  }
  .prompt-text { gap: 2px; }
  .composer-bottom-slot { padding-bottom: 14px; }
}

@media (max-width: 420px) {
  .beta-badge { display: none; }
  .model-pill { font-size: 12px; padding: 0 9px; }
  .hrx-link { padding: 6px 5px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-card { transition: none; }
}
