/*
 * 区块链科技主题 - 主样式文件
 * 适配 Z-BlogPHP 1.7.5.3540 (Optimus)
 * 风格：深色科技蓝，区块链科技感
 */

/* ========== 重置与基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e6ed;
    background: #0a0e17;
    min-height: 100vh;
}

a {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #00b8e6;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

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

/* ========== 顶部导航 ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主导航 */
.main-nav .nav-list {
    display: flex;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 10px 18px;
    color: #a8b3cf;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-item a:hover,
.nav-item.active a {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #0099ff);
    border-radius: 2px;
}

/* 搜索框 */
.header-search form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 4px 8px 4px 16px;
    transition: all 0.3s ease;
}

.header-search form:focus-within {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #e0e6ed;
    width: 180px;
    font-size: 13px;
}

.search-input::placeholder {
    color: #6b7a99;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    color: #00d4ff;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #00d4ff;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== 主内容区域 ========== */
.site-main {
    padding: 30px 0;
    min-height: calc(100vh - 70px - 300px);
}

.content-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

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

.site-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ========== Banner区域 ========== */
.hero-banner {
    position: relative;
    padding: 60px 40px;
    margin-bottom: 40px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    overflow: hidden;
}

.banner-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00d4ff, #0099ff, #00d4ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.banner-desc {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

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

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

/* Banner背景装饰 */
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ========== 通用区块样式 ========== */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .title-icon {
    font-size: 24px;
}

.section-more {
    font-size: 14px;
    color: #00d4ff;
}

.section-more:hover {
    color: #00b8e6;
}

/* ========== 快讯专区 ========== */
.flash-news-list {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 10px 0;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.flash-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

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

.flash-item:hover {
    background: rgba(0, 212, 255, 0.05);
}

.flash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    margin-top: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    animation: pulse 2s infinite;
}

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

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

.flash-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.5;
}

.flash-title a {
    color: #e0e6ed;
}

.flash-title a:hover {
    color: #00d4ff;
}

.flash-time {
    font-size: 12px;
    color: #64748b;
}

/* ========== 新闻专区 ========== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-featured {
    grid-column: 1 / -1;
    display: flex;
    gap: 25px;
}

.news-item {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-featured .news-thumb {
    width: 360px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-featured .news-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-featured:hover .news-thumb img {
    transform: scale(1.05);
}

.news-featured .news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-cate {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    width: fit-content;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-featured .news-title {
    font-size: 24px;
}

.news-title a {
    color: #fff;
}

.news-title a:hover {
    color: #00d4ff;
}

.news-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.news-time {
    font-size: 13px;
    color: #64748b;
}

/* ========== 百科专区 ========== */
.wiki-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wiki-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.wiki-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.wiki-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.wiki-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.wiki-title a {
    color: #fff;
}

.wiki-title a:hover {
    color: #00d4ff;
}

.wiki-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ========== 工具专区 ========== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tool-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.tool-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.tool-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.tool-desc {
    font-size: 12px;
    color: #94a3b8;
}

/* ========== 文章列表 ========== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-multi .post-inner {
    display: flex;
    gap: 25px;
    padding: 25px;
}

.post-thumbnail {
    width: 240px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: #fff;
}

.post-title a:hover {
    color: #00d4ff;
}

.post-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.tag-top {
    background: #ef4444;
    color: #fff;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

.meta-item a {
    color: #00d4ff;
}

.post-excerpt {
    flex: 1;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 15px;
}

.post-footer {
    margin-top: auto;
}

.read-more {
    font-size: 14px;
    color: #00d4ff;
    font-weight: 500;
}

.read-more:hover {
    color: #00b8e6;
}

/* ========== 文章详情页 ========== */
.post-single .post-inner {
    padding: 35px;
}

.post-single .post-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post-single .post-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #fff;
    margin: 30px 0 15px;
    font-weight: 600;
}

.post-content h2 {
    font-size: 24px;
}

.post-content h3 {
    font-size: 20px;
}

.post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.post-content blockquote {
    border-left: 4px solid #00d4ff;
    padding: 15px 20px;
    margin: 20px 0;
    background: rgba(0, 212, 255, 0.05);
    color: #94a3b8;
    font-style: italic;
}

.post-content code {
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00d4ff;
}

.post-content pre {
    background: #0f172a;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #e0e6ed;
}

.post-content ul,
.post-content ol {
    margin: 15px 0 15px 25px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tags-label {
    color: #94a3b8;
    margin-right: 10px;
}

.tag-item {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-radius: 16px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.post-share {
    margin-bottom: 20px;
}

.post-share span {
    color: #94a3b8;
    margin-right: 10px;
}

.share-link {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-right: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.share-link:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-prev,
.nav-next {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.nav-next {
    text-align: right;
}

/* 相关文章 */
.related-posts {
    margin-top: 40px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.related-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.related-item h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 8px;
}

.related-item a {
    color: #e0e6ed;
}

.related-item:hover a {
    color: #00d4ff;
}

.related-time {
    font-size: 12px;
    color: #64748b;
}

/* ========== 评论区 ========== */
.comments-section {
    margin-top: 40px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
}

.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

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

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #fff;
}

.comment-time {
    font-size: 12px;
    color: #64748b;
}

.comment-content {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 10px;
}

.comment-actions a {
    font-size: 13px;
    color: #00d4ff;
}

.no-comments {
    text-align: center;
    padding: 40px 0;
    color: #64748b;
}

.comment-form-wrap {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: #e0e6ed;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #64748b;
}

.form-row:first-of-type {
    display: flex;
    gap: 15px;
}

.form-row:first-of-type input {
    flex: 1;
}

.form-actions {
    text-align: right;
}

.submit-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.comment-tip {
    text-align: center;
    color: #64748b;
    padding: 20px 0;
}

/* ========== 侧边栏 ========== */
.widget {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    overflow: hidden;
}

.widget-title {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-content {
    padding: 20px;
}

/* 采集模块 */
.collect-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.collect-input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    color: #e0e6ed;
    font-size: 13px;
    outline: none;
}

.collect-input:focus {
    border-color: #00d4ff;
}

.collect-btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.collect-btn:hover {
    box-shadow: 0 3px 15px rgba(0, 212, 255, 0.4);
}

.collect-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.collect-result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.result-title {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.result-title-input,
.result-content {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    color: #e0e6ed;
    font-size: 13px;
    margin-bottom: 10px;
    outline: none;
    resize: vertical;
}

.result-actions {
    text-align: right;
}

.publish-btn {
    padding: 8px 20px;
    background: #10b981;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.publish-btn:hover {
    background: #059669;
}

.collect-tip {
    color: #64748b;
}

/* 热门文章 */
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hot-rank {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    flex-shrink: 0;
}

.hot-rank.top {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

.hot-link {
    flex: 1;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-link:hover {
    color: #00d4ff;
}

/* 分类列表 */
.cate-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cate-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.cate-item a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.cate-count {
    font-size: 12px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag-item {
    margin: 0;
}

/* ========== 分页 ========== */
.pagebar {
    margin-top: 40px;
    text-align: center;
}

.pagebar-list {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 10px;
}

.page-item {
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
}

.page-link {
    display: block;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border-color: transparent;
    color: #fff;
}

.page-ellipsis {
    color: #64748b;
    line-height: 36px;
}

.pagebar-info {
    font-size: 13px;
    color: #64748b;
}

/* ========== 404页面 ========== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}

.error-desc {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ========== 页脚 ========== */
.site-footer {
    background: #080c14;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-col a:hover {
    color: #00d4ff;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.15);
}

.footer-copyright {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.footer-copyright p {
    margin-bottom: 5px;
}

.footer-powered a {
    color: #00d4ff;
}

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 50px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 999;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .content-wrap {
        flex-direction: column;
    }
    
    .site-sidebar {
        width: 100%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .wiki-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 23, 0.98);
        padding: 20px;
        border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-search {
        display: none;
    }
    
    .hero-banner {
        padding: 40px 20px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-stats {
        gap: 30px;
    }
    
    .stat-num {
        font-size: 22px;
    }
    
    .post-multi .post-inner {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
    }
    
    .post-thumbnail img {
        height: 200px;
    }
    
    .news-featured {
        flex-direction: column;
    }
    
    .news-featured .news-thumb {
        width: 100%;
    }
    
    .wiki-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .post-single .post-inner {
        padding: 20px;
    }
    
    .post-single .post-title {
        font-size: 24px;
    }
    
    .post-nav {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 30px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-desc {
        font-size: 15px;
    }
    
    .banner-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 18px;
    }
}
