/* 依赖：先引入 site-public-light.css */

.hero-wrap {
  flex: 1;
  width: 100%;
  max-width: var(--ur-app-max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 9vw, 6rem);
}

.hero-inner {
  position: relative;
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: -15% -5% auto;
  height: 60%;
  background: radial-gradient(ellipse at 30% 0%, rgba(37, 99, 235, 0.06), transparent 60%);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pub-accent);
  margin: 0 0 1rem;
}

.pub-light .hero h1 {
  position: relative;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
  color: var(--pub-text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: currentColor;
}

.lead {
  position: relative;
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  color: var(--pub-text-secondary);
  max-width: 54ch;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.cta {
  position: relative;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.feature-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--pub-radius);
  border: 1px solid var(--pub-border);
  background: var(--pub-bg-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  border-color: #d4d4d4;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.feature-card strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--pub-text);
}
.feature-card span {
  font-size: 0.8125rem;
  color: var(--pub-muted);
  line-height: 1.55;
}

.fine {
  position: relative;
  font-size: 0.8125rem;
  color: var(--pub-muted);
  max-width: 58ch;
  line-height: 1.6;
}

/* 内页通用 */
.page {
  flex: 1;
  width: min(var(--pub-shell-width, 1120px), calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem) 0 4rem;
}

.page h1 {
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--pub-text);
}

.sub {
  color: var(--pub-text-secondary);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  max-width: 62ch;
  line-height: 1.6;
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: 0.75rem;
}
.lang-switch button {
  padding: 0.2em 0.5em;
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid var(--pub-border, #e5e7eb);
  border-radius: 4px;
  cursor: pointer;
  color: var(--pub-text-secondary, #6b7280);
}
.lang-switch button:hover {
  color: var(--pub-accent, #2563eb);
  border-color: var(--pub-accent, #2563eb);
}

/* Chat workspace */
.chat-page-main {
  padding-top: 1.65rem;
}

.chat-stage {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chat-stage-copy h1 {
  margin-bottom: 0.4rem;
}

.chat-kicker {
  margin: 0 0 0.45rem;
  color: var(--pub-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.chat-stage-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 420px;
}

.chat-stage-points span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #dfe6f2;
  color: #5f6d87;
  font-size: 0.76rem;
  font-weight: 600;
}

.chat-trial-banner {
  margin-top: 0.35rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(90deg, #eff6ff 0%, #f7faff 100%);
  border-radius: 14px;
  border: 1px solid #cfe0ff;
  border-left: 4px solid var(--pub-accent, #2563eb);
}

.pub-light .chat-layout {
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .pub-light .chat-layout {
    grid-template-columns: minmax(280px, 320px) 1fr;
  }
}

.chat-config-panel,
.chat-session-panel {
  border-radius: 22px;
  border: 1px solid #e4eaf4;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(148, 163, 184, 0.08);
}

.chat-config-panel {
  align-self: start;
}

@media (min-width: 960px) {
  .chat-config-panel {
    position: sticky;
    top: calc(var(--pub-header-h) + 1rem);
  }
}

.chat-session-panel {
  display: flex;
  flex-direction: column;
  min-height: clamp(620px, calc(100vh - 210px), 820px);
}

.chat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.chat-panel-head h2 {
  margin-bottom: 0.32rem;
}

.chat-panel-head p {
  margin: 0;
  color: var(--pub-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.chat-session-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chat-session-badges span {
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d8e4fb;
  color: #3560c8;
  font-size: 0.72rem;
  font-weight: 700;
}

.chat-login-hint {
  margin-top: 0.55rem;
}

.pub-light .msg-list {
  min-height: clamp(360px, calc(100vh - 470px), 620px);
  flex: 1;
  max-height: none;
  background: linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%);
}

.chat-session-panel textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 900px) {
  .chat-stage {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-stage-points {
    justify-content: flex-start;
    max-width: none;
  }

  .chat-session-panel {
    min-height: auto;
  }
}
