/* bulletin.css - 告示板/任務清單風格 */
.bulletin-section {
    background-color: var(--background-light);
    position: relative;
    padding: 3rem 0;
}

/* 公告標題 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 rgba(255, 158, 44, 0.3);
    display: inline-block;
    padding: 0.5rem 2rem;
    background: white;
    border: 4px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    margin: 1.5rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* 公告分類導航 - 標籤頁 */
.bulletin-nav {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: visible;
    display: flex;
    background: white;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
    border: 3px solid var(--border-color);
    flex-wrap: wrap;
}

.bulletin-nav-item {
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    border-right: 2px solid var(--border-color);
    position: relative;
}

.bulletin-nav-item:last-child {
    border-right: none;
}

.bulletin-nav-item:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}

.bulletin-nav-item.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.2);
}

.bulletin-nav-item.active::before {
    content: '▶';
    position: absolute;
    left: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* 公告列表容器 - 告示板 */
.announcement-container {
    margin-top: 2rem;
}

.announcement-list {
    background: #FFF9E6;
    border-radius: 15px;
    border: 4px solid var(--border-color);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
    padding: 1rem;
    position: relative;
}

.announcement-list::before {
    content: '📌';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    background: white;
    padding: 0.3rem;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

/* 公告項目 */
.announcement-item {
    padding: 1.2rem 1.5rem;
    border-bottom: 2px dashed var(--border-color);
    display: grid;
    grid-template-columns: 100px auto 1fr;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 0.8rem;
    border-radius: 10px;
    border: 2px solid transparent;
}

.announcement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.announcement-item:hover {
    background: linear-gradient(135deg, #FFF9E6, #FFFDF2);
    transform: translateX(8px) scale(1.01);
    border-color: var(--primary-color);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

/* 日期樣式 */
.announcement-date {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 158, 44, 0.1);
    padding: 0.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

/* 標籤樣式 - 糖果色 */
.announcement-tag {
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    min-width: 80px;
    display: inline-block;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.tag-activity {
    background: linear-gradient(135deg, #4CC4E7, #3498db);
    color: white;
}

.tag-important {
    background: linear-gradient(135deg, #FF6B6B, #dc3545);
    color: white;
}

.tag-update {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
}

.tag-other {
    background: linear-gradient(135deg, #95A5A6, #7F8C8D);
    color: white;
}

.tag-notice {
    background: linear-gradient(135deg, #FFD93D, #FFC107);
    color: var(--text-dark);
}

/* 公告標題 */
.announcement-title {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding-right: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.announcement-title:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.announcement-title::after {
    content: '➤';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 900;
    transition: all 0.3s ease;
}

.announcement-item:hover .announcement-title::after {
    right: -5px;
    animation: arrowBounce 0.6s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(5px); }
}

/* 分頁樣式 */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    border: 3px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    padding: 0.6rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border-color: var(--border-color);
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background: #f5f5f5;
    border-color: #ddd;
    box-shadow: none;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .bulletin-section {
        padding-top: 80px;
    }

    .section-title h2 {
        font-size: 2rem;
        padding: 0.4rem 1.5rem;
    }

    .bulletin-nav {
        flex-direction: column;
        border-width: 3px;
    }

    .bulletin-nav-item {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

    .bulletin-nav-item:last-child {
        border-bottom: none;
    }

    .announcement-item {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1rem;
    }

    .announcement-meta {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .announcement-date {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .announcement-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.9rem;
        min-width: 70px;
    }

    .announcement-title {
        padding-right: 1.5rem;
        font-size: 0.95rem;
    }

    .pagination .page-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}