﻿/* 通告资讯页面独有样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 固定标题栏 */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .page-header h1 {
        font-size: 18px;
        color: white;
        font-weight: 600;
        margin: 0;
        flex: 1;
        text-align: center;
    }

        .page-header h1 i {
            margin-right: 8px;
            color: #ffd700;
        }

    .page-header .placeholder {
        width: 36px;
        flex-shrink: 0;
        visibility: hidden;
    }

/* 返回按钮 */
.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    flex-shrink: 0;
}

    .back-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }

/* 主容器 - 为固定头部留出空间 */
.main-container {
    padding-top: 65px;
    padding-bottom: 30px;
    min-height: 100vh;
}

.notice-list-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 加载提示 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 无更多数据提示 */
.no-more {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 13px;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

    .empty-state i {
        font-size: 60px;
        margin-bottom: 15px;
        opacity: 0.5;
    }

    .empty-state p {
        font-size: 14px;
        margin-bottom: 20px;
    }

.refresh-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

    .refresh-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

/* ========== 按钮行布局（确保靠右对齐） ========== */
.button-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
}

.button-left {
    display: none !important;
}

.button-wrapper {
    display: flex !important;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end !important;
    margin-left: auto !important;
}

/* 所有按钮基础样式 */
.btn-accept,
.btn-cancel,
.btn-disabled,
.btn-success,
.btn-danger,
.btn-reject {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    box-sizing: border-box;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .btn-accept,
    .btn-cancel,
    .btn-disabled,
    .btn-success,
    .btn-danger,
    .btn-reject {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
        gap: 4px;
    }

    .button-wrapper {
        gap: 8px;
    }
}

/* 各状态颜色 */
.btn-accept {
    background: #28a745;
    color: white;
}

    .btn-accept:hover {
        background: #218838;
        transform: translateY(-1px);
    }

.btn-cancel {
    background: #ffc107;
    color: #212529;
}

    .btn-cancel:hover {
        background: #e0a800;
        transform: translateY(-1px);
    }

.btn-disabled {
    background: #6c757d;
    color: white;
    opacity: 0.65;
    cursor: not-allowed;
}

    .btn-disabled:hover {
        transform: none;
    }

.btn-success {
    background: #28a745;
    color: white;
    opacity: 0.8;
    cursor: default;
}

.btn-danger {
    background: #dc3545;
    color: white;
    opacity: 0.8;
    cursor: default;
}

.btn-reject {
    background: #dc3545;
    color: white;
}

    .btn-reject:hover {
        background: #c82333;
        transform: translateY(-1px);
    }

/* 旧版兼容（如仍有使用旧类名） */
.accept-btn,
.reject-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
}

@media (max-width: 480px) {
    .accept-btn, .reject-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }
}

.accept-btn {
    background: #28a745;
    color: white;
}

.reject-btn {
    background: #dc3545;
    color: white;
}

/* ========== 移动端适配调整 ========== */
@media (max-width: 480px) {
    .page-header {
        padding: 10px 12px;
    }

        .page-header h1 {
            font-size: 16px;
        }

    .back-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .page-header .placeholder {
        width: 32px;
    }

    .main-container {
        padding-top: 55px;
    }

    .notice-list-container {
        padding: 0 12px;
    }
}
