/* 守望生活 - 主页样式 */
/* 设计原则：与小程序同套视觉语言（navy + 暖土色，Lucide 风图标，无 emoji）*/

:root {
  --primary: #3D5A80;
  --primary-soft: #EEF1F6;
  --primary-hover: #2E4666;
  --bg: #FAFAF8;
  --bg-warm: #F5F2EC;
  --card: #FFFFFF;
  --text: #1A202C;
  --text-sub: #4A5568;
  --text-mute: #8A8F98;
  --border: #E8E6E1;
  --border-soft: #F0EEEA;
  --accent: #B45309;
  --accent-soft: #FEF3E2;
  --success: #2F7D32;
  --success-soft: #E8F3E9;
  --warn: #C2410C;
  --warn-soft: #FFF1E6;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .15s;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.brand-mark img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-sub);
}

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

.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  color: var(--text-sub);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background .15s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  color: var(--text);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== Phone Preview ===== */
.phone-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(74, 111, 165, 0.10);
  max-width: 360px;
  margin-left: auto;
}

.phone-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.phone-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-right: 12px;
}

.phone-name {
  font-size: 15px;
  font-weight: 600;
}

.phone-date {
  font-size: 12px;
  color: var(--text-mute);
}

.phone-status {
  display: flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--success-soft);
  color: var(--success);
  margin-left: auto;
}

.phone-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
}

.phone-timeline {
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.tl-row {
  display: flex;
  align-items: stretch;
  padding: 12px 0;
  font-size: 13px;
}

.tl-time {
  width: 88px;
  color: var(--text-mute);
  padding-top: 8px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.tl-line {
  width: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 12px;
  flex-shrink: 0;
}

.tl-bar {
  width: 1px;
  flex: 1;
  background: var(--border-soft);
  margin-top: 3px;
}

.tl-content {
  flex: 1;
  padding: 6px 0 14px;
}

.tl-label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.tl-label svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  opacity: 0.7;
}

.tl-meta {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 3px;
  margin-left: 20px;
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-warm);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-eyebrow {
  text-align: center;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section .lead {
  text-align: center;
  font-size: 17px;
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 32px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== How it Works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 32px;
  position: relative;
}

.step-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-sub);
  font-size: 14px;
}

/* ===== Privacy ===== */
.privacy {
  background: var(--bg-warm);
}

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

.privacy h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.privacy p {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.privacy ul {
  list-style: none;
}

.privacy li {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}

.privacy li:last-child {
  border-bottom: none;
}

.privacy li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 3px;
}

.privacy-visual {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px;
}

.privacy-visual-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sensor-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

.sensor-row:last-child { border-bottom: none; }

.sensor-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-warm);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.sensor-icon svg {
  width: 18px;
  height: 18px;
}

.sensor-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.sensor-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--success-soft);
  color: var(--success);
}

/* ===== CTA ===== */
.cta {
  background: var(--primary);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.cta p {
  opacity: 0.85;
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 32px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

.cta-btn:hover {
  background: var(--bg-warm);
  color: var(--primary-hover);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0;
  font-size: 13px;
  color: var(--text-mute);
}

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

.footer a {
  color: var(--text-sub);
  margin-right: 24px;
}

.footer-copy {
  font-family: var(--font-mono);
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 28px; }
  .phone-preview { margin: 0 auto; }
}