body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background: #ffffff;
}

.container {
    width: 80%;
    margin: auto;
    overflow: visible;
}

header {
    background: #ffffff;
    color: #333;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-bottom: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    float: left;
    margin: 0;
    padding: 0;
}

header p {
    float: left;
    margin: 0;
    padding: 0 0 0 20px;
}

header nav {
    float: right;
    margin-top: 10px;
}

header nav a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

header nav a:hover, header nav a.active {
    background: #e0f7fa;
}

section {
    padding: 20px 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section h2 {
    color: #4caf50;
}

footer {
    background: #ffffff;
    color: #666;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#tangula {
    background: #ffffff;
    padding: 40px 0;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#tangula h2 {
    color: #4caf50;
}

.problem-list, .scientist-intro, .dimension, .results, .event-card {
    background: #f1f8e9;
    border: 1px solid #e0e0e0;
    color: #333;
}

.problem-list {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scientist-intro {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.four-dimensions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.dimension {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.results {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta button {
    background: #4caf50;
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.cta button:hover {
    background: #388e3c;
}

/* 新增英雄区域样式 */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background: #4caf50;
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
}

.cta-button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* 修改活动轮播图样式 */
.event-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.event-slide {
    flex: 0 0 100%;
    position: relative;
}

.event-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.event-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
}

/* 修改控制按钮样式 */
.event-controls {
    display: none;
}

/* 新增往期活动样式 */
#past-events {
    padding: 40px 0;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.event-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
}

.event-details {
    padding: 20px;
}

.event-details h3 {
    margin: 0 0 10px;
    color: #4caf50;
}

.event-details .date,
.event-details .location,
.event-details .description {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation: slideUp 0.3s ease-out;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #e0e0e0;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

/* 添加全局动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 添加页面加载动画 */
body {
    animation: fadeIn 0.8s ease-out;
}

/* 修改header渐变效果 */
header {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 保留section进入动画 */
section.animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.animated.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 优化卡片hover效果 */
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 添加轮播图渐变遮罩 */
.carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
}

/* 添加文字动画 */
h2 {
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

h2:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 添加列表项动画 */
li {
    position: relative;
    padding-left: 20px;
}

li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffffff;
    transform: scale(0);
    transition: transform 0.3s ease;
}

li:hover::before {
    transform: scale(1.5);
}

/* 优化移动端动画 */
@media (max-width: 768px) {
    section {
        margin: 10px 0;
    }
    
    .cta-button::after {
        display: none;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .event-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* 修改链接颜色 */
a {
    color: #e0e0e0;
}

/* 修改hover效果 */
a:hover, button:hover, .cta-button:hover {
    opacity: 0.8;
}

/* 画廊轮播图最终样式 */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-slides {
    display: flex;
    width: max-content;
    height: 500px;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 80%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    pointer-events: none; /* 修复点击穿透问题 */
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2%;
}

.gallery-controls button {
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #2c3e50;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-controls button:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-slides {
        height: 300px;
    }
    
    .gallery-slide img {
        width: 90%;
    }
    
    .gallery-controls button {
        padding: 8px 12px;
        font-size: 20px;
    }
}

/* 新增轮播图样式 */
.new-carousel {
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    justify-content: center;
}

.carousel-item {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    display: flex;
    justify-content: center;
}

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

.carousel-item img {
    width: 80%;
    height: 500px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,0.3);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-prev,
    .carousel-next {
        padding: 0.8rem;
        font-size: 1.2rem;
    }
}

/* 删除所有旧轮播相关样式，新增Swiper样式 */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    display: flex;
    transition-timing-function: linear;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 80%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.swiper-button-prev,
.swiper-button-next {
    background: none;
    color: #4caf50;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: #388e3c;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px;
    font-weight: bold;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

@media (max-width: 768px) {
    .swiper-slide img {
        width: 90%;
        height: 300px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        font-size: 20px;
    }
    
    .swiper-button-prev {
        left: 5px;
    }
    
    .swiper-button-next {
        right: 5px;
    }
}

.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .swiper-slide img {
        width: 90%;
        height: 300px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 20px;
    }
}

/* 新增画廊网格布局样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* 新增钟毓博士模块样式 */
#scientist {
    padding: 40px 0;
}

.scientist-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.scientist-info {
    flex: 1;
}

.scientist-image {
    flex: 1;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scientist-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .scientist-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .scientist-image {
        max-width: 100%;
    }
}

/* 修改四维平衡理念样式 */
#four-dimensions {
    padding: 40px 0;
    background: #f1f8e9;
}

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.dimension-card {
    background: #4caf50;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dimension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dimension-title {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    color: #4caf50;
    font-size: 1.2rem;
    font-weight: bold;
}

.dimension-card h3 {
    margin: 15px 0 10px;
    color: #4caf50;
}

.dimension-card p {
    color: #e0f7fa;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .dimension-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dimension-grid {
        grid-template-columns: 1fr;
    }
}

/* 新增联系信息样式 */
.contact-info {
    margin-top: 20px;
    text-align: center;
}

.contact-info p {
    margin: 5px 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.contact-info a {
    color: #4caf50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #388e3c;
}

/* 修改精彩活动瞬间样式 */
#gallery {
    padding: 40px 0;
    background: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
} 