/* 未来科技感 - 浆果红色调主题 */
:root {
    --primary-color: #ff2d55; /* 浆果红 */
    --secondary-color: #ff5c7f;
    --dark-color: #0a0a12;
    --darker-color: #050508;
    --light-color: #f0f0fa;
    --text-color: #e0e0ff;
    --accent-color: #00e1ff; /* 科技蓝作为点缀 */
    --neon-glow: 0 0 10px rgba(255, 45, 85, 0.7);
    --font-main: 'Orbitron', 'Arial', sans-serif;
    --font-secondary: 'Rajdhani', 'Arial', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 45, 85, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 225, 255, 0.1) 0%, transparent 20%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent-color);
    text-shadow: var(--neon-glow);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 未来科技感头部 */
header {
    background-color: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(8px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 45, 85, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-main);
    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;
    text-transform: uppercase;
    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: 30px;
}

nav ul li a {
    font-family: var(--font-main);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    position: relative;
    font-size: 16px;
    letter-spacing: 1px;
}

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: rgba(10, 10, 18, 0.7);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(255, 45, 85, 0.2);
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(255, 45, 85, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(255, 45, 85, 0.05) 0%, transparent 50%),
        linear-gradient(-135deg, rgba(0, 225, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-family: var(--font-main);
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 45, 85, 0.3);
    color: var(--light-color);
    letter-spacing: 1px;
    position: relative;
    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);
}

/* 未来科技网格布局 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    background: rgba(15, 15, 25, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 45, 85, 0.2);
    position: relative;
}

.tech-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(255, 45, 85, 0.3),
        0 0 20px rgba(0, 225, 255, 0.2);
    border-color: rgba(255, 45, 85, 0.5);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tech-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 45, 85, 0.2);
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.tech-card:hover .tech-image {
    filter: grayscale(0%);
}

.tech-body {
    padding: 25px;
}

.tech-title {
    font-family: var(--font-main);
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--light-color);
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-oright: vertical;
    overflow: hidden;
    position: relative;
}

.tech-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.tech-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 20px;
    font-family: var(--font-main);
}

.tech-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分类标签 - 未来科技感 */
.tech-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 45, 85, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-family: var(--font-main);
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--neon-glow);
}

/* 文章详情页 - 未来科技风格 */
.tech-article {
    max-width: 900px;
    margin: 0 auto;
}

.tech-article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.tech-article-title {
    font-family: var(--font-main);
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--light-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.tech-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));
}

.tech-article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-family: var(--font-main);
}

.tech-article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 45, 85, 0.3);
    box-shadow: 
        0 0 30px rgba(255, 45, 85, 0.2),
        0 0 20px rgba(0, 225, 255, 0.1);
}

.tech-article-content {
    line-height: 1.9;
    font-size: 18px;
    font-family: var(--font-secondary);
}

.tech-article-content p {
    margin-bottom: 25px;
}

.tech-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid rgba(255, 45, 85, 0.2);
}

/* 分页导航 - 未来科技风格 */
.tech-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.tech-pagination a {
    padding: 12px 25px;
    border-radius: 6px;
    background: rgba(255, 45, 85, 0.1);
    border: 1px solid var(--primary-color);
    font-family: var(--font-main);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    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(255, 45, 85, 0.3), transparent);
    transition: all 0.6s ease;
}

.tech-pagination a:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--neon-glow);
}

.tech-pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 未来科技风格 */
.tech-links {
    background: rgba(15, 15, 25, 0.8);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(255, 45, 85, 0.2);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(255, 45, 85, 0.1);
}

.tech-links h3 {
    font-family: var(--font-main);
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--light-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tech-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-links-container a {
    padding: 10px 20px;
    background: rgba(255, 45, 85, 0.1);
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    font-family: var(--font-main);
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tech-links-container a:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--neon-glow);
    transform: translateY(-3px);
}

/* 页脚 - 未来科技风格 */
footer {
    background-color: var(--darker-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 45, 85, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.copyright {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .tech-article-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-article-title {
        font-size: 26px;
    }
    
    .tech-article-meta {
        gap: 15px;
    }
    
    .main-content {
        padding: 30px;
    }
}