/* 极光蓝暗黑主题 */
:root {
    --aurora-blue: #00d4ff;
    --deep-space: #0a0e17;
    --cosmic-dark: #121826;
    --nebula-edge: #1a2136;
    --starlight: #e0f7ff;
    --comet-tail: rgba(0, 212, 255, 0.1);
    --galactic-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--deep-space);
    color: var(--starlight);
    line-height: 1.8;
    font-weight: 350;
}

a {
    color: var(--aurora-blue);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

/* 星际导航栏 */
.stellar-header {
    background: linear-gradient(to bottom, var(--cosmic-dark), rgba(10, 14, 23, 0.9));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--nebula-edge);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cosmic-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--aurora-blue), #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.stellar-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.stellar-nav a {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
}

.stellar-nav a:hover {
    background: var(--comet-tail);
}

/* 星云内容区块 */
.nebula-section {
    background: var(--cosmic-dark);
    border-radius: 1rem;
    padding: 3rem;
    margin: 3rem 0;
    border: 1px solid var(--nebula-edge);
    box-shadow: var(--galactic-shadow);
}

.section-heading {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--aurora-blue), transparent);
}

/* 星群网格布局 */
.constellation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.star-card {
    background: var(--nebula-edge);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: all 0.3s ease-out;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.star-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.star-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--nebula-edge);
}

.star-content {
    padding: 1.8rem;
}

.star-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.star-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(224, 247, 255, 0.7);
    margin-top: 1.2rem;
}

/* 黑洞详情页 */
.blackhole-detail {
    max-width: 900px;
    margin: 0 auto;
}

.blackhole-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.blackhole-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--aurora-blue), #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blackhole-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: rgba(224, 247, 255, 0.7);
    margin-bottom: 2.5rem;
}

.blackhole-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--galactic-shadow);
}

.blackhole-content {
    line-height: 1.9;
    font-size: 1.1rem;
}

.blackhole-content p {
    margin-bottom: 1.5rem;
}

/* 超新星分页 */
.supernova-pagination {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.supernova-pagination a {
    padding: 0.8rem 1.8rem;
    border-radius: 2rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--aurora-blue);
    font-weight: 500;
}

.supernova-pagination a:hover {
    background: var(--aurora-blue);
    color: var(--deep-space);
    text-shadow: none;
}

/* 星际盟友区 */
.interstellar-links {
    background: var(--cosmic-dark);
    border-radius: 1rem;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid var(--nebula-edge);
}

.interstellar-links h3 {
    margin-bottom: 1.8rem;
    font-size: 1.8rem;
}

.interstellar-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.interstellar-container a {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--aurora-blue);
    font-size: 0.95rem;
}

.interstellar-container a:hover {
    background: var(--aurora-blue);
    color: var(--deep-space);
}

/* 事件视界页脚 */
.event-horizon-footer {
    background: linear-gradient(to top, var(--cosmic-dark), #080c15);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--nebula-edge);
}

.copyright {
    font-size: 0.95rem;
    color: rgba(224, 247, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .constellation-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .blackhole-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stellar-nav ul {
        gap: 1rem;
    }
    
    .nebula-section {
        padding: 2rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .blackhole-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .constellation-grid {
        grid-template-columns: 1fr;
    }
    
    .blackhole-meta {
        gap: 1rem;
    }
}