/* ================================================
   家脉 App 宣传网站 — 全局样式
   主题：Heritage 传承暖棕
   ================================================ */

/* ---- CSS 变量 ---- */
:root {
  --primary:       #8B5A2B;
  --primary-dark:  #6B4220;
  --primary-light: #B07840;
  --accent:        #B8860B;
  --accent-light:  #D4A017;
  --bg:            #FAF8F5;
  --bg-card:       #FFFFFF;
  --bg-section:    #F3EDE4;
  --text-dark:     #2C1810;
  --text-body:     #4A3728;
  --text-muted:    #7A6550;
  --shadow:        0 4px 20px rgba(139, 90, 43, 0.10);
  --shadow-hover:  0 12px 36px rgba(139, 90, 43, 0.20);
  --radius:        16px;
  --radius-sm:     8px;
  --radius-lg:     24px;
  --transition:    all 0.28s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans CJK SC', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- 排版 ---- */
.text-hero  { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.2; color: var(--text-dark); }
.text-h2    { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; color: var(--text-dark); }
.text-h3    { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); }
.text-muted { color: var(--text-muted); }
.text-accent{ color: var(--accent); }
.text-center{ text-align: center; }

/* ---- 布局 ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }
.section-title    { text-align: center; margin-bottom: 12px; }
.section-subtitle {
  text-align: center; color: var(--text-muted);
  margin-bottom: 52px; font-size: 1.05rem;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ---- 导航栏 ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 90, 43, 0.10);
}
.navbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700; color: var(--text-dark);
}
.navbar-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 800;
  flex-shrink: 0;
}
.navbar-nav { display: flex; align-items: center; gap: 32px; }
.navbar-nav a { color: var(--text-body); font-size: 0.95rem; transition: var(--transition); }
.navbar-nav a:hover { color: var(--primary); }
.navbar-cta {
  background: var(--primary); color: #fff;
  padding: 8px 22px; border-radius: 20px;
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
}
.navbar-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border-radius: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: var(--transition);
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--transition);
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-accent  { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,134,11,0.30); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- 徽标 ---- */
.badge {
  display: inline-block; padding: 4px 14px;
  border-radius: 20px; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.04em;
}
.badge-primary { background: rgba(139,90,43,0.10); color: var(--primary); }
.badge-accent  { background: rgba(184,134,11,0.12); color: var(--accent); }

/* ---- Hero ---- */
.hero {
  padding: 76px 0 64px;
  background: linear-gradient(140deg, var(--bg) 0%, #EFE5D5 55%, var(--bg) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,11,0.07) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.hero-badge     { margin-bottom: 20px; }
.hero-title     { margin-bottom: 18px; }
.hero-subtitle  {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 36px; line-height: 1.75;
  max-width: 420px;
}
.hero-actions   { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats     {
  display: flex; gap: 32px; margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(139,90,43,0.12);
  flex-wrap: wrap;
}
.hero-stat-value { font-size: 1.7rem; font-weight: 700; color: var(--primary); line-height: 1; }
.hero-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ---- 功能卡片 ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(139,90,43,0.07);
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { color: var(--text-muted); font-size: 0.93rem; line-height: 1.72; }

.icon-tree     { background: rgba(91, 125, 177, 0.12); }
.icon-moments  { background: rgba(219, 112, 147, 0.12); }
.icon-birthday { background: rgba(184, 134, 11, 0.12); }
.icon-album    { background: rgba(139, 90, 43, 0.12); }
.icon-announce { background: rgba(76, 175, 80, 0.12); }
.icon-events   { background: rgba(156, 39, 176, 0.12); }

/* ---- 更多功能标签云 ---- */
.more-features-list {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
.more-feature-tag {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(139,90,43,0.14);
  border-radius: 30px; padding: 10px 20px;
  font-size: 0.93rem; color: var(--text-body);
  transition: var(--transition); cursor: default;
}
.more-feature-tag:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(139,90,43,0.04);
  transform: translateY(-2px);
}
.more-feature-tag .tag-icon { font-size: 17px; }

/* ---- 截图轮播 ---- */
.carousel-wrapper {
  display: flex; align-items: center;
  justify-content: center; gap: 20px;
}
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(139,90,43,0.18);
  color: var(--primary); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  flex-shrink: 0; line-height: 1;
}
.carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-track-wrap {
  overflow: hidden;
  width: 100%; max-width: 780px;
}
.carousel-track {
  display: flex; gap: 24px;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-indicators {
  display: flex; justify-content: center; gap: 8px; margin-top: 28px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(139,90,43,0.22);
  cursor: pointer; transition: var(--transition);
  border: none;
}
.carousel-dot.active { width: 24px; border-radius: 4px; background: var(--primary); }

/* ---- 下载区 ---- */
.download-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(139,90,43,0.10);
  text-align: center;
  transition: var(--transition);
  max-width: 480px; margin: 0 auto;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.download-card.featured {
  background: linear-gradient(140deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
}
.download-card.featured .dl-name,
.download-card.featured .dl-desc,
.download-card.featured .dl-meta { color: rgba(255,255,255,0.92); }
.download-icon { font-size: 52px; margin-bottom: 14px; }
.dl-name { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.dl-desc { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; font-size: 0.97rem; }
.dl-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 18px; line-height: 1.8; }
.qr-placeholder {
  width: 128px; height: 128px; border-radius: 14px;
  background: rgba(255,255,255,0.18);
  border: 2px dashed rgba(255,255,255,0.40);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 22px; gap: 6px;
}
.qr-placeholder .qr-icon { font-size: 32px; }
.qr-placeholder p { font-size: 0.72rem; color: rgba(255,255,255,0.75); }

/* ---- 私有版下载卡片 ---- */
.private-download-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(139,90,43,0.14);
  max-width: 520px; margin: 0 auto;
}
.apk-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(139,90,43,0.08);
  font-size: 0.9rem;
}
.apk-info-row:last-of-type { border-bottom: none; }
.apk-info-label { color: var(--text-muted); }
.apk-info-value { font-weight: 600; color: var(--text-dark); }
.changelog {
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 22px 0;
}
.changelog h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }
.changelog ul  { display: flex; flex-direction: column; gap: 7px; }
.changelog li  {
  font-size: 0.875rem; color: var(--text-body);
  display: flex; gap: 8px; align-items: flex-start; line-height: 1.55;
}
.changelog li::before { content: '·'; color: var(--primary); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.requirements {
  display: flex; gap: 14px; margin: 16px 0;
  flex-wrap: wrap;
}
.req-tag {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.80rem; color: var(--text-muted);
}
.req-tag .req-icon { font-size: 14px; }
.install-steps { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.install-step  { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-text { font-size: 0.93rem; color: var(--text-body); line-height: 1.65; }
.step-text strong { color: var(--text-dark); }

/* ---- 提示框 ---- */
.notice {
  background: rgba(184,134,11,0.07);
  border: 1px solid rgba(184,134,11,0.22);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem; color: var(--text-body);
  display: flex; gap: 10px; align-items: flex-start;
  margin: 14px 0; line-height: 1.6;
}
.notice-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* ---- 页脚 ---- */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.55);
  padding: 52px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-name { font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-tagline    { font-size: 0.875rem; line-height: 1.8; }
.footer-col h4 {
  color: #fff; font-size: 0.875rem;
  font-weight: 600; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 0.875rem; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 0.78rem; }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner    { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions  { justify-content: center; }
  .hero-stats    { justify-content: center; }
  .hero-visual   { order: -1; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .navbar-nav    { display: none; }
  .navbar-cta    { display: none; }
  .hamburger     { display: flex; }
  .navbar-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); padding: 16px 24px 20px;
    border-bottom: 1px solid rgba(139,90,43,0.10);
    gap: 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
}
@media (max-width: 620px) {
  .section       { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats    { gap: 20px; }
  .hero-float-card { display: none; }
  .footer-inner  { grid-template-columns: 1fr; gap: 28px; }
  .carousel-btn  { display: none; }
  .private-download-card { padding: 28px 20px; }
}
