/* SKILLIB CSS v2.39 - 2026-04-12 18:00 - 6 COLUMN FIX */
/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: white; }

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info span { color: white; }

.user-info a {
    color: white;
    padding: 8px 20px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 25px;
    transition: all 0.3s;
}

.user-info a:hover { background: white; color: var(--primary); }

.member-badge {
    background: var(--secondary);
    color: white !important;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 首页横幅 - 紧凑化 */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 50%, #a855f7 100%);
    padding: 25px 0 30px;
}
    color: white;
}

.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.hero p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }

/* 热门搜索 */
.hot-keywords {
    font-size: 13px;
    opacity: 0.9;
}

.hot-keywords a {
    color: white;
    margin: 0 8px;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.hot-keywords a:hover { opacity: 1; text-decoration: underline; }

/* 主布局 - 左侧导航 + 右侧内容 */
.main-layout {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* 左侧分类导航 */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.sidebar-menu {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-category { margin-bottom: 15px; }

.sidebar-category-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 3px; }

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.3s;
}

.sidebar-links a:hover, .sidebar-links a.active {
    background: var(--primary);
    color: white;
}

/* 右侧内容区 */
.content-area { flex: 1; min-width: 0; }

/* 分类标签 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    font-size: 13px;
}

.category-tab:hover, .category-tab.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 8 宫格资料展示 - 紧凑化 */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) { .materials-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .materials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .materials-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } }

/* 小说封面风格卡片 */
.material-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    cursor: pointer;
}

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

.material-card .cover {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.material-card .cover::after {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
}

.material-card .cover-title {
    position: absolute;
    bottom: 25px;
    left: 15px; right: 15px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.material-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-card .info { padding: 12px; }

.material-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.material-card .category {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg);
    border-radius: 12px;
    font-size: 10px;
    color: var(--text-light);
}

.material-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 10px;
    margin-top: 6px;
}

/* 搜索框 - 加大尺寸 */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-box input:focus { outline: none; border-color: var(--primary); }

.search-box button {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover { background: var(--primary-dark); }

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

.pagination a, .pagination span {
    padding: 8px 14px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    font-size: 13px;
}

.pagination a:hover, .pagination .current { background: var(--primary); color: white; }

/* 详情页 */
.detail-page { padding: 30px 0; }

.detail-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.detail-header {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.detail-cover {
    width: 280px;
    height: 380px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.detail-info { flex: 1; }
.detail-info h1 { font-size: 28px; margin-bottom: 15px; }

.detail-meta { margin-bottom: 25px; }
.detail-meta p { margin-bottom: 10px; color: var(--text-light); }
.detail-meta span { color: var(--text); font-weight: 600; }

.detail-description {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg);
    border-radius: 10px;
}

.download-section {
    padding: 30px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 14px;
    text-align: center;
}

.download-section.member {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.btn-download {
    display: inline-block;
    padding: 15px 50px;
    background: var(--success);
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-download:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.price-tag {
    font-size: 32px;
    font-weight: 800;
    color: var(--danger);
    margin-bottom: 15px;
}

/* 登录/注册页 */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-box h2 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-box p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 25px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover { background: var(--primary-dark); }

.auth-links {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.auth-links a { color: var(--primary); font-weight: 500; }

/* 会员中心 */
.member-page { padding: 30px 0; }

.member-card {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
}

.member-card h2 { font-size: 22px; margin-bottom: 8px; }
.member-card p { opacity: 0.9; }

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.pricing-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.pricing-card.featured::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 18px;
    border-radius: 18px;
    font-size: 13px;
}

.pricing-card h3 { font-size: 18px; margin-bottom: 15px; }
.pricing-card .price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}
.pricing-card .price span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.pricing-card li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

/* 响应式 */
@media (max-width: 1024px) {
    .main-layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    .sidebar-menu { display: flex; overflow-x: auto; gap: 20px; }
    .sidebar-category { min-width: 150px; }
    .detail-header { flex-direction: column; align-items: center; }
    .detail-cover { width: 250px; height: 333px; }
    .pricing-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .materials-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .detail-container { padding: 20px; }
    .auth-box { padding: 30px; }
}

/* 友情链接 */
.friendly-links {
    text-align: left;
}

.friendly-links h4 {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.links-list a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.links-list a:hover {
    color: white;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .friendly-links {
        text-align: center;
    }
    
    .links-list {
        justify-content: center;
    }
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { opacity: 0.5; }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag.hot { background: #fee2e2; color: #dc2626; }
.tag.new { background: #dbeafe; color: #2563eb; }
.tag.vip { background: #fef3c7; color: #d97706; }

/* 统计信息 */
.stats-bar {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.stat-item strong {
    color: var(--text);
    font-size: 20px;
}

/* ==================== 首页紧凑优化 ==================== */
/* 公告栏样式 - 紧凑专业 */
.announcement-inline {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.announcement-icon-inline {
    color: #0284c7;
    font-size: 16px;
    flex-shrink: 0;
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
}

.announcement-text {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.announcement-item {
    display: inline;
}

.announcement-number {
    color: #0284c7;
    font-weight: 600;
    margin-right: 4px;
}

.announcement-separator {
    color: #94a3b8;
    margin: 0 4px;
}

/* Section 间距 - 紧凑化 */
.section {
    padding: 25px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 i {
    color: var(--primary);
}

.section-title a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.section-title a:hover {
    text-decoration: underline;
}

/* 分类网格 - 紧凑化 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.category-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.category-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
    max-width: 100%;
}

/* 响应式：平板 */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式：手机 */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card {
        padding: 15px 10px;
        min-height: 95px;
    }
    
    .category-card .icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .category-card span {
        font-size: 12px;
    }
}

/* 文章列表 - 紧凑布局 */
.article-list-compact {
    display: grid;
    gap: 12px;
}

.article-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.article-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.article-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-excerpt {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-light);
}

.article-category {
    background: var(--bg);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    color: var(--text-light);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 热门下载列表 */
.hot-list-compact {
    display: grid;
    gap: 12px;
}

/* VIP 皇冠图标 - 右上角 */
.vip-crown {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.hot-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    align-items: center;
}

.hot-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.hot-rank {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.hot-rank.top-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.hot-rank.top-2 { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.hot-rank.top-3 { background: linear-gradient(135deg, #b45309, #92400e); }

.hot-item-title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-item-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    gap: 12px;
}

/* 文章列表 - 紧凑布局 */
/* Version 2.39 - 2026-04-12 - 6 column fix */
