/*
Theme Name: www.cike.ink
Theme URI: https://www.cike.ink
Author: Stock Player
Author URI: https://www.cike.ink
Description: 股票玩家日记主题 - 简洁风格
Version: 2.0
License: GNU General Public License v2 or later
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Header */
.site-header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.site-branding {
    display: flex;
    justify-content: center;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.site-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #333;
}

.site-description {
    font-size: 0.95rem;
    color: #666;
}

/* Stock Ticker */
.stock-ticker-section {
    background: white;
    padding: 10px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
}

.stock-item {
    background: #f8f9fa;
    padding: 8px 5px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.stock-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.stock-price {
    font-size: 0.8rem;
    font-weight: 700;
}

.stock-change {
    font-size: 0.7rem;
    font-weight: 500;
}

.stock-change.up {
    color: #e74c3c;
}

.stock-change.down {
    color: #27ae60;
}

/* Main Content */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Content Wrapper - 文章网格 + 侧边栏 */
.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.articles-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Archive Sidebar */
.archive-sidebar {
    width: 220px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.archive-list {
    list-style: none;
}

.archive-list li {
    margin-bottom: 10px;
}

.archive-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.archive-list li a:hover {
    background: #333;
    color: white;
}

.archive-list .post-count {
    font-size: 0.8rem;
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.archive-list li a:hover .post-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Article Card */
.article-card {
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.article-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.article-excerpt {
    margin: 0 0 15px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    margin: 0;
    font-size: 0.85rem;
    color: #999;
}

/* Pagination */
.pagination {
    grid-column: 1 / -1;
    margin-top: 40px;
    text-align: center;
}

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

.pagination .page-numbers {
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #333;
    color: white;
}

/* No Content */
.no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Category Header */
.category-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.category-description {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

/* Single Post */
.single-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.single-post {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.post-date,
.post-views {
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

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

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags {
    font-size: 0.9rem;
    color: #666;
}

.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Footer */
.site-footer {
    background: white;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #eee;
}

.site-footer p {
    opacity: 0.8;
}

.site-footer .beian {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .stock-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .content-wrapper {
        flex-direction: column;
    }
    .archive-sidebar {
        width: 100%;
        position: static;
    }
    .archive-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .archive-list li {
        margin-bottom: 0;
    }
    .archive-list li a {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        gap: 5px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .stock-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .site-branding a {
        flex-direction: column;
        text-align: center;
    }
    
    .site-title {
        font-size: 1.4rem;
    }
    
    .site-logo img {
        width: 60px;
        height: 60px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .entry-title {
        font-size: 1.4rem;
    }
    
    .entry-meta {
        flex-wrap: wrap;
    }
    
    .single-post {
        padding: 20px;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .archive-sidebar {
        padding: 15px;
    }
    
    .sidebar-title {
        font-size: 1rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .stock-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .site-header {
        padding: 10px 15px;
    }
    
    .site-content {
        padding: 15px;
    }
    
    .article-card a {
        padding: 15px;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .pagination .nav-links {
        flex-wrap: wrap;
    }
}
