/* 全文RSS导航站样式 */

* {
    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: #fff;
}

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

/* 头部样式 */
header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 30px 0;
}

.header-content {
    text-align: center;
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.intro {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 主要内容区域 */
main {
    padding: 40px 0;
    min-height: 60vh;
}

/* 分类标题 */
.category-title {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 40px 0 20px 0;
    font-weight: 400;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.category-title:first-child {
    margin-top: 0;
}

/* RSS源网格布局 */
.rss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* RSS源卡片 */
.rss-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.rss-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #3498db;
}

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

.rss-title {
    font-size: 1.3em;
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
    flex: 1;
}

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

/* 状态指示器 */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 10px;
    flex-shrink: 0;
}

.status-active {
    background-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.status-inactive {
    background-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.status-unknown {
    background-color: #95a5a6;
}

.rss-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 15px;
}

.rss-meta {
    font-size: 0.85em;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.rss-url {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
}

.rss-url:hover {
    text-decoration: underline;
}

/* 最新条目 */
.recent-items {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.recent-title {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

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

.recent-item {
    margin-bottom: 5px;
    font-size: 0.85em;
}

.recent-item a {
    color: #555;
    text-decoration: none;
    line-height: 1.3;
}

.recent-item a:hover {
    color: #3498db;
    text-decoration: underline;
}

.recent-date {
    color: #888;
    font-size: 0.8em;
}

/* 元标签样式 */
.meta-tag {
    background: #e8f4fd;
    color: #2980b9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

/* 页脚 */
footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    padding: 30px 0;
    text-align: center;
    color: #666;
    margin-top: 40px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 15px;
}

.footer-links a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* 视图切换器 */
.view-switcher {
    margin-bottom: 25px;
}

.switcher-container {
    text-align: center;
}

.switcher-title {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 400;
}

.switcher-buttons {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.switcher-btn {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.switcher-btn:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.switcher-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* 统计信息 */
.stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

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

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .rss-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rss-item {
        padding: 20px;
    }
    
    .category-title {
        font-size: 1.5em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links a {
        display: block;
        margin: 5px 0;
    }
    
    /* 视图切换器移动端适配 */
    .switcher-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .switcher-btn {
        min-width: auto;
        width: 100%;
        margin-bottom: 2px;
    }
    
    .switcher-btn:last-child {
        margin-bottom: 0;
    }
    
    /* Cookie横幅移动端适配 */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .rss-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-indicator {
        margin: 5px 0 0 0;
    }
    
    .rss-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.error-message {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #fecaca;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* Cookie同意横幅 */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: #27ae60;
    color: white;
}

.cookie-btn.accept:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

.cookie-btn.reject {
    background: transparent;
    color: #bdc3c7;
    border: 1px solid #7f8c8d;
}

.cookie-btn.reject:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: #bdc3c7;
}

.cookie-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.85em;
    white-space: nowrap;
}

.cookie-link:hover {
    text-decoration: underline;
    color: #5dade2;
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 5px;
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 100;
}