/* ===== 系统指引主题 - 简化版样式 ===== */
/* 移除了作者介绍、推荐文章和评论区域 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header p {
    font-size: 14px;
    opacity: 0.8;
}

.share-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.main-content {
    padding: 30px;
    border-radius: 12px 12px 0 0;
    background: white;
    margin-top: -10px;
    position: relative;
    z-index: 1;
}

/* ===== 首页样式 ===== */

.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.nav-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #f0f0f0;
    min-height: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.nav-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.nav-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 18px;
    text-align: center;
    width: 100%;
    color: #2c3e50;
}

.nav-desc {
    font-size: 14px;
    color: #666;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-share {
    background: #27ae60;
}

.btn-share:hover {
    background: #219653;
}

.info-section {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-row {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    align-items: center;
    border-bottom: 1px solid #f8f9fa;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.time-display {
    font-weight: 600;
    color: #3498db;
    font-size: 15px;
}

.last-visit {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e8f4fd;
    margin-top: 15px;
}

.last-visit-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
    text-align: center;
}

.last-visit a {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s;
    word-break: break-all;
    text-align: center;
    background: white;
    border: 1px solid #e8f4fd;
    margin-bottom: 10px;
}

.last-visit a:hover {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    transform: translateX(5px);
}

.last-visit-time {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-style: italic;
}

.no-visit {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

/* ===== 文章页面样式 - 简化版 ===== */

.article-header-simple {
    background: white;
    padding: 40px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.article-title-simple {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-date-simple {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 移除原有的文章头部样式 */
.article-header {
    display: none;
}

.article-content {
    background: white;
    padding: 30px;
    margin-top: 0;
    position: relative;
}

.article-body {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
}

.article-body h2 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}

.article-body h3 {
    font-size: 18px;
    margin: 20px 0 12px;
    color: #2c3e50;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body blockquote {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.article-body ul, .article-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.article-body code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3e50;
}

.article-body pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    flex-wrap: wrap;
    gap: 15px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s;
    text-decoration: none;
}

.tag:hover {
    background: #3498db;
    color: white;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 6px;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.action-btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.action-btn.like.active {
    background: #fed7d7;
    color: #e53e3e;
    border-color: #fed7d7;
}

/* 文章列表样式 (首页) */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.post-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.post-header {
    margin-bottom: 15px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.post-title a:hover {
    color: #3498db;
}

.post-meta {
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    gap: 15px;
}

.post-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 120px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-excerpt {
    flex: 1;
    color: #555;
    line-height: 1.6;
}

.post-footer {
    margin-top: 15px;
    text-align: right;
}

.read-more {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.read-more:hover {
    background: #2980b9;
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.nav-links {
    display: inline-flex;
    gap: 8px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #3498db;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid #eaeaea;
}

.page-numbers.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.page-numbers:hover {
    background: #2980b9;
    color: white;
    border-color: #2980b9;
}

.no-posts {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
}

.no-posts h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-posts p {
    color: #7f8c8d;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2980b9);
    z-index: 1001;
    transition: width 0.2s ease;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .nav-grid {
        gap: 15px;
    }
    
    .nav-card {
        padding: 20px 15px;
        min-height: 130px;
    }
    
    .nav-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .nav-title {
        font-size: 16px;
    }
    
    .nav-desc {
        font-size: 13px;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .share-btn {
        position: static;
        margin-top: 10px;
        display: inline-block;
        width: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .article-header-simple {
        padding: 30px 15px 15px;
    }
    
    .article-title-simple {
        font-size: 26px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-body h2 {
        font-size: 20px;
    }
    
    .article-body h3 {
        font-size: 17px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .post-content {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .nav-card {
        padding: 18px 12px;
        min-height: 120px;
    }
    
    .nav-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .nav-title {
        font-size: 15px;
    }
    
    .nav-desc {
        font-size: 12px;
    }
    
    .header {
        padding: 18px 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .info-section {
        padding: 18px;
    }
    
    .article-header-simple {
        padding: 25px 15px 10px;
    }
    
    .article-title-simple {
        font-size: 22px;
    }
    
    .article-content {
        padding: 15px;
    }
}