
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0d0d34, #3a1c71, #d76d77, #ffaf7b);
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    position: relative;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ff6f61;
    text-shadow: 2px 2px #0d0d34;
}

header p {
    font-size: 1.2em;
    color: #ffffff;
    text-shadow: 1px 1px #3a1c71;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffaf7b;
}

/* 卡片容器 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.card:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.4);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 0 0 10px 0;
    color: #ffaf7b;
}

.card-content p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #ffffff;
}

.card-content .tags {
    margin: 15px 0;
}

.card-content .tags span {
    background: #3a1c71;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 0.8em;
}

.card-content a.button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6f61;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.card-content a.button:hover {
    background: #d76d77;
}

/* 示例文章样式 */
.article-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
}

.article-section h2 {
    text-align: center;
    color: #ff6f61;
    margin-bottom: 20px;
}

.article-section h3 {
    color: #ffaf7b;
    margin-top: 20px;
}

.article-section p {
    line-height: 1.8;
    margin: 15px 0;
}

.article-section pre {
    background: #1cb5e0;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.article-section code {
    color: #000;
    font-family: 'Courier New', Courier, monospace;
}

/* 提示样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    font-size: 1em;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .card img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    nav a {
        font-size: 0.9em;
    }

    .card-content h3 {
        font-size: 1.1em;
    }

    .footer {
        font-size: 0.9em;
    }
}

