/* =====================================================================
   余安高端陪护 · 官网公共样式
   品牌色取自官方 Logo：绿 #33B033 / 黄绿 #8DC63F / 亮蓝 #33B6E4 / 深蓝 #0A90C0
   标题深蓝 #0A4060（Logo 文字色）
   ===================================================================== */

:root {
  --primary: #33B033;          /* 品牌主绿 */
  --primary-mid: #8DC63F;      /* 品牌黄绿 */
  --primary-light: #A9DD5F;    /* 浅黄绿 */
  --primary-soft: #EAF7E4;     /* 绿色浅底 */
  --primary-deep: #1F8B23;

  --blue: #0A90C0;             /* 品牌深蓝 */
  --blue-light: #33B6E4;       /* 品牌亮蓝 */
  --blue-soft: #E4F4FB;

  --navy: #0A4060;             /* Logo 文字深蓝 — 标题主色 */
  --accent: #FF9A2E;
  --accent-soft: #FFF3E2;

  --bg: #F5FAF7;
  --card: #FFFFFF;
  --text: #0A4060;
  --text-2: #33475B;
  --text-3: #6B7C8C;
  --line: #E3EDF2;

  --shadow: 0 10px 40px rgba(10, 64, 96, 0.08);
  --shadow-sm: 0 4px 16px rgba(10, 64, 96, 0.06);
  --shadow-green: 0 10px 28px rgba(51, 176, 51, 0.26);

  --grad-brand: linear-gradient(120deg, #33B033 0%, #0A90C0 100%);
  --grad-green: linear-gradient(135deg, #8DC63F 0%, #33B033 100%);
  --grad-blue: linear-gradient(135deg, #33B6E4 0%, #0A90C0 100%);

  --radius: 20px;
  --header-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-2);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.section-title .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-3);
  max-width: 720px;
  margin: 0 auto;
}

.section-title .line {
  width: 64px;
  height: 4px;
  background: var(--grad-brand);
  border-radius: 2px;
  margin: 18px auto 0;
}

.section-title.align-left {
  text-align: left;
}

.section-title.align-left p {
  margin: 0;
}

.section-title.align-left .line {
  margin-left: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(51, 176, 51, 0.34);
}

.btn-blue {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 10px 28px rgba(10, 144, 192, 0.26);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(10, 144, 192, 0.34);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
}

.topbar-left .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.25);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-right a:hover {
  color: var(--primary-light);
}

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* 头部品牌：直接使用完整 Logo（图形 + 余安高端陪护 + 标语），不再另加旁侧文字 */
.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav a {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-phone .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.header-phone .icon svg {
  width: 19px;
  height: 19px;
}

.header-phone .txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-phone .txt small {
  font-size: 11px;
  color: var(--text-3);
}

.header-phone .txt strong {
  font-size: 17px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 内页 Banner ---------- */
.page-banner {
  position: relative;
  background: var(--grad-brand);
  color: #fff;
  padding: 74px 0 66px;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  border-radius: 50%;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 62%);
  border-radius: 50%;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.88;
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-banner h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.92;
  max-width: 720px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: linear-gradient(150deg, #0A4060 0%, #0C5A72 60%, #0A7A66 100%);
  color: #fff;
  padding: 68px 0 26px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(51, 182, 228, 0.22), transparent 62%);
  border-radius: 50%;
}

.footer .container {
  position: relative;
  z-index: 2;
}

.footer-logo {
  height: 66px;
  width: auto;
  margin-bottom: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 46px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.85;
  opacity: 0.85;
  max-width: 380px;
}

.footer-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-left: 14px;
}

.footer-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary-mid);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 6px;
  color: var(--primary-light);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 13px;
  opacity: 0.9;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}

.footer-contact .label {
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.75;
}

.footer-qr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.qr-item {
  text-align: center;
}

.qr-box {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 12%;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.qr-item p {
  font-size: 13px;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.9;
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

.footer-beian {
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.footer-beian a {
  opacity: 0.95;
  text-decoration: none;
}

.footer-beian a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- 通用卡片滚动出现动画（仅在 JS 可用时隐藏初始态，保证无 JS 也能正常阅读） ---------- */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1024px) {
  .section { padding: 68px 0; }
  .section-title h2 { font-size: 30px; }
  .nav ul { gap: 26px; }
  .header-phone .txt small { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .topbar-left span:not(.dot) { display: none; }
  .topbar-left::after {
    content: '选择余安 · 余生平安';
    letter-spacing: 1px;
  }
  .topbar-right { gap: 14px; }

  .logo-img { height: 54px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: calc(38px + var(--header-h));
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.open {
    max-height: 420px;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
  }

  .nav li {
    border-bottom: 1px solid var(--line);
  }

  .nav a {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
  }

  .nav a::after { display: none; }

  .header-phone .txt { display: none; }

  .page-banner { padding: 52px 0 46px; }
  .page-banner h1 { font-size: 30px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-qr {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-title h2 { font-size: 25px; }
  .section-title p { font-size: 14px; }
  .btn { padding: 13px 26px; font-size: 15px; }
  .page-banner h1 { font-size: 26px; }
}
