/* 首页水动力主题专业版样式 */

/* ==================== 轮播区域 (Hero) ==================== */
.hero {
    height: 700px;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* 水波纹 Canvas */
.water-ripple-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slider {
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.95) 0%, rgba(0, 51, 102, 0.4) 50%, transparent 100%);
    z-index: 2;
}

.slide-content-wrapper {
    position: relative;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.slide-content {
    max-width: 650px;
    color: white;
    text-align: left;
}

.slide-content h2 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.slide-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 550px;
}

.slide-actions {
    display: flex;
    gap: 1.5rem;
}

/* 按钮发光效果 */
.btn-glow {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    border: none;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white !important;
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
    transform: translateY(-2px);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white !important;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-dark) !important;
}

/* ==================== 统计看板 ==================== */
.stats-section {
    background: var(--bg-white);
    padding: 3rem 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-breath);
    border-radius: 12px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== 核心研究领域 (Research Fields) ==================== */
.research-fields {
    padding: var(--space-xl) 0;
    background: var(--bg-light);
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 242, 254, 0.05) 0%, transparent 50%);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.field-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.field-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-breath);
    border-color: var(--accent-color);
}

.field-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.field-icon svg {
    width: 100%;
    height: 100%;
}

.field-card:hover .field-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.field-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ==================== 动效 ==================== */
.animate-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.animate-up-delay { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s 0.2s forwards; }
.animate-up-delay-2 { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s 0.4s forwards; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .slide-content h2 { font-size: 2.5rem; }
    .stats-flex { flex-direction: column; gap: 2rem; }
    .hero { height: 500px; }
    .research-fields { display: none; }
}

/* 轮播控制 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
}

.slider-btn.prev { left: 40px; }
.slider-btn.next { right: 40px; }

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-base);
}

.dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

/* ==================== 热点关注 (Highlights/Hot Section) ==================== */
.hot-section {
    padding: var(--space-xl) 0;
    background-color: var(--primary-color);
    color: white;
    position: relative;
}

.hot-section h2 {
    text-align: center;
    color: white;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hot-section h2::before {
    content: '🔥';
    font-size: 2rem;
}

.hot-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.hot-main-img {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.hot-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hot-main-img:hover img {
    transform: scale(1.05);
}

.hot-main-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.hot-main-info h3 { color: white; margin-bottom: 0.5rem; }

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hot-item {
    background: white;
    padding: 1.25rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition-base);
    color: var(--text-main);
}

.hot-item:hover {
    transform: translateX(10px);
    background: var(--bg-section);
}

.hot-item-img {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.hot-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hot-item-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.hot-item-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 核心价值 (Featured) ==================== */
.featured {
    padding: var(--space-xl) 0;
    background: var(--bg-white);
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.feature-card {
    padding: var(--space-md);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 992px) {
    .hot-container, .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .slide-content-wrapper {
        padding: 0 24px;
    }

    .slide-content {
        max-width: 620px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
}

.highlight-card p {
    color: #64748b;
    line-height: 1.6;
}

/* ==================== 专题板块 (News/Activities Tabs) ==================== */
.news-tabs-section {
    padding: 0;
    background-color: var(--bg-white);
}

.news-tabs-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    padding: 40px 0;
}

/* 左侧 Tab 列表样式 */
.tabs-column-left {
    display: flex;
    flex-direction: column;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0px;
}

.tab-nav {
    display: flex;
    gap: 3rem;
}

.tab-btn {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    padding-bottom: 15px;
    transition: var(--transition-base);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.more-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    padding-bottom: 15px;
    transition: var(--transition-base);
}

.more-link:hover {
    color: var(--primary-color);
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px dashed #e2e8f0;
    text-decoration: none;
    transition: var(--transition-base);
}

.news-item:hover .news-title {
    color: var(--primary-color);
    padding-left: 10px;
}

.news-title {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 2rem;
    transition: all 0.3s ease;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* 右侧 通知公告 样式 */
.announce-column-right {
    display: flex;
    flex-direction: column;
}

.announce-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0px;
}

.announce-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    padding-bottom: 15px;
    margin: 0;
}

.announce-list {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 4px;
}

.announce-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.announce-item:last-child {
    margin-bottom: 0;
}

.announce-date-box {
    background-color: white;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.announce-day {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.announce-month {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.announce-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.announce-content h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

.announce-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 992px) {
    .news-tabs-container {
        grid-template-columns: 1fr;
    }
}

/* ==================== 活动日历 ==================== */
.activities-section {
    padding: 4rem 0;
    background-color: white;
}

.activities-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #2563eb;
}

.activity-card-date {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 1rem;
    text-align: center;
}

.activity-date {
    font-size: 2rem;
    font-weight: 700;
}

.activity-month {
    font-size: 0.875rem;
    opacity: 0.9;
}

.activity-card-content {
    padding: 1.5rem;
}

.activity-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.activity-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.activity-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.activity-register-btn {
    display: inline-block;
    margin-top: 1rem;
}

/* ==================== 组织架构 ==================== */
.organization-preview {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.organization-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    flex-wrap: wrap;
}

.org-node {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==================== 成果展示 ==================== */
.showcase-section {
    padding: 4rem 0;
    background-color: white;
}

.showcase-item {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.showcase-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.showcase-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.showcase-item-title {
    padding: 1rem;
    font-weight: 600;
    color: #1e293b;
}

/* ==================== 媒体中心 ==================== */
.media-section {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.media-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.media-tab {
    padding: 0.75rem 1.5rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.media-tab.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.media-item {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.media-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ==================== 联系我们 ==================== */
.contact-preview {
    padding: 4rem 0;
    background-color: white;
}

.contact-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: #eff6ff;
    border-color: #2563eb;
}

.contact-item h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-item p {
    color: #64748b;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .slide::before {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.42) 100%);
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .activities-preview {
        grid-template-columns: 1fr;
    }

    .org-level {
        gap: 1rem;
    }

    .org-node {
        min-width: 100px;
        padding: 0.75rem 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .media-tabs {
        flex-direction: column;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}
