@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Premium Color Palette */
  --ink: #0B1B33;          /* 深海军蓝，比纯黑柔和、与主蓝同色系 */
  --text: #334155;
  --muted: #64748b;
  --quiet: #F3F7FA;        /* 浅蓝灰底，section 交替用 */
  --paper: #ffffff;
  --line: #E4ECF4;

  /* Brand Colors —— 对齐 APP 主色 #0A73F6 */
  --blue-primary: #0A73F6;
  --blue-soft: #3B8EFD;
  --blue-gradient: linear-gradient(135deg, #3B8EFD 0%, #0A73F6 100%);
  --blue-tint: #E6F1FD;    /* 浅蓝底，icon/标签背景 */
  --blue-tint-2: #F3F7FA;

  /* 废弃青绿，保留作渐变点缀但不单独出现
  --cyan-primary: #06b6d4; */
  --green-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);

  /* UI Tokens */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 6px -1px rgb(10 41 90 / 0.05), 0 2px 4px -2px rgb(10 41 90 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(10 41 90 / 0.06), 0 4px 6px -4px rgb(10 41 90 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(10 41 90 / 0.07), 0 8px 10px -6px rgb(10 41 90 / 0.05);
  --shadow-xl: 0 24px 50px -12px rgb(10 41 90 / 0.16);
  --shadow-glow: 0 0 50px rgba(10, 115, 246, 0.18);
  --shadow-btn: 0 8px 20px rgba(10, 115, 246, 0.28);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: 'Inter', "HarmonyOS Sans SC", "PingFang SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(10, 115, 246, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(10, 115, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 115, 246, 0); }
}

.animate-fade-up { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Layout & Typography */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.text-gradient {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Glassmorphism */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(10, 115, 246, 0.08);
  box-shadow: 0 4px 30px rgb(10 41 90 / 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  color: var(--text);
}

.nav a:hover {
  color: var(--blue-primary);
}

/* 主 CTA 改成品牌蓝（呼应蓝白体系，不再用黑底） */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--blue-gradient);
  color: var(--paper) !important;
  font-weight: 700;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-btn);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(10, 115, 246, 0.36);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink) !important;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 115, 246, 0.3);
  color: var(--blue-primary) !important;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(10, 115, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(88, 172, 227, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, #F3F7FA 0%, #FFFFFF 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 540px;
}

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

/* Hero 下方数据条 */
.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-num .unit {
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}
.hero-stat-label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.device-mockup {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 40px;
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.device-mockup img {
  border-radius: 28px;
  width: 100%;
  height: auto;
}

/* Feature Grid */
.section {
  padding: 100px 0;
}

.section--tint {
  background: var(--quiet);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(36px, 4vw, 48px);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--blue-gradient);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 115, 246, 0.2);
}

.feature-card:hover::before {
  opacity: 0.03;
}

/* 内联线性图标：替换 emoji，统一蓝色语言 */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-tint);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}
.feature-card:hover .feature-icon {
  background: var(--blue-gradient);
  color: #fff;
  transform: scale(1.06);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

/* Gallery —— Bento 错落网格，替掉旧的三连排 */
.section--gallery {
  background: linear-gradient(180deg, #F3F7FA 0%, #FFFFFF 100%);
}

.bento-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
  border: 1px solid var(--line);
}
.bento-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.bento-item picture {
  display: block;
  width: 100%;
  height: 100%;
}
/* 手机框版式：用于主要截图 */
.bento-item--device {
  padding: 10px;
  background: #fff;
}
.bento-item--device img {
  border-radius: 24px;
}

/* Bento 尺寸分配（桌面 12 列） */
.bento-home   { grid-column: span 5; grid-row: span 7; }
.bento-trends { grid-column: span 4; grid-row: span 5; }
.bento-buddy  { grid-column: span 3; grid-row: span 5; }
.bento-records{ grid-column: span 4; grid-row: span 4; }
.bento-theme  { grid-column: span 3; grid-row: span 4; }
.bento-detail { grid-column: span 5; grid-row: span 4; }
.bento-profile{ grid-column: span 4; grid-row: span 4; }
.bento-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Steps / Workflow —— 深色反差段 */
.workflow-section {
  background: var(--ink);
  color: #CBD9EE;
  position: relative;
  overflow: hidden;
}
.workflow-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(10, 115, 246, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(88, 172, 227, 0.12) 0%, transparent 45%);
  pointer-events: none;
}
.workflow-section .container { position: relative; z-index: 1; }
.workflow-section h2 { color: #fff; }
.workflow-section .workflow-content > p { color: #93A6C0; }

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step-item {
  display: flex;
  gap: 24px;
}
.step-item h3 { color: #fff; }
.step-item p { color: #93A6C0; }

.step-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(10, 115, 246, 0.4);
}

/* 深色段里的手机框，加柔光 */
.workflow-section .device-mockup {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 60px rgba(10,115,246,0.25);
}

/* Download CTA 段（新增） */
.download-section {
  background: linear-gradient(135deg, #E6F1FD 0%, #F3F7FA 100%);
  padding: 100px 0;
  text-align: center;
}
.download-section h2 {
  font-size: clamp(36px, 4vw, 48px);
  margin-bottom: 16px;
}
.download-section .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.download-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
  overflow: hidden;
}
.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}
.store-badge img {
  display: block;
  width: min(260px, 72vw);
  height: auto;
}

/* Footer */
.site-footer {
  background: var(--paper);
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

/* Content Pages (Privacy, Terms) */
.page-container {
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 60px;
  background: var(--paper);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(228,236,244,0.8);
}

.page-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}

.page-header h1 {
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 16px;
}

.page-meta {
  color: var(--muted);
  font-size: 15px;
}

.page-content h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  color: var(--ink);
}

.page-content p, .page-content li {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 16px;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.page-content a {
  color: var(--blue-primary);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container, .workflow-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    gap: 36px;
  }

  /* Bento 在中等屏降级为 6 列 */
  .bento-wall {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 80px;
  }
  .bento-home   { grid-column: span 6; grid-row: span 6; }
  .bento-trends { grid-column: span 3; grid-row: span 5; }
  .bento-buddy  { grid-column: span 3; grid-row: span 5; }
  .bento-records{ grid-column: span 3; grid-row: span 4; }
  .bento-theme  { grid-column: span 3; grid-row: span 4; }
  .bento-detail { grid-column: span 3; grid-row: span 4; }
  .bento-profile{ grid-column: span 3; grid-row: span 4; }
}

@media (max-width: 768px) {
  .nav a:not(.btn-primary) {
    display: none;
  }

  .site-header {
    height: 70px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-stats {
    gap: 24px;
  }
  .hero-stat-num { font-size: 26px; }

  .bento-wall {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 70px;
  }
  /* 第一张做主图，跨两列；其余两两并排，7 张约 2.5 屏 */
  .bento-home {
    grid-column: span 2;
    grid-row: span 7;
  }
  .bento-wall .bento-item:not(.bento-home) {
    grid-column: span 1;
    grid-row: span 5;
    aspect-ratio: auto;
  }
  .bento-wall .bento-item:not(.bento-home) img {
    /* 截图偏高，按 cover 裁切避免每张都被拉到 9:16 */
  }

  .page-container {
    margin: 100px 20px 60px;
    padding: 32px 24px;
  }
}
