/* ==================== 新聞中心模塊樣式 ==================== */
.news-section-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.news-featured {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: var(--transition);
}

.news-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.news-featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-featured-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured:hover .news-featured-image img {
    transform: scale(1.05);
}

.news-featured-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.news-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-featured-content {
    padding: 25px;
    background: white;
}

.news-featured-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.news-excerpt {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow-light);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow-hover);
}

.news-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
}

.news-item-image {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.news-item-content h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item:hover .news-item-content h4 {
    color: var(--primary-color);
}

.news-more {
    text-align: center;
    margin-top: 10px;
}

.btn-view-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: var(--transition);
}

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

/* ==================== 新聞列表頁樣式 ==================== */
.news-page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.news-page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.news-page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.news-list-full {
    padding: 60px 0;
}

.news-list-full .news-card {
    display: flex;
    gap: 25px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: var(--transition);
}

.news-list-full .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.news-list-full .news-card-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-list-full .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-list-full .news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-list-full .news-card-content {
    padding: 25px 25px 25px 0;
    flex: 1;
}

.news-list-full .news-card-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-list-full .news-card-content .news-date {
    margin-bottom: 15px;
}

.news-list-full .news-card-content p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-read-more:hover {
    gap: 10px;
}

/* ==================== 新聞詳情頁樣式 ==================== */
.news-detail {
    padding: 60px 0;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 30px var(--shadow-light);
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-detail-meta {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.news-detail-banner {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
}

.news-detail-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content {
    line-height: 2;
    color: var(--text-color);
    font-size: 1.05rem;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 30px 0 15px;
}

.news-detail-content ul, .news-detail-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.news-detail-content li {
    margin-bottom: 10px;
}

.news-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.news-detail-gallery img {
    width: 100%;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.news-detail-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px var(--shadow-hover);
}

.news-detail-gallery-single {
    margin: 30px 0;
}

.news-detail-gallery-single img {
    width: 100%;
    border-radius: 10px;
}

.news-detail-back {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.news-download-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.news-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

/* ==================== 響應式設計 - 新聞模塊 ==================== */
@media (max-width: 992px) {
    .news-section-grid {
        grid-template-columns: 1fr;
    }

    .news-list-full .news-card {
        flex-direction: column;
    }

    .news-list-full .news-card-image {
        width: 100%;
        height: 220px;
    }

    .news-list-full .news-card-content {
        padding: 25px;
    }

    .news-detail-container {
        padding: 30px 20px;
    }

    .news-detail-header h1 {
        font-size: 1.6rem;
    }
}

/* ==================== 獲獎名單表格樣式 ==================== */
.awards-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow-light);
}

.awards-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 400px;
}

.awards-table thead {
    background: var(--gradient-primary);
    color: white;
}

.awards-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.awards-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.awards-table tbody tr:hover {
    background: #f5f8ff;
}

.awards-table tbody tr:last-child td {
    border-bottom: none;
}

.awards-table .group-name {
    font-weight: 600;
    color: var(--primary-color);
}

.awards-table .award-champion {
    color: #D4AF37;
    font-weight: 600;
}

.awards-table .award-second {
    color: #C0C0C0;
    font-weight: 600;
}

.awards-table .award-third {
    color: #CD7F32;
    font-weight: 600;
}

/* ==================== 響應式設計 - 新聞模塊 ==================== */
@media (max-width: 992px) {
    .news-section-grid {
        grid-template-columns: 1fr;
    }

    .news-list-full .news-card {
        flex-direction: column;
    }

    .news-list-full .news-card-image {
        width: 100%;
        height: 220px;
    }

    .news-list-full .news-card-content {
        padding: 25px;
    }

    .news-detail-container {
        padding: 30px 20px;
    }

    .news-detail-header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .news-featured-image {
        height: 220px;
    }

    .news-featured-content h3 {
        font-size: 1.2rem;
    }

    .news-item-link {
        padding: 12px;
    }

    .news-item-image {
        width: 100px;
        height: 75px;
    }

    .news-item-content h4 {
        font-size: 0.95rem;
    }

    .news-list-full .news-card-image {
        height: 180px;
    }

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

    .news-page-header h1 {
        font-size: 1.8rem;
    }

    .awards-table th,
    .awards-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
