/* ============================================================
   xunban.css — 讯伴产品页专用样式（品牌蓝系）
   采用讯伴 App 官方品牌色彩系统（见 iosfrontend/.../Colors.swift）：
   主蓝 #6BB8E8 / 深蓝 #4A9FD4 / 浅蓝白底 #E8F3FA / 深蓝近黑文字 #1A2433
   ============================================================ */

/* 覆盖共享变量为讯伴品牌蓝系主题 */
:root {
  --bg: #E8F3FA;            /* xnBackground 页面背景（浅蓝白） */
  --bg-soft: #D9ECF7;       /* 比页面背景深一档，用于交替区块 */
  --bg-elevated: #FFFFFF;   /* xnCard 卡片白 */
  --ink: #1A2433;           /* xnTextPrimary 主文字（深蓝近黑） */
  --ink-soft: #6B7A8D;      /* xnTextSecondary 次文字（蓝灰） */
  --ink-muted: #A8B5C5;     /* xnTextHint 提示文字 */
  --accent: #6BB8E8;        /* xnBlue 品牌主蓝 */
  --accent-lt: #9FCFF0;     /* 比主蓝浅一档，hover 提亮 */
  --accent-dk: #4A9FD4;     /* xnBlueDark 深蓝（按压/强调/链接） */
  --accent-heart: #3B8EC0;  /* xnBlueHeart 装饰深蓝 */
  --accent-soft: rgba(107, 184, 232, 0.14);  /* 品牌蓝低透明 */
  --border: #E2EAF0;        /* xnBorder 极淡蓝边框 */
  --border-soft: rgba(180, 200, 215, 0.25);

  --shadow-sm: 0 1px 4px rgba(26, 36, 51, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 36, 51, 0.09), 0 2px 6px rgba(26, 36, 51, 0.05);
  --shadow-lg: 0 16px 48px rgba(26, 36, 51, 0.12), 0 6px 16px rgba(26, 36, 51, 0.07);
}

body {
  background: var(--bg);
}

/* 极淡的噪点纹理，增加质感（中性灰，不与蓝色冲突） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
}

/* 导航品牌名加字距 */
.nav-brand span {
  letter-spacing: 0.15em;
}

/* ---------- Hero 首屏 ---------- */
.x-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 80px;
  overflow: hidden;
}

.x-hero-glow {
  position: absolute;
  top: -100px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 184, 232, 0.28) 0%, rgba(107, 184, 232, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.x-hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.x-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  animation: iconFloat 5s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.x-hero-pinyin {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent-dk);
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  font-weight: 600;
}

.x-hero-title {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
}

.x-hero-quote {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--accent-heart);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.x-hero-desc {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 36px;
}

.x-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 产品定位 价值卡片 ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-grid .card {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.value-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #C9E5F5;
}

/* hover 时背景变浅一档蓝（#C9E5F5），大号数字用品牌深蓝凸显，正文保持深色可读 */
.value-grid .card:hover .value-num {
  color: #4A9FD4;
  opacity: 1;
}

.value-grid .card:hover p {
  color: #2A3A4D;
}

.value-grid .card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.value-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 16px;
}

.value-grid h3 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 12px;
}

.value-grid p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 核心功能 ---------- */
.section-features {
  background: var(--bg-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(74, 159, 212, 0.18);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(26, 36, 51, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-emoji {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-dk);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.feature-card:hover .feature-emoji {
  transform: scale(1.08) rotate(-4deg);
  background: var(--accent);
  color: #FFFFFF;
}

.feature-card h3 {
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 应用场景故事 ---------- */
.section-scenarios {
  background: var(--bg);
}

.stories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.story {
  background: #FFFFFF;
  border: 1px solid rgba(74, 159, 212, 0.18);
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 36, 51, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.story:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.story::before {
  content: '"';
  position: absolute;
  top: 8px;
  right: 28px;
  font-family: var(--serif);
  font-size: 96px;
  color: var(--accent);
  opacity: 0.16;
  line-height: 1;
  pointer-events: none;
}

.story-head {
  margin-bottom: 18px;
}

.story-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dk);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.story h3 {
  font-size: 23px;
  color: var(--ink);
}

.story p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 14px;
}

.story-quote {
  font-family: var(--serif) !important;
  font-size: 17px !important;
  color: var(--accent-heart) !important;
  font-style: italic;
  padding-left: 16px;
  border-left: 2px solid var(--accent-lt);
  margin-top: 16px !important;
}

/* ---------- 下载 CTA ---------- */
.x-cta {
  background: var(--bg-soft);
}

.x-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px;
  background: #FFFFFF;
  border: 1px solid rgba(74, 159, 212, 0.18);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.x-cta-inner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: #C9E5F5;
}

/* hover 时背景变浅一档蓝（#C9E5F5），文字加深保证可读 */
.x-cta-inner:hover .x-cta-desc {
  color: #2A3A4D;
}

.x-cta-inner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.x-cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.x-cta-title {
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.x-cta-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.x-cta-actions {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--accent-heart);
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
}

.store-text small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

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

  .stories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story {
    padding: 28px;
  }

  .x-cta-inner {
    padding: 40px 24px;
  }

  .x-cta-title {
    font-size: 24px;
  }
}
