
/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h1 {
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    color: #ffffff;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #8a2be2;
}
.sidebar {
    position: fixed;
    left: 20px;
    top: 80px;
    width: 200px;
}
.sidebar ul {
    list-style: none;
}
.sidebar ul li {
    margin-bottom: 15px;
}
.sidebar ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.sidebar ul li a:hover {
    color: #8a2be2;
}
.main {
    margin: 100px 40px 40px 260px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.section img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}
.section h2 {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    margin-bottom: 10px;
    color: #8a2be2;
}
.section p {
    font-size: 16px;
    color: #ffffff;
}
.call-to-action {
    grid-column: span 2;
    text-align: center;
}
.call-to-action button {
    background: #8a2be2;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.call-to-action button:hover {
    background: #5d149d;
    transform: scale(1.1);
}
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    bottom: 0;
    width: 100%;
}
.footer p {
    font-size: 14px;
    color: #ffffff;
}
.sample-content {
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.sample-content h2 {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    margin-bottom: 15px;
    color: #8a2be2;
}
.sample-content article {
    margin-bottom: 30px;
}
.sample-content article h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
.sample-content article h3 {
    font-size: 18px;
    margin-top: 20px;
    color: #8a2be2;
}
.sample-content article pre {
    background: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
.sample-content article code {
    color: #ff9800;
}
.sample-data {
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.sample-data h2 {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    margin-bottom: 15px;
    color: #8a2be2;
}
.sample-data ul {
    list-style: disc inside;
}
.sample-data ul li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #ffffff;
}
.highlight {
    color: #ff9800;
}
.responsive {
    display: flex;
    flex-wrap: wrap;
}
.responsive .section {
    flex: 1 1 100%;
    margin: 10px 0;
}
@media (min-width: 480px) {
    .responsive .section {
        flex: 1 1 45%;
    }
}
@media (min-width: 768px) {
    .main {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .responsive .section {
        flex: 1 1 30%;
    }
}
@media (min-width: 1024px) {
    .main {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}
@media (min-width: 1200px) {
    .main {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
}
@media (min-width: 1440px) {
    .main {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 320px) {
    header {
        padding: 10px 20px;
    }
    nav ul li {
        margin-left: 10px;
    }
    .sidebar {
        display: none;
    }
    .main {
        margin: 80px 20px 20px 20px;
        grid-template-columns: 1fr;
    }
}
.dynamic-effect {
    position: relative;
    overflow: hidden;
}
.dynamic-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.5), transparent);
    animation: rotate 10s linear infinite;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.code-block {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 10px;
}
.code-block code {
    color: #ff9800;
    font-family: 'Courier New', Courier, monospace;
}
.prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(138, 43, 226, 0.8);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

