
/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0A1F3C, #8A2BE2);
    color: #fff;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #FF6F61;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

p, li {
    color: #BEBEBE;
    font-size: 1rem;
}

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

a:hover {
    color: #FF5733;
}

/* 布局容器 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 20px;
}

.card {
    background: linear-gradient(45deg, #0A1F3C, #8A2BE2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

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

.button:hover {
    background-color: #FF5733;
}

/* 文章样式 */
article {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 12px;
    max-width: 900px;
    margin: 20px auto;
}

article pre {
    background: #0A1F3C;
    color: #FF6F61;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

/* 背景效果 */
.circuit-board {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0A1F3C, #8A2BE2);
    pointer-events: none;
}

.circuit-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    article {
        padding: 15px;
    }
}

