/* ==================== */
/* 公告樣式 - 整合新版閱讀全文功能 */
/* ==================== */

/* 公告區塊 */
.announcement-box {
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    margin-bottom: 4rem;
    max-width: 750px;
    box-shadow: 
        0 8px 32px #c6282814,
        inset 0 1px 0 #ffffffcc;
    border: 1px solid #f9a82526;
    border-top: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}

/* 添加微妙的背景紋理 */
.announcement-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, #f9a82508 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, #28359308 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== */
/* 公告標頭與摘要 */
/* ==================== */

.announcement-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Noto Serif TC', serif;
    position: relative;
    z-index: 1;
}

.announcement-icon {
    font-size: 1.2rem;
}

.announcement-title-text {
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
    font-size: 1.2rem;
}

.announcement-excerpt {
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 1.2rem;
    font-style: italic;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ==================== */
/* 閱讀全文按鈕 */
/* ==================== */

.announcement-readmore {
    text-align: center;
    margin-top: 1.5rem;
}

.home-readmore-btn {
    background: none;
    border: 1px solid rgba(249, 168, 37, 0.3);
    border-radius: 20px;
    padding: 0.6rem 1.5rem;
    color: var(--gold);
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.home-readmore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(249, 168, 37, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-readmore-btn:hover {
    background: rgba(249, 168, 37, 0.05);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(249, 168, 37, 0.1);
}

.home-readmore-btn:hover::before {
    opacity: 1;
}

.home-readmore-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(249, 168, 37, 0.1);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.readmore-arrow {
    transition: transform 0.3s ease;
}

.home-readmore-btn:hover .readmore-arrow {
    transform: translateX(3px);
}

.readmore-text {
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* 按鈕展開狀態 */
.home-readmore-btn.expanded {
    background: rgba(249, 168, 37, 0.08);
    border-color: rgba(249, 168, 37, 0.5);
}

.home-readmore-btn.expanded .readmore-arrow {
    transform: rotate(180deg);
}

/* ==================== */
/* 完整公告內容 */
/* ==================== */

.announcement-full {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(249, 168, 37, 0.2);
    display: none; /* 初始隱藏 */
}

.announcement-full.show {
    display: block;
    animation: contentFadeIn 0.5s ease-out;
}

.full-content {
    line-height: 1.8;
    color: var(--ink);
    font-size: 1.1rem;
}

.full-content p {
    margin-bottom: 1rem;
    text-align: center;
}

.announcement-date {
    text-align: center;
    font-style: italic;
    color: rgba(58, 50, 38, 0.7);
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* 鉚點連結（關鍵部分） */
/* ==================== */

/* 鉚點容器 - 初始狀態 */
.truth-highlight-container {
    text-align: center;
    margin: 2.5rem 0 1rem 0;
    padding: 1rem;
    display: none; /* 初始隱藏 */
    opacity: 0; /* 初始透明 */
    transform: translateY(10px); /* 初始位置下移 */
    transition: opacity 0.6s ease, transform 0.6s ease; /* 淡入動畫 */
}

/* 鉚點容器顯示狀態 */
.truth-highlight-container.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 鉚點連結樣式 */
.truth-highlight-container .truth-highlight {
    display: inline-block;
    color: #C62828;
    font-weight: 800;
    font-size: 1.35rem;
    margin: 0;
    padding: 0.8rem 1.5rem;
    background: rgba(183, 28, 28, 0.05);
    border-radius: 8px;
    animation: subtlePulse 3s infinite;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #b71c1c26;
}

.truth-highlight-container .truth-highlight:hover {
    background: #b71c1c14;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #b71c1c26;
    border-color: #b71c1c4d;
}

/* 鉚點脈搏動畫 */
@keyframes subtlePulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 2px 8px rgba(183, 28, 28, 0.05);
    }
    50% { 
        opacity: 0.95;
        box-shadow: 0 2px 12px rgba(183, 28, 28, 0.08);
    }
}

/* ==================== */
/* 展開狀態樣式 */
/* ==================== */

.announcement-box.expanded {
    box-shadow: 
        0 12px 40px rgba(198, 40, 40, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(249, 168, 37, 0.25);
}

/* ==================== */
/* 動態歷史公告 */
/* ==================== */

.dynamic-announcements {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #ddd;
    text-align: left;
}

.dynamic-announcements h4 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 600;
}

.dynamic-announcements ul {
    text-align: left;
    color: #555;
    font-size: 0.95rem;
    margin-top: 0.8rem;
    padding-left: 1.5rem;
}

.dynamic-announcements li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* ==================== */
/* 響應式調整 */
/* ==================== */

@media (max-width: 768px) {
    .announcement-box {
        padding: 1.8rem 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .announcement-title-text {
        font-size: 1.1rem;
    }
    
    .announcement-excerpt {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .home-readmore-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .readmore-text {
        font-size: 0.9rem;
    }
    
    .truth-highlight-container {
        margin: 2rem 0 0.5rem 0;
        padding: 0.8rem;
    }
    
    .truth-highlight-container .truth-highlight {
        font-size: 1.2rem;
        padding: 0.6rem 1.2rem;
    }
    
    .full-content {
        font-size: 1rem;
    }
    
    .announcement-date {
        font-size: 0.9rem;
    }
    
    .dynamic-announcements ul {
        padding-left: 1.2rem;
        font-size: 0.9rem;
    }
}