/* 科技主题全局样式 */
:root {
    --primary-color: #00a8ff;
    --secondary-color: #0097e6;
    --dark-color: #0c0e1d;
    --medium-color: #1a1e38;
    --light-color: #e6f7ff;
    --text-color: #d1e8ff;
    --accent-color: #00ffd5;
    --glow: 0 0 15px rgba(0, 168, 255, 0.7);
    --font-tech: 'Orbitron', 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    font-family: var(--font-tech);
    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, 255, 213, 0.1) 0%, transparent 20%);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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, 29, 0.9);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 168, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    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));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::before {
    width: 100%;
}

/* 主要内容区域 - 科技面板效果 */
.main-content {
    background-color: rgba(26, 30, 56, 0.7);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(0, 168, 255, 0.2);
    box-shadow: 
        inset 0 0 15px rgba(0, 168, 255, 0.1),
        0 0 20px 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;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 科技感网格布局 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tech-card {
    background-color: rgba(26, 30, 56, 0.9);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(0, 168, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.3);
    border-color: var(--primary-color);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
    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;
    font-family: 'Arial', sans-serif;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分类标签 - 芯片样式 */
.category-chip {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(0, 168, 255, 0.2);
    color: var(--accent-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--primary-color);
    letter-spacing: 1px;
}

/* 文章详情页样式 */
.tech-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--light-color);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-family: 'Arial', sans-serif;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 168, 255, 0.3);
    box-shadow: var(--glow);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
    font-family: 'Arial', sans-serif;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(0, 168, 255, 0.3);
}

/* 代码块样式 */
pre {
    background-color: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 0 8px 8px 0;
}

code {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
}

/* 分页导航 - 科技感按钮 */
.tech-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.tech-pagination a {
    padding: 12px 24px;
    border-radius: 4px;
    background-color: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.tech-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;
}

.tech-pagination a:hover {
    background-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.tech-pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 科技标签云 */
.tech-tagcloud {
    background-color: rgba(26, 30, 56, 0.9);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(0, 168, 255, 0.2);
    box-shadow: inset 0 0 15px rgba(0, 168, 255, 0.1);
}

.tech-tagcloud h3 {
    margin-bottom: 20px;
    color: var(--light-color);
    font-size: 20px;
    letter-spacing: 1px;
}

.tagcloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tagcloud-container a {
    padding: 8px 15px;
    background-color: rgba(0, 168, 255, 0.1);
    border-radius: 15px;
    font-size: 14px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.tagcloud-container a:hover {
    background-color: rgba(0, 168, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.2);
}

/* 页脚样式 - 科技感底部 */
.tech-footer {
    background-color: rgba(12, 14, 29, 0.9);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 168, 255, 0.3);
    position: relative;
}

.tech-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.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;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .tech-pagination {
        flex-direction: column;
        align-items: center;
    }
}