:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0b1f3a;
  --muted: #5f6f84;
  --line: #d9e2ef;
  --blue: #0a2f5f;
  --blue-soft: #f1f6fd;
  --warm: #fff8ef;
  --shadow: 0 18px 46px rgba(10, 47, 95, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--warm) 0%, var(--bg) 280px);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 24px;
  align-items: stretch;
}

.profile-panel,
.chat-panel {
  background: var(--panel);
  border: 1px solid rgba(217, 226, 239, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(10, 47, 95, 0.07);
}

.profile-panel {
  padding: 32px;
}

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.avatar {
  width: 92px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(10, 47, 95, 0.16);
  font-size: 2.65rem;
  font-weight: 800;
}

.eyebrow {
  margin: 6px 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 4.2rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.status-strip div,
.info-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.status-strip div {
  min-height: 118px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.status-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-strip strong {
  display: block;
  min-height: 1.45em;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.45;
}

.status-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.info-grid {
  display: grid;
  gap: 14px;
}

.info-block {
  padding: 20px;
}

.info-block h2,
.chat-header h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.info-block p,
.work-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.85;
}

.work-list {
  display: grid;
  gap: 14px;
}

.work-list div {
  padding-left: 14px;
  border-left: 3px solid var(--blue-soft);
}

.work-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact-block {
  background: #fffaf3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span,
.quick-questions button {
  border-radius: 999px;
}

.tag-list span {
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-list span::before {
  content: "#";
  color: #9aa8ba;
  margin-right: 2px;
}

.chat-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.chat-header h2 {
  margin-bottom: 0;
}

.chat-hint {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.online-indicator {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 700;
}

.online-indicator[data-status="online"] {
  color: #15803d;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.online-indicator::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 20px;
}

.quick-questions button {
  border: 1px solid rgba(10, 47, 95, 0.18);
  background: #ffffff;
  color: var(--blue);
  min-height: 36px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(10, 47, 95, 0.06);
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.quick-questions button:hover {
  border-color: rgba(10, 47, 95, 0.38);
  background: var(--blue-soft);
  box-shadow: 0 10px 22px rgba(10, 47, 95, 0.1);
  transform: translateY(-1px);
}

.chat-window {
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.message {
  width: fit-content;
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.7;
}

.message p {
  margin: 0;
}

.message-name {
  display: block;
  margin-bottom: 3px;
  color: inherit;
  opacity: 0.66;
  font-size: 0.78rem;
  font-weight: 700;
}

.message.bot {
  align-self: flex-start;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.message.user {
  align-self: flex-end;
  color: #ffffff;
  background: var(--blue);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}

.chat-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 47, 95, 0.1);
}

.chat-form button {
  min-width: 86px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease;
}

.chat-form button:hover {
  background: #082f5d;
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  h1 {
    font-size: 3.4rem;
  }

  .chat-window {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .profile-panel,
  .chat-panel {
    padding: 18px;
  }

  .profile-card {
    align-items: flex-start;
    gap: 14px;
  }

  .avatar {
    width: 68px;
    font-size: 2rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .chat-header {
    align-items: flex-start;
  }

  .chat-window {
    height: 340px;
    padding: 12px;
  }

  .message {
    max-width: 94%;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form button {
    width: 100%;
  }
}
