/* ========================================
   天津市河东区安伴智慧养老服务网 — 样式表
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Utility ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; box-shadow: 0 4px 15px rgba(37,99,235,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,.45); }
.btn-outline {
  background: rgba(255,255,255,.15); color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(255,255,255,.25); border-color: #fff; }

/* ---- Top Notice ---- */
.top-notice {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: rgba(255,255,255,.9); font-size: 13px;
  text-align: center; padding: 8px 16px;
}

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo-wrap {
  display: flex; align-items: center; gap: 12px;
}
.logo-img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 18px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.logo-sub { font-size: 11px; color: #64748b; line-height: 1; }

.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #475569;
  transition: all .2s;
}
.nav-link:hover, .nav-link.active { color: #2563eb; background: #eff6ff; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: #334155; border-radius: 2px; transition: .3s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1d4ed8 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,.3) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 30%, rgba(147,197,253,.15) 0%, transparent 60%);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(248,250,252,.05));
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 0; color: #fff;
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; line-height: 1.25;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.8);
  max-width: 620px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex; gap: 48px;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 36px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ---- Section Common ---- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 5px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; color: #2563eb;
  background: #eff6ff; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800; color: #0f172a; margin-bottom: 12px;
}
.section-desc { font-size: 16px; color: #64748b; max-width: 560px; margin: 0 auto; }

/* ---- About ---- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.about-card {
  padding: 36px 28px; border-radius: 16px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  transition: transform .25s, box-shadow .25s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.06); }
.about-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #2563eb;
}
.about-icon svg { width: 26px; height: 26px; }
.about-card h3 { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.about-card p { font-size: 14px; color: #64748b; line-height: 1.7; }

/* ---- Services ---- */
.services { background: #f8fafc; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card {
  padding: 32px 24px; border-radius: 16px;
  background: #fff; border: 1px solid #e2e8f0;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.service-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon-wrap svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.service-card > p { font-size: 14px; color: #64748b; margin-bottom: 14px; line-height: 1.7; }
.service-card ul { display: flex; flex-direction: column; gap: 6px; }
.service-card li {
  font-size: 13px; color: #475569; padding-left: 20px;
  position: relative;
}
.service-card li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #93c5fd;
}


/* ---- Products ---- */
.products { background: #fff; }
.product-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.product-tab {
  padding: 8px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 500; color: #475569;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  cursor: pointer; transition: all .2s;
}
.product-tab:hover { background: #e2e8f0; }
.product-tab.active {
  background: #2563eb; color: #fff; border-color: #2563eb;
}
.products-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.product-card {
  border-radius: 16px; background: #fff; border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.product-img-wrap {
  position: relative; height: 200px; overflow: hidden;
  background: #f8fafc; display: flex; align-items: center; justify-content: center;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 16px; transition: transform .4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-cat-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  background: rgba(37,99,235,.1); color: #2563eb;
}
.product-info { padding: 16px; }
.product-info h4 { font-size: 15px; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.product-info .product-desc { font-size: 12px; color: #94a3b8; margin-bottom: 10px; line-height: 1.5; }
.product-info .product-meta {
  display: flex; align-items: center; justify-content: center;
}
/* 产品图标占位 */
.product-placeholder-wrap {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.product-placeholder-icon {
  width: 80px; height: 80px;
  color: #cbd5e1;
  display: flex; align-items: center; justify-content: center;
  transition: color .3s;
}
.product-placeholder-icon svg {
  width: 64px; height: 64px;
}
.product-card:hover .product-placeholder-icon {
  color: #2563eb;
}
.product-consult {
  padding: 6px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 500; color: #2563eb;
  background: #eff6ff; border: 1px solid #bfdbfe;
  cursor: pointer; transition: all .2s;
}
.product-consult:hover { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ---- Why Us ---- */
.why-us { background: #f8fafc; }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.why-card {
  position: relative; padding: 40px 28px 32px; border-radius: 16px;
  background: #fff; border: 1px solid #e2e8f0;
  transition: transform .25s;
}
.why-card:hover { transform: translateY(-4px); }
.why-num {
  font-size: 48px; font-weight: 900; color: #eff6ff;
  position: absolute; top: 16px; right: 20px;
}
.why-card h3 { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 10px; position: relative; }
.why-card p { font-size: 14px; color: #64748b; line-height: 1.7; }

/* ---- Contact ---- */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-item {
  display: flex; gap: 16px; padding: 24px;
  border-radius: 14px; background: #f8fafc;
  margin-bottom: 16px;
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #2563eb;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-size: 15px; color: #1e293b; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: #64748b; }
.contact-item a { color: #2563eb; }
.contact-item a:hover { text-decoration: underline; }

/* 联系 CTA 卡片式按钮 */
.contact-cta {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 20px 28px;
  border-radius: 14px; font-size: 16px; font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; border: none;
  box-shadow: 0 4px 16px rgba(37,99,235,.25);
  cursor: pointer; transition: all .25s;
  text-decoration: none;
}
.contact-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,.35);
  color: #fff;
}
.contact-cta svg { flex-shrink: 0; opacity: .85; }
.contact-cta-email {
  margin-left: auto;
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,.75);
}

/* ---- Footer ---- */
.footer {
  background: #0f172a; color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo img { border-radius: 8px; }
.footer-brand h4 { font-size: 16px; color: #fff; margin-bottom: 4px; }
.footer-brand p { font-size: 13px; }
.footer-links h4, .footer-contact h4 {
  font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px;
}
.footer-links a {
  display: block; font-size: 13px; margin-bottom: 10px;
  transition: color .2s;
}
.footer-links a:hover { color: #93c5fd; }
.footer-contact p { font-size: 13px; margin-bottom: 8px; }

.footer-bottom { padding: 28px 0; }
.footer-legal {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 12px; margin-bottom: 8px;
}
.footer-divider { color: rgba(255,255,255,.2); }
.icp-link { color: rgba(255,255,255,.5); transition: color .2s; }
.icp-link:hover { color: #93c5fd; }
.footer-compliance {
  margin-bottom: 16px;
}
.footer-compliance p {
  font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.6;
}
.footer-compliance strong { color: rgba(255,255,255,.6); }
.footer-disclaimer p { font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.6; margin-top: 4px; }
.footer-copy { margin-top: 8px; }

/* ---- Back To Top ---- */
.back-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: #2563eb; color: #fff; border: none;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transition: all .3s;
}
.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,.5); }
.back-top svg { width: 20px; height: 20px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 16px; gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .menu-toggle { display: flex; }

  .hero { min-height: auto; }
  .hero-content { padding: 48px 0; }
  .hero-stats { gap: 28px; }

  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 28px; }
  .hero-actions { flex-direction: column; }
}
