/* =============================================
   联帮智护 · 智慧养老 — 主样式
   ============================================= */

/* ---------- 全局变量 ---------- */
:root {
  --primary:     #00d4ff;
  --primary-dark:#0099cc;
  --accent:      #00ff88;
  --accent2:     #7b5fff;
  --bg-dark:     #050b1a;
  --bg-card:     #0d1b35;
  --bg-card2:    #0a1628;
  --border:      rgba(0, 212, 255, 0.2);
  --text:        #e8f4fd;
  --text-muted:  #7a9bbf;
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
  --radius:      12px;
  --transition:  0.35s ease;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }

/* =============================================
   顶部导航
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 11, 26, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 11, 26, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
}
.nav-logo span em {
  color: var(--primary);
  font-style: normal;
}

/* 导航链接 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links li a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent2)) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.85; }

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

/* =============================================
   通用区块
   ============================================= */
section { padding: 90px 5%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* =============================================
   卡片通用
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 212, 255, 0.5);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.icon-blue   { background: rgba(0, 212, 255, 0.15); }
.icon-green  { background: rgba(0, 255, 136, 0.15); }
.icon-purple { background: rgba(123, 95, 255, 0.15); }
.icon-orange { background: rgba(255, 165, 0, 0.15); }
.icon-red    { background: rgba(255, 80, 80, 0.15); }
.icon-teal   { background: rgba(0, 200, 180, 0.15); }

.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p  { color: var(--text-muted); font-size: 0.9rem; }

/* Grid 布局 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* =============================================
   HERO 区域
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
#particles-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 620px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--primary), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.btn-primary {
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff;
  border: none; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); color: #fff; }
.btn-outline {
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  color: var(--primary);
}
.hero-stats {
  display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem; font-weight: 800;
  color: var(--primary);
}
.hero-stat span { font-size: 0.82rem; color: var(--text-muted); }

/* Hero 右侧装饰图 */
.hero-visual {
  position: absolute;
  right: 5%; top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: min(45%, 540px);
}
.hero-device {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
  overflow: hidden;
}
.hero-device img { width: 100%; }
.device-bar {
  background: var(--bg-card2);
  padding: 8px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.device-dot { width: 10px; height: 10px; border-radius: 50%; }
.d1 { background: #ff5f57; }
.d2 { background: #febc2e; }
.d3 { background: #28c840; }
.device-title { font-size: 0.72rem; color: var(--text-muted); margin-left: 8px; }

/* =============================================
   数字动态统计
   ============================================= */
.stats-band {
  background: linear-gradient(135deg, #0d1b35 0%, #0a1628 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 5%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item { padding: 20px; }
.stat-item .num {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-item .unit { font-size: 1.1rem; }
.stat-item .label { color: var(--text-muted); font-size: 0.88rem; margin-top: 8px; }
.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: center;
  height: 60px;
}

/* =============================================
   数据大屏展示
   ============================================= */
.data-screen {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #060e20 100%);
}
.data-screen-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
}
.data-screen-text .tag-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.tag-item {
  padding: 5px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
}
.data-screen-img {
  position: relative;
}
.data-screen-img::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent2), var(--accent));
  border-radius: 18px;
  z-index: 0;
  opacity: 0.5;
  filter: blur(1px);
}
.data-screen-img img {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.data-screen-text .feature-list { margin-top: 28px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .fi {
  width: 28px; height: 28px;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0; margin-top: 2px;
}
.feature-list .ft strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.feature-list .ft span  { font-size: 0.82rem; color: var(--text-muted); }

/* =============================================
   服务亮点
   ============================================= */
.services-section { background: var(--bg-dark); }

/* =============================================
   解决方案
   ============================================= */
.solution-section {
  background: linear-gradient(180deg, #060e20 0%, var(--bg-dark) 100%);
}
.solution-tabs {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 48px;
}
.sol-tab {
  padding: 9px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}
.sol-tab.active, .sol-tab:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  font-weight: 600;
}
.sol-panel { display: none; }
.sol-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sol-panel-img img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}
.sol-panel-text h3 { font-size: 1.5rem; margin-bottom: 14px; }
.sol-panel-text p  { color: var(--text-muted); margin-bottom: 20px; }
.sol-list li {
  padding: 8px 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem;
}
.sol-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* =============================================
   新闻资讯
   ============================================= */
.news-section { background: var(--bg-dark); }
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.news-img {
  height: 180px;
  background: linear-gradient(135deg, #0d1b35, #0a1628);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.news-body { padding: 20px; }
.news-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 10px;
}
.news-cat {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  padding: 2px 8px; border-radius: 10px;
}
.news-body h4 { font-size: 0.97rem; margin-bottom: 8px; line-height: 1.5; }
.news-body p  { font-size: 0.84rem; color: var(--text-muted); }
.news-more { display: flex; justify-content: center; margin-top: 40px; }

/* =============================================
   合作伙伴
   ============================================= */
.partners-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #060e20 100%);
  padding: 70px 5%;
}
.partners-track {
  overflow: hidden;
  position: relative;
}
.partners-track::before,
.partners-track::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 80px;
  z-index: 1;
}
.partners-track::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.partners-track::after  { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }
.partners-row {
  display: flex; gap: 28px;
  width: max-content;
  animation: scroll-partners 22s linear infinite;
}
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  width: 160px; height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  flex-shrink: 0;
}

/* =============================================
   CTA 横幅
   ============================================= */
.cta-band {
  background: linear-gradient(135deg, #0d2045, #0a1628);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta-band p  { color: var(--text-muted); margin-bottom: 32px; }

/* =============================================
   页脚
   ============================================= */
footer {
  background: #030810;
  border-top: 1px solid var(--border);
  padding: 64px 5% 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.8; }
.footer-col h5 { font-size: 0.95rem; margin-bottom: 18px; color: var(--text); }
.footer-col li { margin-bottom: 10px; }
.footer-col li a { color: var(--text-muted); font-size: 0.87rem; }
.footer-col li a:hover { color: var(--primary); }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--text-muted); font-size: 0.87rem;
  margin-bottom: 10px;
}
.footer-contact li .ico { color: var(--primary); font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted);
}
.social-links a:hover { border-color: var(--primary); color: var(--primary); }

/* =============================================
   子页面通用
   ============================================= */
.page-hero {
  padding: 140px 5% 80px;
  background: linear-gradient(180deg, #0d1b35 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
}
.page-hero .breadcrumb {
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: var(--primary); }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; margin-bottom: 14px; }
.page-hero p  { color: var(--text-muted); max-width: 560px; }

/* 时间线 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent2));
}
.tl-item { position: relative; margin-bottom: 36px; }
.tl-dot {
  position: absolute; left: -37px; top: 4px;
  width: 14px; height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}
.tl-item h4 { font-size: 0.97rem; margin-bottom: 6px; }
.tl-item p  { font-size: 0.88rem; color: var(--text-muted); }
.tl-year {
  font-size: 0.78rem;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

/* 进度条 */
.progress-bar { background: rgba(255,255,255,0.07); border-radius: 4px; height: 6px; margin-top: 6px; }
.progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1.2s ease; }

/* 表单 */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; margin-bottom: 6px; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.tab-btn {
  padding: 10px 20px;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 0.9rem; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--transition);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 徽章 */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue   { background: rgba(0, 212, 255, 0.15); color: var(--primary); }
.badge-green  { background: rgba(0, 255, 136, 0.15); color: var(--accent); }
.badge-purple { background: rgba(123, 95, 255, 0.15); color: var(--accent2); }

/* 返回顶部 */
.back-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 42px; height: 42px;
  background: var(--primary);
  color: #000;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* =============================================
   Preloader
   ============================================= */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 56px; height: 56px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =============================================
   关键帧
   ============================================= */
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes scroll-partners { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-anim { animation: float-y 4s ease-in-out infinite; }
