/* ==========================================
   贵阳中考模拟填报系统 - 全局样式
   ========================================== */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;

    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;

    --bg-primary: #f5f7fa;
    --bg-white: #fff;
    --border-color: #e8e8e8;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* ==========================================
   头部导航
   ========================================== */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: -25px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
}

.logo a {
    color: white;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    font-size: 14px;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 150px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    margin-top: 8px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-primary);
}

.dropdown-menu a:hover {
    background: var(--bg-primary);
}

.dropdown-menu .divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.logout-link {
    color: var(--danger-color) !important;
}

/* ==========================================
   登录/注册页面
   ========================================== */
.login-page,
.register-page,
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container,
.register-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.register-container {
    max-width: 600px;
}

.login-box,
.register-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1,
.register-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-header p,
.register-header p {
    color: var(--text-secondary);
}

.login-form,
.register-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.required {
    color: var(--danger-color);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.login-footer,
.register-footer {
    margin-top: 20px;
    text-align: center;
}

.login-footer p,
.register-footer p {
    margin: 8px 0;
}

.admin-link {
    margin-top: 15px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   按钮样式
   ========================================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 5px 10px;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-edit {
    color: var(--primary-color);
}

.btn-delete {
    color: var(--danger-color);
}

/* ==========================================
   警告框
   ========================================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ==========================================
   Dashboard 样式
   ========================================== */
.dashboard {
    margin-top: 20px;
}

.welcome-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.welcome-section h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-secondary);
}

/* 公告区域 */
.announcement-section {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.announcement-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announcement-item {
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge-urgent {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* 状态卡片 */
.status-section {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.status-section h3 {
    margin-bottom: 15px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.status-card {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.status-card.open .status-icon {
    background: #d4edda;
}

.status-card.closed .status-icon {
    background: #f8d7da;
}

.status-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.status-value {
    font-size: 18px;
    font-weight: 600;
}

/* 快捷操作 */
.quick-actions {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.quick-actions h3 {
    margin-bottom: 15px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.action-card {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.action-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.action-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.action-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.action-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.action-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* 统计区域 */
.stats-section {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.stat-label {
    font-size: 12px;
    color: #533566;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
}

.stat-value.highlight {
    color: var(--primary-color);
}

/* ==========================================
   页面标题
   ========================================== */
.page-header {
    margin-bottom: 20px;text-align: center;
    padding: 15px;
}

.page-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

/* ==========================================
   表单容器
   ========================================== */
.form-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ==========================================
   学校列表
   ========================================== */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.filter-form .filter-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;

    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    color: var(--text-secondary);
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    min-width: 120px;
}

.search-group input {
    min-width: 200px;
}

.result-info {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.school-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.school-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.school-badge,
.school-type {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.school-provincial_demo {
    background: #fff3cd;
    color: #856404;
}

.school-city_demo {
    background: #d1ecf1;
    color: #0c5460;
}

.school-general {
    background: #e2e3e5;
    color: #383d41;
}

.school-type.public {
    background: #d4edda;
    color: #155724;
}

.school-type.private {
    background: #f8d7da;
    color: #721c24;
}

.school-name {
    font-size: 18px;
    margin-bottom: 10px;
}

.school-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.school-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.school-footer {
    text-align: right;
}

.view-detail {
    color: var(--primary-color);
    font-size: 13px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==========================================
   学校详情
   ========================================== */
.breadcrumb {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.school-detail-header {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.school-title-section h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.school-badges {
    display: flex;
    gap: 10px;
}

.school-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.detail-main {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-primary);
}

.section-content {
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-row {
    display: flex;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.info-row .label {
    width: 100px;
    color: var(--text-secondary);
}

.info-row .value {
    flex: 1;
    font-weight: 500;
}

/* 数据表格 */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-primary);
    font-weight: 600;
}

.data-table tr:hover {
    background: var(--bg-primary);
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.probability-display {
    text-align: center;
    margin-bottom: 15px;
}

.probability-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    font-weight: 600;
}

.probability-very-high {
    background: #d4edda;
    color: #155724;
}

.probability-high {
    background: #d1ecf1;
    color: #0c5460;
}

.probability-medium {
    background: #fff3cd;
    color: #856404;
}

.probability-low {
    background: #f8d7da;
    color: #721c24;
}

.probability-text {
    font-size: 16px;
    font-weight: 600;
}

.probability-info {
    font-size: 13px;
}

.probability-info p {
    margin: 5px 0;
}

.positive {
    color: var(--success-color);
}

.negative {
    color: var(--danger-color);
}

.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ==========================================
   志愿填报
   ========================================== */
.volunteer-status-bar {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.volunteer-status-bar.status-draft {
    background: #fff3cd;
    color: #856404;
}

.volunteer-status-bar.status-submitted {
    background: #d1ecf1;
    color: #0c5460;
}

.volunteer-status-bar.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-icon {
    font-size: 24px;
}

.status-text {
    font-weight: 600;
}

.submit-time {
    margin-left: auto;
    font-size: 13px;
}

.instruction-box {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.instruction-box h3 {
    margin-bottom: 10px;
}

.instruction-box ul {
    padding-left: 20px;
}

.instruction-box li {
    margin: 5px 0;
}

.volunteer-form-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.volunteer-slots {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.volunteer-slot {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    transition: all 0.3s;
}

.volunteer-slot:hover {
    border-color: var(--primary-color);
}

.slot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.slot-number {
    font-weight: 600;
    font-size: 16px;
}

.slot-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.badge-first {
    background: #fff3cd;
    color: #856404;
}

.badge-second {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-third {
    background: #d4edda;
    color: #155724;
}

.school-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.selected-school-info {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.volunteer-actions {
    margin-top: 20px;
    justify-content: center;
}

.volunteer-preview {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.volunteer-preview h3 {
    margin-bottom: 15px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-item {
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-priority {
    font-weight: 600;
    min-width: 60px;
}

/* ==========================================
   智能推荐
   ========================================== */
.score-info-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.score-display {
    text-align: center;
    margin-bottom: 20px;
}

.score-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.score-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.score-year {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.score-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.detail-item {
    text-align: center;
}

.detail-item .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.detail-item .value {
    font-size: 18px;
    font-weight: 600;
}

.recommendation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-safe {
    background: #d4edda;
}

.stat-moderate {
    background: #d1ecf1;
}

.stat-ambitious {
    background: #fff3cd;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.recommendation-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
}

.recommendation-safe {
    border-left-color: var(--success-color);
}

.recommendation-moderate {
    border-left-color: var(--info-color);
}

.recommendation-ambitious {
    border-left-color: var(--warning-color);
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rec-rank {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
}

.rec-school-info {
    flex: 1;
}

.rec-school-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.rec-badges {
    display: flex;
    gap: 8px;
}

.badge-type-safe {
    background: #d4edda;
    color: #155724;
}

.badge-type-moderate {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-type-ambitious {
    background: #fff3cd;
    color: #856404;
}

.badge-school-type-public {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-school-type-private {
    background: #fce4ec;
    color: #c62828;
}

.rec-probability {
    text-align: center;
}

.prob-value {
    font-size: 14px;
}

.prob-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.rec-body {
    margin-bottom: 15px;
}

.rec-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.detail-row .label {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-row .value {
    font-weight: 500;
}

.rec-reason {
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.rec-reason strong {
    display: block;
    margin-bottom: 5px;
}

.rec-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.suggestion-box {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.suggestion-box h3 {
    margin-bottom: 15px;
}

.suggestion-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.suggestion-content li {
    margin: 5px 0;
}

/* ==========================================
   录取模拟
   ========================================== */
.simulation-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.info-value {
    font-size: 28px;
    font-weight: 700;
}

.volunteer-list-preview {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.volunteer-list-preview h3 {
    margin-bottom: 15px;
}

.volunteer-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.volunteer-item-preview {
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.priority-badge {
    padding: 3px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.simulation-action {
    text-align: center;
    margin-bottom: 20px;
}

.simulation-result {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.result-admitted {
    border-top: 4px solid var(--success-color);
}

.result-not_admitted {
    border-top: 4px solid var(--danger-color);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.result-admitted .result-icon {
    background: #d4edda;
    color: var(--success-color);
}

.result-not_admitted .result-icon {
    background: #f8d7da;
    color: var(--danger-color);
}

.result-title h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.result-analysis {
    margin-bottom: 20px;
}

.result-analysis h4,
.result-suggestions h4 {
    margin-bottom: 15px;
}

.analysis-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.analysis-item {
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border-left: 4px solid transparent;
}

.analysis-admitted {
    border-left-color: var(--success-color);
}

.analysis-not_admitted {
    border-left-color: var(--danger-color);
}

.analysis-no_data {
    border-left-color: var(--warning-color);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.analysis-priority {
    font-weight: 600;
}

.analysis-status {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.status-admitted {
    background: #d4edda;
    color: #155724;
}

.status-not_admitted {
    background: #f8d7da;
    color: #721c24;
}

.status-no_data {
    background: #fff3cd;
    color: #856404;
}

.analysis-message {
    margin-bottom: 10px;
}

.analysis-score {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.result-suggestions ul {
    padding-left: 20px;
}

.result-suggestions li {
    margin: 5px 0;
}

.simulation-history {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.simulation-history h3 {
    margin-bottom: 15px;
}

/* ==========================================
   管理后台样式
   ========================================== */
.admin-page {
    background: var(--bg-primary);
}

.admin-header {
    background: #2c3e50;
    color: white;
}

.admin-header .logo h1 {
    font-size: 18px;
}

.admin-nav ul {
    gap: 20px;
}

.admin-nav a {
    color: rgba(255,255,255,0.8);
}

.admin-container {
    padding: 30px 20px;
}

.admin-stats {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 32px;
}

.stat-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.stat-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
}

.card-link {
    font-size: 13px;
}

.card-body {
    padding: 20px;
}

.list-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.item-rank {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
}

.item-info {
    flex: 1;
}

.item-info strong {
    display: block;
    font-size: 14px;
}

.item-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.item-time {
    font-size: 12px;
    color: var(--text-light);
}

.item-count {
    font-weight: 600;
    color: var(--primary-color);
}

.empty-text {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.quick-actions-section {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.quick-actions-section h3 {
    margin-bottom: 15px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.action-buttons .action-btn {
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s;
}

.action-buttons .action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.action-buttons .icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

/* 管理表单 */
.admin-form {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.data-table-section {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.data-table-section h3 {
    margin-bottom: 15px;
}

.actions {
    display: flex;
    gap: 5px;
}

    .main-nav {

        font-size: 16px;
    }

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
    }
	.logo{ display:block}
	.logo h1 { font-size: 16px; }

    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 侧边导航菜单 */
    .main-nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        list-style: none;
        margin: 0;
        padding: 80px 0 20px;
        display: block;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav a {
        display: block;
        padding: 16px 24px;
        color: rgba(255,255,255,0.9);
        text-decoration: none;
        font-size: 15px;
        transition: all 0.3s;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(255,255,255,0.1);
        color: white;
        padding-left: 30px;
    }

    .main-nav a.active::after {
        display: none;
    }

    /* 菜单打开时禁止页面滚动 */
    body.menu-open {
        overflow: hidden;
    }

    /* 遮罩层 */
    .main-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }



    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .school-grid {
        grid-template-columns: 1fr;
    }

    /* 学校查询页面移动端适配 */
    .page-header {
        padding: 20px 15px;
        text-align: center;
    }

    .page-header h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .page-header .subtitle {
        font-size: 13px;
        color: #999;
    }

    .filter-section {
        padding: 15px;
    }

    .filter-form .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        min-width: auto;
        padding: 10px 12px;
        font-size: 14px;
    }

    .search-group input {
        min-width: auto;
    }

    .filter-group button,
    .filter-group a.btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .school-detail-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row.three-cols {
        grid-template-columns: 1fr;
    }

    .recommendation-stats {
        grid-template-columns: 1fr;
    }

    .rec-details {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

nav.admin-nav {
    width: 80%;
}
nav.admin-nav li {
    float: left;
    padding: 0 15px;
    font-size: 16px;
    list-style-type: none;
}  

.filter-tabs {

    margin-bottom: 10px;
	flex-direction: column!important;
}


.status-section{display: none;}



  }