/* 未来科技感主题 - 赛博橙为主色调 */
:root {
    --primary-color: #FF6B35; /* 赛博橙 */
    --secondary-color: #00A6FB;
    --dark-color: #0A0A0A;
    --darker-color: #121212;
    --light-color: #E5E5E5;
    --text-color: #CCCCCC;
    --accent-color: #FF9F1C;
    --neon-glow: 0 0 10px rgba(255, 107, 53, 0.7);
    --grid-line: 1px solid rgba(255, 107, 53, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
}

@font-face {
    font-family: 'Orbitron';
    src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 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="%23FF6B35" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
}

a {
    text-decoration: none;
    color: var(--light-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
}

/* 未来科技感头部 */
header {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--grid-line);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 2rem;
    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), transparent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    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(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::before {
    width: 100%;
}

/* 主要内容区域 - 网格科技感 */
.main-content {
    background-color: rgba(18, 18, 18, 0.7);
    border: var(--grid-line);
    border-radius: 0;
    padding: 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.05), rgba(255, 107, 53, 0.05)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><line x1="0" y1="0" x2="100" y2="0" stroke="%23FF6B35" stroke-width="0.3"/><line x1="0" y1="50" x2="100" y2="50" stroke="%23FF6B35" stroke-width="0.3"/><line x1="0" y1="100" x2="100" y2="100" stroke="%23FF6B35" stroke-width="0.3"/></svg>');
    background-size: 100% 100px;
    z-index: -1;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 3D卡片式文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(10, 10, 10, 0.9));
    border: var(--grid-line);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.5s, box-shadow 0.5s;
    transform-style: preserve-3d;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.article-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
}

.card-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .card-image {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
    position: relative;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--light-color);
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.article-card:hover .card-title::after {
    width: 100%;
}

.card-excerpt {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-top: 20px;
    border-top: var(--grid-line);
    padding-top: 15px;
}

/* 分类标签 - 未来感 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
    border-radius: 0;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-color);
}

/* 文章详情页样式 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--primary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    border: var(--grid-line);
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-image-container:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -25px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border: var(--grid-line);
}

/* 分页导航 - 未来感 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    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(255, 107, 53, 0.3), transparent);
    transition: all 0.5s ease;
}

.pagination a:hover {
    background-color: rgba(255, 107, 53, 0.3);
    color: var(--light-color);
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 网格科技感 */
.friend-links {
    background-color: rgba(18, 18, 18, 0.7);
    border: var(--grid-line);
    padding: 30px;
    margin: 40px 0;
    position: relative;
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--light-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.friend-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.friend-links-container a {
    padding: 10px;
    background-color: rgba(255, 107, 53, 0.05);
    border: var(--grid-line);
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
}

/* 页脚样式 - 科技感 */
footer {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: var(--grid-line);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .article-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .friend-links-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}