/* 未来科技感主题 - 赛博橙为主色调 */
:root {
    --cyber-orange: #ff6b35;
    --cyber-blue: #00a8e8;
    --cyber-dark: #0d1b2a;
    --cyber-light: #e2e2e2;
    --cyber-accent: #ff9e00;
    --cyber-text: #ffffff;
    --cyber-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    --cyber-glow: 0 0 10px rgba(0, 168, 232, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Arial Narrow', 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(--cyber-dark);
    color: var(--cyber-text);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 168, 232, 0.1) 0%, transparent 20%);
}

a {
    text-decoration: none;
    color: var(--cyber-orange);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cyber-accent);
    text-shadow: var(--cyber-glow);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 赛博朋克风格头部 */
header {
    background-color: rgba(13, 27, 42, 0.9);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--cyber-orange);
    box-shadow: var(--cyber-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--cyber-orange), var(--cyber-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    border: 1px solid transparent;
    border-image: linear-gradient(to right, var(--cyber-orange), var(--cyber-blue)) 1;
    font-weight: 500;
    letter-spacing: 1px;
}

nav ul li a:hover {
    background: rgba(255, 107, 53, 0.2);
    border-image: linear-gradient(to right, var(--cyber-accent), var(--cyber-blue)) 1;
}

/* 未来科技感主要内容区 */
.main-content {
    background: rgba(13, 27, 42, 0.8);
    border: 1px solid var(--cyber-orange);
    border-image: linear-gradient(to right, var(--cyber-orange), transparent) 1;
    padding: 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 168, 232, 0.05) 100%);
    pointer-events: none;
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cyber-orange);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--cyber-orange), var(--cyber-blue));
}

/* 网格数据块布局 */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.data-card {
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid var(--cyber-blue);
    border-radius: 0;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, transparent 45%, rgba(255, 107, 53, 0.1) 50%, transparent 55%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cyber-shadow);
    border-color: var(--cyber-orange);
}

.data-card:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { left: -50%; top: -50%; }
    100% { left: 150%; top: 150%; }
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 1px solid var(--cyber-blue);
    filter: grayscale(30%) contrast(120%);
    transition: all 0.3s ease;
}

.data-card:hover .card-image {
    filter: grayscale(0%) contrast(100%);
    border-color: var(--cyber-orange);
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--cyber-light);
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--cyber-orange);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
    color: var(--cyber-blue);
}

/* 分类标签 */
.cyber-tag {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(to right, var(--cyber-dark), var(--cyber-blue));
    color: white;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-left: 3px solid var(--cyber-orange);
}

/* 文章详情页 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(to right, var(--cyber-orange), var(--cyber-blue), var(--cyber-orange));
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--cyber-orange), var(--cyber-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    color: var(--cyber-blue);
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin: 30px 0;
    border: 1px solid var(--cyber-blue);
    box-shadow: var(--cyber-shadow);
    filter: contrast(110%);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
    position: relative;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--cyber-orange);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid var(--cyber-blue);
    color: var(--cyber-text);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 107, 53, 0.3), transparent);
    transition: all 0.5s ease;
}

.pagination a:hover {
    border-color: var(--cyber-orange);
    color: var(--cyber-accent);
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 */
.friend-links {
    background: rgba(13, 27, 42, 0.8);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--cyber-blue);
    position: relative;
}

.friend-links::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 168, 232, 0.05) 100%);
    pointer-events: none;
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--cyber-light);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 20px;
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid var(--cyber-blue);
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--cyber-orange);
    color: var(--cyber-accent);
}

/* 页脚样式 */
footer {
    background-color: #0a1622;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid var(--cyber-orange);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--cyber-orange), var(--cyber-blue), var(--cyber-orange));
}

.copyright {
    font-size: 14px;
    color: var(--cyber-blue);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .data-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .article-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}