/**
 * SCR训练报名系统 - 全局样式表
 * 适配所有页面样式，统一视觉风格，支持响应式布局
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mini-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    background-color: #4096ff;
    color: #ffffff;
    padding: 18px 0;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(64, 150, 255, 0.3);
}

.header h1 {
    font-size: 24px;
    margin-bottom: 6px;
    font-weight: 600;
}

.header p {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

/* 卡片样式 */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-title {
    font-size: 18px;
    color: #2f3542;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e6eb;
    font-weight: 600;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    font-size: 15px;
    color: #333333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #4096ff;
    box-shadow: 0 0 0 3px rgba(64, 150, 255, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4096ff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    font-weight: 500;
}

.btn:hover {
    background-color: #1890ff;
    transform: translateY(-2px);
}

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

.btn-block {
    display: block;
    width: 100%;
}

.btn-secondary {
    background-color: #64748b;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-success {
    background-color: #52c41a;
}

.btn-success:hover {
    background-color: #389e0d;
}

.btn-danger {
    background-color: #f5222d;
}

.btn-danger:hover {
    background-color: #cf1322;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #f5222d;
}

.modal-title {
    font-size: 18px;
    color: #2f3542;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* 列表样式 */
.list-group {
    list-style: none;
    margin-bottom: 20px;
}

.list-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.list-item:first-child {
    border-top: 1px solid #e5e6eb;
}

.list-item:hover {
    background-color: #f8fafc;
}

.list-item-title {
    font-weight: 500;
    color: #2f3542;
}

.list-item-content {
    color: #64748b;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e5e6eb;
}

.table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
}

.table tr:hover {
    background-color: #fafbfc;
}

/* 提示文本样式 */
.text-success {
    color: #52c41a;
}

.text-danger {
    color: #f5222d;
}

.text-warning {
    color: #faad14;
}

.text-info {
    color: #1890ff;
}

.text-muted {
    color: #94a3b8;
}

/* 对齐方式 */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* 间距样式 */
.mt-1 {
    margin-top: 5px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

/* 成功页面样式 */
.success-page {
    text-align: center;
    padding: 50px 20px;
}

.success-icon {
    font-size: 60px;
    color: #52c41a;
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    color: #2f3542;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-desc {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 管理员后台样式 */
.admin-nav {
    background-color: #2f3542;
    border-radius: 8px;
    margin-bottom: 25px;
}

.admin-nav-list {
    display: flex;
    list-style: none;
}

.admin-nav-item {
    padding: 15px 20px;
}

.admin-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.admin-nav-link:hover {
    color: #4096ff;
}

.admin-nav-item.active .admin-nav-link {
    color: #4096ff;
    border-bottom: 2px solid #4096ff;
}

.admin-content {
    padding: 20px 0;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .container,
    .small-container,
    .mini-container {
        padding: 15px;
    }

    .card {
        padding: 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .card-title {
        font-size: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .admin-nav-list {
        flex-wrap: wrap;
    }

    .admin-nav-item {
        padding: 12px 15px;
    }

    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }

    .card {
        padding: 15px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .modal-content {
        padding: 20px 15px;
    }
}