/* ===== 基础变量与重置 ===== */
:root {
  --rose: #e8556d;
  --rose-deep: #c93b54;
  --rose-soft: #fff1f4;
  --ink: #2b2b38;
  --gray: #6b6b7b;
  --line: #ececf2;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(201, 59, 84, 0.10);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* 固定导航高度补偿 */
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== 顶部固定导航 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 28px; }
.brand-name { color: var(--ink); }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a {
  font-size: 15px;
  color: var(--gray);
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}
.nav-menu a:hover { color: var(--rose); }
.nav-menu a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--rose);
  transition: width .25s ease;
}
.nav-menu a:hover::after { width: 100%; }

/* 移动端汉堡菜单（纯 CSS 切换） */
.nav-toggle { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== 通用区块 ===== */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: 13px; letter-spacing: 2px;
  color: var(--rose);
  background: var(--rose-soft);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.section-title { font-size: 30px; font-weight: 700; letter-spacing: .5px; }
.section-desc { margin-top: 14px; color: var(--gray); font-size: 16px; }

/* 按钮 */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: var(--white);
  padding: 14px 38px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 48px rgba(201, 59, 84, 0.22); }
.btn-primary.outline {
  background: transparent; color: var(--rose);
  border: 1.5px solid var(--rose); box-shadow: none;
}

/* ===== 1. Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #fff6f8 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .heart {
  position: absolute; color: var(--rose); opacity: .12;
  font-size: 120px;
}
.heart.h1 { top: 14%; left: 10%; animation: float 7s ease-in-out infinite; }
.heart.h2 { bottom: 16%; right: 12%; font-size: 80px; animation: float 9s ease-in-out infinite reverse; }
.heart.h3 { top: 24%; right: 20%; font-size: 56px; opacity: .08; animation: float 6s ease-in-out infinite; }
.hero-bg .line {
  position: absolute; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,85,109,.25), transparent);
}
.line.l1 { top: 30%; left: -5%; right: 40%; transform: rotate(-8deg); }
.line.l2 { bottom: 28%; right: -5%; left: 40%; transform: rotate(6deg); }

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

.hero-content { position: relative; z-index: 1; padding: 0 24px; }
.hero-eyebrow { color: var(--rose); font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.2; margin: 20px 0 18px; letter-spacing: 1px; }
.hero-subtitle { color: var(--gray); font-size: 19px; margin-bottom: 38px; }

/* ===== 2. 产品介绍 ===== */
.product { background: var(--white); }
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.product-mockup { display: grid; place-items: center; }
.phone {
  width: 240px; height: 480px;
  background: linear-gradient(160deg, #fff, #fbeef2);
  border: 10px solid #2b2b38;
  border-radius: 38px;
  position: relative;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px; background: #2b2b38; border-radius: 0 0 14px 14px;
}
.phone-screen {
  text-align: center; color: var(--rose-deep);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.phone-heart { font-size: 64px; }
.phone-text { font-size: 20px; font-weight: 700; color: var(--ink); }
.phone-sub { font-size: 13px; color: var(--gray); }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.check {
  flex: none;
  width: 30px; height: 30px;
  background: var(--rose-soft); color: var(--rose);
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.feature-list h3 { font-size: 18px; margin-bottom: 2px; }
.feature-list p { color: var(--gray); font-size: 15px; }

.product-cta { text-align: center; margin-top: 56px; }
.coming-soon {
  display: inline-block;
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
  color: var(--rose);
  background: var(--rose-soft);
  padding: 12px 30px; border-radius: 999px;
}

/* ===== 3. 业务能力 ===== */
.business { background: linear-gradient(180deg, #fafafa, #ffffff); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px;
  background: var(--rose-soft); border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 14px; }

/* ===== 4. 关于我们 ===== */
.about { background: var(--white); }
.about-inner { max-width: 760px; }
.about-text { font-size: 17px; color: #444; margin-bottom: 18px; }
.about-note { font-size: 15px; color: var(--rose); font-weight: 600; }

/* ===== 5. 联系我们 ===== */
.contact { background: linear-gradient(180deg, #fff6f8, #ffffff); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 24px;
}
.contact-label { display: block; font-size: 13px; color: var(--gray); letter-spacing: 1px; margin-bottom: 10px; }
.contact-value { font-size: 16px; font-weight: 600; color: var(--ink); word-break: break-all; }
a.contact-value:hover { color: var(--rose); }
.qrcode-placeholder {
  width: 120px; height: 120px;
  margin-top: 6px;
  border: 2px dashed var(--rose);
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--rose); font-size: 13px; text-align: center;
  background: var(--rose-soft);
}

/* ===== 6. 页脚 ===== */
.footer { background: #2b2b38; color: #cfcfd8; padding: 30px 0; }
.footer-inner { text-align: center; }
.copyright { font-size: 14px; margin-bottom: 8px; }
.beian { font-size: 13px; }
.beian a { color: #cfcfd8; text-decoration: underline; }
.beian a:hover { color: var(--white); }
.beian .sep { margin: 0 10px; opacity: .5; }
.beian .gongan { color: #cfcfd8; }

/* ===== 响应式 ===== */
@media (max-width: 880px) {
  .nav-burger { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-toggle:checked ~ .nav-menu { max-height: 320px; }
  .nav-menu a { padding: 16px 24px; border-top: 1px solid var(--line); }

  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 17px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 25px; }

  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}
