/* ============================================
   全局样式 - 创智高考GPS
   ============================================ */

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    background: #f0f5fc;
    color: #1e2a41;
    min-height: 100vh;
    padding: 20px;
}

/* ---------- 主容器 ---------- */
.app-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 20, 50, 0.08);
    overflow: hidden;
    padding: 24px 28px 28px;
    transition: all 0.2s;
}

/* ---------- 顶部导航 ---------- */
.top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #eef3f9;
    padding-bottom: 16px;
    margin-bottom: 22px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 26px;
    color: #0a4b7a;
    background: #dceaf5;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand {
    font-weight: 700;
    font-size: 22px;
    color: #0a2e4a;
    letter-spacing: 0.3px;
}

.brand small {
    font-weight: 400;
    font-size: 14px;
    color: #3a6f9e;
    margin-left: 6px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.nav-links a {
    text-decoration: none;
    color: #1f3a57;
    font-weight: 500;
    font-size: 15px;
    padding: 6px 4px;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.nav-links a:hover {
    border-bottom-color: #1f7ab0;
    color: #0a4b7a;
}

.nav-links a.active {
    border-bottom-color: #1f7ab0;
    color: #0a4b7a;
    font-weight: 600;
}

.nav-links a i {
    margin-right: 4px;
}

.user-badge {
    background: #e7f0fa;
    border-radius: 40px;
    padding: 6px 18px 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #0a3d62;
    border: 1px solid #c8ddec;
    font-size: 14px;
}

.user-badge i {
    color: #1f7ab0;
}

/* ---------- 主体布局 ---------- */
.main-layout {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.content-area {
    flex: 1;
    min-width: 280px;
}

/* ---------- 页面头部 ---------- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-header h2 {
    font-size: 24px;
    color: #00315a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 i {
    color: #1f7ab0;
}

.breadcrumb {
    color: #4f7a9e;
    font-size: 14px;
}

/* ---------- 内容卡片 ---------- */
.content-card {
    background: #f9fcff;
    border-radius: 28px;
    padding: 24px 28px;
    border: 1px solid #e4edf6;
    min-height: 300px;
}

.page-description {
    font-size: 16px;
    color: #2a4a6e;
    padding: 12px 16px;
    background: #eaf2fa;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #1f7ab0;
}

/* ---------- 功能卡片网格 ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 16px 0 20px;
}

.feature-item {
    background: white;
    border-radius: 16px;
    padding: 18px 16px;
    border: 1px solid #dce8f2;
    text-align: center;
    transition: 0.2s;
}

.feature-item:hover {
    border-color: #b0cce5;
    box-shadow: 0 4px 12px rgba(0, 40, 80, 0.06);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 28px;
    color: #1f7ab0;
    margin-bottom: 8px;
}

.feature-item h4 {
    font-size: 16px;
    color: #00315a;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 13px;
    color: #4f7a9e;
}

/* ---------- 页面内容 ---------- */
.page-content {
    color: #1f3a57;
    line-height: 1.8;
    padding: 8px 0;
}

.page-content p {
    margin-bottom: 10px;
}

/* ---------- 搜索/筛选区域 ---------- */
.filter-area {
    display: flex;
    gap: 12px;
    margin: 16px 0 20px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid #cbdae9;
    border-radius: 40px;
    font-size: 14px;
    background: white;
    transition: 0.2s;
}

.search-input:focus {
    border-color: #1f7ab0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 122, 176, 0.1);
}

/* ---------- 数据表格 ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #eaf2fa;
    color: #0a3d62;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e4edf6;
}

.data-table tr:hover td {
    background: #f5faff;
}

.btn-link {
    color: #1f7ab0;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ---------- 表单 ---------- */
.data-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #0a3d62;
    margin-bottom: 4px;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbdae9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #1f7ab0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 122, 176, 0.1);
}

.form-textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary {
    background: #1b6b9e;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #0f5a87;
    box-shadow: 0 4px 12px rgba(27, 107, 158, 0.3);
}

.btn-outline {
    border: 1px solid #b2cfe7;
    background: transparent;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 500;
    color: #1d4d74;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #d6e5f7;
    border-color: #7aa6cc;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
    width: 260px;
    background: #f3f9ff;
    border-radius: 28px;
    padding: 20px 16px;
    border: 1px solid #dfeaf4;
}

.sidebar h3 {
    font-size: 18px;
    color: #00315a;
    margin-bottom: 16px;
    border-bottom: 1px solid #cad9ea;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 8px 10px 8px 14px;
    border-radius: 40px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #1f4060;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.1s;
    cursor: default;
}

.sidebar ul li i {
    width: 20px;
    color: #1f7ab0;
}

.sidebar ul li:hover {
    background: #e2eefa;
}

.sidebar ul li.active-side {
    background: #d4e3f7;
    font-weight: 500;
}

/* ---------- 底部 ---------- */
.footer-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    background: #f5faff;
    padding: 12px 20px;
    border-radius: 60px;
    border: 1px solid #dbe7f2;
    margin: 24px 0 8px;
    font-size: 14px;
    color: #4f7a9e;
    justify-content: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .sidebar {
        width: 100%;
    }
    .app-wrapper {
        padding: 16px;
    }
    .top-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        justify-content: center;
        margin-top: 10px;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 13px;
        padding: 4px 6px;
    }
    .brand {
        font-size: 18px;
    }
}