/* 科技风格全局样式 */
:root {
    --primary-color: #00a8ff;
    --secondary-color: #0097e6;
    --dark-color: #0c0e1c;
    --darker-color: #070a15;
    --light-color: #e6f7ff;
    --text-color: #c4d8e9;
    --accent-color: #00d2d3;
    --glow: 0 0 15px rgba(0, 168, 255, 0.5);
    --card-bg: rgba(15, 22, 45, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial Narrow', sans-serif;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;700&display=swap');
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 168, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 210, 211, 0.1) 0%, transparent 20%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-color);
    text-shadow: var(--glow);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 科技感头部 */
header {
    background-color: rgba(12, 14, 28, 0.9);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    border: 1px solid transparent;
}

nav ul li a:hover {
    border: 1px solid var(--primary-color);
    box-shadow: var(--glow);
    border-radius: 4px;
}

/* 主要内容区域 - 科技面板效果 */
.main-content {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(0, 168, 255, 0.2);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(0, 168, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 168, 255, 0.3);
    position: relative;
    color: var(--light-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 网格布局 - 科技感卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 168, 255, 0.2);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 168, 255, 0.3),
        inset 0 0 10px rgba(0, 168, 255, 0.1);
    border-color: var(--primary-color);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.article-card:hover .card-image {
    filter: grayscale(0%);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--light-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 15px;
}

/* 分类标签 - 芯片样式 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(0, 168, 255, 0.2);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--primary-color);
    letter-spacing: 1px;
}

/* 文章详情页 - 科技文档风格 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 168, 255, 0.3);
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 168, 255, 0.3);
    box-shadow: var(--glow);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    border: 1px solid rgba(0, 168, 255, 0.3);
    box-shadow: var(--glow);
}

.article-content code {
    background: rgba(0, 168, 255, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    border: 1px solid rgba(0, 168, 255, 0.3);
}

/* 分页导航 - 科技感按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 25px;
    border-radius: 4px;
    background-color: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.4), transparent);
    transition: all 0.5s;
}

.pagination a:hover {
    background-color: rgba(0, 168, 255, 0.3);
    box-shadow: var(--glow);
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 科技标签云 */
.friend-links {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(0, 168, 255, 0.2);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(0, 168, 255, 0.1);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--light-color);
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: rgba(0, 168, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: rgba(0, 168, 255, 0.3);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

/* 页脚样式 - 科技感底部 */
footer {
    background-color: var(--darker-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 168, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.copyright {
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}