/* 未来科技感 - 柏坊灰蓝主题 */
:root {
    --primary: #3a5a78; /* 柏坊灰蓝主色 */
    --secondary: #6b8ba4; /* 辅助蓝 */
    --accent: #4fc3f7; /* 科技蓝 */
    --dark: #1a2a3a; /* 深底色 */
    --light: #e0f7fa; /* 浅色文字 */
    --neon-glow: 0 0 10px rgba(79, 195, 247, 0.7);
    --font-main: 'Orbitron', 'Arial', sans-serif;
    --font-text: 'Rajdhani', 'Helvetica', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: var(--font-text);
    line-height: 1.8;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(58, 90, 120, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(79, 195, 247, 0.1) 0%, transparent 20%);
}

/* 未来科技感头部 */
header {
    background: rgba(26, 42, 58, 0.9);
    backdrop-filter: blur(8px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* 导航菜单 - 未来感 */
.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--light);
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::before {
    width: 100%;
}

/* 主要内容区 - 科技面板效果 */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.tech-panel {
    background: rgba(26, 42, 58, 0.7);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--neon-glow);
    position: relative;
    overflow: hidden;
}

.tech-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(79, 195, 247, 0.1) 0%,
        transparent 50%,
        rgba(79, 195, 247, 0.1) 100%
    );
    pointer-events: none;
}

.section-title {
    font-family: var(--font-main);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* 网格布局 - 未来感卡片 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: rgba(58, 90, 120, 0.3);
    border: 1px solid var(--primary);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), var(--neon-glow);
    border-color: var(--accent);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--primary);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-main);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 1rem;
}

/* 分类标签 - 未来感 */
.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid var(--accent);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: var(--font-main);
    letter-spacing: 1px;
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.article-title {
    font-family: var(--font-main);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    letter-spacing: 1px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    border: 1px solid var(--primary);
}

/* 分页导航 - 科技感 */
.tech-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-link {
    padding: 0.8rem 1.5rem;
    background: rgba(58, 90, 120, 0.5);
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-family: var(--font-main);
    color: var(--light);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.pagination-link:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    box-shadow: var(--neon-glow);
}

/* 友情链接 - 科技感 */
.tech-links {
    margin: 2rem 0;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.link-item {
    padding: 0.5rem 1.2rem;
    background: rgba(58, 90, 120, 0.3);
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.link-item:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    box-shadow: var(--neon-glow);
}

/* 页脚 - 科技感 */
.tech-footer {
    background: rgba(26, 42, 58, 0.9);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid var(--primary);
    position: relative;
}

.tech-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.copyright {
    font-family: var(--font-main);
    letter-spacing: 1px;
    color: var(--secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* 未来科技感动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tech-card:hover {
    animation: float 3s ease-in-out infinite;
}

/* 数字粒子背景效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233a5a78' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.5;
}