/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #0069c0;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 15px;
}

.user-info-compact {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
    text-align: right;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.35;
}

.user-info-primary {
    font-weight: 600;
}

.user-info-sub {
    font-size: 0.85rem;
    opacity: 0.92;
    max-width: 28rem;
    word-break: break-all;
}

.user-info-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

header .user-info a.btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

header .user-info a.btn:hover {
    background-color: rgba(255, 255, 255, 0.32);
}

/* 导航栏样式 */
nav {
    background-color: #00509e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li > a.nav-sys-manage-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    min-height: 1.25rem;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #e53935;
    border-radius: 999px;
    box-shadow: 0 0 0 2px #00509e;
}

/* 下拉菜单 */
nav ul li ul {
    display: none;
    position: absolute;
    background-color: #00509e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    min-width: 180px;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    width: 100%;
}

/* 主要内容区域 */
main {
    padding: 30px 0;
    min-height: calc(100vh - 210px);
}

.page-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 5px;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
}

.checkbox-item,
.radio-item {
    margin-right: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.required::after {
    content: '*';
    color: #f44336;
    margin-left: 4px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #0069c0;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #005299;
}

.btn-primary {
    background-color: #0069c0;
}

.btn-primary:hover {
    background-color: #005299;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 表格样式 */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f5f7fa;
    font-weight: 600;
}

tr:hover {
    background-color: #f9f9f9;
}

/* 状态标签 */
.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.85rem;
}

.status-cyan {
    background-color: #00bcd4;
    color: #fff;
}

.status-gray {
    background-color: #6c757d;
}

.status-blue {
    background-color: #0069c0;
}

.status-purple {
    background-color: #6f42c1;
}

.status-orange {
    background-color: #fd7e14;
}

.status-red {
    background-color: #dc3545;
}

.status-green {
    background-color: #28a745;
}

.status-success {
    background-color: #20c997;
    color: #fff;
}

/* 风险等级样式 */
.risk-low {
    color: #28a745;
    font-weight: bold;
}

.risk-medium {
    color: #fd7e14;
    font-weight: bold;
}

.risk-high {
    color: #dc3545;
    font-weight: bold;
}

/* 分页样式 */
.pagination {
    display: flex;
    list-style: none;
    justify-content: center;
    margin-top: 20px;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #0069c0;
    background-color: #fff;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background-color: #f5f7fa;
}

.pagination .active a {
    background-color: #0069c0;
    color: white;
    border: 1px solid #0069c0;
}

/* 提示框样式 */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    padding: 20px;
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #999;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* 个人资料页 */
.profile-page {
    max-width: 960px;
    margin: 0 auto 40px;
}

.profile-hero {
    background: linear-gradient(135deg, #0069c0 0%, #0d47a1 55%, #01579b 100%);
    color: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 82, 150, 0.22);
}

.profile-hero__title {
    font-size: 1.65rem;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.profile-hero__desc {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.92;
    line-height: 1.55;
    max-width: 36em;
}

.profile-alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

@media (min-width: 900px) {
    .profile-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 24px;
    }
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 40, 80, 0.08);
    border: 1px solid rgba(0, 105, 192, 0.1);
    overflow: hidden;
}

.profile-card--main {
    border-top: 4px solid #0069c0;
}

.profile-card--password {
    border-top: 4px solid #00838f;
}

.profile-card__head {
    padding: 20px 24px 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #eef2f6;
}

.profile-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a2b3c;
    margin: 0 0 6px;
}

.profile-card__hint {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.profile-required {
    color: #c62828;
    font-weight: 700;
}

.profile-card__body {
    padding: 22px 24px 26px;
}

.profile-form__row {
    margin-bottom: 4px;
}

.profile-form__row--2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 20px;
}

@media (min-width: 600px) {
    .profile-form__row--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-form__field .profile-input,
.profile-form__field select.profile-input {
    border-radius: 8px;
    border: 1px solid #cfd8e3;
    padding: 11px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-form__field .profile-input:focus,
.profile-form__field select.profile-input:focus {
    outline: none;
    border-color: #0069c0;
    box-shadow: 0 0 0 3px rgba(0, 105, 192, 0.15);
}

.profile-input--readonly {
    background: #f1f5f9 !important;
    color: #475569 !important;
    cursor: not-allowed;
}

.profile-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

.profile-form__actions {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f6;
}

.profile-btn-primary {
    min-width: 140px;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 105, 192, 0.25);
}

.profile-card--password .profile-btn-primary {
    box-shadow: 0 2px 8px rgba(0, 131, 143, 0.22);
}

/* 页脚样式 */
footer {
    background-color: #00509e;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .form-col {
        flex: 0 0 100%;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        margin-top: 10px;
        justify-content: center;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li ul {
        position: static;
        display: none;
    }
    
    nav ul li:hover ul {
        display: block;
    }
    
    .btn-group {
        flex-direction: column;
    }
} 