/* 科研页面专用样式 - 医疗科技风格 */

/* ========== 医疗科技风格变量 ========== */
:root {
    --brand-red: #E60012;
    --brand-red-light: #FF6B6B;
    --brand-red-dark: #A01830;
    --brand-orange: #FF8A65;
    --medical-bg: #F8FAFC;
    --medical-white: #FFFFFF;
    --medical-gray: #64748B;
    --medical-dark: #1E293B;
    --medical-border: #E2E8F0;
    --medical-blue: #0066CC;
    --medical-cyan: #00B4D8;
    --medical-blue-light: #60A5FA;
}

/* ========== 科研页面Hero - 医疗科技风 ========== */
.science-hero-medical {
    min-height: 35vh;
    min-height: 35dvh;
    min-height: calc(35vh - 1px);
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 100%), url('../images/lab.jpg') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 40px 60px; /* 增加顶部padding从100px到160px，补偿导航栏高度 */
    position: relative;
    overflow: hidden;
}

/* DNA双螺旋装饰 */
.science-hero-medical::before {
    content: '';
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
}

.science-hero-medical::after {
    content: '';
    position: absolute;
    left: -5%;
    top: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.science-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* 科研徽章 */
.science-badge-medical {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.95);
    border: 2px solid var(--brand-red);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-red);
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.science-badge-medical svg {
    width: 20px;
    height: 20px;
}

.science-hero-medical h1 {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 16px;
    color: white;
}

.science-hero-medical h1 strong {
    font-weight: 700;
    color: #E60012;
}

.science-hero-medical .subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* 科研数据展示 */
.science-stats-medical {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}

.science-stat-medical {
    text-align: center;
    padding: 16px 24px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255,255,255,0.3);
    min-width: 120px;
}

.science-stat-medical .number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-red);
    line-height: 1;
    margin-bottom: 6px;
}

.science-stat-medical .label {
    font-size: 12px;
    color: var(--medical-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== 区块标题 ========== */
.section-medical {
    padding: 100px 40px;
    background: var(--medical-bg);
}

.section-white-medical {
    background: white;
}

.section-header-medical {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-medical .eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    display: block;
}

.section-header-medical h2 {
    font-size: 40px;
    font-weight: 300;
    color: var(--medical-dark);
    margin-bottom: 16px;
}

.section-header-medical p {
    font-size: 18px;
    color: var(--medical-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== 科技卡片网格 ========== */
.tech-grid-medical {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card-medical {
    background: white;
    border: 1px solid var(--medical-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card-medical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-card-medical:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.12);
    border-color: var(--brand-red-light);
}

.tech-card-medical:hover::before {
    transform: scaleX(1);
}

.tech-card-medical .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 2px solid var(--medical-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
}

.tech-card-medical h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--medical-dark);
    margin-bottom: 12px;
}

.tech-card-medical p {
    font-size: 15px;
    color: var(--medical-gray);
    line-height: 1.8;
}

/* ========== 分子结构展示 ========== */
.molecule-section-medical {
    padding: 100px 40px;
    background: white;
}

.molecule-showcase-medical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.molecule-visual-medical {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 24px;
    border: 1px solid var(--medical-border);
}

/* 氨基酸分子图示 */
.amino-molecule-medical {
    position: relative;
    width: 250px;
    height: 250px;
}

.molecule-center-medical {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.3);
}

.molecule-orbital-medical {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--medical-border);
    border-radius: 50%;
}

.molecule-orbital-medical:nth-child(2) {
    width: 120px;
    height: 120px;
}

.molecule-orbital-medical:nth-child(3) {
    width: 180px;
    height: 180px;
}

.molecule-orbital-medical:nth-child(4) {
    width: 220px;
    height: 220px;
}

.atom-medical {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--brand-orange);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 163, 224, 0.3);
}

.molecule-info-medical h3 {
    font-size: 32px;
    font-weight: 300;
    color: var(--medical-dark);
    margin-bottom: 20px;
}

.molecule-info-medical h3 strong {
    font-weight: 700;
    color: var(--brand-red);
}

.molecule-info-medical p {
    font-size: 16px;
    color: var(--medical-gray);
    line-height: 1.8;
    margin-bottom: 28px;
}

.molecule-features-medical {
    list-style: none;
}

.molecule-features-medical li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--medical-dark);
}

.molecule-features-medical li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
}

/* ========== 研发时间轴 ========== */
.timeline-section-medical {
    padding: 100px 40px;
    background: var(--medical-bg);
}

.timeline-container-medical {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-container-medical::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand-red), var(--brand-orange));
}

.timeline-item-medical {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item-medical:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content-medical {
    background: white;
    border: 1px solid var(--medical-border);
    border-radius: 16px;
    padding: 28px;
    max-width: 400px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content-medical:hover {
    border-color: var(--brand-red-light);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.1);
}

.timeline-dot-medical {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--brand-red);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--brand-red-light);
    z-index: 1;
}

.timeline-item-medical:nth-child(odd) .timeline-dot-medical {
    right: -58px;
    transform: translateY(-50%);
}

.timeline-item-medical:nth-child(even) .timeline-dot-medical {
    left: -58px;
    transform: translateY(-50%);
}

.timeline-year-medical {
    font-size: 13px;
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.timeline-title-medical {
    font-size: 20px;
    font-weight: 600;
    color: var(--medical-dark);
    margin-bottom: 8px;
}

.timeline-desc-medical {
    font-size: 15px;
    color: var(--medical-gray);
    line-height: 1.7;
}

/* ========== 专利墙 ========== */
.patent-wall-medical {
    padding: 100px 40px;
    background: white;
}

.patent-grid-medical {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.patent-card-medical {
    background: var(--medical-bg);
    border: 1px solid var(--medical-border);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.patent-card-medical:hover {
    background: white;
    border-color: var(--brand-red);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    transform: translateY(-4px);
}

.patent-card-medical .region {
    font-size: 14px;
    color: var(--medical-gray);
    margin-bottom: 16px;
}

.patent-card-medical .count {
    font-size: 48px;
    font-weight: 700;
    color: var(--brand-red);
    line-height: 1;
    margin-bottom: 8px;
}

.patent-card-medical .label {
    font-size: 15px;
    font-weight: 600;
    color: var(--medical-dark);
    margin-bottom: 8px;
}

.patent-card-medical .desc {
    font-size: 13px;
    color: var(--medical-gray);
    line-height: 1.6;
}

/* ========== 数据可视化 ========== */
.data-viz-section-medical {
    padding: 100px 40px;
    background: var(--medical-bg);
}

.data-viz-grid-medical {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.data-viz-card-medical {
    background: white;
    border: 1px solid var(--medical-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.data-viz-card-medical .chart-container {
    height: 120px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

.chart-bar-medical {
    width: 24px;
    background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-orange) 100%);
    border-radius: 4px 4px 0 0;
    opacity: 0.9;
}

.data-viz-card-medical h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--medical-dark);
    margin-bottom: 8px;
}

.data-viz-card-medical p {
    font-size: 14px;
    color: var(--medical-gray);
}

/* ========== CTA区域 ========== */
.science-cta-medical {
    padding: 100px 40px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    text-align: center;
}

.science-cta-medical h2 {
    font-size: 40px;
    font-weight: 300;
    color: var(--medical-dark);
    margin-bottom: 16px;
}

.science-cta-medical p {
    font-size: 18px;
    color: var(--medical-gray);
    margin-bottom: 40px;
}

.btn-medical {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--brand-red);
    color: white;
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-medical:hover {
    background: var(--brand-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 0, 18, 0.3);
}

/* ========== 研究卡片大图 ========== */
.research-cards-grid-medical {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.research-card-large-medical {
    background: white;
    border: 1px solid var(--medical-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--medical-dark);
    display: flex;
    flex-direction: column;
}

.research-card-large-medical:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    border-color: var(--brand-red-light);
}

.research-card-large-medical .card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.research-card-large-medical .icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 2px solid var(--medical-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.research-card-large-medical .card-title h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--medical-dark);
}

.research-card-large-medical .card-title .subtitle {
    font-size: 13px;
    color: var(--medical-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.research-card-large-medical p {
    font-size: 15px;
    color: var(--medical-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

.research-card-large-medical .card-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.research-card-large-medical .stat-item {
    text-align: center;
}

.research-card-large-medical .stat-item .num {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-red);
}

.research-card-large-medical .stat-item .label {
    font-size: 12px;
    color: var(--medical-gray);
}

.research-card-large-medical .card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-red);
    font-weight: 600;
    font-size: 15px;
}

/* ========== 快速导航 ========== */
.quick-nav-section-medical {
    padding: 80px 40px;
    background: white;
    border-top: 1px solid var(--medical-border);
}

.quick-nav-grid-medical {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-nav-item-medical {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: var(--medical-bg);
    border: 1px solid var(--medical-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--medical-dark);
    transition: all 0.3s ease;
}

.quick-nav-item-medical:hover {
    background: white;
    border-color: var(--brand-red);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.1);
    transform: translateY(-4px);
}

.quick-nav-item-medical .icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.quick-nav-item-medical .info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.quick-nav-item-medical .info p {
    font-size: 12px;
    color: var(--medical-gray);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .science-hero-medical h1 {
        font-size: 40px;
    }
    
    .tech-grid-medical,
    .data-viz-grid-medical {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .molecule-showcase-medical,
    .research-cards-grid-medical {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .patent-grid-medical {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-container-medical::before {
        left: 20px;
    }
    
    .timeline-item-medical,
    .timeline-item-medical:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-item-medical .timeline-dot-medical,
    .timeline-item-medical:nth-child(even) .timeline-dot-medical {
        left: 12px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .science-hero-medical {
        min-height: auto;
        padding: 140px 24px 60px; /* 移动端也增加顶部padding */
    }
    
    .science-hero-medical h1 {
        font-size: 32px;
    }
    
    .science-stats-medical {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .science-stat-medical {
        min-width: 120px;
        padding: 16px 20px;
    }
    
    .tech-grid-medical,
    .data-viz-grid-medical,
    .patent-grid-medical {
        grid-template-columns: 1fr;
    }
    
    .section-header-medical h2 {
        font-size: 32px;
    }
    
    .science-cta-medical h2 {
        font-size: 32px;
    }
}

/* ========== 通用CTA按钮 ========== */
.cta-btn {
    display: inline-block;
    background: #E60012;
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: #A01830;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 0, 18, 0.3);
}
