
/* CSS 样式代码块 */
body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background: linear-gradient(to bottom, #1a257e, #4c3890);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #ff7f00;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

p {
    font-size: 16px;
    margin-bottom: 1.2em;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ff7f00;
    transform: scale(1.1);
}

.metal {
    background: linear-gradient(45deg, #808080, #c0c0c0);
    box-shadow: inset 0 0 10px #ffffff, 0 0 10px #000000;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.cube {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
    margin: 20px auto;
}

.cube div {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

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

.image-box {
    position: relative;
    margin-bottom: 20px;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.image-box::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    border-radius: 10px;
}

.code-preview {
    background: #1e1e1e;
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    h1, h2, h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 14px;
    }

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

@media (max-width: 480px) {
    .navbar a {
        font-size: 16px;
    }

    .image-box img {
        border-radius: 5px;
    }
}

