/* 未来科技感主题 */
:root {
    --primary-color: #00f7ff;
    --secondary-color: #ff00f7;
    --dark-color: #0a0a1a;
    --darker-color: #050510;
    --light-color: #e0e0ff;
    --text-color: #ffffff;
    --accent-color: #00ff9d;
    --neon-glow: 0 0 10px rgba(0, 247, 255, 0.7);
    --card-bg: rgba(15, 15, 30, 0.7);
    --header-bg: rgba(10, 10, 25, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
}

@font-face {
    font-family: 'Orbitron';
    src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
}

@font-face {
    font-family: 'Rajdhani';
    src: url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;500;700&display=swap');
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 247, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 247, 0.05) 0%, transparent 20%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-color);
    text-shadow: var(--neon-glow);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 未来感头部样式 */
header {
    background-color: var(--header-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容区域 - 未来科技卡片 */
.main-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(0, 247, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 247, 255, 0.03) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    animation: shine 10s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
    position: relative;
    color: var(--light-color);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 网格布局文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 247, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 247, 255, 0.3);
    border-color: var(--primary-color);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image {
    transform: scale(1.1);
}

.card-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(10, 10, 25, 0.9), transparent);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--light-color);
    font-family: 'Rajdhani', sans-serif;
}

.card-excerpt {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 20px;
    font-family: 'Rajdhani', sans-serif;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(0, 247, 255, 0.2);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--light-color);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-family: 'Rajdhani', sans-serif;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
    font-family: 'Rajdhani', sans-serif;
}

.article-content p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.article-content h2, 
.article-content h3 {
    color: var(--light-color);
    margin: 30px 0 20px;
    font-family: 'Orbitron', sans-serif;
}

.article-content h2 {
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
    padding-bottom: 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    border: 1px solid rgba(0, 247, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* 分页导航 - 未来感按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    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(0, 247, 255, 0.4), transparent);
    transition: all 0.5s;
}

.pagination a:hover {
    background-color: rgba(0, 247, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 未来感标签 */
.friend-links {
    background: rgba(15, 15, 30, 0.7);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(0, 247, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--light-color);
    font-size: 22px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    background-color: rgba(0, 247, 255, 0.1);
    border-radius: 30px;
    font-size: 15px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.friend-links-container a:hover {
    background-color: rgba(0, 247, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
    transform: translateY(-3px);
}

/* 页脚样式 - 科技感底部 */
footer {
    background-color: var(--darker-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 247, 255, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.copyright {
    font-size: 15px;
    color: var(--secondary-color);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .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;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}

/* 未来科技感动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulsing {
    animation: pulse 2s ease-in-out infinite;
}