/* 首页样式 */

.page-container {
    padding: 20px 15px 80px; /* Adjusted bottom padding for nav bar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f7f8fa;
}

/* Banner区域 */
.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to right, #3B5FE0, #2A4CC8);
    padding: 30px 0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(59, 95, 224, 0.2);
}

.logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.banner-title {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.banner-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 功能卡片列表 - 保留容器样式 */
.function-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

/* 卡片基础样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 版权信息 */
.copyright {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* 多考点功能：考试信息显示区域 */
.exam-info-section {
    margin: 15px 0;
}

.exam-info-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 4px solid #3B5FE0;
}

.exam-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.exam-info-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.exam-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.exam-status.active {
    background-color: #d4edda;
    color: #155724;
}

.exam-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.exam-info-content {
    padding: 20px;
}

.exam-info-item {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.exam-info-item:last-child {
    margin-bottom: 0;
}

.exam-info-item .label {
    min-width: 80px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.exam-info-item .value {
    flex: 1;
    color: #333;
    font-size: 14px;
    word-break: break-all;
}

.exam-info-actions {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

.exam-info-actions .btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exam-info-actions .btn-primary {
    background-color: #3B5FE0;
    color: white;
}

.exam-info-actions .btn-primary:hover {
    background-color: #2A4CC8;
}

.exam-info-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.exam-info-actions .btn-secondary:hover {
    background-color: #5a6268;
}

/* 考试信息弹窗样式 */
.exam-info {
    padding: 20px;
    line-height: 1.6;
}

.exam-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    text-align: center;
}

.exam-info p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.exam-info .error-msg {
    color: #dc3545;
    font-weight: bold;
    background-color: #f8d7da;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* 透明弹窗样式 */
.ui-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.ui-modal.ui-modal-hide {
    opacity: 0;
    visibility: hidden;
}

.modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    max-width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #666;
}

.modal-body {
    padding: 20px;
}

.modal-message {
    line-height: 1.6;
    color: #333;
    white-space: pre-line;
    font-size: 16px;
}

.modal-footer {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.modal-confirm-btn {
    background: linear-gradient(to right, #3B5FE0, #2A4CC8);
    color: white;
}

.modal-confirm-btn:hover {
    background: linear-gradient(to right, #2A4CC8, #1E3A9F);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 95, 224, 0.3);
}

.modal-cancel-btn {
    background: #f5f5f5;
    color: #666;
    display: none; /* 隐藏取消按钮，因为showAlert只需要确定按钮 */
}

.modal-cancel-btn:hover {
    background: #e0e0e0;
}
