/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1A2980;
    --primary-light: #26D0CE;
    --success: #2E7D32;
    --warning: #F5A623;
    --danger: #F44336;
    --info: #2196F3;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-main: #F0F2F8;
    --bg-white: #fff;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-main);
    line-height: 1.6;
}

/* ===== 后台容器 ===== */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--primary), #0F1A5C);
    color: #fff;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.2;
}

.nav-menu {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-item.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-left-color: var(--primary-light);
}

.nav-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.admin-details {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-weight: 600;
}

.admin-role {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
}

/* ===== 顶部栏 ===== */
.top-bar {
    background: var(--bg-white);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.breadcrumb {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border-radius: 20px;
    padding: 8px 16px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.notifications {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.notification-count {
    font-size: 12px;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.notification-item {
    display: flex;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
    color: #fff;
}

.notification-item-body {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.notification-item-content {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-item-time {
    font-size: 11px;
    color: #999;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

.notification-footer button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-footer button:hover {
    background: rgba(26,41,128,0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 页面内容 ===== */
.page-content {
    padding: 24px 32px;
}

.page {
    animation: fadeIn 0.3s ease;
}

.page.hidden {
    display: none;
}

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

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

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* ===== 统计卡片 ===== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon.blue { background: rgba(33,150,243,0.1); }
.stat-icon.green { background: rgba(46,125,50,0.1); }
.stat-icon.orange { background: rgba(245,124,0,0.1); }
.stat-icon.purple { background: rgba(156,39,176,0.1); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-change {
    font-size: 12px;
    margin-top: 4px;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== 仪表盘网格 ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ===== 卡片 ===== */
.card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

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

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.live-badge {
    background: #FFEBEE;
    color: var(--danger);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== 实时动态 ===== */
.feed-list {
    max-height: 300px;
    overflow-y: auto;
}

.feed-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-content {
    flex: 1;
}

.feed-text {
    font-size: 13px;
    color: var(--text-primary);
}

.feed-text strong {
    color: var(--primary);
}

.feed-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== 待办事项 ===== */
.todo-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.todo-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.todo-item label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== 图表区域 ===== */
.chart-placeholder {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 100%;
    width: 100%;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: height 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.bar span {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    position: absolute;
    bottom: -24px;
}

.time-filter {
    display: flex;
    gap: 8px;
}

.time-filter button {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.time-filter button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== 数据表格 ===== */
.data-table-wrapper {
    overflow-x: auto;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

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

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: #FAFAFA;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.data-table tbody tr {
    transition: background 0.3s;
}

.data-table tbody tr:hover {
    background: #F8F9FB;
}

.data-table .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== 按钮 ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,41,128,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(26,41,128,0.05);
}

.btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===== 筛选器 ===== */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters select,
.filters input {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--bg-white);
}

.filters select:focus,
.filters input:focus {
    border-color: var(--primary);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== 状态标签 ===== */
.badge {
    background: var(--primary-light);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #E8F5E9;
    color: var(--success);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.status-inactive {
    background: #FFF3E0;
    color: var(--warning);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.status-banned {
    background: #FFEBEE;
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.level-svip {
    background: linear-gradient(135deg, #F5A623, #F7C948);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.level-vip {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.level-normal {
    background: #E0E0E0;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* ===== 群组卡片 ===== */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.group-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.group-seal {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.group-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.group-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.group-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.group-stat {
    text-align: center;
}

.group-stat .num {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.group-stat .label {
    font-size: 11px;
    color: var(--text-muted);
}

.group-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* ===== 活动列表 ===== */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
}

.activity-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
}

.activity-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.activity-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.activity-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-ongoing {
    background: #E8F5E9;
    color: var(--success);
}

.status-upcoming {
    background: #E3F2FD;
    color: var(--info);
}

.status-ended {
    background: #F5F5F5;
    color: var(--text-muted);
}

.activity-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== 反馈列表 ===== */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-item {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.feedback-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-content {
    padding: 16px;
    background: #F8F9FB;
    border-radius: 12px;
    margin-bottom: 12px;
}

.feedback-actions {
    display: flex;
    gap: 12px;
}

/* ===== 内容管理 ===== */
.content-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.content-section:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.section-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.section-info {
    flex: 1;
}

.section-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.section-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.section-arrow {
    font-size: 24px;
    color: var(--text-muted);
}

/* ===== 统计页面 ===== */
.stats-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card.full {
    grid-column: span 2;
}

.chart-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.chart-area {
    height: 250px;
    background: var(--bg-main);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    inset: 20px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.line-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, 50%);
    cursor: pointer;
}

.line-point:hover .tooltip {
    display: block;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.pie-chart {
    display: flex;
    gap: 16px;
    padding: 20px;
}

.pie-segment {
    flex: 1;
    padding: 16px;
    background: var(--color);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.income-breakdown {
    padding: 20px;
}

.income-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.income-label {
    width: 80px;
    font-size: 13px;
}

.income-bar {
    height: 24px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
}

.income-value {
    width: 80px;
    text-align: right;
    font-weight: 600;
}

.stats-detail {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.stats-detail h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ===== 设置页面 ===== */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.settings-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #F0F0F0;
}

.setting-item:last-of-type {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
}

.setting-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== 开关 ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #CCC;
    border-radius: 26px;
    transition: 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background: var(--primary-light);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* ===== 套餐设置 ===== */
.membership-plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-main);
    border-radius: 8px;
}

.plan-name {
    width: 100px;
    font-weight: 600;
}

.plan-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--bg-white);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-main);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    animation: toastIn 0.3s ease;
}

.toast.hidden {
    display: none;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 资助申请 ===== */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-item {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.summary-item .label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.summary-item .value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* ===== 法律咨询 ===== */
.consultation-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consultation-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.consultation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.consultation-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.consultation-content {
    background: #F8F9FB;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.consultation-reply {
    background: #E8F5E9;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.consultation-actions {
    display: flex;
    gap: 12px;
}

/* ===== 创业指导 ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.course-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.course-info {
    flex: 1;
}

.course-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.course-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.course-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.applications-list {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.application-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.application-card:last-child {
    border-bottom: none;
}

.application-info {
    flex: 1;
}

.application-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.application-course,
.application-reason,
.application-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.application-status {
    min-width: 80px;
    text-align: center;
}

.application-actions {
    display: flex;
    gap: 8px;
}

/* ===== 资助公示 ===== */
.publicity-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.publicity-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.publicity-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.publicity-badge.type-grant {
    background: linear-gradient(135deg, #F5A623, #F7C948);
    color: #fff;
}

.publicity-badge.type-aid {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.publicity-badge.type-donation {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: #fff;
}

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

.publicity-header h4 {
    font-size: 18px;
}

.publicity-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.publicity-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.publicity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.publicity-date {
    font-size: 12px;
    color: var(--text-muted);
}

.publicity-actions {
    display: flex;
    gap: 8px;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    
    .logo-text,
    .nav-item span:not(.nav-icon) {
        display: none;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
}


/* 招聘申请卡片 */
.recruit-card { background: #fff; border-radius: 16rpx; padding: 24rpx; margin-bottom: 20rpx; box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.08); }
.recruit-header { display: flex; align-items: center; margin-bottom: 16rpx; }
.recruit-avatar { width: 80rpx; height: 80rpx; border-radius: 50%; background: #f0f2f8; display: flex; align-items: center; justify-content: center; font-size: 48rpx; margin-right: 16rpx; }
.recruit-info { flex: 1; }
.recruit-name { font-size: 32rpx; font-weight: 700; color: #333; }
.recruit-age { font-size: 24rpx; color: #999; margin-left: 8rpx; }
.recruit-meta { font-size: 24rpx; color: #666; margin-top: 4rpx; }
.recruit-job { font-size: 24rpx; color: #1A2980; margin-top: 4rpx; }
.recruit-status { padding: 6rpx 16rpx; border-radius: 20rpx; font-size: 24rpx; }
.recruit-status.pending { background: #FFF3E0; color: #F57C00; }
.recruit-status.reviewed { background: #E3F2FD; color: #1976D2; }
.recruit-status.contacted { background: #E8F5E9; color: #388E3C; }
.recruit-intro { background: #f8f9fa; padding: 16rpx; border-radius: 8rpx; font-size: 26rpx; color: #666; margin-bottom: 12rpx; }
.recruit-time { font-size: 22rpx; color: #999; margin-bottom: 16rpx; }
.recruit-actions { display: flex; gap: 12rpx; }

/* 详情卡片 */
.detail-card { padding: 20rpx; }
.detail-row { display: flex; padding: 16rpx 0; border-bottom: 1rpx solid #f0f0f0; }
.detail-row .label { width: 180rpx; color: #999; font-size: 26rpx; }
.detail-row .value { flex: 1; color: #333; font-size: 26rpx; }


/* ˲ʽ */
.recruit-list { padding: 20px; }
.recruit-item { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.recruit-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.recruit-header h4 { font-size: 18px; color: #333; }
.recruit-body p { font-size: 14px; color: #666; margin-bottom: 8px; line-height: 1.5; }
.recruit-time { color: #999 !important; font-size: 12px !important; }
.recruit-actions { display: flex; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
.status-pending { background: #FFF3E0; color: #F57C00; padding: 4px 12px; border-radius: 12px; font-size: 12px; }
