/* ============================================================
   第五世界 - 多元宇宙观测站
   深色终端风格主题
   ============================================================ */

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

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-hover: #243044;
    --text-primary: #e8edf5;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #00d4ff;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-yellow: #eab308;
    --accent-orange: #f97316;
    --border-color: #2d3a4f;
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', 'Microsoft YaHei', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at top, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

/* 扫描线效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* 链接 */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-purple);
    text-shadow: var(--glow-blue);
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    animation: pulse 2s infinite;
}

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

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-blue);
    text-shadow: var(--glow-blue);
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 5px;
}

.main-nav {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--accent-blue);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent-green); }
    50% { opacity: 0.4; box-shadow: none; }
}

/* ============================================================
   主内容区
   ============================================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 系统公告 */
.system-announcement {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(249, 115, 22, 0.1));
    border: 1px solid var(--accent-yellow);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-icon {
    font-size: 24px;
}

.announcement-text {
    color: var(--accent-yellow);
    font-size: 14px;
}

/* 数据统计条 */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-blue);
    text-shadow: var(--glow-blue);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 首页网格 */
.home-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.home-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 18px;
    color: var(--text-primary);
}

.live-badge {
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    animation: blink 1s infinite;
}

.view-all {
    font-size: 13px;
    color: var(--text-muted);
}

.view-all:hover {
    color: var(--accent-blue);
}

/* ============================================================
   实时监察
   ============================================================ */
.monitor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.monitor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.monitor-item:hover {
    border-color: var(--accent-red);
    background: var(--bg-hover);
}

.monitor-id {
    background: var(--accent-red);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}

.monitor-title {
    flex: 1;
    font-size: 14px;
}

.monitor-title a {
    color: var(--text-primary);
}

.monitor-title a:hover {
    color: var(--accent-red);
}

.monitor-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============================================================
   时空新闻
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--glow-blue);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.world-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
}

.news-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card h3 a {
    color: var(--text-primary);
}

.news-card h3 a:hover {
    color: var(--accent-blue);
}

.news-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   异常档案
   ============================================================ */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.archive-card:hover {
    border-color: var(--accent-purple);
    background: var(--bg-hover);
}

.archive-id {
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid;
    border-radius: 6px;
    white-space: nowrap;
    font-family: 'Consolas', monospace;
}

.archive-info {
    flex: 1;
}

.archive-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.archive-info h3 a {
    color: var(--text-primary);
}

.archive-info h3 a:hover {
    color: var(--accent-purple);
}

.level-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
}

/* ============================================================
   多元论坛
   ============================================================ */
.forum-hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.forum-post-card:hover {
    border-color: var(--accent-purple);
    transform: translateX(5px);
}

.forum-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.forum-author {
    font-size: 12px;
    color: var(--accent-purple);
}

.forum-post-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.forum-post-card h3 a {
    color: var(--text-primary);
}

.forum-post-card h3 a:hover {
    color: var(--accent-purple);
}

.forum-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   监测面板
   ============================================================ */
.monitor-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 30px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 15px;
    color: var(--accent-green);
}

.panel-status {
    font-size: 12px;
    color: var(--accent-green);
}

.panel-content {
    padding: 20px;
}

.monitor-log {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    line-height: 2;
}

.log-line {
    color: var(--text-secondary);
    padding: 3px 0;
    border-bottom: 1px dashed rgba(45, 58, 79, 0.5);
}

.log-time {
    color: var(--accent-green);
    margin-right: 10px;
}

/* ============================================================
   列表页
   ============================================================ */
.page-header {
    text-align: center;
    margin-bottom: 35px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.page-header h1 {
    font-size: 28px;
    color: var(--accent-blue);
    text-shadow: var(--glow-blue);
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.listing-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item,
.archive-item,
.monitor-item-full,
.forum-post-item,
.world-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.news-item:hover,
.archive-item:hover,
.monitor-item-full:hover,
.forum-post-item:hover,
.world-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
}

.news-item h2,
.archive-item h2,
.monitor-item-full h2,
.forum-post-item h2,
.world-card h2 {
    font-size: 20px;
    margin: 12px 0;
}

.news-item h2 a,
.archive-item h2 a,
.monitor-item-full h2 a,
.forum-post-item h2 a,
.world-card h2 a {
    color: var(--text-primary);
}

.news-item h2 a:hover,
.archive-item h2 a:hover,
.monitor-item-full h2 a:hover,
.forum-post-item h2 a:hover,
.world-card h2 a:hover {
    color: var(--accent-blue);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    color: var(--accent-blue);
}

.archive-header,
.monitor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.archive-id-badge {
    font-size: 14px;
    font-weight: bold;
    padding: 5px 12px;
    border: 2px solid;
    border-radius: 6px;
}

.archive-status,
.monitor-source {
    font-size: 12px;
    color: var(--text-muted);
}

.forum-world-section {
    margin-bottom: 30px;
}

.world-section-title {
    font-size: 18px;
    padding-left: 15px;
    border-left: 4px solid;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.world-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.world-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.world-info {
    flex: 1;
}

.world-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================
   详情页
   ============================================================ */
.detail-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.detail-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.detail-date {
    font-size: 13px;
    color: var(--text-muted);
}

.detail-title {
    font-size: 32px;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 15px;
}

.detail-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 8px 8px 0;
}

.detail-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-primary);
}

.detail-body h1,
.detail-body h2,
.detail-body h3 {
    color: var(--accent-blue);
    margin: 25px 0 15px;
}

.detail-body h2 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.detail-body h3 {
    font-size: 20px;
}

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

.detail-body blockquote {
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    color: var(--text-secondary);
}

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

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

.detail-body code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--accent-green);
}

.detail-body pre {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.detail-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}

.detail-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.detail-tags {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
}

.detail-share {
    font-size: 14px;
    color: var(--text-muted);
}

.detail-share a {
    margin: 0 8px;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget h4 {
    font-size: 15px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.sidebar-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   404页面
   ============================================================ */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.error-container {
    max-width: 500px;
    padding: 40px;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    color: var(--accent-red);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    line-height: 1;
    margin-bottom: 20px;
}

.error-container h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.error-container ul {
    text-align: left;
    margin: 20px auto;
    max-width: 300px;
    color: var(--text-secondary);
}

.error-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: var(--accent-blue);
    color: var(--bg-primary);
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-btn:hover {
    background: var(--accent-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

/* ============================================================
   底部
   ============================================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    padding: 40px 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 30px;
}

.footer-section h4 {
    color: var(--accent-blue);
    font-size: 15px;
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-section a:hover {
    color: var(--accent-blue);
}

.disclaimer {
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .detail-article {
        padding: 25px 20px;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo-sub {
        display: none;
    }
}
