/* ==========================================
   CroWebsite - Index Page Styles (首页专用样式)
   ========================================== 
   
   文件结构：
   1. 页面背景和基础样式
   2. 导航栏样式
   3. Hero区域样式
   4. 左栏内容样式
   5. 右栏视觉元素
   6. 高亮徽章和装饰条
   7. 统计数据样式
   8. 按钮和交互效果
   9. 浮动卡片样式
   10. 响应式布局
   
   作者：CroWebsite Team
   最后更新：2025年6月17日
   版本：v2.0   ========================================== */

/* ==========================================
   1. GLOBAL ANIMATIONS & FADE EFFECTS
   ========================================== */

/* gradientShift动画已移至全局styles.css */

/* ==========================================
   2. PAGE BACKGROUND & BASE SETUP
   ========================================== */

/* 页面背景设置 */
.page-index {
    position: relative;
    min-height: 100vh;
}

.page-index::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/double-exposure-doctor.png') no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 100%;
    z-index: 0;
    pointer-events: none;
    /* 平滑过渡效果 */
    transition: opacity 0.8s ease-in-out;
    /* GPU加速 */
    will-change: opacity;
    transform: translate3d(0, 0, 0);
}

/* 添加渐变遮罩层 */
.page-index::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(55, 155, 255, 0.318));
    border-radius: 0 40px 40px 0;
    z-index: -1;
}

/* ==========================================
   3. NAVIGATION BAR STYLES
   ========================================== */

/* 导航栏样式 - 深蓝色设计 */
/* 已移至 styles.css 中的共享样式 */

/* ==========================================
   4. HERO SECTION LAYOUT
   ========================================== */

/* 新的Hero区域样式 - 左对齐现代设计，完全透明背景 */
.page-index .hero-main-section {
    min-height: 100vh;
    position: relative;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Hero区域容器透明化 */
.page-index .hero-main-section .container-fluid,
.page-index .hero-main-section .row,
.page-index .hero-main-section .col-lg-6,
.page-index .hero-main-section [class*="col-"] {
    background: transparent !important;
    background-color: transparent !important;
}

/* 可选：添加微妙的覆盖层以增强可读性 */
.page-index .hero-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 取消注释下面的行以添加微妙的覆盖层 */
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(248, 249, 250, 0.1)); */
    z-index: 1;
    pointer-events: none;
}

.page-index .hero-content-left {
    padding: 20px 60px 60px 80px;
    z-index: 3;
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: 0 40px 40px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 30px rgba(30, 144, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    padding-top: 30px;
}

.page-index .hero-content-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(30, 144, 255, 0.02));
    border-radius: 0 40px 40px 0;
    z-index: -1;
}

.page-index .hero-text-content {
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out;
    position: relative;
    z-index: 3;
    margin-top: 20px;
}

.page-index .hero-visual-right {
    padding: 60px 60px 60px 40px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 80px);
    z-index: 3;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
    border-radius: 40px 0 0 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 30px rgba(30, 144, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    padding-top: 80px;
}

.page-index .hero-text-content {
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out;
    background: transparent !important;
    background-color: transparent !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   5. LEFT COLUMN CONTENT STYLES
   ========================================== */

/* 卡片透明度优化 - body内部元素 */
.page-index .card {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-index .bg-light {
    background-color: rgba(248, 249, 250, 0.65) !important;
}

/* 公司简介区域内部背景 */
.page-index .bg-white {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* ==========================================
   6. RIGHT COLUMN VISUAL ELEMENTS
   ========================================== */

/* 右侧视觉元素 */
.page-index .hero-visual-content {
    position: relative;
    width: 100%;
    height: 600px;
    animation: slideInRight 0.8s ease-out 0.2s both;
    background: transparent !important;
    background-color: transparent !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-index .floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 5px 20px rgba(30, 144, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 260px;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.page-index .floating-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 30px rgba(30, 144, 255, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(30, 144, 255, 0.2);
    animation-play-state: paused;
}

.page-index .floating-card.card-1 {
    top: 25%;
    left: 5%;
    animation-delay: 0s;
}

.page-index .floating-card.card-2 {
    top: 55%;
    right: 10%;
    animation-delay: 0.5s;
}

.page-index .floating-card.card-3 {
    bottom: 15%;
    left: 10%;
    animation-delay: 1s;
}

.page-index .floating-card.card-4 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.page-index .floating-card.card-5 {
    bottom: 40%;
    right: 50%;
    animation-delay: 0.5s;
}

.page-index .floating-card.card-6 {
    top: 80%;
    left: 50%;
    animation-delay: 1s;
}

/* 核心优势卡片特殊样式 */
.page-index .advantage-card {
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(30, 144, 255, 0.15);
}

.page-index .advantage-card .card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.page-index .advantage-card:hover .card-icon {
    background: linear-gradient(135deg, #059669, #047857);
}

.page-index .card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
    transition: all 0.3s ease;
}

.page-index .floating-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

.page-index .card-content {
    flex: 1;
}

.page-index .card-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.page-index .card-content p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.3;
}

/* ==========================================
   7. BADGE & DECORATIVE ELEMENTS
   ========================================== */

.page-index .hero-badge {
    display: inline-block;
    margin-bottom: 20px;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-index .badge-text {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.12), rgba(0, 191, 255, 0.08));
    color: #1e90ff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(30, 144, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.page-index .badge-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.page-index .badge-text:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.18), rgba(0, 191, 255, 0.12));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.25);
    border-color: rgba(30, 144, 255, 0.35);
}

.page-index .badge-text:hover::after {
    left: 100%;
}

.page-index .badge-text::before {
    content: '⚡';
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(30, 144, 255, 0.3));
}

/* 蓝色装饰线条 - 使用伪元素避免冲突 */
.page-index .hero-badge {
    position: relative;
    display: inline-block;
}

.page-index .hero-badge::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    border-radius: 2px;
    animation: decorBarSlide 1.5s ease-out 0.5s both;
    z-index: 1;
}

@keyframes decorBarSlide {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

/* ==========================================
   8. TITLE & TEXT STYLES
   ========================================== */

.page-index .hero-main-title {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1a202c;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.page-index .hero-subtitle {
    font-size: 1.5rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
    transform: translateY(-10px);
}

/* ==========================================
   9. STATISTICS DATA DISPLAY
   ========================================== */

.page-index .hero-stats-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    border: 1px solid rgba(30, 144, 255, 0.15);
    max-width: 520px;
    margin-left: 0;
    margin-right: auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(30, 144, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.page-index .hero-stats-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1e90ff, transparent);
    animation: statsGlow 3s ease-in-out infinite;
}

@keyframes statsGlow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.page-index .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
}

.page-index .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e90ff;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(30, 144, 255, 0.2);
}

.page-index .stat-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
}

.page-index .stat-divider {
    height: 40px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
}

/* ==========================================
   10. BUTTONS & INTERACTION EFFECTS
   ========================================== */

.page-index .hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.page-index .btn-primary-custom {
    background: linear-gradient(135deg, #1e90ff, #0080ff);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(30, 144, 255, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.page-index .btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.page-index .btn-primary-custom:hover::before {
    left: 100%;
}

.page-index .btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(30, 144, 255, 0.5);
    color: white;
    text-decoration: none;
}

.page-index .btn-secondary-custom {
    background: rgba(255, 255, 255, 0.95);
    color: #1e90ff;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(30, 144, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.page-index .btn-secondary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #1e90ff, #0080ff);
    transition: width 0.3s ease;
    z-index: -1;
}

.page-index .btn-secondary-custom:hover::before {
    width: 100%;
}

.page-index .btn-secondary-custom:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
    border-color: #1e90ff;
    box-shadow: 0 6px 25px rgba(30, 144, 255, 0.3);
}

/* ==========================================
   11. RESPONSIVE DESIGN
   ========================================== */

/* 响应式设计 */
@media (max-width: 992px) {
    .page-index .hero-main-section {
        min-height: auto;
        padding: 40px 0;
    }

    .page-index .hero-content-left {
        padding: 40px 20px;
        text-align: center;
        min-height: auto;
    }

    .page-index .hero-visual-right {
        padding: 20px;
        margin-top: 40px;
        min-height: auto;
    }

    .page-index .hero-main-title {
        font-size: 2.8rem;
    }

    .page-index .hero-stats-inline {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px 16px;
        max-width: 400px;
        margin-left: 0;
        margin-right: auto;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(10px);
    }

    .page-index .hero-actions {
        justify-content: center;
        gap: 12px;
    }

    .page-index .btn-primary-custom,
    .page-index .btn-secondary-custom {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .page-index .hero-features {
        justify-content: center;
        gap: 16px;
    }

    .page-index .feature-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .page-index .floating-card {
        position: relative;
        margin: 10px;
        animation: none;
        min-width: 220px;
    }

    .page-index .floating-card.card-1,
    .page-index .floating-card.card-2,
    .page-index .floating-card.card-3,
    .page-index .floating-card.card-4,
    .page-index .floating-card.card-5,
    .page-index .floating-card.card-6 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .page-index .hero-visual-content {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 20px;
    }
}

@media (max-width: 768px) and (min-width: 577px) {
    .page-index .hero-visual-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 14px;
    }
}

@media (max-width: 576px) {
    .page-index .hero-main-title {
        font-size: 2.2rem;
    }

    .page-index .hero-stats-inline {
        padding: 16px 12px;
        max-width: 350px;
        margin-left: 0;
        margin-right: auto;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(10px);
    }

    .page-index .stat-number {
        font-size: 1.6rem;
    }

    .page-index .stat-label {
        font-size: 0.8rem;
    }

    .page-index .btn-primary-custom,
    .page-index .btn-secondary-custom {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .page-index .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .page-index .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .page-index .feature-item {
        width: 100%;
        justify-content: center;
    }

    .page-index .hero-visual-content {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .page-index .floating-card {
        min-width: auto;
        padding: 16px;
    }
}

/* ==========================================
   FLOATING CARD ANIMATIONS
   ========================================== */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}