/* ============================================================
   教育资源网 - 主样式表
   ============================================================ */

/* 重置与基础 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
}
a { color: #2c7be5; text-decoration: none; transition: color .2s; }
a:hover { color: #1a5fbf; }
img { max-width: 100%; vertical-align: middle; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; outline: none; }

/* 布局容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ''; display: block; clear: both; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: all .2s;
    line-height: 1.5;
}
.btn-primary { background: #2c7be5; color: #fff; border-color: #2c7be5; }
.btn-primary:hover { background: #1a5fbf; color: #fff; }
.btn-success { background: #00a65a; color: #fff; border-color: #00a65a; }
.btn-success:hover { background: #008d4c; color: #fff; }
.btn-warning { background: #f39c12; color: #fff; border-color: #f39c12; }
.btn-warning:hover { background: #d68910; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-default { background: #fff; color: #333; border-color: #ddd; }
.btn-default:hover { background: #f0f0f0; color: #333; }
.btn-vip { background: linear-gradient(135deg, #f5a623, #f7b733); color: #fff; border: none; }
.btn-vip:hover { background: linear-gradient(135deg, #e09612, #f5a623); color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 12px 30px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* 顶部栏 */
.top-bar { background: #f0f2f5; border-bottom: 1px solid #e4e7ed; font-size: 12px; color: #666; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 5px; }
.top-bar-sep { color: #ccc; }
.top-link { color: #666; }
.top-link:hover { color: #2c7be5; }
.top-avatar { width: 20px; height: 20px; border-radius: 50%; margin-right: 4px; }
.city-selector select {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}
.badge-red {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    border-radius: 8px;
    padding: 0 5px;
    margin-left: 2px;
    line-height: 16px;
}
.vip-badge-small {
    display: inline-block;
    background: linear-gradient(135deg, #f5a623, #f7b733);
    color: #fff;
    font-size: 10px;
    border-radius: 3px;
    padding: 0 4px;
    margin-left: 4px;
    font-weight: bold;
}

/* 头部 */
.header { background: #fff; padding: 18px 0; }
.header-inner { display: flex; align-items: center; gap: 30px; }
.logo a { display: flex; flex-direction: column; }
.logo-text { font-size: 28px; font-weight: bold; color: #2c7be5; letter-spacing: 1px; }
.logo-sub { font-size: 11px; color: #999; letter-spacing: 2px; }
.header-search { flex: 1; max-width: 500px; }
.header-search form { display: flex; border: 2px solid #2c7be5; border-radius: 4px; overflow: hidden; }
.search-type {
    border: none;
    background: #f5f7fa;
    padding: 0 10px;
    cursor: pointer;
    border-right: 1px solid #e4e7ed;
}
.search-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
}
.search-btn {
    background: #2c7be5;
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 14px;
}
.search-btn:hover { background: #1a5fbf; }
.header-actions { flex-shrink: 0; }
.btn-upload { display: flex; align-items: center; gap: 5px; }
.icon-upload::before { content: '↑'; font-weight: bold; }

/* 主导航 */
.main-nav { background: #2c7be5; box-shadow: 0 2px 8px rgba(44,123,229,.15); }
.nav-list { display: flex; }
.nav-item { position: relative; }
.nav-item > a {
    display: block;
    padding: 14px 24px;
    color: #fff;
    font-size: 15px;
    transition: background .2s;
}
.nav-item > a:hover, .nav-item.active > a { background: rgba(255,255,255,.15); }
.nav-vip { color: #ffd700 !important; font-weight: bold; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 100;
    border-radius: 0 0 4px 4px;
}
.nav-item.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: #f5f7fa; color: #2c7be5; }

/* 主内容 */
.main-content { max-width: 1200px; margin: 0 auto; min-height: 500px; padding: 20px 15px; }

/* 面包屑 */
.breadcrumb {
    background: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}
.breadcrumb .sep { margin: 0 8px; color: #ddd; }
.breadcrumb .current { color: #333; }

/* 通用卡片 */
.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 15px;
    overflow: hidden;
}
.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-title { font-size: 16px; font-weight: bold; color: #333; }
.card-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #2c7be5;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
}
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid #f0f0f0; text-align: center; }

/* 首页轮播 */
.banner-slider {
    position: relative;
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.banner-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: opacity .6s;
}
.banner-slide.active { opacity: 1; }
.banner-slide:nth-child(1) { background: linear-gradient(135deg, #2c7be5, #6ba3f0); }
.banner-slide:nth-child(2) { background: linear-gradient(135deg, #f5a623, #f7b733); }
.banner-slide:nth-child(3) { background: linear-gradient(135deg, #00a65a, #4cd98a); }
.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.banner-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .2s;
}
.banner-dot.active { background: #fff; }

/* 首页布局 */
.home-layout { display: flex; gap: 20px; }
.home-main { flex: 1; min-width: 0; }
.home-sidebar { width: 300px; flex-shrink: 0; }

/* 资源网格 */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.resource-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.resource-thumb {
    height: 140px;
    background: linear-gradient(135deg, #e8f0fe, #d0e2fc);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.resource-thumb .file-icon { font-size: 48px; color: #2c7be5; opacity: .6; }
.resource-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
    font-weight: bold;
}
.badge-free { background: #00a65a; }
.badge-points { background: #f39c12; }
.badge-paid { background: #e74c3c; }
.badge-vip { background: linear-gradient(135deg, #f5a623, #f7b733); }
.resource-info { padding: 12px; }
.resource-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}
.resource-price { color: #e74c3c; font-weight: bold; }

/* 文章列表 */
.article-list { }
.article-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.article-item:last-child { border-bottom: none; }
.article-thumb {
    width: 160px;
    height: 100px;
    border-radius: 4px;
    background: linear-gradient(135deg, #e8f0fe, #d0e2fc);
    flex-shrink: 0;
    overflow: hidden;
}
.article-content { flex: 1; min-width: 0; }
.article-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-title a { color: #333; }
.article-title a:hover { color: #2c7be5; }
.article-summary {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta { font-size: 12px; color: #999; display: flex; gap: 15px; }

/* 侧边栏 */
.sidebar-widget { margin-bottom: 15px; }
.widget-title {
    font-size: 15px;
    font-weight: bold;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 2px solid #2c7be5;
    border-radius: 6px 6px 0 0;
}
.widget-body { background: #fff; padding: 15px; border-radius: 0 0 6px 6px; }
.hot-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list .rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #ccc;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 8px;
}
.hot-list li:nth-child(1) .rank { background: #e74c3c; }
.hot-list li:nth-child(2) .rank { background: #f39c12; }
.hot-list li:nth-child(3) .rank { background: #f5a623; }
.hot-list a { color: #333; }
.hot-list a:hover { color: #2c7be5; }

/* 分类标签 */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.cat-tab {
    padding: 6px 16px;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}
.cat-tab:hover { color: #2c7be5; }
.cat-tab.active { background: #2c7be5; color: #fff; }

/* 筛选栏 */
.filter-bar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}
.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.filter-row:last-child { border-bottom: none; }
.filter-label {
    width: 70px;
    flex-shrink: 0;
    color: #999;
    font-size: 13px;
    padding-top: 4px;
}
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.filter-option {
    padding: 4px 12px;
    font-size: 13px;
    color: #666;
    border-radius: 3px;
    cursor: pointer;
}
.filter-option:hover { color: #2c7be5; }
.filter-option.active { background: #2c7be5; color: #fff; }

/* 详情页 */
.detail-header { padding: 20px; border-bottom: 1px solid #f0f0f0; }
.detail-title { font-size: 22px; font-weight: bold; margin-bottom: 12px; color: #333; }
.detail-meta { display: flex; gap: 20px; font-size: 13px; color: #999; flex-wrap: wrap; }
.detail-content { padding: 20px; font-size: 15px; line-height: 1.8; color: #444; }
.detail-content img { max-width: 100%; border-radius: 4px; margin: 10px 0; }
.detail-content p { margin-bottom: 15px; }
.detail-content h2, .detail-content h3 { margin: 20px 0 10px; }

/* 下载区域 */
.download-box {
    background: linear-gradient(135deg, #f8f9ff, #eef2ff);
    border: 1px solid #dce4ff;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}
.download-box .file-info { margin-bottom: 15px; }
.download-box .file-name { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 8px; }
.download-box .file-detail { font-size: 13px; color: #666; }
.download-box .download-price {
    font-size: 28px;
    color: #e74c3c;
    font-weight: bold;
    margin: 15px 0;
}
.download-box .download-tip { font-size: 12px; color: #999; margin-top: 10px; }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.form-label .required { color: #e74c3c; margin-left: 2px; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color .2s;
}
.form-control:focus { border-color: #2c7be5; box-shadow: 0 0 0 2px rgba(44,123,229,.1); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: #999; margin-top: 4px; }
.form-error { font-size: 12px; color: #e74c3c; margin-top: 4px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

/* 登录注册页 */
.auth-page {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}
.auth-box {
    width: 420px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    padding: 35px;
}
.auth-title { text-align: center; font-size: 22px; font-weight: bold; margin-bottom: 25px; color: #333; }
.auth-tabs { display: flex; margin-bottom: 25px; border-bottom: 2px solid #f0f0f0; }
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.auth-tab.active { color: #2c7be5; border-bottom-color: #2c7be5; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: #999; }

/* 用户中心 */
.user-layout { display: flex; gap: 20px; }
.user-sidebar { width: 220px; flex-shrink: 0; }
.user-main { flex: 1; min-width: 0; }
.user-menu { background: #fff; border-radius: 6px; overflow: hidden; }
.user-menu-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #2c7be5, #6ba3f0);
    color: #fff;
}
.user-menu-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}
.user-menu-name { font-size: 16px; font-weight: bold; }
.user-menu-role { font-size: 12px; opacity: .8; margin-top: 4px; }
.user-menu-list li a {
    display: block;
    padding: 12px 20px;
    color: #555;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.user-menu-list li a:hover, .user-menu-list li.active a {
    background: #f5f7fa;
    color: #2c7be5;
    border-left-color: #2c7be5;
}
.user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}
.stat-value { font-size: 28px; font-weight: bold; color: #2c7be5; }
.stat-label { font-size: 13px; color: #999; margin-top: 5px; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
.data-table tr:hover { background: #fafbfc; }
.data-table .actions { display: flex; gap: 8px; }
.data-table .actions a { font-size: 12px; }

/* 标签状态 */
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}
.status-normal { background: #e8f5e9; color: #00a65a; }
.status-pending { background: #fff3e0; color: #f39c12; }
.status-rejected { background: #ffebee; color: #e74c3c; }
.status-offline { background: #f0f0f0; color: #999; }
.status-vip { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #f5a623; font-weight: bold; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 25px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination .page-current, .pagination .page-ellipsis {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    background: #fff;
}
.pagination a:hover { border-color: #2c7be5; color: #2c7be5; }
.pagination .page-current { background: #2c7be5; color: #fff; border-color: #2c7be5; }
.pagination .page-ellipsis { border: none; background: transparent; }

/* VIP页面 */
.vip-hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
}
.vip-hero h1 { font-size: 32px; margin-bottom: 10px; color: #ffd700; }
.vip-hero p { font-size: 16px; opacity: .8; }
.vip-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}
.vip-plan {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    border: 2px solid #f0f0f0;
    transition: all .2s;
    position: relative;
}
.vip-plan:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.1); }
.vip-plan.recommended { border-color: #f5a623; }
.vip-plan.recommended::before {
    content: '推荐';
    position: absolute;
    top: -1px;
    right: 20px;
    background: #f5a623;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 0 0 4px 4px;
}
.vip-plan-name { font-size: 18px; font-weight: bold; margin-bottom: 10px; }
.vip-plan-price { font-size: 36px; font-weight: bold; color: #e74c3c; margin: 15px 0; }
.vip-plan-price .unit { font-size: 14px; color: #999; }
.vip-plan-features { text-align: left; margin: 20px 0; }
.vip-plan-features li { padding: 6px 0; font-size: 13px; color: #666; }
.vip-plan-features li::before { content: '✓'; color: #00a65a; margin-right: 8px; font-weight: bold; }
.vip-benefits { background: #fff; border-radius: 8px; padding: 30px; }
.vip-benefits h3 { font-size: 18px; margin-bottom: 20px; text-align: center; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit-item { text-align: center; }
.benefit-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5a623, #f7b733);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 10px;
}
.benefit-title { font-size: 14px; font-weight: bold; margin-bottom: 5px; }
.benefit-desc { font-size: 12px; color: #999; }

/* 上传页面 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #fafbfc;
}
.upload-area:hover, .upload-area.dragover {
    border-color: #2c7be5;
    background: #f0f5ff;
}
.upload-area .upload-icon { font-size: 48px; color: #2c7be5; margin-bottom: 15px; }
.upload-area .upload-text { font-size: 16px; color: #333; margin-bottom: 8px; }
.upload-area .upload-hint { font-size: 13px; color: #999; }
.upload-progress {
    margin-top: 15px;
    display: none;
}
.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c7be5, #6ba3f0);
    border-radius: 4px;
    transition: width .3s;
    width: 0%;
}
.progress-text { font-size: 12px; color: #666; margin-top: 5px; text-align: center; }

/* 评论区 */
.comment-section { margin-top: 30px; }
.comment-form { margin-bottom: 25px; }
.comment-list { }
.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.comment-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #e8f0fe;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c7be5;
    font-weight: bold;
}
.comment-body { flex: 1; }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.comment-user { font-size: 14px; font-weight: 500; color: #333; }
.comment-time { font-size: 12px; color: #999; }
.comment-content { font-size: 14px; color: #555; line-height: 1.6; }

/* 提示消息 */
.alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success { background: #e8f5e9; color: #00a65a; border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: #e74c3c; border: 1px solid #ef9a9a; }
.alert-warning { background: #fff3e0; color: #f39c12; border: 1px solid #ffcc80; }
.alert-info { background: #e3f2fd; color: #2c7be5; border: 1px solid #90caf9; }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 15px; opacity: .3; }
.empty-state .empty-text { font-size: 15px; }

/* 页脚 */
.footer { background: #2c3e50; color: #bdc3c7; padding: 40px 0 0; margin-top: 40px; }
.footer-top { display: flex; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid #34495e; }
.footer-about { flex: 2; }
.footer-col { flex: 1; }
.footer-title { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.8; opacity: .8; }
.footer-col-title { color: #fff; font-size: 15px; margin-bottom: 15px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #bdc3c7; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    opacity: .6;
}
.footer-bottom p { margin-bottom: 5px; }
.footer-bottom a { color: #bdc3c7; }

/* 响应式 */
@media (max-width: 992px) {
    .home-layout, .user-layout { flex-direction: column; }
    .home-sidebar, .user-sidebar { width: 100%; }
    .vip-plans { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .user-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .header-search { width: 100%; max-width: none; }
    .nav-list { flex-wrap: wrap; }
    .nav-item > a { padding: 10px 16px; font-size: 14px; }
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
    .article-item { flex-direction: column; }
    .article-thumb { width: 100%; height: 160px; }
    .footer-top { flex-direction: column; gap: 25px; }
    .form-row { flex-direction: column; }
}

/* ============================================================
   后台管理样式
   ============================================================ */
.admin-body { background: #f0f2f5; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: #001529;
    color: #fff;
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-logo {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #1f3a5f;
}
.admin-menu { padding: 10px 0; }
.admin-menu-group { margin-bottom: 5px; }
.admin-menu-title {
    padding: 10px 20px;
    font-size: 12px;
    color: #6b8caf;
    text-transform: uppercase;
}
.admin-menu-item a {
    display: block;
    padding: 10px 20px 10px 35px;
    color: #b8c7d9;
    font-size: 14px;
    transition: all .2s;
}
.admin-menu-item a:hover, .admin-menu-item.active a {
    background: #1890ff;
    color: #fff;
}
.admin-main {
    flex: 1;
    margin-left: 220px;
    min-width: 0;
}
.admin-header {
    background: #fff;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-header-title { font-size: 16px; font-weight: 500; }
.admin-header-user { display: flex; align-items: center; gap: 15px; font-size: 14px; }
.admin-content { padding: 20px; }
.admin-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.admin-card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.admin-stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.admin-stat-icon {
    width: 50px; height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}
.stat-icon-blue { background: #1890ff; }
.stat-icon-green { background: #52c41a; }
.stat-icon-orange { background: #fa8c16; }
.stat-icon-red { background: #f5222d; }
.admin-stat-info .stat-num { font-size: 24px; font-weight: bold; color: #333; }
.admin-stat-info .stat-name { font-size: 13px; color: #999; }
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-search-form { display: flex; gap: 8px; }
.admin-search-form input, .admin-search-form select {
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.admin-table th { background: #fafafa; font-weight: 600; color: #555; }
.admin-table tr:hover { background: #fafbfc; }
.admin-table .op-links a { margin-right: 8px; font-size: 12px; }
.admin-table .op-links a.danger { color: #f5222d; }
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.admin-login-box {
    width: 380px;
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.admin-login-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
}
