/*
 * 颐养云 · 养老院 SaaS 管理系统
 * Copyright (c) 2026 颐养云. All rights reserved.
 * 商业授权软件：未经书面许可，不得复制、修改、反编译或分发。
 * 官网样式（参考 DIY 表单官网模式，右上角登录下拉窗口）
 */
:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #f0fdfa;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #d8e2e8;
  --bg: #ffffff;
  --soft: #f6f9fa;
  --shadow-sm: 0 2px 8px rgba(15, 118, 110, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1140px, calc(100% - 44px)); margin: 0 auto; }
.wrap-narrow { width: min(840px, calc(100% - 44px)); }

/* ---------------- 公告条 ---------------- */
.notice-bar { background: var(--primary-dark); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
}
.nav-inner { height: 70px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  box-shadow: 0 4px 12px rgba(15,118,110,.25);
}
.brand-mark.sm { width: 30px; height: 30px; border-radius: 9px; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: #46515f; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }

/* 右上角登录入口 */
.login-wrap { position: relative; }
.login-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px;
  padding: 0 15px 0 13px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .16s, color .16s, box-shadow .18s, background .16s;
}
.login-btn svg { color: var(--primary); }
.login-btn:hover { border-color: #9dc9c4; color: var(--primary); box-shadow: 0 6px 18px rgba(15,118,110,.14); }
.login-btn[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.login-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 272px; padding: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 70;
}
.login-menu.on { opacity: 1; visibility: visible; transform: none; }
.login-menu a { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; color: var(--text); }
.login-menu a:hover { background: var(--primary-soft); }
.lm-ic {
  width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.lm-tx { display: flex; flex-direction: column; min-width: 0; }
.lm-tx b { font-size: 13.8px; font-weight: 600; line-height: 1.45; }
.lm-tx i { font-size: 12px; color: var(--muted); font-style: normal; line-height: 1.45; }
.lm-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.lm-note { padding: 4px 11px 8px; font-size: 11.5px; color: var(--muted); }

.burger { display: none; width: 40px; height: 40px; padding: 0; background: #fff;
  border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 17px; height: 1.8px; background: var(--text); border-radius: 2px; }
.mobile-menu { display: none; padding: 12px 22px 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu a { display: block; padding: 10px 0; color: #46515f; border-bottom: 1px solid var(--line); }
.mm-login { display: flex; gap: 10px; margin-top: 16px; }
.mm-login a { flex: 1; text-align: center; border: 0; border-radius: 9px; }

/* ---------------- 通用组件 ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: all .18s; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(15,118,110,.2); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.sec { padding: 88px 0; }
.sec-soft { background: var(--soft); border-block: 1px solid var(--line); }
.sec-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.eyebrow { display: inline-block; color: var(--primary); font-size: 12px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; }
.sec-head h2 { font-size: 32px; line-height: 1.35; margin: 0 0 12px; letter-spacing: -.5px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 15px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 首屏 ---------------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 100px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .38; }
.hero-bg span:nth-child(1) { width: 380px; height: 380px; background: #ccfbf1; top: -140px; right: -80px; }
.hero-bg span:nth-child(2) { width: 180px; height: 180px; background: #fed7aa; bottom: 40px; left: 4%; opacity: .3; }
.hero-bg span:nth-child(3) { width: 90px; height: 90px; background: #99f6e4; top: 180px; left: 42%; opacity: .35; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #cdeae5; color: var(--primary-dark); font-size: 12.5px; font-weight: 600; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: 48px; line-height: 1.25; letter-spacing: -1.4px; margin: 22px 0 18px; }
.hero-sub { color: #4b5563; font-size: 16px; max-width: 590px; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.hero-note { color: var(--muted); font-size: 12.5px; margin: 18px 0 0; }
.hero-visual { position: relative; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.mock-dots i:first-child { background: #f87171; }
.mock-title { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mock-body { padding: 20px; }
.mock-field { margin-bottom: 16px; }
.mock-field label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.mock-input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: #374151; background: #fff; }
.mock-items { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 11.5px; }
.mi-head, .mi-row { display: grid; grid-template-columns: 1.6fr 1fr .6fr 1fr; padding: 8px 11px; gap: 6px; }
.mi-head { background: #f8fafc; color: var(--muted); }
.mi-row { border-top: 1px solid var(--line); }
.mi-row b { color: var(--primary-dark); text-align: right; }
.mock-total { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 16px; font-size: 13px; }
.mock-total b { font-size: 20px; color: var(--primary-dark); }
.mock-btn { text-align: center; padding: 11px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; }
.mock-badge { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 600; color: var(--primary-dark); }
.mock-badge svg { color: var(--primary); }
.mock-badge.b1 { top: 30px; right: -16px; }
.mock-badge.b2 { bottom: 26px; left: -24px; }

/* ---------------- 介绍 ---------------- */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.about-copy h2 { font-size: 30px; line-height: 1.4; margin: 0 0 16px; }
.about-copy p { color: var(--muted); margin: 0; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 26px 14px; text-align: center; background: var(--primary-soft); border: 1px solid #d5efe9; border-radius: 14px; }
.stat b { display: block; font-size: 32px; color: var(--primary-dark); line-height: 1.2; }
.stat b span { font-size: 18px; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------------- 能力 / 场景 ---------------- */
.cap-grid, .scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap, .scene { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: all .2s; }
.cap:hover, .scene:hover { border-color: #a7d8d1; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cap-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.cap h3, .scene h3 { font-size: 17px; margin: 0 0 9px; }
.cap p, .scene p { color: var(--muted); font-size: 13.5px; margin: 0; }
.scene .scene-tag { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px;
  background: #fff7ed; color: #c2410c; font-size: 11px; font-weight: 700; }

/* ---------------- 价格/流程 ---------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps li { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.step-no { display: inline-block; color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; }
.steps h3 { margin: 0 0 8px; font-size: 17px; }
.steps p { color: var(--muted); margin: 0; font-size: 13.5px; }

/* ---------------- FAQ ---------------- */
.faq { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--primary); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 14px; }

/* ---------------- 联系 ---------------- */
.contact-sec { background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: center; }
.eyebrow.light { color: #99f6e4; }
.contact-copy h2 { font-size: 32px; margin: 0 0 14px; }
.contact-copy > p { color: #ccfbf1; max-width: 560px; margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.cl-ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.cl-tx { display: flex; flex-direction: column; }
.cl-tx i { font-size: 11.5px; color: #99f6e4; font-style: normal; }
.cl-tx b { font-size: 14px; font-weight: 600; }
.contact-actions { display: flex; gap: 12px; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.contact-card { padding: 26px; background: #fff; color: var(--text); border-radius: 18px; text-align: center; box-shadow: var(--shadow-lg); }
.cc-qr { width: 168px; height: 168px; margin: 0 auto 14px; border: 1px dashed var(--line-2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--muted); }
.cc-qr svg { width: 34px; height: 34px; }
.cc-qr span { font-size: 12px; margin-left: 6px; }
.cc-qr img { width: 100%; height: 100%; object-fit: contain; }
.cc-tip { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.cc-brand { font-weight: 700; margin: 0; color: var(--primary-dark); }

/* ---------------- 页脚 ---------------- */
.foot { background: #0b1f1d; color: #cbd5e1; padding: 54px 0 26px; }
.foot-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { color: #fff; font-size: 15px; }
.foot-brand p { margin: 2px 0 0; font-size: 12px; color: #94a3b8; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.foot-links a:hover { color: #5eead4; }
.foot-copy { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #94a3b8; }
.foot-ver { margin-left: auto; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: block; }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { max-width: 520px; }
  .cap-grid, .scene-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { width: min(100% - 32px, 1140px); }
  .nav-inner { height: 62px; gap: 12px; }
  .login-txt { display: none; }
  .login-btn { width: 38px; padding: 0; justify-content: center; }
  .login-menu { width: min(272px, calc(100vw - 32px)); right: -50px; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 31px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .mock-badge.b1 { right: 0; }
  .mock-badge.b2 { left: 0; }
  .sec { padding: 64px 0; }
  .sec-head h2 { font-size: 26px; }
  .cap-grid, .scene-grid, .steps { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 18px 8px; }
  .stat b { font-size: 24px; }
  .contact-actions { flex-direction: column; }
  .foot-ver { margin-left: 0; }
}
