/* 全局样式 - 华晟康医疗旗舰版 v2.0 */
:root {
    /* 品牌色 - 科技霓虹 */
    --primary-color: #0ea5e9; /* Sky 500 - 保持核心蓝 */
    --primary-hover: #38bdf8; /* Sky 400 - 更亮 */
    --primary-active: #0284c7; /* Sky 600 */
    --primary-glow: rgba(14, 165, 233, 0.5); /* 发光色 */
    --primary-soft: rgba(14, 165, 233, 0.15); /* 柔和背景 */
    
    /* 辅助色 */
    --secondary-color: #10b981; /* Emerald 500 */
    --secondary-dark: #059669;  /* Emerald 600 */
    --accent-color: #f59e0b; /* Amber 500 */
    
    /* 文字色 - 深色模式 */
    --text-main: #f1f5f9;    /* Slate 100 - 强标题 */
    --text-secondary: #cbd5e1; /* Slate 300 - 正文 */
    --text-muted: #94a3b8;    /* Slate 400 - 辅助信息 */
    --text-light: #64748b;    /* Slate 500 - 占位符 */
    --text-inverse: #0f172a;  /* 反色文字 */
    
    /* 背景系统 - 深空科技 */
    --bg-body: #020617;       /* 极深蓝黑 - 页面背景 */
    --bg-white: #0f172a;      /* 深色卡片背景 */
    --bg-glass: rgba(15, 23, 42, 0.7); /* 玻璃拟态 */
    --bg-dark: #020617;       /* 即使是原来的 dark 也保持一致 */
    --bg-card: #1e293b;       /* 卡片背景 */
    
    /* 边框与分割 */
    --border-color: #334155;  /* 深色边框 */
    --border-light: #1e293b;  /* 极浅分割线 */
    --border-glow: rgba(14, 165, 233, 0.3); /* 发光边框 */
    
    /* 阴影系统 - 霓虹发光 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2); /* 科技发光 */
    --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    
    /* 渐变系统 */
    --gradient-hero: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    --gradient-brand: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    --gradient-text: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline-color: var(--primary-color);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 排版增强 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==================== 导航栏 (深色玻璃拟态科技感) ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(15, 23, 42, 0.85); /* 深色背景 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    height: 64px; /* 滚动时收缩 */
    border-bottom-color: var(--primary-color); /* 滚动时底部亮条 */
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand .logo-img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.5)); /* 白色发光 */
}

.nav-brand .brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-menu > li > a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu > li > a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-color); /* 发光线条 */
}

.nav-menu > li > a:not(.login-link):hover {
    color: var(--primary-hover);
    text-shadow: 0 0 8px var(--primary-glow);
}

.nav-menu > li > a:not(.login-link):hover::after {
    width: 100%;
}

/* 下拉菜单优化 - 深色科技风 */
.nav-dropdown {
    position: relative;
    padding-bottom: 20px; /* 增加底部热区 */
    margin-bottom: -20px; /* 抵消对布局的影响 */
}

/* 桌面端下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    min-width: 240px;
    padding: 8px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-color);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.2, 0, 0.1, 1);
    z-index: 1100;
    pointer-events: none;
}

/* 下拉菜单热区填补 - 关键修复 */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px; /* 填补菜单与父元素之间的空隙 */
    background: transparent;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* 减少位移，避免脱节 */
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.1);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-hover);
    transform: translateX(4px);
    text-shadow: 0 0 5px rgba(14, 165, 233, 0.3);
}

/* 登录按钮 - 发光胶囊 */
.login-link {
    background: var(--bg-card);
    color: var(--primary-color) !important;
    padding: 10px 24px !important;
    border-radius: 99px;
    font-weight: 600 !important;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease !important;
}

.login-link:hover {
    transform: translateY(-1px);
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
    opacity: 1;
}

.login-link::after {
    display: none !important;
}

/* ==================== 英雄区域 (未来科技感) ==================== */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 140px;
    background: var(--bg-body);
    overflow: hidden;
    color: white;
}

/* 动态背景层 - 网格 */
.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
    background: linear-gradient(to bottom, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary-hover);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
    margin-bottom: 32px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(5px);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 56px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

/* 按钮样式升级 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px; /* 更硬朗的圆角 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    border: 1px solid var(--primary-hover);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* 数据卡片 - 悬浮玻璃态 */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px;
    background: rgba(30, 41, 59, 0.4); /* 深色半透明 */
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.2); /* 蓝色微光边框 */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.stat-item {
    position: relative;
    padding: 0 20px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(14, 165, 233, 0.3), transparent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.3));
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ==================== 通用版块样式 ==================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== 平台简介 (清新布局) ==================== */
.intro {
    padding: 120px 0;
    background: var(--bg-body); /* 改为深色背景 */
    position: relative;
}

/* 添加装饰背景 */
.intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.intro-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: justify;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.intro-feature {
    padding: 32px;
    background: var(--bg-card);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.intro-feature:hover {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.intro-feature .feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.1);
    color: var(--text-main); /* 确保emoji可见 */
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.intro-feature h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.intro-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==================== 核心功能 (卡片升级) ==================== */
.features {
    padding: 120px 0;
    background: #050b1c; /* 稍亮一点的深色，区分层级 */
    position: relative;
}

.feature-category {
    margin-bottom: 100px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.category-header h3 {
    font-size: 2rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.category-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.3));
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 32px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    background: linear-gradient(145deg, #1e293b 0%, #172033 100%);
}

.feature-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    border-color: var(--primary-hover);
}

.feature-card h4 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.feature-list li::before {
    content: ''; /* 使用CSS图标代替文本 */
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px var(--primary-color);
}

/* ==================== 技术优势 ==================== */
.tech {
    padding: 120px 0;
    background: var(--bg-body);
    position: relative;
}

.tech::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}

.tech-card {
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.15), inset 0 0 20px rgba(14, 165, 233, 0.05);
    z-index: 2;
    transform: translateY(-5px);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.tech-card:hover .tech-icon {
    filter: grayscale(0%) drop-shadow(0 0 15px rgba(14, 165, 233, 0.6));
}

.tech-card h3 {
    color: var(--text-main);
    margin-bottom: 15px;
}

.tech-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tech-card ul {
    list-style: none;
    color: var(--text-muted);
}

.tech-card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.tech-card ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8em;
    text-shadow: 0 0 5px var(--primary-color);
}

/* ==================== 应用场景 (Bento Grid 升级) ==================== */
.scenarios {
    padding: 120px 0;
    background: var(--bg-body);
    position: relative;
}

/* 装饰背景 */
.scenarios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    z-index: 0;
}

.scenarios .container {
    position: relative;
    z-index: 1;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto); /* 增加基础高度 */
    gap: 24px;
}

/* 卡片基础样式升级 */
.scenario-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 24px;
    text-align: left; /* 改为左对齐，更现代 */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 悬停效果 - 上浮 + 阴影扩散 */
.scenario-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.3);
}

/* 图标背景装饰 */
.scenario-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-soft);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.scenario-card:hover::after {
    transform: scale(1.5);
    opacity: 0.8;
}

/* 场景图标优化 */
.scenario-image {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-radius: 20px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.scenario-card:hover .scenario-image {
    transform: rotate(-5deg) scale(1.1);
    background: var(--bg-body);
    box-shadow: var(--shadow-sm);
}

.scenario-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.scenario-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

/* 标签样式优化 */
.scenario-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start; /* 左对齐 */
    position: relative;
    z-index: 2;
}

.scenario-tags span {
    padding: 6px 14px;
    background: var(--bg-body);
    border-radius: 8px; /* 更方一点的圆角 */
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.scenario-card:hover .scenario-tags span {
    background: var(--bg-body);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 针对不同卡片的个性化布局 (Bento Grid 效果) */

/* 第一个卡片：家庭健康 - 宽卡片 */
.scenario-card:nth-child(1) {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-color: rgba(14, 165, 233, 0.2);
}

.scenario-card:nth-child(1) .scenario-image {
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary-color);
}

/* 第二个卡片：学校筛查 - 高卡片 */
.scenario-card:nth-child(2) {
    grid-row: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.scenario-card:nth-child(2) .scenario-image {
    background: rgba(16, 185, 129, 0.15);
}

/* 第三个：医疗机构 */
.scenario-card:nth-child(3) {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .scenarios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 重置跨列/跨行，避免布局错乱 */
    .scenario-card:nth-child(1) { grid-column: span 1; }
    .scenario-card:nth-child(2) { grid-row: span 1; }
}

@media (max-width: 900px) {
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 移动端大卡片 */
    .scenario-card:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 600px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-card:nth-child(1) { grid-column: span 1; }
}

/* ==================== 数据安全 ==================== */
.security {
    padding: 120px 0;
    background: var(--bg-body);
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.security-item {
    padding: 40px 32px;
    background: var(--bg-card);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.security-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.security-item h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.security-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== 联系与页脚 ==================== */
.contact {
    padding: 120px 0;
    background: var(--bg-body);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    background: transparent;
    border-radius: 32px;
    overflow: visible;
}

.contact-info {
    padding: 40px;
    background: var(--bg-body);
    border-radius: 24px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-form {
    padding: 40px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    color: var(--text-main);
    margin-bottom: 32px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-body);
    color: var(--text-main);
    transition: all 0.2s;
    font-size: 1rem;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus, .form-group textarea:focus {
    background: var(--bg-card);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-soft);
    outline: none;
    color: var(--text-main);
}

/* ==================== 选择框 (Select) 样式优化 ==================== */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem !important;
    cursor: pointer;
    background-color: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-soft);
    outline: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* 针对 Webkit (Chrome, Safari) 的选项样式 */
select option {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 10px;
}

select option:checked {
    background-color: var(--primary-soft);
    color: var(--primary-hover);
}

/* 仪表板特定的选择框样式调整 */
.filter-select,
.member-selector {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-select:hover,
.member-selector:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.1);
}

/* ==================== 复选框 (Checkbox) 样式优化 ==================== */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-body);
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:hover {
    border-color: var(--primary-hover);
}

/* 开关 (Switch) 样式优化 - 确保深色模式可见 */
.switch input:checked + .slider {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.slider {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
}

.slider:before {
    background-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

input:checked + .slider:before {
    background-color: white;
}

.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1.5;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    flex: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .logo-img {
    height: 40px;
    width: auto;
    /* filter: brightness(0) invert(1); */
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-beian {
    margin-top: 12px;
    font-size: 0.85rem;
}

.footer-beian a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-beian a:hover {
    color: var(--primary-color);
}

.beian-hint {
    color: #64748b;
    font-size: 0.8rem;
    margin-left: 6px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar .nav-menu {
        display: none; /* JS会控制显示 */
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-light);
        overflow-y: auto;
        max-height: 80vh;
    }

    .navbar .nav-menu.active {
        display: flex;
    }
    
    /* 移动端下拉菜单修复 */
    .nav-dropdown {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .nav-dropdown::after {
        display: none; /* 移动端不需要热区填补 */
    }
    
    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        padding: 12px 0;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: var(--bg-body);
        padding: 0;
        display: none; /* 默认隐藏 */
        visibility: visible;
        opacity: 1;
        transition: none;
    }
    
    /* 移动端使用 .active 类来控制显示 */
    .nav-dropdown.active .dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease;
    }
    
    /* 禁用 hover 效果 */
    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }
    
    .nav-dropdown:hover .dropdown-arrow {
        transform: none; /* 箭头旋转由 .active 控制 */
    }
    
    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 140px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 动画工具类 */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
