/* 首页样式文件 - 包含轮播图、新闻、活动等首页特有内容 */

/* 主内容区 */
.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 50px 60px;
}

/* 轮播图 */
.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    background: #1a1a1a;
    cursor: default;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    cursor: default;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: default;
}


.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    cursor: default;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    width: 36px;
    border-radius: 5px;
    background: var(--white);
}

/* 新闻通知双栏布局 */
.news-notice-wrapper {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
    margin-bottom: 60px;
}

/* 章节样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-left: 16px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, var(--theme-primary), var(--theme-primary-light));
    border-radius: 3px;
}

.section-title span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

.more-link {
    padding: 8px 20px;
    color: var(--theme-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.more-link:hover {
    color: var(--theme-primary-light);
    gap: 10px;
}

/* 新闻模块 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: transparent;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.news-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-item:hover::after {
    opacity: 1;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item:hover .news-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.news-item:hover .news-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.news-body {
    padding: 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.news-item:hover .news-title-text {
    color: var(--theme-primary);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* 通知模块 */
.notice-section {
    background: transparent;
}

.notice-header {
    padding: 0 0 20px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.notice-list {
    padding: 0;
}

.notice-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    padding-left: 12px;
}

.notice-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--theme-primary);
    border-radius: 2px;
    transition: height 0.3s;
}

.notice-item:hover::before {
    height: 60%;
}

.notice-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notice-title-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    padding-right: 10px;
    transition: color 0.3s;
}

.notice-item:hover .notice-title-text {
    color: var(--theme-primary);
}

.notice-badge {
    padding: 4px 10px;
    background: var(--theme-primary);
    color: var(--white);
    font-size: 11px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.notice-date-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-footer {
    padding: 20px 0 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
}

/* 学术活动 */
.activity-section {
    margin-top: 60px;
}

.activity-timeline {
    position: relative;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: visible;
}

.timeline-line {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-primary), var(--accent-purple), var(--accent-cyan), var(--accent-green), var(--accent-orange));
    border-radius: 1px;
}

.timeline-items {
    display: flex;
    gap: 30px;
    position: relative;
    padding-bottom: 20px;
}

.activity-card {
    min-width: 320px;
    background: transparent;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-8px);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 3px solid var(--theme-primary);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s;
}

.activity-card:hover::before {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(0, 81, 142, 0.15);
}

.activity-card:nth-child(2)::before {
    border-color: var(--accent-purple);
}

.activity-card:nth-child(3)::before {
    border-color: var(--accent-cyan);
}

.activity-card:nth-child(4)::before {
    border-color: var(--accent-green);
}

.activity-card:nth-child(5)::before {
    border-color: var(--accent-orange);
}

.activity-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:hover .activity-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.activity-card:hover .activity-image img {
    transform: scale(1.08);
}

.activity-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.activity-content {
    padding: 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-type {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 81, 142, 0.08);
    color: var(--theme-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
    width: fit-content;
    align-self: flex-start;
}

.activity-title-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.activity-card:hover .activity-title-text {
    color: var(--theme-primary);
}

.activity-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-footer {
    padding: 12px 0 0;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    min-height: 40px;
}

/* 滚动条美化 */
.activity-timeline::-webkit-scrollbar {
    height: 6px;
}

.activity-timeline::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.activity-timeline::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: 3px;
}

.activity-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary-light);
}

/* 响应式 */
@media (max-width: 1400px) {
    .main-content {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 1200px) {
    .news-notice-wrapper {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 轮播图平板适配 */
    .hero-slider {
        height: 50vh;
        min-height: 350px;
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* 轮播图手机适配 */
    .hero-slider {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    /* 活动卡片适配 */
    .activity-card {
        min-width: 280px;
    }
    
    .activity-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕适配 */
    .hero-slider {
        height: 35vh;
        min-height: 200px;
        max-height: 280px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .news-notice-wrapper {
        gap: 30px;
    }
    
    .activity-card {
        min-width: 260px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}