
/* 全局样式定义 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4A3F35 0%, #383838 100%);
    color: #EDE7D9;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #D4AF37;
    text-align: center;
    margin-bottom: 20px;
}

p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}

pre {
    background-color: #333333;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 20px 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #B8860B;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: rgba(56, 56, 56, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #D4AF37;
}

.card-description {
    font-size: 0.9rem;
    color: #EDE7D9;
}

/* 粒子效果 */
.particle-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: particleMove 10s infinite linear;
    pointer-events: none;
}

@keyframes particleMove {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 按钮样式 */
.button {
    background-color: #D4AF37;
    color: #333333;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #B8860B;
    transform: scale(1.1);
}

/* 自适应布局 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 0.8rem;
    }

    h1, h2, h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

