/* 课题管理系统主样式文件 */

* {
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #495057;
}

.header {
    background-color: white;
    color: #495057;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e9ecef;
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    color: #212529;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 20px;
    color: #6c757d;
}

.btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

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

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

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

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-header h2 {
    margin: 0;
    color: #212529;
    font-size: 1.5rem;
    font-weight: 400;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
    color: #495057;
}

.card-body {
    padding: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

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

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

.table tr:last-child td {
    border-bottom: none;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #adb5bd;
    box-shadow: 0 0 0 0.2rem rgba(173, 181, 189, 0.25);
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #495057;
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.alert-danger {
    color: #495057;
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.alert-info {
    color: #495057;
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

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

.status-pending {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.status-approved {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.status-rejected {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.status-inprogress {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.status-completed {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

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

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: #212529;
    margin: 10px 0;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

/* 登录页面样式 */
.login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #212529;
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 400;
}

.login-header p {
    color: #6c757d;
    margin: 0;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
}

.form-footer a {
    color: #495057;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.form-footer a:hover {
    color: #212529;
    text-decoration: underline;
}

.return-home {
    text-align: center;
    margin-top: 20px;
}

.return-home a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.return-home a:hover {
    color: #495057;
    text-decoration: underline;
}

/* 超级管理员登录页面样式 */
.super-admin-header h1 {
    color: #212529;
}

.super-admin-btn {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.super-admin-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* 浮动按键样式 */
.admin-dot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-dot::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: #6c757d;
    border-radius: 50%;
}

.admin-dot:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.close {
    color: #adb5bd;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #495057;
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #6c757d;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 首页样式 */
.home-header {
    background-color: white;
    color: #495057;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e9ecef;
}

.home-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 400;
    color: #212529;
}

.home-header p {
    margin: 10px 0 0 0;
    font-size: 1.1rem;
    color: #6c757d;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: #212529;
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 400;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

.buttons {
    text-align: center;
    margin: 50px 0;
}

.home-btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 15px;
    background-color: white;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.home-btn:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    background-color: white;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
}

.api-info {
    background-color: white;
    border-left: 5px solid #e9ecef;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.api-info h3 {
    color: #212529;
    margin-top: 0;
    font-weight: 400;
}

.api-info ul {
    margin: 15px 0;
    padding-left: 20px;
}

.api-info li {
    margin: 8px 0;
    color: #6c757d;
}
