/* ==================== 主样式表 ==================== */
/* 全国青少年劳动技能与智能设计大赛管理系统 */
/* 纯色设计，无渐变 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 头部 ===== */
.site-header {
    background: #1a3a5c;
    color: #fff;
    padding: 15px 0;
    border-bottom: 3px solid #c0392b;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.site-title {
    font-size: 22px;
    font-weight: bold;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 14px;
}

.header-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header-nav .nav-admin {
    background: #c0392b;
}

.header-nav .nav-admin:hover {
    background: #e74c3c;
}

.header-nav .nav-user {
    color: #f1c40f;
    font-weight: bold;
}

/* ===== 主内容 ===== */
.site-main {
    min-height: 500px;
    padding: 30px 0;
}

/* ===== 消息提示 ===== */
.message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.message-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.message-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.message-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    opacity: 0.85;
}

.btn-primary {
    background: #1a3a5c;
    color: #fff;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-info {
    background: #17a2b8;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #1a3a5c;
    color: #1a3a5c;
}

.btn-outline:hover {
    background: #1a3a5c;
    color: #fff;
}

/* ===== 表格 ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table th {
    background: #1a3a5c;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.table tr:hover td {
    background: #f8f9fa;
}

.table .status-pending {
    color: #ffc107;
}

.table .status-approved {
    color: #28a745;
}

.table .status-rejected {
    color: #dc3545;
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group .required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.2s;
}

.form-control:focus {
    border-color: #1a3a5c;
    outline: none;
}

.form-control-file {
    padding: 8px 0;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a3a5c;
}

/* ===== 统计卡片 ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #1a3a5c;
}

.stat-label {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #1a3a5c;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    margin-top: 30px;
}

.site-footer p {
    margin: 5px 0;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-nav {
        justify-content: center;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .header-nav {
        gap: 8px;
    }
    
    .header-nav a {
        padding: 4px 8px;
        font-size: 12px;
    }
}