/* 全新首页样式 - 基于1+2+N架构 */

/* ==================== 变量定义 ==================== */
:root {
    --primary-blue: #00a6fb;
    --primary-dark: #0084d4;
    --secondary-blue: #33b8fc;
    --light-blue: #66c5ff;
    --lighter-blue: #e6f5ff;
    --text-primary: #1a1c3d;
    --text-secondary: #666;
    --text-light: #999;
    --border-light: #e8e8e8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
}

/* ==================== 导航栏样式已移至 common.css ==================== */

/* btn-contact 样式已在 common.css 中定义 */

/* ==================== Hero 区域 ==================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* 背景效果 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 166, 251, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 166, 251, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 166, 251, 0.15) 0%, transparent 70%);
    top: -300px;
    right: -200px;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(51, 184, 252, 0.12) 0%, transparent 70%);
    bottom: -250px;
    left: -200px;
}

/* Hero 内容 */
.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.hero-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 左侧文案 */
.hero-text {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 166, 251, 0.08);
    border: 1px solid rgba(0, 166, 251, 0.2);
    border-radius: 24px;
    margin-bottom: 24px;
    gap: 8px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-badge span {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 52px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    max-width: 580px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* 特性展示 */
.hero-features {
    display: flex;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 166, 251, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-text span {
    font-size: 12px;
    color: var(--text-light);
}

/* 按钮组 */
.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 166, 251, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 166, 251, 0.4);
}

.btn-outline {
    background: white;
    color: var(--primary-blue);
    border: 2px solid rgba(0, 166, 251, 0.2);
}

.btn-outline:hover {
    background: rgba(0, 166, 251, 0.05);
    border-color: var(--primary-blue);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* ==================== 右侧架构图 ==================== */
.hero-visual {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.architecture-diagram {
    position: relative;
    width: 120%;
    height: 100%;
    margin-left: -10%;
}

/* 中心数据底座 */
.arch-center {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.center-core {
    width: 155px;
    height: 155px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 166, 251, 0.35);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.core-icon {
    margin-bottom: 12px;
}

.core-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.core-desc {
    font-size: 12px;
    opacity: 0.9;
}

/* 轨道 */
.orbit {
    position: absolute;
    border: 2px solid rgba(0, 166, 251, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 350px;
    height: 350px;
}

.orbit-2 {
    width: 500px;
    height: 500px;
    animation-direction: reverse;
    animation-duration: 30s;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 模块样式 */
.arch-module {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.arch-module:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* OTC模块 */
.module-otc {
    top: 10%;
    left: -10px;
    width: 200px;
}

/* 院线模块 */
.module-hospital {
    top: 10%;
    right: -10px;
    width: 200px;
}

.module-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 166, 251, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.module-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.module-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.module-items span {
    padding: 4px 8px;
    background: rgba(0, 166, 251, 0.05);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 增值服务模块 */
.module-service-1 {
    bottom: 20%;
    left: 15%;
}

.module-service-2 {
    bottom: 10%;
    right: 25%;
}

.module-service-3 {
    bottom: 20%;
    right: 15%;
}

.mini-module {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.mini-module:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 连接线 */
.connection-lines {
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .architecture-diagram {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .architecture-diagram {
        transform: scale(0.6);
    }
}

/* 新增：大屏幕布局优化 */
@media (max-width: 1400px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    /* 架构图模块调整 */
    .center-core {
        width: 120px;
        height: 120px;
    }
    
    .arch-module {
        width: 180px;
    }
    
    .module-otc {
        top: 8%;
        left: -5px;
    }
    
    .module-hospital {
        top: 8%;
        right: -5px;
    }
}