/* 医护 IP 爆款对标助手 · 原型样式
   视觉基线：蓝白、圆角、轻阴影、移动端优先。 */

:root {
  --blue: #2f6bff;
  --blue-deep: #1f4fe0;
  --blue-ink: #143a9e;
  --blue-soft: #e9f1ff;
  --blue-wash: #f3f7ff;
  --ink: #101a33;
  --ink-2: #3a4763;
  --muted: #7482a0;
  --line: #e5ecf8;
  --card: #ffffff;
  --orange: #ff7a45;
  --red: #ff5a5f;
  --green: #14b87a;
  --shadow: 0 18px 46px rgba(31, 79, 224, 0.13);
  --shadow-soft: 0 8px 24px rgba(31, 79, 224, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.ip-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(80% 50% at 50% 0%, #dbe8ff 0%, rgba(219, 232, 255, 0) 70%),
    #edf3fe;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.ip-shell {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(120% 48% at 50% 0%, #dfeaff 0%, rgba(223, 234, 255, 0) 56%),
    linear-gradient(180deg, #f4f8ff 0%, #ffffff 44%, #ffffff 100%);
}

@media (min-width: 520px) {
  body.ip-body {
    padding: 22px 0;
  }

  .ip-shell {
    min-height: calc(100vh - 44px);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(28, 61, 138, 0.18);
  }
}

/* ---------- 顶部 ---------- */

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(145deg, #4c84ff, #2f6bff);
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.3);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(47, 107, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  box-shadow: 0 4px 12px rgba(31, 79, 224, 0.06);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- 首页 hero ---------- */

.hero {
  position: relative;
  padding: 10px 24px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(47, 107, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--blue-deep);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 8.4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.hero h1 .accent {
  color: var(--blue);
}

.hero-sub {
  margin: 0;
  max-width: 300px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.75;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-stage {
  position: relative;
  height: 248px;
  margin-top: 2px;
}

.stage-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 300px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 153, 255, 0.34) 0%, rgba(102, 153, 255, 0) 68%);
  filter: blur(4px);
}

.stage-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 236px;
  height: 236px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(47, 107, 255, 0.13);
  border-radius: 50%;
}

.stage-ring::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(47, 107, 255, 0.12);
  border-radius: 50%;
}

.role {
  position: absolute;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: floaty 6s ease-in-out infinite;
}

.role-doctor {
  left: 50%;
  z-index: 3;
  width: 124px;
  transform: translateX(-50%);
  animation-delay: -0.6s;
}

.role-nurse {
  left: 10px;
  z-index: 2;
  width: 104px;
  transform: rotate(-5deg);
  animation-delay: -2.2s;
}

.role-rehab {
  right: 5px;
  z-index: 2;
  width: 100px;
  transform: rotate(5deg);
  animation-delay: -3.6s;
}

.role-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.12;
  border-radius: 26px;
  background: linear-gradient(165deg, #dbe9ff 0%, #f6faff 100%);
  box-shadow: 0 16px 30px rgba(31, 79, 224, 0.16);
  overflow: hidden;
}

.role-doctor .role-avatar {
  background: linear-gradient(165deg, #cfe0ff 0%, #eef5ff 100%);
}

.role-nurse .role-avatar {
  background: linear-gradient(165deg, #d8ecff 0%, #f4fbff 100%);
}

.role-rehab .role-avatar {
  background: linear-gradient(165deg, #d9f2ee 0%, #f3fffc 100%);
}

.role-avatar svg {
  width: 100%;
  height: 100%;
}

.role-label {
  position: relative;
  margin-top: -12px;
  padding: 4px 10px;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(31, 79, 224, 0.08);
  white-space: nowrap;
}

.float-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(31, 79, 224, 0.1);
  backdrop-filter: blur(10px);
  animation: floaty 5.5s ease-in-out infinite;
}

.float-chip b {
  color: var(--blue);
  font-size: 12px;
}

.chip-a {
  top: 34px;
  left: 4px;
  animation-delay: -1.4s;
}

.chip-b {
  right: 0;
  top: 76px;
  animation-delay: -3s;
}

/* ---------- 功能卡 ---------- */

.feature-card {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: -12px 18px 0;
  padding: 17px 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
  text-align: center;
}

.feature + .feature {
  border-left: 1px solid rgba(47, 107, 255, 0.09);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: linear-gradient(150deg, #eaf2ff, #dbe8ff);
  color: var(--blue);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.feature-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

/* ---------- CTA ---------- */

.cta-wrap {
  padding: 20px 22px 0;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(100deg, #3b78ff 0%, #2f6bff 52%, #1f56ef 100%);
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 14px 28px rgba(47, 107, 255, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:active {
  transform: scale(0.985);
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.26);
}

.cta .spark {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.cta .arrow {
  position: absolute;
  right: 18px;
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.cta-note svg {
  width: 13px;
  height: 13px;
}

/* ---------- 步骤 ---------- */

.steps-card {
  margin: 24px 18px 0;
  padding: 19px 16px 17px;
  border: 1px solid #dce8ff;
  border-radius: 22px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #eaf2ff 0%, #f6faff 100%);
}

.steps-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.steps-title .tiny-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue-deep);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 14px 1fr 14px 1fr;
  align-items: start;
}

.step {
  text-align: center;
}

.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4c84ff, #2f6bff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.28);
}

.step-title {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
}

.step-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.step-arrow {
  display: grid;
  place-items: center;
  height: 28px;
  color: #a9bce2;
}

.step-arrow svg {
  width: 13px;
  height: 13px;
}

/* ---------- 价值说明 ---------- */

.value-note {
  position: relative;
  margin: 18px 18px 0;
  padding: 15px 17px 15px 19px;
  border-left: 3px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: #f7faff;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.value-note b {
  color: var(--ink);
  font-weight: 700;
}

.value-note .quote {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  line-height: 0;
  margin-right: 2px;
}

/* ---------- 页脚 ---------- */

.footer-note {
  padding: 20px 26px 34px;
  color: #9aa7bf;
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

.footer-note .sep {
  margin: 0 6px;
  color: #c7d2e6;
}

.footer-note .footer-link {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- 二级页头部 ---------- */

.page-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 10px;
  background: rgba(244, 248, 255, 0.82);
  backdrop-filter: blur(16px);
}

.page-head .back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.page-head .back svg {
  width: 18px;
  height: 18px;
}

.page-title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.page-step {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.head-action {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-2);
}

.head-action svg {
  width: 18px;
  height: 18px;
}

/* ---------- 上传页 ---------- */

.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 22px 18px;
}

.progress-bar {
  height: 4px;
  border-radius: 999px;
  background: #dfe8f8;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4c84ff, #2f6bff);
}

.progress-bar.is-active span {
  width: 100%;
}

.progress-bar.is-half span {
  width: 58%;
}

.progress-bar.is-empty span {
  width: 0;
}

.panel {
  margin: 0 18px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.panel + .panel {
  margin-top: 14px;
}

.panel-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.panel-sub {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  margin-top: 16px;
  padding: 20px 14px;
  border: 1.5px dashed #b8ccf4;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.dropzone:active,
.dropzone.is-drag {
  border-color: var(--blue);
  background: #edf4ff;
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 9px;
  border-radius: 16px;
  background: #e8f1ff;
  color: var(--blue);
}

.drop-icon svg {
  width: 24px;
  height: 24px;
}

.drop-title {
  font-size: 13.5px;
  font-weight: 700;
}

.drop-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.drop-link {
  margin-top: 8px;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
}

.file-row {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dce8ff;
  border-radius: 14px;
  background: #f7faff;
}

.file-row.is-on {
  display: flex;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: #e6f0ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-status {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.file-status.is-error {
  color: #c2414a;
}

.file-status.is-ok {
  color: var(--green);
}

.file-remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9aa7bf;
  font-size: 16px;
}

.demo-link {
  display: block;
  width: 100%;
  margin: 9px 0 1px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: #9aa7bf;
  font-size: 10.5px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.is-full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.field label .req {
  color: var(--red);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field select {
  padding-right: 34px;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #8fb2ff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a9b5ca;
}

.segment {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: #f2f6fd;
}

.segment button {
  flex: 1;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.segment button.is-on {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 3px 8px rgba(31, 79, 224, 0.1);
}

.hint {
  margin: 8px 0 0;
  color: #9aa7bf;
  font-size: 10.5px;
  line-height: 1.6;
}

.action-bar {
  padding: 18px 18px calc(24px + var(--safe-bottom));
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(100deg, #3b78ff 0%, #2f6bff 55%, #1f56ef 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(47, 107, 255, 0.28);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn-primary:active {
  transform: scale(0.988);
}

.btn-primary:disabled {
  opacity: 0.42;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-primary svg {
  width: 17px;
  height: 17px;
  margin-left: 6px;
}

.privacy-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 14px 4px 0;
  color: #98a5bb;
  font-size: 10.5px;
  line-height: 1.6;
}

.privacy-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 2px;
}

/* ---------- 对话页 ---------- */

.chat-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.chat-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 10px;
  background: rgba(244, 248, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(47, 107, 255, 0.06);
}

.chat-head .back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.chat-head .back svg {
  width: 17px;
  height: 17px;
}

.agent-id {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.agent-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(145deg, #4c84ff, #2f6bff);
  color: #fff;
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.25);
}

.agent-avatar svg {
  width: 20px;
  height: 20px;
}

.agent-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid #f4f8ff;
  border-radius: 50%;
  background: #23c483;
}

.agent-meta {
  min-width: 0;
}

.agent-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.agent-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.chat-scroll {
  flex: 1;
  padding: 18px 16px 8px;
}

.chat-date {
  margin: 0 0 14px;
  color: #9aa7bf;
  font-size: 10px;
  text-align: center;
}

.msg {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  animation: fadeUp 0.35s both;
}

.msg.ai {
  align-items: flex-start;
}

.msg.me {
  justify-content: flex-end;
}

.msg-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #e8f1ff;
  color: var(--blue);
}

.msg-avatar svg {
  width: 16px;
  height: 16px;
}

.bubble {
  max-width: 78%;
  padding: 11px 13px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 6px 16px rgba(31, 79, 224, 0.06);
}

.msg.me .bubble {
  border-radius: 16px 4px 16px 16px;
  background: linear-gradient(135deg, #3b78ff, #2f6bff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.22);
}

.bubble b {
  color: var(--blue-deep);
}

.msg.me .bubble b {
  color: #fff;
}

.chat-source {
  display: block;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #e4ecf9;
  color: #93a1b8;
  font-size: 9px;
  line-height: 1.5;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9db4df;
  animation: blink 1.2s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.18s;
}

.typing i:nth-child(3) {
  animation-delay: 0.36s;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 16px 36px;
}

.quick {
  padding: 8px 12px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 11.5px;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease;
}

.quick:active {
  transform: scale(0.97);
  background: #edf4ff;
}

.summary-card {
  margin: 4px 0 14px 36px;
  padding: 15px;
  border: 1px solid #d8e6ff;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 0% 0%, #fff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(140deg, #edf4ff, #f8fbff);
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.summary-label svg {
  width: 14px;
  height: 14px;
}

.summary-title {
  margin: 7px 0 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.summary-desc {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.summary-personal {
  margin: 8px 0 0;
  padding: 7px 9px;
  border-left: 2px solid #8fb4f2;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.summary-personal b {
  color: var(--blue-deep);
  font-weight: 600;
}

.summary-hint {
  margin: 8px 0 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-2);
  font-size: 9.5px;
  line-height: 1.55;
}

.summary-source {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
  color: #93a1b8;
  font-size: 8.5px;
  line-height: 1.5;
}

.summary-source svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 7px;
  background: #e8f1ff;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.tag.is-soft {
  background: #f2f5fb;
  color: var(--ink-2);
}

.tag.tag-hospital {
  background: #e7f8f1;
  color: #0b7a57;
  border: 1px solid #c9efdf;
}

.summary-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.summary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, #3b78ff, #2f6bff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(47, 107, 255, 0.22);
}

.summary-actions .summary-cta {
  width: auto;
  min-width: 0;
  flex: 1;
  margin-top: 0;
}

.summary-edit {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-deep);
  font-size: 11.5px;
  font-weight: 600;
}

.composer {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: flex;
  gap: 8px;
  padding: 10px 16px calc(12px + var(--safe-bottom)) 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%, #fff 100%);
}

.composer input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dfe7f5;
  border-radius: 14px;
  background: #f8fbff;
  font-size: 13px;
  outline: none;
}

.composer input:focus {
  border-color: #8fb2ff;
}

.composer button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #4c84ff, #2f6bff);
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.25);
}

.composer button svg {
  width: 19px;
  height: 19px;
}

/* ---------- 推荐页 ---------- */

.radar-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 10px;
  background: rgba(244, 248, 255, 0.9);
  backdrop-filter: blur(16px);
}

.radar-head .back,
.radar-head .share,
.radar-head .pool {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.radar-head .pool {
  position: relative;
  flex: 0 0 auto;
}

.pool-count {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border: 2px solid #f4f8ff;
  border-radius: 999px;
  background: #ff654d;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
}

.pool-count[hidden] {
  display: none;
}

.radar-head svg {
  width: 18px;
  height: 18px;
}

.radar-head .title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.2px;
}

.profile-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 18px 0;
  padding: 15px;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(100% 120% at 0% 0%, #fff 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #e9f1ff 0%, #f6faff 100%);
  box-shadow: 0 8px 22px rgba(31, 79, 224, 0.08);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(145deg, #cfe0ff, #eaf2ff);
  color: var(--blue-deep);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(31, 79, 224, 0.12);
}

.profile-main {
  flex: 1;
  min-width: 0;
}

.profile-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.profile-label .edit-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.profile-label .edit {
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.profile-tags .tag {
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue-deep);
}

.profile-angle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 6px 0 0;
  color: #5d6b82;
  font-size: 9.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.profile-angle[hidden] {
  display: none;
}

.profile-tags {
  max-width: 100%;
  overflow: hidden;
}

.profile-tags .tag {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.profile-angle-toggle {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
}

.profile-angle.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.context-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 18px 0;
  padding: 7px 9px;
  border: 1px solid #e2ecfb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: #8b9bb6;
  font-size: 9px;
  line-height: 1.4;
}

.context-line[hidden] {
  display: none;
}

.context-line svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: #8fb2ff;
}

.context-line b {
  color: var(--blue-deep);
  font-weight: 700;
}

.context-line em {
  margin-left: auto;
  color: var(--blue);
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 20px 20px 10px;
}

.section-head .title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.section-head .count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.section-head .more {
  margin-left: auto;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.content-source {
  margin: -4px 20px 8px;
  color: #97a3b9;
  font-size: 10px;
  line-height: 1.5;
}

.content-source.is-real {
  color: #1b7c5e;
}

.content-source.is-real::before {
  content: "●";
  margin-right: 4px;
  font-size: 7px;
  vertical-align: 1px;
}

.rank-state {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: -2px 20px 10px;
  padding: 8px 10px;
  border: 1px solid #dce8ff;
  border-radius: 10px;
  background: #f5f9ff;
  color: #4f6f9f;
  font-size: 10.5px;
  line-height: 1.55;
}

.rank-state[hidden] {
  display: none;
}

.rank-state-icon {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #8fb2ff;
}

.rank-state.is-loading .rank-state-icon {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border: 2px solid #d6e4ff;
  border-top-color: #2f6bff;
  background: transparent;
  animation: rank-spin 0.8s linear infinite;
}

.rank-state.is-success {
  border-color: #d5eee4;
  background: #f4fbf8;
  color: #28745d;
}

.rank-state.is-success .rank-state-icon {
  background: #24a579;
  box-shadow: 0 0 0 3px rgba(36, 165, 121, 0.1);
}

.rank-state.is-error {
  border-color: #f1e3cf;
  background: #fffaf3;
  color: #8b6a3f;
}

.rank-state.is-error .rank-state-icon {
  background: #d39a4a;
}

@keyframes rank-spin {
  to {
    transform: rotate(360deg);
  }
}

.accounts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 18px 8px;
}

.account {
  width: auto;
  min-width: 0;
  padding: 9px 5px 8px;
  border: 1px solid #e7eefb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(31, 79, 224, 0.05);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.account:active {
  transform: scale(0.97);
}

.account:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dbe9ff, #f1f6ff);
  color: var(--blue-deep);
  font-size: 17px;
  font-weight: 800;
}

.account-avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(47, 107, 255, 0.12);
  border-radius: 50%;
}

.fans {
  display: inline-flex;
  margin-top: -13px;
  padding: 2px 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a6b, #ff5a5f);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.fans.is-author {
  border-color: #fff;
  background: #eef3fb;
  color: #71809b;
  font-weight: 600;
}

.account-name {
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-tag {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-switch {
  display: flex;
  gap: 4px;
  margin: 0 18px 8px;
  padding: 4px;
  border-radius: 13px;
  background: #eef3fb;
}

.type-option {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.type-option em {
  color: #a0acc2;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

.type-option.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 9px rgba(31, 79, 224, 0.1);
}

.type-option.is-on em {
  color: var(--blue);
}

.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 18px 12px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #dfe8f8;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.filter.is-on {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

.video-list,
.note-list {
  padding: 0 18px;
}

.video {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2fa;
  cursor: pointer;
}

.video:last-child {
  border-bottom: 0;
}

.thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 78px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(80% 80% at 70% 20%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(145deg, #c9ddff, #7fa8ff);
}

.thumb::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -22px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.thumb::after {
  content: "";
  position: absolute;
  right: -12px;
  top: -18px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.thumb.v2 {
  background: linear-gradient(145deg, #d6e6ff, #6f9cff);
}

.thumb.v3 {
  background: linear-gradient(145deg, #cdeee7, #5fc6b3);
}

.thumb.v4 {
  background: linear-gradient(145deg, #ffe1d4, #ff9c7a);
}

.thumb.v5 {
  background: linear-gradient(145deg, #e3ddff, #9d8bff);
}

.play-btn {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(16, 26, 51, 0.32);
  color: #fff;
  backdrop-filter: blur(4px);
}

.play-btn svg {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}

.note-type {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 3;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(16, 26, 51, 0.42);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.5;
  backdrop-filter: blur(4px);
}

.thumb.is-image .note-type {
  background: rgba(19, 111, 85, 0.78);
}

.image-stack {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 9px;
  background: rgba(16, 26, 51, 0.26);
  color: #fff;
  backdrop-filter: blur(4px);
}

.image-stack svg {
  width: 17px;
  height: 17px;
}

.thumb.has-cover {
  background-color: #dbe5f2;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 999px rgba(12, 24, 48, 0.16);
}

.thumb .cover-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb .cover-img.is-broken {
  display: none;
}

.thumb.has-cover::before {
  display: none;
}

.thumb.has-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(12, 24, 48, 0.04) 35%,
    rgba(12, 24, 48, 0.3) 100%
  );
  pointer-events: none;
}

.thumb.has-cover .thumb-word,
.thumb.has-cover .image-stack {
  display: none;
}

.thumb.has-cover.cover-failed .image-stack {
  display: grid;
}

.thumb.has-cover .play-btn {
  background: rgba(16, 26, 51, 0.5);
  backdrop-filter: blur(3px);
}

.duration {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(16, 26, 51, 0.55);
  color: #fff;
  font-size: 8.5px;
  font-weight: 600;
}

.thumb-word {
  position: absolute;
  left: 8px;
  top: 6px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.video-main {
  flex: 1;
  min-width: 0;
}

.video-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-reason {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f2f7ff;
  color: #3e6fd8;
  font-size: 10.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.video-meta svg {
  width: 11px;
  height: 11px;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.video-tags .tag {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 8.5px;
}

.tag-hot {
  background: #fff1e9;
  color: #e9662f;
}

.tag-easy {
  background: #e9f8f1;
  color: #159a67;
}

.tag-value {
  background: #eef2ff;
  color: #5169c9;
}

.tag-low {
  background: #fff0f3;
  color: #d94f6a;
}

.tag-profile {
  background: #f3edff;
  color: #7550c9;
}

.tag-type-video {
  background: #eaf1ff;
  color: #2860d8;
}

.tag-type-image {
  background: #e7f8f0;
  color: #127a58;
}

.radar-footer {
  padding: 18px 22px calc(28px + var(--safe-bottom));
  color: #9aa7bf;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

/* ---------- 内容拆解弹层 ---------- */

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 20, 40, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sheet-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: 100%;
  max-width: 460px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 10px 20px calc(24px + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.sheet-mask.is-open .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #dce4f2;
}

.sheet-title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
}

.author-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-sheet-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--blue-deep);
  font-size: 18px;
  font-weight: 800;
}

.author-sheet-head .sheet-title {
  font-size: 17px;
}

.author-sheet-head .sheet-meta {
  margin-top: 4px;
}

.author-jump {
  text-decoration: none;
}

.sheet-block {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #f7faff;
}

.sheet-block h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}

.sheet-block h4 svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.sheet-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet-block li {
  position: relative;
  padding-left: 13px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

.sheet-block li + li {
  margin-top: 6px;
}

.sheet-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fb2ff;
}

.sheet-fit {
  border: 1px solid #dce8ff;
  background: #f2f7ff;
}

.sheet-fit p {
  margin: 0;
  color: #3f5f92;
  font-size: 12px;
  line-height: 1.7;
}

.sheet-fit .sheet-fit-how {
  margin-top: 7px;
  color: #2f6bff;
}

.sheet-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, #3b78ff, #2f6bff);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(47, 107, 255, 0.24);
}

.sheet-cta.is-saved {
  border: 1px solid #cddcff;
  background: #eef4ff;
  color: var(--blue-deep);
  box-shadow: none;
}

.sheet-source {
  display: block;
  margin-top: 10px;
  color: #7b8ba8;
  font-size: 10.5px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

/* ---------- 选题池 ---------- */

.pool-hero {
  margin: 8px 18px 0;
  padding: 17px 18px 15px;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(133, 172, 255, 0.28) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, #f4f8ff 0%, #e8f1ff 100%);
  box-shadow: 0 8px 22px rgba(31, 79, 224, 0.07);
}

.pool-eyebrow {
  color: var(--blue-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.pool-headline {
  margin-top: 3px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.pool-headline span {
  color: var(--blue);
  font-size: 30px;
}

.pool-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.pool-stats {
  display: flex;
  gap: 17px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10.5px;
}

.pool-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pool-stats b {
  color: var(--ink);
  font-size: 12px;
}

.pool-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pool-dot.is-todo {
  background: #ffad5c;
}

.pool-dot.is-done {
  background: #42b883;
}

.pool-list {
  padding: 0 18px;
}

.pool-card {
  display: flex;
  gap: 11px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #e7eefb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(31, 79, 224, 0.05);
}

.pool-card.is-done {
  background: #fbfdfc;
}

.pool-thumb {
  width: 82px;
  height: 100px;
  flex: 0 0 82px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.pool-thumb .thumb-word {
  left: 8px;
  top: 7px;
  font-size: 10px;
}

.pool-thumb .duration {
  right: 5px;
  bottom: 5px;
}

.pool-thumb .note-type {
  right: 5px;
  top: 5px;
  font-size: 7.5px;
}

.pool-thumb .image-stack {
  width: 27px;
  height: 27px;
}

.pool-thumb .image-stack svg {
  width: 15px;
  height: 15px;
}

.pool-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.pool-top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.pool-dept {
  padding: 2px 6px;
  border-radius: 5px;
  background: #edf3ff;
  color: var(--blue-deep);
  font-size: 8.5px;
  font-weight: 700;
}

.pool-flag {
  padding: 2px 5px;
  border-radius: 5px;
  background: #fff3e6;
  color: #c97612;
  font-size: 8.5px;
  font-weight: 700;
}

.pool-flag.is-done {
  background: #e9f8f1;
  color: #159a67;
}

.pool-time {
  margin-left: auto;
  color: #a0acc2;
  font-size: 8.5px;
  white-space: nowrap;
}

.pool-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pool-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.pool-card .video-tags {
  margin-top: 5px;
}

.pool-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.pool-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.pool-action.is-done {
  color: #159a67;
}

.pool-remove {
  margin-left: auto;
  color: #a2aec2;
  font-weight: 500;
}

.empty-state {
  margin: 8px 18px 0;
  padding: 30px 20px 26px;
  border: 1px dashed #cddcf5;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff, #f3f8ff);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #eaf2ff;
  color: var(--blue);
}

.empty-icon svg {
  width: 25px;
  height: 25px;
}

.empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.empty-state p {
  max-width: 250px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.empty-cta {
  margin-top: 15px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.2);
}

.sheet-remove {
  display: block;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #a2aec2;
  font-size: 10.5px;
}


/* ---------- 通用 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  transform: translate(-50%, 16px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 26, 51, 0.88);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(8px);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: rgba(145, 32, 32, 0.94);
}

body.ip-error-open {
  overflow: hidden;
}

.ip-error-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: calc(100% - 24px);
  max-width: 520px;
  box-sizing: border-box;
  padding: 11px 10px 11px 12px;
  border: 1px solid #f0c9c9;
  border-radius: 13px;
  background: #fff7f7;
  color: #3a2020;
  box-shadow: 0 10px 28px rgba(21, 33, 54, 0.16);
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ip-error-banner.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ip-error-banner-dot {
  display: flex;
  flex: 0 0 19px;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ip-error-banner-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.45;
}

.ip-error-banner-copy b {
  font-size: 12px;
  font-weight: 700;
}

.ip-error-banner-copy span {
  color: #6f4b4b;
  font-size: 11px;
  word-break: break-word;
}

.ip-error-banner-detail,
.ip-error-banner-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #9a3f3f;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.ip-error-banner-close {
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 18px;
  line-height: 18px;
}

.ip-error-mask {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(11, 21, 38, 0.48);
  backdrop-filter: blur(3px);
}

.ip-error-card {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow: auto;
  box-sizing: border-box;
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(9, 20, 38, 0.28);
  color: #15213a;
}

.ip-error-kicker {
  color: #b42318;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ip-error-card h2 {
  margin: 8px 0 7px;
  font-size: 19px;
  line-height: 1.35;
}

.ip-error-message {
  margin: 0;
  color: #4a5870;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-word;
}

.ip-error-meta {
  margin: 10px 0 0;
  color: #8a96aa;
  font-size: 10px;
  line-height: 1.5;
  word-break: break-all;
}

.ip-error-details {
  margin-top: 13px;
  border-radius: 10px;
  background: #f5f7fb;
  padding: 9px 11px;
}

.ip-error-details summary {
  color: #68758b;
  font-size: 11px;
  cursor: pointer;
}

.ip-error-details pre {
  max-height: 150px;
  margin: 8px 0 0;
  overflow: auto;
  color: #56637a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ip-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.ip-error-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #42516a;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ip-error-actions .ip-error-close {
  border-color: #15213a;
  background: #15213a;
  color: #fff;
}

@media (max-width: 360px) {
  .ip-error-banner-detail {
    display: none;
  }

  .ip-error-card {
    padding: 18px 15px 14px;
  }
}

.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;
}

.fade-up {
  animation: fadeUp 0.55s both;
}

.delay-1 {
  animation-delay: 0.06s;
}

.delay-2 {
  animation-delay: 0.12s;
}

.delay-3 {
  animation-delay: 0.18s;
}

.delay-4 {
  animation-delay: 0.24s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 360px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-stage {
    height: 224px;
  }

  .role-doctor {
    width: 110px;
  }

  .role-nurse {
    width: 92px;
    left: 0;
  }

  .role-rehab {
    width: 88px;
    right: 0;
  }

  .feature-title {
    font-size: 11px;
  }

  .feature-sub {
    font-size: 8.8px;
  }

  .step-title {
    font-size: 10.5px;
  }

  .step-sub {
    font-size: 8.8px;
  }

  .thumb {
    width: 96px;
    height: 72px;
  }
}

.hospital-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 9px 10px;
  border: 1px solid #dce8ff;
  border-radius: 14px;
  background: linear-gradient(100deg, #f6faff, #eef5ff);
}

.hospital-link-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(145deg, #4c84ff, #2f6bff);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

.hospital-link-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.hospital-link-copy b {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hospital-link-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.hospital-link > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #8ca8db;
}

/* ---------- 医院资料 ---------- */

.hospital-hero {
  margin: 6px 18px 0;
  padding: 21px 20px 17px;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(147, 181, 255, 0.34) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(140deg, #edf4ff 0%, #f8fbff 100%);
  box-shadow: 0 10px 26px rgba(31, 79, 224, 0.08);
}

.hospital-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.hospital-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

.hospital-hero h2 {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.6px;
  line-height: 1.25;
}

.hospital-hero p {
  max-width: 310px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.hospital-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.hospital-hero-points span {
  padding: 4px 8px;
  border: 1px solid rgba(47, 107, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--blue-deep);
  font-size: 9px;
  font-weight: 700;
}

.hospital-current {
  margin: 13px 18px 0;
}

.hospital-card {
  padding: 16px;
  border: 1px solid #e4edfb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(31, 79, 224, 0.06);
}

.hospital-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hospital-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: linear-gradient(145deg, #4c84ff, #2f6bff);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.22);
}

.hospital-status {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 8.5px;
  font-weight: 800;
}

.hospital-status.is-seed {
  background: #fff2e4;
  color: #c97612;
}

.hospital-status.is-live {
  background: #e9f8f1;
  color: #159a67;
}

.hospital-date {
  margin-left: auto;
  color: #a1aec4;
  font-size: 9px;
}

.hospital-name {
  margin: 11px 0 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.hospital-place {
  margin: 3px 0 0;
  color: var(--blue-deep);
  font-size: 10.5px;
  font-weight: 600;
}

.hospital-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hospital-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.hospital-tags .tag {
  padding: 3px 7px;
  background: #eef4ff;
  color: var(--blue-deep);
  font-size: 9px;
}

.hospital-tags .tag-more {
  background: #f5f8fe;
  color: var(--muted);
}

.hospital-source {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #e4ecf9;
  color: #93a1b8;
  font-size: 9px;
  line-height: 1.5;
}

.hospital-source svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.hospital-source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hospital-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
}

.hospital-cta {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 700;
}

.hospital-cta.is-secondary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.2);
}

.hospital-used {
  margin-right: auto;
  color: #159a67;
  font-size: 9.5px;
  font-weight: 700;
}

.hospital-card-note {
  margin: 8px 0 0;
  color: #9aa8bc;
  font-size: 9px;
  line-height: 1.55;
}

.hospital-import {
  margin-top: 14px;
}

.hospital-dropzone {
  min-height: 137px;
  margin-top: 14px;
}

.parse-note {
  margin: 0;
  padding: 0 2px;
  color: var(--blue-deep);
  font-size: 10px;
  line-height: 1.55;
}

.parse-note:empty {
  display: none;
}

.parse-note:not(:empty) {
  margin-top: 8px;
}

.hospital-preview {
  margin-top: 14px;
}

.preview-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.preview-head .panel-title {
  flex: 1;
}

.preview-meta {
  padding: 3px 6px;
  border-radius: 5px;
  background: #eef4ff;
  color: var(--blue-deep);
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.hospital-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 14px;
}

.hospital-form .field.is-full {
  grid-column: 1 / -1;
}

.hospital-form textarea {
  min-height: 112px;
}

.preview-block {
  margin-top: 13px;
}

.preview-label {
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
}

.tag-center {
  padding: 4px 8px;
  border: 1px solid #dbe7ff;
  background: #f4f8ff;
  color: var(--blue-deep);
  font-size: 9px;
  font-weight: 600;
}

.angle-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.angle-list li {
  position: relative;
  margin-top: 5px;
  padding-left: 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.angle-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8fb2ff;
}

.preview-empty {
  color: #a1aec4;
  font-size: 9.5px;
}

.preview-foot {
  margin: 8px 4px 0;
  color: #9aa8bc;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.hospital-preview .btn-primary {
  margin-top: 14px;
  min-height: 46px;
  font-size: 13px;
}

.hospital-how {
  margin: 18px 18px 0;
  padding: 18px;
  border-radius: 22px;
  background: #f8fbff;
  border: 1px solid #e8f0fc;
}

.hospital-how h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.how-row {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}

.how-index {
  flex: 0 0 auto;
  color: #9db9ef;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.how-row b {
  display: block;
  color: var(--ink-2);
  font-size: 10.5px;
}

.how-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.hospital-footer {
  margin: 16px 18px calc(22px + var(--safe-bottom));
  color: #9aa8bc;
  font-size: 9.5px;
  line-height: 1.65;
  text-align: center;
}

.content-head {
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.content-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.content-head-actions .more {
  margin-left: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.content-head-actions .more:hover {
  color: var(--blue-deep);
}

.content-head-actions .more:disabled {
  cursor: wait;
  opacity: 0.55;
}

.pool-supplement-error {
  margin: 10px 20px 0;
  color: #c2414a;
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.ip-login .login-shell {
  min-height: 100vh;
  padding-bottom: 28px;
}

.login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 4px;
}

.login-back {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.login-main {
  padding: 38px 24px 0;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #d9e6ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #45658f;
  font-size: 11px;
  font-weight: 650;
}

.login-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.login-title {
  margin: 18px 0 10px;
  color: #18243a;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.login-title span {
  color: var(--blue);
}

.login-sub {
  margin: 0 0 24px;
  color: #6f7c90;
  font-size: 13px;
  line-height: 1.7;
}

.login-card {
  padding: 20px;
  border: 1px solid rgba(214, 227, 247, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(39, 82, 150, 0.1);
}

.login-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.login-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #2f6bff, #78a6ff);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.login-card-title {
  color: #1d2a40;
  font-size: 15px;
  font-weight: 800;
}

.login-card-sub {
  margin-top: 2px;
  color: #8a96a8;
  font-size: 11px;
}

.login-label {
  display: block;
  margin: 13px 0 6px;
  color: #4d5c73;
  font-size: 12px;
  font-weight: 700;
}

.login-input {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #dbe5f4;
  border-radius: 13px;
  outline: none;
  background: #fbfdff;
  color: #17233a;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-input:focus {
  border-color: #8fb6ff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.login-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-code-row .login-input {
  flex: 1;
  min-width: 0;
}

.login-code-btn {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #cfe0fb;
  border-radius: 13px;
  background: #f4f8ff;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.login-code-btn:disabled {
  cursor: default;
  opacity: 0.55;
}

.login-submit {
  width: 100%;
  margin-top: 18px;
}

.login-hint {
  min-height: 18px;
  margin: 10px 0 0;
  color: #6b7a8f;
  font-size: 11.5px;
  line-height: 1.5;
}

.login-hint.is-error {
  color: #c2414a;
}

.login-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 2px 0;
  color: #7b8799;
  font-size: 11px;
}

.login-terms {
  margin: 26px 24px 0;
  color: #97a3b4;
  font-size: 10.5px;
  line-height: 1.65;
  text-align: center;
}

@media (min-width: 520px) {
  .login-main {
    max-width: 430px;
    margin: 0 auto;
  }
}

/* AI creation selection */
.pool-card {
  position: relative;
}

.pool-pick {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(25, 52, 96, 0.16);
  cursor: pointer;
}

.pool-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pool-pick span {
  width: 16px;
  height: 16px;
  border: 2px solid #b8c8df;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.pool-pick input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
}

.create-bar {
  position: sticky;
  z-index: 20;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 16px 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(206, 222, 246, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(34, 75, 140, 0.16);
  backdrop-filter: blur(12px);
}

.create-bar[hidden] {
  display: none;
}

.create-bar-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  color: #53637a;
  font-size: 10.5px;
}

.create-bar-copy b {
  color: #1d2a40;
  font-size: 13px;
}

.create-bar-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #2f6bff, #6f9dff);
  box-shadow: 0 7px 18px rgba(47, 107, 255, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.create-bar-btn:disabled {
  background: #dbe5f5;
  box-shadow: none;
  color: #8e9bad;
  cursor: default;
}

/* AI creation page */
.create-head-badge {
  padding: 5px 9px;
  border: 1px solid #d5e4fb;
  border-radius: 999px;
  background: #f3f8ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
}

.create-main {
  padding: 0 18px 34px;
}

.create-intro {
  padding: 24px 4px 18px;
}

.create-intro .eyebrow {
  margin-bottom: 10px;
}

.create-intro h2 {
  margin: 0 0 10px;
  color: #18243a;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.create-intro p {
  margin: 0;
  color: #6d7b90;
  font-size: 12.5px;
  line-height: 1.75;
}

.create-panel {
  padding: 18px;
  border: 1px solid rgba(210, 226, 247, 0.95);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(39, 75, 135, 0.07);
}

.create-panel-head,
.create-gallery-head,
.create-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.create-panel-head h3,
.create-gallery-head h3 {
  margin: 0;
  color: #1b2940;
  font-size: 15px;
  font-weight: 800;
}

.create-panel-head span,
.create-gallery-head span {
  color: #8a97a9;
  font-size: 10.5px;
}

.create-refs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.create-ref {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border-radius: 12px;
  background: #f7faff;
}

.create-ref-type {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 6px;
  background: #e7f0ff;
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 750;
}

.create-ref-main {
  min-width: 0;
}

.create-ref-main h4 {
  margin: 0;
  color: #26364e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.create-ref-main p {
  margin: 3px 0 0;
  color: #8a97a9;
  font-size: 10px;
}

.create-empty {
  margin: 12px 0;
  color: #a06a70;
  font-size: 11px;
}

.create-label {
  display: block;
  margin: 16px 0 7px;
  color: #52627b;
  font-size: 11px;
  font-weight: 700;
}

.create-textarea {
  width: 100%;
  min-height: 82px;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #dce7f6;
  border-radius: 12px;
  outline: none;
  background: #fbfdff;
  color: #25364e;
  font: inherit;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
}

.create-textarea:focus {
  border-color: #91b8f2;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.08);
}

.create-actions {
  margin-top: 14px;
}

.create-submit {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f6bff, #6f9dff);
  box-shadow: 0 9px 22px rgba(47, 107, 255, 0.24);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.create-submit svg {
  width: 16px;
  height: 16px;
}

.create-submit:disabled {
  background: #dbe5f5;
  box-shadow: none;
  color: #8c99ab;
  cursor: default;
}

.create-submit.is-loading {
  opacity: 0.75;
}

.create-hint {
  min-height: 17px;
  margin: 8px 2px 0;
  color: #718096;
  font-size: 10.5px;
  line-height: 1.55;
}

.create-hint.is-error {
  color: #c2414a;
}

.create-result {
  margin-top: 22px;
}

.create-result-head {
  align-items: center;
  margin-bottom: 12px;
}

.create-result-head h2 {
  margin: 3px 0 0;
  color: #17243a;
  font-size: 22px;
  font-weight: 800;
}

.create-format {
  color: #7e8da2;
  font-size: 10.5px;
  white-space: nowrap;
}

.create-draft {
  padding: 18px;
  border: 1px solid #dce7f5;
  border-radius: 18px;
  background: #fff;
}

.create-draft-block + .create-draft-block {
  margin-top: 15px;
}

.create-draft-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8996a8;
  font-size: 10px;
  font-weight: 700;
}

.create-draft-label button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.create-draft-title {
  margin: 6px 0 0;
  color: #1b2b43;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}

.create-draft-body {
  margin: 6px 0 0;
  color: #45556b;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.create-draft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.create-gallery-head {
  margin: 20px 2px 10px;
}

.create-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.create-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce7f5;
  border-radius: 12px;
  background: #fff;
}

.create-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #edf4ff;
}

.create-card figcaption {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  color: #586980;
  font-size: 9.5px;
  line-height: 1.35;
}

.create-card figcaption b {
  color: var(--blue);
  font-size: 9px;
}

.create-card figcaption a {
  margin-left: auto;
  color: var(--blue);
  font-size: 9px;
  text-decoration: none;
  white-space: nowrap;
}

.create-warnings {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8ee;
  color: #a26a2e;
  font-size: 10.5px;
  line-height: 1.6;
}

.create-result-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.create-next {
  display: flex;
  flex: 1;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.create-next.is-secondary {
  border: 1px solid #d4e2f7;
  background: #f7faff;
  color: #48678e;
}

.create-recent {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dce7f5;
  border-radius: 18px;
  background: #fff;
}

.create-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 11px;
  background: #f7faff;
  text-align: left;
  cursor: pointer;
}

.recent-item img {
  width: 46px;
  height: 61px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  background: #eaf2ff;
}

.recent-item-main {
  min-width: 0;
}

.recent-item-main b {
  display: block;
  overflow: hidden;
  color: #2a3b53;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-item-main span {
  display: block;
  margin-top: 3px;
  color: #8a97a9;
  font-size: 9.5px;
}

/* Batch creation */
.batch-article {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #dce7f5;
  border-radius: 18px;
  background: #fff;
}

.batch-article-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2fa;
}

.batch-article-head span {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.batch-article-head b {
  color: #1b2b43;
  font-size: 17px;
  line-height: 1.45;
}

.batch-article-body {
  margin: 12px 0;
  color: #45556b;
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.batch-article .create-gallery {
  margin-top: 14px;
}

.create-bar {
  flex-wrap: wrap;
}

.create-bar-copy {
  flex: 1 1 100%;
}

.create-bar-btn {
  flex: 1 1 0;
}

.create-bar-btn.is-secondary {
  border: 1px solid #d5e3f8;
  background: #f4f8ff;
  box-shadow: none;
  color: #3e669b;
}

/* Radar batch add */
.batch-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 2px 0;
  padding: 9px 11px;
  border: 1px solid #e1ebf8;
  border-radius: 12px;
  background: #f9fbff;
  color: #687a92;
  font-size: 10.5px;
}

.batch-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  cursor: pointer;
}

.batch-select-all input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.batch-selected {
  margin-left: auto;
}

.batch-add {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 10.5px;
  font-weight: 750;
  cursor: pointer;
}

.batch-add:disabled {
  background: #dbe5f5;
  color: #8a98ab;
  cursor: default;
}

.video-pick {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 7px rgba(25, 52, 96, 0.18);
  cursor: pointer;
}

.video-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.video-pick span {
  width: 15px;
  height: 15px;
  border: 2px solid #b8c8df;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.video-pick input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
}

.video.note-card {
  position: relative;
}

/* Collections and works workspace */
.workspace-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 2px 0;
  padding: 4px;
  border: 1px solid #e0eafa;
  border-radius: 13px;
  background: #f5f9ff;
}

.workspace-tab {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6d7e95;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.workspace-tab b {
  margin-left: 3px;
  font-size: 10px;
  font-weight: 700;
}

.workspace-tab.is-on {
  background: #fff;
  box-shadow: 0 3px 10px rgba(39, 75, 135, 0.09);
  color: var(--blue);
}

.pool-scroll {
  margin-top: 10px;
  padding: 2px 2px 8px;
}

.pool-filter-empty {
  padding: 26px 12px;
  color: #8997a9;
  font-size: 11.5px;
  text-align: center;
}

.works-filter {
  display: flex;
  gap: 8px;
  margin: 14px 2px 10px;
}

.works-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce7f5;
  border-radius: 10px;
  background: #fff;
  color: #687a92;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.works-chip b {
  margin-left: 3px;
  font-size: 9.5px;
}

.works-chip.is-on {
  border-color: #bcd4fa;
  background: #eef5ff;
  color: var(--blue);
}

.works-scroll {
  padding-bottom: 8px;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.work-card {
  display: flex;
  gap: 11px;
  padding: 10px;
  border: 1px solid #e1ebf8;
  border-radius: 14px;
  background: #fff;
}

.work-cover {
  position: relative;
  flex: 0 0 76px;
  height: 101px;
  overflow: hidden;
  border-radius: 9px;
  background: #edf4ff;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-status {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(48, 76, 120, 0.82);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
}

.work-status.is-published {
  background: rgba(34, 137, 91, 0.9);
}

.work-main {
  min-width: 0;
  flex: 1;
}

.work-main h3 {
  margin: 2px 0 5px;
  color: #26364e;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.work-meta {
  margin: 0 0 10px;
  color: #8b98aa;
  font-size: 10px;
  line-height: 1.5;
}

.work-toggle {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cfe0f8;
  border-radius: 8px;
  background: #f5f9ff;
  color: #3d679e;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.work-toggle.is-published {
  border-color: #cfe8dc;
  background: #f2fbf6;
  color: #2b8a5e;
}

.work-toggle:disabled {
  opacity: 0.6;
  cursor: default;
}
