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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #001f3f, #0074D9);
    color: #ffffff;
    overflow-x: hidden;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-family: 'Futura', sans-serif;
    color: #ffeb3b;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 40px;
}

h2 {
    font-size: 2em;
    margin-top: 60px;
}

h3 {
    font-size: 1.75em;
    margin-top: 40px;
}

h4 {
    font-size: 1.5em;
    margin-top: 30px;
}

p {
    margin-bottom: 20px;
    font-size: 1em;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

th {
    background-color: rgba(255, 255, 255, 0.2);
}

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

a:hover {
    text-decoration: underline;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 31, 63, 0.9);
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    margin: 0 10px;
    color: #ffeb3b;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.95);
    transition: right 0.3s ease-in-out;
    padding: 20px;
    z-index: 999;
}

.sidebar.open {
    right: 0;
}

.sidebar a {
    display: block;
    margin-bottom: 15px;
    color: #00bcd4;
}

.content {
    max-width: 1200px;
    margin: 100px auto 50px auto;
    padding: 20px;
    background: rgba(0, 31, 63, 0.8);
    border-radius: 10px;
}

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

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

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

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

.image-grid img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

@media (max-width: 1440px) {
    .content {
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .content {
        max-width: 900px;
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 15px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.4em;
    }
}

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

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.2em;
    }

    .navbar a {
        margin: 0 5px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.2em;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* 视觉冲击性元素 */
.quantum-bit {
    width: 100px;
    height: 100px;
    background: #00bcd4;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: rotate 10s linear infinite;
    margin: 20px auto;
}

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

/* 数据展示样式 */
.data-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.data-display h2 {
    color: #ffeb3b;
    text-align: center;
    margin-bottom: 20px;
}

.code-example {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 31, 63, 0.9);
    border-radius: 10px;
    margin-top: 50px;
    font-size: 0.9em;
    color: #ffffff;
}

