/* =================================
   HOME PAGE STYLES
   Styles specific to the home/index page
   ================================= */

/* Swiper 輪播 */
.swiper-container {
    width: 100%;
    height: 500px;
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.swiper-slide:hover img {
    transform: scale(1.02);
}

.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 0.7 !important;
}

.swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

/* 成員概覽 */
.members-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.lab-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.lab-image:hover {
    transform: translateY(-4px);
}

.members-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 存取布局 */
.access-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.access-map iframe {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* 頁面動畫 */
.page-header {
    animation: fadeInScale 0.8s ease forwards;
}

.section {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.section:nth-of-type(1) { animation-delay: 0.4s; }
.section:nth-of-type(2) { animation-delay: 0.6s; }
.section:nth-of-type(3) { animation-delay: 0.8s; }
.section:nth-of-type(4) { animation-delay: 1.0s; }
.section:nth-of-type(5) { animation-delay: 1.2s; }

/* Loading and error messages */
.loading-message, 
.no-news, 
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

.error-message {
    color: var(--accent-color);
}

/* Clickable news item styles */
.clickable-item {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.clickable-item:hover {
    background-color: var(--bg-lighter) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.clickable-item:hover::after {
    content: "クリックして詳細を見る / Click for details";
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    opacity: 0.8;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .members-overview,
    .access-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .swiper-container {
        height: 300px;
    }
}

/* 小螢幕優化 */
@media (max-width: 480px) {
    .swiper-container {
        height: 250px;
        margin-bottom: 2rem;
    }

    .members-overview,
    .access-layout {
        gap: 1.5rem;
    }

    .access-map iframe {
        height: 250px;
    }
}