/* 公告視窗樣式 */
.notice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notice-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.notice-modal {
    position: relative;
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, 
        rgba(27, 36, 71, 0.95) 0%,
        rgba(33, 28, 69, 0.95) 50%,
        rgba(43, 74, 203, 0.85) 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.7) translateY(100px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.notice-modal-overlay.show .notice-modal {
    transform: scale(1) translateY(0);
}

/* 科技感頭部 */
.notice-modal-header {
    position: relative;
    padding: 30px 40px 20px;
    background: linear-gradient(45deg, #2b4acb, #8644ff);
    color: white;
    overflow: hidden;
}

.notice-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.notice-modal-header h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 關閉按鈕 */
.notice-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.notice-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* 內容區域 */
.notice-modal-content {
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    line-height: 1.8;
    position: relative;
}

.notice-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

.notice-modal-content p {
    margin: 0 0 20px;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.notice-modal-content p:nth-child(2) {
    animation-delay: 0.2s;
}

.notice-modal-content p:nth-child(3) {
    animation-delay: 0.4s;
}

.notice-modal-content p:nth-child(4) {
    animation-delay: 0.6s;
}

.notice-modal-content p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #00e5ff;
    animation-delay: 0.8s;
}

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

/* 底部按鈕區域 */
.notice-modal-footer {
    padding: 25px 40px 35px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-understand-btn {
    background: linear-gradient(45deg, #00e5ff, #0091ea);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.notice-understand-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.notice-understand-btn:hover::before {
    left: 100%;
}

.notice-understand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

.notice-understand-btn:active {
    transform: translateY(0);
}

/* 頭部公告按鈕 */
.header-notice-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    animation: noticeButtonGlow 2s ease-in-out infinite;
}

@keyframes noticeButtonGlow {
    0%, 100% { 
        box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
        transform: scale(1.02);
    }
}

.header-notice-btn:hover {
    background: linear-gradient(45deg, #ff8a65, #ffb74d);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
    transform: translateY(-1px) scale(1.05);
    animation: none;
}

.header-notice-btn .fa-bell {
    animation: bellRing 1s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 50%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .notice-modal {
        width: 95%;
        margin: 20px;
    }
    
    .notice-modal-header,
    .notice-modal-content,
    .notice-modal-footer {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .notice-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .notice-modal-content p {
        font-size: 1rem;
    }
    
    .header-notice-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* 深色模式支援 */
@media (prefers-color-scheme: dark) {
    .notice-modal {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}