/* 午夜蓝主题 - 鼠标悬停特效版 */
:root {
    --midnight-blue: #0a192f;
    --navy: #172a45;
    --light-navy: #303f55;
    --lightest-navy: #4a5d7a;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --accent: #64ffda;
    --shadow-depth: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Calibre', 'San Francisco', 'SF Pro Text', -apple-system, sans-serif;
}

body {
    background-color: var(--midnight-blue);
    color: var(--slate);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(100, 255, 218, 0.2);
}

/* 动态光标效果 */
body:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2364ffda" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/></svg>'), auto;
}

a {
    color: var(--light-slate);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
}

a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D悬浮导航栏 */
header {
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-depth);
    transform: translateZ(0);
    transition: all 0.3s ease-out;
}

header:hover {
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
    transform: translateY(-2px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    padding: 10px 15px;
    font-size: 18px;
    font-weight: 500;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容区域 - 悬浮层 */
.main-content {
    background-color: var(--navy);
    border-radius: 8px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: var(--shadow-depth);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.main-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(2, 12, 27, 0.8);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* 粒子悬浮卡片效果 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--light-navy);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
    z-index: 1;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.8);
}

.article-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--white);
    transition: color 0.3s ease;
}

.article-card:hover .card-title {
    color: var(--accent);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--lightest-slate);
    margin-top: 15px;
}

/* 分类标签 - 悬浮放大 */
.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-tag:hover {
    transform: scale(1.05);
    background-color: rgba(100, 255, 218, 0.2);
}

/* 文章详情页 - 悬浮段落效果 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.3;
    transition: all 0.3s ease;
}

.article-title:hover {
    color: var(--accent);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--lightest-slate);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.article-meta span:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-depth);
    transition: all 0.5s ease;
}

.article-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(2, 12, 27, 0.9);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 25px;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 4px;
}

.article-content p:hover {
    background-color: rgba(100, 255, 218, 0.05);
    transform: translateX(5px);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    transition: all 0.5s ease;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-depth);
}

/* 分页导航 - 悬浮按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: rgba(100, 255, 218, 0.1);
    border: 1px solid var(--accent);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination a:hover {
    background-color: rgba(100, 255, 218, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.5);
}

/* 友情链接 - 悬浮块效果 */
.friend-links {
    background-color: var(--navy);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow-depth);
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--white);
    font-size: 22px;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.friend-links-container a {
    padding: 10px 20px;
    background-color: var(--light-navy);
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-links-container a::before {
    content: '→';
    opacity: 0;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: rgba(100, 255, 218, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.3);
}

.friend-links-container a:hover::before {
    opacity: 1;
    transform: translateX(-5px);
}

/* 页脚 - 悬浮上升效果 */
footer {
    background-color: var(--navy);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    position: relative;
    transition: all 0.5s ease;
}

footer:hover {
    transform: translateY(-10px);
    box-shadow: 0 -20px 30px -15px rgba(2, 12, 27, 0.7);
}

.copyright {
    font-size: 16px;
    color: var(--lightest-slate);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}