
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #000D4A 0%, #333333 100%);
    color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

a {
    color: #00FFFF;
    text-decoration: none;
}

a[rel="nofollow"]::after {
    content: "";
}

pre {
    background: #1E1E1E;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #FFD700;
}

.background-gradient {
    background: linear-gradient(180deg, #000D4A 0%, #333333 100%);
    height: 100vh;
    position: relative;
}

header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.5);
}

section {
    padding: 100px 20px;
    min-height: 100vh;
    position: relative;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.scroll-layer {
    position: relative;
    animation: scrollEffect 10s infinite alternate;
}

@keyframes scrollEffect {
    from { transform: translateY(0); }
    to { transform: translateY(-50px); }
}

.button {
    background-color: #007BFF;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

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

.geometric-shape {
    width: 100px;
    height: 100px;
    background-color: #FFFFFF;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    margin: 20px auto;
}

.lazy-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: block;
    margin: 0 auto 20px;
}

.lazy-image.loaded {
    opacity: 1;
}

@media (max-width: 1440px) {
    section {
        padding: 80px 15px;
    }
}

@media (max-width: 1200px) {
    header {
        padding: 40px 15px;
    }
}

@media (max-width: 1024px) {
    .button {
        padding: 12px 25px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 20px;
    }
    h2 {
        font-size: 18px;
    }
    h3 {
        font-size: 16px;
    }
    .button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    position: relative;
}

footer p {
    font-size: 14px;
}

.hide-description img {
    alt: "";
}

.code-highlight {
    background: #1E1E1E;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #555;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 12px;
    pointer-events: none;
}

.tooltip:hover::after {
    opacity: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
}

