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

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

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

/* 头部 */
.header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.logo h1 {
    font-size: 28px;
    color: #007bff;
    font-weight: 700;
    margin-bottom: 4px;
}

.logo-desc {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #0056b3;
}

.login-btn {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.login-btn:hover {
    background: #007bff;
    color: white;
}

/* 主要内容 */
.main {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.main-content {
    background: transparent;
}

/* 统计栏 */
.stats-bar {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stats-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-item strong {
    font-weight: 600;
}

/* 文章卡片 */
.article-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left-color: #007bff;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s;
    flex: 1;
}

.article-title:hover {
    color: #007bff;
}

.article-time {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    margin-top: 2px;
}

.article-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
}

.article-source {
    color: #007bff;
    font-weight: 500;
}

.article-views {
    color: #999;
}

.original-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.original-link:hover {
    color: #1e7e34;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #666;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: #e9ecef;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-title {
    background: #f8f9fa;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

/* 分类列表 */
.category-list {
    padding: 0;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s;
    cursor: pointer;
}

.category-item:hover {
    background: #f8f9fa;
}

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

.category-item.active {
    background: #e3f2fd;
    color: #007bff;
}

.category-name {
    font-size: 14px;
    color: inherit;
}

.category-count {
    font-size: 12px;
    color: #999;
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 10px;
}

.category-item.active .category-count {
    background: #007bff;
    color: white;
}

/* 账号列表 */
.account-list {
    padding: 0;
}

.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s;
    cursor: pointer;
}

.account-item:hover {
    background: #f8f9fa;
}

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

.account-name {
    font-size: 13px;
    color: #333;
}

.account-count {
    font-size: 12px;
    color: #007bff;
    font-weight: 500;
}

/* 关于内容 */
.about-content {
    padding: 20px;
}

.about-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Telegram 部分 */
.telegram-section {
    padding: 20px;
    text-align: center;
}

.telegram-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

.telegram-link {
    display: inline-block;
    background: #0088cc;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.telegram-link:hover {
    background: #006ba3;
}

.telegram-subs {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* Widget 底部 */
.widget-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #f1f3f4;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.more-link, .submit-link, .calendar-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.more-link:hover, .submit-link:hover, .calendar-link:hover {
    color: #0056b3;
}

/* 页脚 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.footer-info p {
    font-size: 12px;
    margin-bottom: 8px;
    color: #666;
}

.footer-note {
    font-size: 11px !important;
    color: #999 !important;
}

.footer-link {
    color: #007bff;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.2s;
    font-size: 12px;
}

.footer-link:hover {
    color: #0056b3;
}

.footer-slogan {
    text-align: right;
}

.footer-slogan p {
    font-size: 14px;
    color: #007bff;
    font-weight: 600;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: -1;
    }
    
    .search-input {
        width: 150px;
    }
    
    .stats-bar {
        gap: 15px;
    }
    
    .article-header {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .article-time {
        align-self: flex-end;
        margin-top: 0;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-slogan {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .article-card {
        padding: 16px;
    }
    
    .stats-bar {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .stats-item {
        font-size: 12px;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .article-summary {
        font-size: 13px;
    }
}