/* 科技风格全局样式 */
:root {
    --primary-color: #00a8ff;
    --secondary-color: #0097e6;
    --dark-color: #0a192f;
    --medium-color: #172a45;
    --light-color: #ccd6f6;
    --accent-color: #64ffda;
    --text-color: #e6f1ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Arial', sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="50" height="50" x="0" y="0" fill="none" stroke="%23000c18" stroke-width="0.5"/></svg>');
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 科技感头部样式 */
header {
    background-color: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(8px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 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;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::before {
    width: 100%;
}

/* 主要内容区域 - 科技感卡片 */
.main-content {
    background-color: rgba(23, 42, 69, 0.6);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px -15px rgba(0, 168, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.main-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(0, 168, 255, 0.3);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    color: var(--light-color);
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* 网格布局文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: var(--medium-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 168, 255, 0.3);
}

.article-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--light-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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-color: rgba(0, 168, 255, 0.1);
    color: var(--accent-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--accent-color);
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--light-color);
    font-weight: 700;
    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(90deg, var(--primary-color), var(--accent-color));
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    box-shadow: 0 10px 30px -15px rgba(0, 168, 255, 0.3);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content code {
    background-color: rgba(0, 168, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
}

/* 分页导航 - 科技感 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 4px;
    background-color: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    font-weight: 500;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* 友情链接 - 科技感 */
.friend-links {
    background-color: rgba(23, 42, 69, 0.6);
    border-radius: 6px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--light-color);
    font-size: 20px;
}

.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 ease;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* 页脚样式 - 科技感 */
footer {
    background-color: rgba(10, 25, 47, 0.8);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.copyright {
    font-size: 14px;
    color: var(--primary-color);
}

/* 响应式设计 */
@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;
    }
}