﻿/* 全局样式 */
:root {
    --primary-color: #1a5276;
    --secondary-color: #3498db;
    --accent-color: #2ecc71;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden; /* 防止水平滚动 */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-register {
    background-color: var(--accent-color);
    color: white;
}

.btn-register:hover {
    background-color: #27ae60;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 600;
}

.section-title:after {
    content: '';
    display: block;
    width: 80%; /* 几乎与标题同宽 */
    height: 2px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
    margin: 15px auto;
}

@media (max-width: 768px) {
    .section-title:after {
        width: 80px; /* 移动端使用较短横线 */
    }
}
/* ========== 导航栏样式优化 ========== */
header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    
    /* 主要边框效果 */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 2px solid rgba(52, 152, 219, 0.3);
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
    
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    
    /* 为不同页面准备的边框颜色变量 */
    --nav-border-color: rgba(52, 152, 219, 0.3);
    --nav-glow-color: rgba(52, 152, 219, 0.1);
}


/* 动态边框发光效果 */
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--nav-border-color);
    border-radius: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    box-shadow: 0 0 20px var(--nav-glow-color);
}

body[data-page] header::after {
    opacity: 1;
}

/* 导航栏顶部装饰线 */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%, 
        var(--accent-color) 50%, 
        var(--secondary-color) 75%, 
        var(--primary-color) 100%);
    opacity: 0.7;
    z-index: 1001;
}

/* 导航栏样式优化 - 解决宽度问题 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    width: 100%; /* 确保不超出容器 */
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* 防止logo被压缩 */
    margin-right: 20px; /* 减少右边距 */
    padding: 8px 12px; /* 减小内边距 */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo img {
    height: 42px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(26, 82, 118, 0.2));
}

.logo-text {
    font-size: 1.2rem; /* 减小字体大小 */
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px; /* 减少菜单项间距 */
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    max-width: 100%; /* 限制最大宽度 */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 16px; /* 减小内边距 */
    position: relative;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem; /* 减小字体大小 */
    white-space: nowrap;
    display: block;
    background: rgba(255, 255, 255, 0.5);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 当前页面激活状态 */
.nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--dark-color);
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* 导航栏样式 - 修改注册按钮 */
.register-btn {
    margin-left: 10px; /* 减少左边距 */
    background-color: var(--accent-color);
    color: white;
    padding: 8px 16px; /* 减小内边距 */
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.85rem; /* 减小字体大小 */
    white-space: nowrap;
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.register-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* 精致的生物主题页面标题样式 - 蓝灰蓝绿带绿色调 */
.page-header {
background:
linear-gradient(135deg,
var(--primary-color) 0%,
color-mix(in srgb, var(--primary-color), #4a7c3a 15%) 30%,
color-mix(in srgb, var(--secondary-color), #6ba55c 20%) 70%,
color-mix(in srgb, var(--secondary-color), transparent 15%) 100%),
radial-gradient(circle at 20% 80%,
color-mix(in srgb, var(--primary-color), #6ba55c 20%) 0%,
transparent 50%),
radial-gradient(circle at 80% 20%,
color-mix(in srgb, var(--secondary-color), #8fbc8f 25%) 0%,
transparent 50%);
color: white;
padding: 80px 0 60px;
margin-bottom: 40px;
position: relative;
overflow: hidden;
}

/* 添加生物细胞纹理效果 */
.page-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
radial-gradient(ellipse at 20% 30%,
rgba(107, 165, 92, 0.1) 0%,
transparent 20%),
radial-gradient(ellipse at 80% 70%,
rgba(143, 188, 143, 0.08) 0%,
transparent 25%),
radial-gradient(circle at 40% 60%,
rgba(107, 165, 92, 0.05) 0%,
transparent 15%);
background-size: 200px 200px, 150px 150px, 100px 100px;
animation: cellFloat 25s infinite linear;
}

@keyframes cellFloat {
0% {
background-position: -100px -100px, 100px 100px, 50px 150px;
}
100% {
background-position: 100px 100px, -100px -100px, 150px 50px;
}
}

.page-title {
text-align: center;
position: relative;
z-index: 2;
}

.page-title h1 {
font-size: 2.5rem;
margin-bottom: 20px;
font-weight: 700;
letter-spacing: -0.01em;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
position: relative;
display: inline-block;
}

/* 生物细胞形状的装饰线 */
.page-title h1::after {
content: '';
position: absolute;
bottom: -12px;
left: 50%;
transform: translateX(-50%);
width: 120px;
height: 3px;
background:
radial-gradient(ellipse at center,
rgba(255, 255, 255, 0.7) 0%,
rgba(107, 165, 92, 0.5) 50%,
transparent 70%);
border-radius: 50%;
opacity: 0.8;
animation: cellPulse 3s infinite ease-in-out;
}

@keyframes cellPulse {
0%, 100% {
opacity: 0.7;
width: 120px;
}
50% {
opacity: 1;
width: 140px;
}
}

.page-title p {
font-size: 1.2rem;
max-width: 700px;
margin: 25px auto 0;
opacity: 0.95;
line-height: 1.6;
font-weight: 400;
text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
position: relative;
}

/* 细胞/微生物主题装饰 - 带绿色调 */
.page-title::before,
.page-title::after {
content: '';
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 24px;
height: 24px;
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
background: radial-gradient(circle at 30% 30%,
rgba(255, 255, 255, 0.9) 0%,
rgba(200, 230, 200, 0.7) 30%,
rgba(107, 165, 92, 0.3) 70%);
box-shadow:
0 0 0 2px rgba(107, 165, 92, 0.3),
0 0 20px rgba(107, 165, 92, 0.4),
inset 2px -2px 4px rgba(0, 0, 0, 0.2);
animation: cellFloatAnimation 4s infinite ease-in-out;
z-index: 2;
}

.page-title::before {
left: 15%;
animation-delay: 0s;
}

.page-title::after {
right: 15%;
animation-delay: 2s;
}

@keyframes cellFloatAnimation {
0%, 100% {
transform: translateY(-50%) scale(1) rotate(0deg);
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
25% {
transform: translateY(-52%) scale(1.05) rotate(5deg);
border-radius: 55% 45% 50% 50% / 55% 55% 45% 45%;
}
50% {
transform: translateY(-50%) scale(1.1) rotate(0deg);
border-radius: 50% 50% 45% 55% / 50% 60% 40% 50%;
}
75% {
transform: translateY(-48%) scale(1.05) rotate(-5deg);
border-radius: 45% 55% 50% 50% / 45% 45% 55% 55%;
}
}

/* 细胞内部结构细节 - 带绿色调 */
.page-title::before::after,
.page-title::after::after {
content: '';
position: absolute;
top: 30%;
left: 30%;
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(107, 165, 92, 0.6);
box-shadow:
0 0 0 1px rgba(107, 165, 92, 0.3),
2px -1px 2px rgba(0, 0, 0, 0.1);
}

/* 细胞群浮动效果 */
.cell-cluster {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
z-index: 1;
}

.cell {
position: absolute;
border-radius: 50%;
background: rgba(107, 165, 92, 0.1);
animation: cellDrift 20s infinite linear;
}

.cell:nth-child(1) {
width: 6px;
height: 6px;
top: 20%;
left: 10%;
animation-delay: 0s;
animation-duration: 25s;
}

.cell:nth-child(2) {
width: 4px;
height: 4px;
top: 60%;
left: 15%;
animation-delay: 5s;
animation-duration: 30s;
}

.cell:nth-child(3) {
width: 8px;
height: 8px;
top: 40%;
right: 10%;
animation-delay: 10s;
animation-duration: 20s;
}

.cell:nth-child(4) {
width: 5px;
height: 5px;
top: 70%;
right: 20%;
animation-delay: 15s;
animation-duration: 35s;
}

@keyframes cellDrift {
0% {
transform: translate(0, 0) rotate(0deg);
opacity: 0.3;
}
25% {
transform: translate(20px, 15px) rotate(90deg);
opacity: 0.6;
}
50% {
transform: translate(10px, 30px) rotate(180deg);
opacity: 0.8;
}
75% {
transform: translate(-10px, 20px) rotate(270deg);
opacity: 0.5;
}
100% {
transform: translate(0, 0) rotate(360deg);
opacity: 0.3;
}
}

/* 响应式调整 */
@media (max-width: 768px) {
.page-header {
padding: 60px 20px 40px;
}

.page-title h1 {
    font-size: 2rem;
}

.page-title p {
    font-size: 1.1rem;
    padding: 0 20px;
}

.page-title::before,
.page-title::after {
    display: none;
}

.cell-cluster {
    display: none;
}
}

/* 鼠标悬停微交互 */
.page-title h1 {
transition: all 0.3s ease;
}

.page-title h1:hover {
transform: translateY(-2px);
text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 添加底部阴影渐变 */
.page-header .bottom-shadow {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 60px;
background: linear-gradient(to bottom,
transparent 0%,
rgba(0, 0, 0, 0.05) 100%);
pointer-events: none;
z-index: 1;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.carousel-dot.active {
    background: white;
}

/* 会议简介样式 */
.conference-intro {
    background: #f8f9fa;
    padding: 20px 0;
}

.intro-content {
    display: block; /* 取消grid布局 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text {
    text-align: justify; /* 两端对齐 */
    line-height: 1.8;
}

.intro-text h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2rem;
    text-align: left; /* 标题左对齐 */
}

.intro-image {
    float: right; /* 图片右浮动 */
    width: 35%; /* 控制图片宽度比例 */
    margin: 0 0 20px 30px; /* 左下右上的边距 */
    shape-outside: margin-box; /* 文字环绕形状 */
}

.intro-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 清除浮动 */
.intro-text::after {
    content: "";
    display: table;
    clear: both;
}

/* 修改后的Publication板块样式 */
.publication-section {
    background-color: white;
    padding: 30px 0; /* 添加上下内边距，与简介部分一致 */
}

.publication-container {
    max-width: 1200px; /* 设置与简介部分相同的最大宽度 */
    margin: 0 auto;
    padding: 0 20px; /* 添加左右内边距 */
}

.publication-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    line-height: 1.8;
}

.publication-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* =======================
   论文集封面无缝轮播样式
   ======================= */
.publication-carousel-container {
    width: calc(100% - var(--side-margin, 40px));
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    background-color: #f8f8f8;
    margin: 0 auto;
    border-radius: 12px;
}

.publication-carousel {
    display: flex;
    align-items: center;
    position: relative;
}

.publication-carousel-track {
    display: flex;
    transition: transform 0.5s ease; /* 平滑过渡效果 */
}

.publication-carousel-slide {
    flex: 0 0 200px; /* 固定宽度，每页显示多个 */
    margin: 0 15px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: white;
    transition: all 0.3s ease;
}

.publication-carousel-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.publication-carousel-image {
    width: 100%;
    border-radius: 6px;
}

/* ⭐ 新增：让图片保持原始高度 + 不裁剪 + 居中 */
.publication-carousel-slide img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 6px;
}

.publication-carousel-link {
    text-decoration: none;    /* 去掉下划线 */
    color: inherit;           /* 继承文字颜色 */
    display: block;    /* 让链接像块级元素一样包裹整个 slide */
}

.publication-carousel-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;

    
}

/* 响应式 */
@media (max-width: 768px) {
    .publication-carousel-slide {
        flex: 0 0 180px;
        margin: 0 10px;
    }
    .publication-carousel-image { 
        height: 130px; 
    }
}

@media (max-width: 480px) {
    .publication-carousel-slide {
        flex: 0 0 150px;
        margin: 0 8px;
    }
    .publication-carousel-image { 
        height: 110px; 
    }
}

/* 重要日期样式 - 一行四列布局 */
.dates-section {
    background: #f8f9fa;
    padding: 20px 0;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 强制四列 */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.date-card {
    background: white;
    padding: 25px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px; /* 统一高度 */
}

.date-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-top-color: var(--primary-color);
}

.date-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    color: white;
}

.date-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.date-value {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 600;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* 为每个日期卡片添加不同的颜色主题 */
.date-card:nth-child(1) .date-icon {
    background: linear-gradient(135deg, #3498db 0%, #1a5276 100%);
}

.date-card:nth-child(2) .date-icon {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.date-card:nth-child(3) .date-icon {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.date-card:nth-child(4) .date-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* 会议轨道网格样式 */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.track-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
    border-left: 1px solid #f5f5f5;
    border-right: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-top-color: var(--secondary-color);
}

.track-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.track-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.track-card p {
    color: #666;
    line-height: 1.6;
}

/* 赞助商网格样式 */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.sponsor-logo {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* 内容区域样式 - 两栏布局 */
.content-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.main-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.main-content h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

.main-content h2 {
    color: var(--primary-color);
    margin: 20px 0 15px;
    font-size: 1.5rem;
}

.main-content h3 {
    color: var(--secondary-color);
    margin: 25px 0 10px;
    font-size: 1.3rem;
}

.main-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.main-content ul, .main-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.main-content li {
    margin-bottom: 8px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.sidebar-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

/* =========================
   No Sidebar Page Layout
   ========================= */

.no-sidebar .sidebar {
    display: none;
}

.no-sidebar .content-section {
    display: block;
}

.no-sidebar .main-content {
    width: 100%;
    max-width: 100%;
    float: none;
}

/* =========================
   Important Dates – compact & left aligned
   ========================= */

.no-sidebar .dates-timeline {
    max-width: 520px;          /* 控制宽度 */
    margin: 10px 0 24px 0;     /* 靠左（不 auto） */
    padding: 8px 16px;
    background: #f7f8fa;
    border-radius: 6px;
}

.no-sidebar .dates-timeline .date-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 13px;
}

.no-sidebar .dates-timeline .date-item:last-child {
    border-bottom: none;
}

.no-sidebar .dates-timeline .date-title {
    color: #444;
    font-weight: 500;
}

.no-sidebar .dates-timeline .date-value {
    color: #000;
    font-weight: bold;
}

/* 快速链接样式 */
.quick-links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    border-left: 4px solid var(--secondary-color);
}

.quick-link-item:hover {
    background-color: white;
    box-shadow: var(--box-shadow);
    transform: translateX(5px);
}

.quick-link-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary-color);
}

.quick-link-text h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.quick-link-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* 重要日期样式 */
.date-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-item:last-child {
    border-bottom: none;
}

.date-title {
    font-weight: 600;
    color: var(--primary-color);
}

.date-value {
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 联系方式样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

.contact-text {
    color: #666;
}




/* 最新消息样式 */
.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
    border-radius: 4px;
}

.news-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.news-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1rem;
}

.news-summary {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 简化委员会样式 */
.committee-section {
    margin-bottom: 15px;
}

.committee-section h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 4px;
}

.committee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.committee-item {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}

.committee-item:last-child {
    border-bottom: none;
}

.committee-name {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 200px; /* 进一步增加宽度 */
    max-width: 250px; /* 添加最大宽度限制 */
    font-size: 0.88rem;
    word-wrap: break-word; /* 允许长单词换行 */
    overflow-wrap: break-word; /* 现代浏览器中的换行属性 */
}

.committee-affiliation {
    color: #666;
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.3;
    word-wrap: break-word; /* 允许长单词换行 */
    overflow-wrap: break-word; /* 现代浏览器中的换行属性 */
}


/* =======================
   底部小图轮播样式
   ======================= */
.bottom-carousel-container {
    width: calc(100% - var(--side-margin, 40px));
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background-color: #f8f8f8;
    margin: 0 auto; /* 居中显示 */
}

.bottom-carousel {
    display: flex;
    align-items: center;
    position: relative;
}

.bottom-carousel-track {
    display: flex;
    transition: transform 0s linear; /* JS控制平滑滚动 */
}

.bottom-carousel-slide {
    flex: 0 0 calc(25% - 10px);
    margin: 0 5px;
    box-sizing: border-box;
    border: 1px solid #ddd; /* 添加边框 */
    border-radius: 8px; /* 可选：圆角边框 */
    padding: 4px; /* 可选：内边距让内容与边框有间距 */
    background: white; /* 可选：添加背景色让边框更明显 */
}

.bottom-carousel-image {
    width: 100%;
    height: 132px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* 按钮 */
.bottom-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
}

.bottom-carousel-btn.prev { left: 10px; }
.bottom-carousel-btn.next { right: 10px; }

.bottom-carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.bottom-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.bottom-carousel-indicator.active {
    background: #3498db;
}

/* 响应式 */
@media (max-width: 768px) {
    .bottom-carousel-slide {
        flex: 0 0 calc(50% - 10px); /* 一页两张 */
    }
    .bottom-carousel-image { height: 120px; }
}

@media (max-width: 480px) {
    .bottom-carousel-slide {
        flex: 0 0 calc(100% - 10px); /* 一页一张 */
    }
    .bottom-carousel-image { height: 100px; }
}


/* 页脚样式 - 与页面标题相同的蓝绿渐变风格 */
footer {
    background: 
        linear-gradient(135deg, 
            var(--primary-color) 0%, 
            color-mix(in srgb, var(--primary-color), var(--secondary-color) 30%) 30%,
            var(--secondary-color) 70%,
            color-mix(in srgb, var(--secondary-color), transparent 15%) 100%),
        radial-gradient(circle at 20% 80%, 
            color-mix(in srgb, var(--primary-color), white 15%) 0%, 
            transparent 50%),
        radial-gradient(circle at 80% 20%, 
            color-mix(in srgb, var(--secondary-color), white 15%) 0%, 
            transparent 50%);
    color: white;
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* 添加生物细胞纹理效果 - 与页面标题相同 */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 20% 30%, 
            rgba(255, 255, 255, 0.1) 0%, 
            transparent 20%),
        radial-gradient(ellipse at 80% 70%, 
            rgba(255, 255, 255, 0.08) 0%, 
            transparent 25%),
        radial-gradient(circle at 40% 60%, 
            rgba(255, 255, 255, 0.05) 0%, 
            transparent 15%);
    background-size: 200px 200px, 150px 150px, 100px 100px;
    animation: footerCellFloat 25s infinite linear;
    pointer-events: none;
}

@keyframes footerCellFloat {
    0% { 
        background-position: -100px -100px, 100px 100px, 50px 150px; 
    }
    100% { 
        background-position: 100px 100px, -100px -100px, 150px 50px; 
    }
}

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

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding-right: 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: 
        radial-gradient(ellipse at center, 
            rgba(255, 255, 255, 0.7) 0%, 
            rgba(107, 165, 92, 0.5) 50%,
            transparent 70%);
    border-radius: 50%;
    opacity: 0.8;
}

.footer-section p, .footer-section a {
    margin-bottom: 8px;
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 3px;
}

/* 两列快速链接样式 */
.footer-links-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
}

.footer-links-columns a {
    margin-bottom: 6px;
    position: relative;
}

.footer-links-columns a::before {
    content: '›';
    position: absolute;
    left: -12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links-columns a:hover::before {
    opacity: 1;
    left: -8px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 添加生物细胞装饰元素 */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.footer-cell {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: footerCellDrift 20s infinite linear;
}

.footer-cell:nth-child(1) {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.footer-cell:nth-child(2) {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 15%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.footer-cell:nth-child(3) {
    width: 8px;
    height: 8px;
    top: 40%;
    right: 10%;
    animation-delay: 10s;
    animation-duration: 20s;
}

.footer-cell:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 70%;
    right: 20%;
    animation-delay: 15s;
    animation-duration: 35s;
}

@keyframes footerCellDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, 15px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(10px, 30px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translate(-10px, 20px) rotate(270deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.3;
    }
}

/* ========== 响应式设计 ========== */

/* 中等屏幕调整 */
@media (max-width: 1024px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .logo {
        margin-right: 15px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .dates-grid {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕改为两列 */
        gap: 25px;
        max-width: 800px;
    }
    
    .date-card {
        min-height: 160px;
        padding: 20px 15px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        padding-right: 0;
        margin-bottom: 25px;
    }
    
    .footer-links-columns {
        grid-template-columns: 1fr;
    }
}

/* 平板设备调整 */
@media (max-width: 900px) {
    .nav-menu {
        gap: 1px;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
    
    .register-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-left: 8px;
    }
    
    .content-section {
        grid-template-columns: 1fr;
    }
    
    .carousel {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .intro-image {
        order: -1;
    }
    
    .committee-list {
        grid-template-columns: 1fr;
    }
}

/* 移动端调整 */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: var(--box-shadow);
        padding: 15px 0;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 1rem;
        text-align: left;
        width: 100%;
    }
    
    .register-btn {
        margin: 15px 20px 0;
        width: calc(100% - 40px);
        text-align: center;
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .logo {
        margin-right: auto; /* 在移动端让logo靠左 */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .carousel {
        height: 350px;
    }
    
    .carousel-caption {
        bottom: 15%;
        left: 5%;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title p {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .sidebar-box {
        padding: 25px 20px;
    }
    
    .dates-grid {
        grid-template-columns: 1fr; /* 小屏幕改为一列 */
        max-width: 400px;
        gap: 20px;
    }
    
    .date-card {
        min-height: 140px;
        padding: 20px;
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
    
    .date-icon {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        flex-shrink: 0;
    }
    
    .date-content {
        flex: 1;
    }
    
    .tracks-grid {
        grid-template-columns: 1fr;
    }
    
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p, .footer-section a {
        font-size: 0.9rem;
    }
}

/* 小屏幕手机调整 */
@media (max-width: 480px) {
    .logo {
        padding: 6px 10px;
    }
    
    .logo img {
        height: 35px; /* 减小logo高度 */
        margin-right: 8px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .mobile-toggle {
        font-size: 1.3rem;
        padding: 5px;
    }
    
    .carousel {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .main-content,
    .sidebar-box {
        padding: 20px 15px;
    }
    
    .page-header {
        padding: 50px 0 30px;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .page-title p {
        font-size: 1rem;
    }
    
    .dates-section {
        padding: 40px 0;
    }
    
    .date-card {
        padding: 15px;
        min-height: 120px;
    }
    
    .date-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .date-title {
        font-size: 1rem;
    }
    
    .date-value {
        font-size: 0.9rem;
    }
}

/* 超大屏幕限制最大宽度 */
@media (min-width: 1400px) {
    .navbar {
        max-width: 1300px;
    }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.page-link.active {
    background-color: #3498db;
    color: white;
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.page-link:hover:not(.active):not(.disabled) {
    background-color: #ddd;
}

/* =========================
   Timeline 基本样式
   ========================= */
.timeline {
    position: relative;
    margin: 50px 0;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #1a5276;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 6px;
    top: 18px;
    width: 18px;
    height: 18px;
    background-color: #1a5276;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.2);
}

.timeline-dot.highlight-dot {
    background-color: #e67e22;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.25);
}

.timeline-card {
    background: #ffffff;
    padding: 20px 25px;
    margin-left: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* 标题颜色 */
.timeline-card h2 {
    margin: 0 0 10px;
    color: #1a5276;
    font-size: 1.3rem;
}

/* =========================
   链接样式（强制行内）
   ========================= */
.timeline-card.highlight a {
    color: #1a5276;
    text-decoration: underline;
}

.timeline-card.highlight p a {
    display: inline-block !important;  /* 关键：覆盖全局 block */
}

.timeline-card.highlight a:hover {
    color: #0056b3;
}

/* =========================
   图片行（并排 + 间距）
   ========================= */
.history-image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.history-image-row img {
    margin: 0 !important;
    max-height: 180px;
    width: auto;
}

/* 响应式 */
@media (max-width: 600px) {
    .history-image-row img {
        max-height: 120px;
    }
}

.history-image-row {
    display: flex;
    flex-wrap: wrap;           /* 允许换行 */
    justify-content: center;
    gap: 10px 15px;            /* 水平间距 30px，垂直间距 15px */
    margin: 5px 0 5px 0;     /* 整体上下外边距可调整 */
}

.image-item {
    flex: 1 1 45%;             /* 每个占宽度约45%，保证一行2张 */
    text-align: center;
    max-width: 300px;          /* 控制最大宽度 */
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 6px;        /* 图片和文字之间间距 */
}

.image-caption {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.2;   /* 调整文字行高，减少上下间距 */
    margin: 0;          /* 去掉默认段落上下外边距 */
}


/* 响应式：小屏幕一行只显示1张 */
@media (max-width: 600px) {
    .image-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.justify-text {
    text-align: justify;
}


.session-list {
    list-style-type: none;       /* 去掉默认圆点 */
    padding: 0;
    margin: 0;
}

.session-list li {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 4px solid #1a5276;  /* 左边彩色竖线 */
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.session-title {
    font-weight: bold;
    color: #1a5276;
    display: block;
    margin-bottom: 6px;
}

.paper-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 4px 0;
}

.authors {
    font-size: 0.9rem;
    color: #333;
    margin: 2px 0;
}

.affiliation {
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
    margin: 2px 0;
}

/* 响应式 */
@media (max-width: 600px) {
    .session-list li {
        padding: 12px 15px;
    }
    .paper-title {
        font-size: 0.95rem;
    }
}
