/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 500px;
}

/* 登录框样式 */
.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.logo i {
    font-size: 50px;
    color: #6a11cb;
    margin-bottom: 15px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

/* 表单样式 */
.login-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 15px;
}

.form-group label i {
    margin-right: 8px;
    color: #6a11cb;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-group input:focus {
    border-color: #6a11cb;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

/* 按钮样式 */
.btn-login {
    width: 100%;
    padding: 17px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(106, 17, 203, 0.3);
}

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

/* 提示框 */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.alert-error {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #d32f2f;
}

.alert-success {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #388e3c;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #7f8c8d;
    font-size: 14px;
}

/* 个人主页样式 */
.dashboard {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.user-header {
    text-align: center;
    margin-bottom: 40px;
}

.avatar {
    font-size: 80px;
    color: #6a11cb;
    margin-bottom: 20px;
}

.user-header h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
}

.highlight {
    color: #6a11cb;
    font-weight: 800;
}

.welcome-text {
    color: #7f8c8d;
    font-size: 18px;
}

/* 用户信息 */
.user-info, .quick-actions, .notice {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.user-info h2, .quick-actions h2, .notice h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 576px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #6a11cb;
}

.info-item .label {
    display: block;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-item .value {
    display: block;
    color: #2c3e50;
    font-weight: 700;
    font-size: 16px;
}

.info-item .value.code {
    font-family: 'Courier New', monospace;
    background: #eef2ff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* 操作按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

.action-btn {
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    text-align: center;
}

.action-btn.primary {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
}

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

.action-btn.info {
    background: #e0f2fe;
    color: #0369a1;
}

.action-btn.danger {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 通知区域 */
.notice ul {
    list-style: none;
    padding-left: 0;
}

.notice li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #5a6c7d;
}

.notice li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}
/* ===== 管理员入口按钮样式 ===== */
.admin-entry {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.admin-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); /* 深灰色系，与用户按钮区分 */
    color: white;
    text-decoration: none;
    border-radius: 50px; /* 胶囊形状 */
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.2);
    border: 2px solid transparent;
}

.admin-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(52, 73, 94, 0.35);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #3498db;
    color: #fff;
}

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

/* 响应式调整 */
@media (max-width: 576px) {
    .admin-login-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ===== 管理员入口按钮样式 ===== */
.admin-entry {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.admin-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}