/* 京信数字 - 智慧健康 WeUi 2.0 Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    /* Brand Colors - Refined Smart Health Palette */
    --primary: #0277BD; /* Deep Light Blue - More Professional */
    --primary-light: #4FC3F7; /* Lighter Blue */
    --primary-dark: #01579B; /* Navy Blue */
    --primary-soft: rgba(2, 119, 189, 0.08);
    --accent: #26C6DA; /* Soft Cyan/Teal for "Smart" feel */
    --accent-glow: rgba(38, 198, 218, 0.4);

    /* Neutrals & Surfaces */
    --bg-body: #F0F4F8; /* Slightly cooler grey/blue tint */
    --bg-surface: #FFFFFF;
    --bg-surface-glass: rgba(255, 255, 255, 0.85); /* Increased opacity for better legibility */
    --text-main: #1E293B; /* Slate 800 - Softer than pure black */
    --text-muted: #64748B; /* Slate 500 */
    --text-light: #94A3B8; /* Slate 400 */
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #E0F7FA 0%, #E1F5FE 100%); /* Very subtle Cyan-Blue fade */
    --gradient-primary: linear-gradient(135deg, #0288D1 0%, #01579B 100%); /* Rich Blue Gradient */
    --gradient-accent: linear-gradient(135deg, #0288D1 0%, #26C6DA 100%); /* Blue to Teal */
    --gradient-glass: linear-gradient(160deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 100%);

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(2, 119, 189, 0.15); /* Colored shadow for depth */
    --shadow-glow: 0 0 25px rgba(38, 198, 218, 0.4);
    --blur-glass: blur(16px);

    /* Spacing & Radius */
    --container-width: 1280px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --header-height: 80px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 127, 203, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.03) 0%, transparent 40%);
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Typography Utility */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { height: 48px; display: flex; align-items: center; }
.logo-img { height: 100%; width: auto; }

.nav-menu { display: flex; gap: 2.5rem; align-items: center; }
.nav-link { 
    font-weight: 500; 
    color: var(--text-main); 
    font-size: 0.95rem;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-hidden { display: inline-flex; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 50px; /* Pill shape */
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
    border: none;
}
.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid rgba(0, 127, 203, 0.2);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-body);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Hero Section - Immersive */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Abstract Background Shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(0,127,203,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--primary-soft);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, var(--text-main) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions { display: flex; gap: 1rem; }

/* Hero Visual - Glassmorphism Card Stack */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.visual-backdrop-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    animation: blob-pulse 8s infinite ease-in-out;
}

.visual-card {
    position: absolute;
    background: var(--bg-surface-glass);
    backdrop-filter: var(--blur-glass);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: transform 0.5s ease;
}

.card-main {
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    z-index: 2;
}

.card-floating {
    width: 180px;
    padding: 1rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.float-1 { top: 0; right: 0; animation-delay: 0s; }
.float-2 { bottom: 20px; left: -20px; animation-delay: 3s; }

.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }

/* Bento Grid Section */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-tag { 
    color: var(--primary); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}
.section-title { font-size: 2.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 1rem; letter-spacing: -0.01em; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 1.5rem;
}

.bento-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* Grid Spans */
.span-2 { grid-column: span 2; }
.span-row-2 { grid-row: span 2; }

/* Bento Content */
.bento-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
.bento-icon-wrapper img { width: 32px; height: 32px; object-fit: contain; }

.bento-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-main); }
.bento-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.bento-bg-decor {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    opacity: 0.05;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* Feature Showcase */
.feature-section { background: white; }
.feature-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}
.feature-container:nth-child(even) { flex-direction: row-reverse; }

.feature-content { flex: 1; }
.feature-visual { 
    flex: 1; 
    height: 400px;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.check-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* CTA Section */
.cta-box {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,229,255,0.1) 0%, transparent 50%);
}
.cta-content { position: relative; z-index: 10; max-width: 700px; margin: 0 auto; }
.cta-heading { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.cta-text { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2.5rem; }

/* Footer */
.footer { background: white; padding: 4rem 0 2rem; border-top: 1px solid var(--bg-body); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); margin-top: 1rem; max-width: 300px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-main); }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--bg-body);
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Animations */
@keyframes blob-pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .hero-title { font-size: 2.8rem; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .span-2 { grid-column: span 1; }
    .span-row-2 { grid-row: span 1; }
}

@media (max-width: 768px) {
    .nav-menu, .hero-visual { display: none; }
    .mobile-hidden { display: none; }
    .hamburger { display: block; }
    
    .hero { padding-top: 6rem; text-align: center; }
    .hero-content-wrapper { grid-template-columns: 1fr; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    
    .bento-grid { grid-template-columns: 1fr; }
    
    .feature-container { flex-direction: column !important; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-surface);
  margin: auto;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close {
  color: var(--text-light);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 20px;
  transition: color 0.2s;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: var(--primary);
  text-decoration: none;
}

.modal-title {
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-tertiary); /* Defines border color properly */
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--bg-body);
}

/* Fallback for undefined variable in current context just in case */
.form-group input, .form-group textarea {
    border-color: #e2e8f0; 
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: white;
}

.w-full { width: 100%; }

