/* ================================================================
   landing.css — 琉璃微语 · 落地介绍页
   设计理念：温润留白 · 柔光卡片 · 呼吸感节奏
   ================================================================ */

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand .bead {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ---------- Hero 区域 ---------- */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(var(--brand-rgb), 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.hero-text {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(var(--brand-rgb), 0.15);
}

.hero h1 {
  font-size: 2rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 var(--space-6);
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero h1 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 1.0625rem;
  color: var(--text-2);
  margin: 0 0 var(--space-8);
  max-width: 440px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero 视觉 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-visual .glow {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.15) 0%, rgba(var(--brand-rgb), 0.05) 40%, transparent 70%);
  filter: blur(40px);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.1); opacity: 1; }
}

.hero-char {
  position: relative;
  width: min(280px, 60%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  transition: transform var(--duration-slow) var(--ease-out);
}

.hero-char:hover {
  transform: translateY(-8px) scale(1.02);
}

.hero-enter {
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: var(--space-16) 0;
}

/* 软区块：柔和渐变 + 品牌微光 + 顶部发丝分界线，避免生硬方形灰块 */
.section.soft {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--brand-rgb), 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(var(--brand-rgb), 0.03) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

/* 顶部柔和发丝分界线 */
.section.soft::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), 0.15), transparent);
  pointer-events: none;
}

/* 底部柔和渐隐，过渡到下一区块 */
.section.soft::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--bg));
  opacity: 0.35;
  pointer-events: none;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.section-head .kicker {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-2);
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- 特性卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: rgba(var(--brand-rgb), 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card .ico {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  background: var(--brand-soft);
  margin-bottom: var(--space-5);
}

.card h3 {
  margin: 0 0 var(--space-3);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- 应用场景 ---------- */
.scenes {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
}

.scene {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  background: var(--surface);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.scene::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.scene:hover {
  border-color: rgba(var(--brand-rgb), 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.scene:hover::before {
  transform: scaleX(1);
}

.scene.a::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.scene.b::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.scene.c::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.scene h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text);
}

.scene p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.scene .tag {
  position: absolute;
  top: var(--space-6);
  left: var(--space-8);
  font-size: 1.75rem;
}

.scene-col {
  display: grid;
  gap: var(--space-6);
}

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
}

.step {
  text-align: center;
  padding: var(--space-4);
}

.step .n {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.3);
  font-size: 1.125rem;
}

.step h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.step p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- CTA 横幅 ---------- */
.cta-band {
  border-radius: var(--radius-xl);
  background: var(--brand-grad);
  color: #fff;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 var(--space-4);
  color: #fff;
  font-weight: 700;
  position: relative;
}

.cta-band p {
  margin: 0 0 var(--space-8);
  opacity: 0.9;
  position: relative;
}

/* CTA横幅按钮（厚重感：边框 + 阴影 + 光泽） */
.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cta-band .hero-actions {
  justify-content: center;
  position: relative;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0;
  color: var(--text-2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.footer .brand {
  font-size: 1rem;
}

.footer .links {
  display: flex;
  gap: var(--space-6);
  font-size: 0.875rem;
}

.footer .links a {
  color: var(--text-2);
  transition: color var(--duration-fast);
}

.footer .links a:hover {
  color: var(--brand);
}

.footer .copy {
  font-size: 0.8125rem;
  width: 100%;
  margin-top: var(--space-6);
  color: var(--text-soft);
  text-align: center;
}

/* ---------- 底部氛围文案 ---------- */
.closing {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.closing-line {
  margin: 0;
  font-size: 1.125rem;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

/* ---------- 推荐共鸣者（厚重感：大圆角 + 多层阴影 + 充裕内边距） ---------- */
.home-main {
  padding: var(--space-12) 0 var(--space-16);
}

.agent-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.agent-card {
  flex: 0 1 300px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-6);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* 卡片顶部高光线 */
.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.agent-card:hover {
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow:
    var(--shadow-float),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-6px);
}

.agent-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--brand-soft);
  box-shadow:
    0 4px 12px rgba(var(--brand-rgb), 0.15),
    0 2px 4px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.agent-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-desc {
  font-size: 0.8125rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.agent-go {
  color: var(--brand);
  font-size: 1.125rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  transition: all var(--duration-normal) var(--ease-out);
}

.agent-card:hover .agent-go {
  transform: translateX(4px);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.3);
}

/* ---------- 通用标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--brand-soft);
  border: 1px solid rgba(var(--brand-rgb), 0.15);
  color: var(--brand);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-out);
}

.tag:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    min-height: 300px;
  }

  .scenes {
    grid-template-columns: 1fr;
  }

  /* 三步 / 特性卡片：中等屏强制单列，避免 2+1 尴尬 */
  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    max-width: 560px;
    margin: 0 auto;
  }

  .step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: var(--space-5);
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: all var(--duration-normal) var(--ease-out);
  }

  .step:hover {
    border-color: rgba(var(--brand-rgb), 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }

  .step .n {
    margin: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .step h3 {
    margin: 0 0 2px;
    font-size: 1rem;
  }

  .step p {
    margin: 0;
    font-size: 0.875rem;
  }
}

@media (max-width: 560px) {
  .home-main {
    padding: var(--space-8) 0 var(--space-12);
  }

  .agent-row {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-card {
    flex: 1 1 auto;
    max-width: none;
  }

  .agent-avatar {
    width: 48px;
    height: 48px;
  }
}

/* ================================================================
   移动端细节优化（继承设计语言，触摸友好）
   ================================================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-5);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-head {
    margin-bottom: var(--space-8);
  }

  .section-head h2 {
    font-size: 1.375rem;
  }

  .hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .hero h1 {
    font-size: 1.75rem;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero p.lead {
    font-size: 0.9375rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-visual {
    min-height: 260px;
  }

  .hero-char {
    width: min(220px, 62%);
  }

  .card {
    padding: var(--space-6);
  }

  .scene {
    padding: var(--space-6);
    min-height: 180px;
  }

  .scene .tag {
    top: var(--space-4);
    left: var(--space-6);
    font-size: 1.5rem;
  }

  .step .n {
    width: 44px;
    height: 44px;
  }

  .cta-band {
    padding: var(--space-12) var(--space-5);
    border-radius: var(--radius-lg);
  }

  .cta-band .btn {
    flex: 1 1 100%;
  }

  .footer {
    padding: var(--space-8) 0;
  }

  .footer-inner {
    padding: 0 var(--space-5);
  }

  .closing {
    padding: var(--space-12) 0 var(--space-8);
  }

  .closing-line {
    font-size: 1rem;
  }
}

/* ================================================================
   兼容兜底：旧版腾讯 X5 / 内核不支持 aspect-ratio 时，
   首页光晕用固定尺寸兜底（否则空 div 会塌陷为 0 高度）。
   ================================================================ */
@supports not (aspect-ratio: 1 / 1) {
  .hero-visual .glow {
    width: 300px;
    height: 300px;
  }
}
