
/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    background-size: cover;
    animation: backgroundMove 30s ease infinite;
}

@keyframes backgroundMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.3), transparent);
    animation: auroraMove 15s linear infinite;
    z-index: 0;
}

@keyframes auroraMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content {
    position: relative;
    z-index: 1;
}

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

h2 {
    font-size: 2em;
}

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

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

p {
    margin-bottom: 20px;
    color: #dddddd;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
}

code {
    color: #ff9800;
    font-family: 'Roboto', sans-serif;
}

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

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

th {
    background: rgba(255, 87, 34, 0.8);
    color: #ffffff;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

a {
    color: #5b86e5;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff9800;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -3px;
}

a:hover::after {
    width: 100%;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #1de9b6;
    color: #000000;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, background 0.3s;
    cursor: pointer;
    text-decoration: none;
}

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

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

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
}

.image-grid img:hover {
    transform: scale(1.05);
}

.footer-note {
    text-align: center;
    font-size: 0.9em;
    color: #bbbbbb;
    margin-top: 30px;
}

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

@media (max-width: 1200px) {
    .container {
        padding: 30px;
    }
}

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

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.75em;
    }

    h3 {
        font-size: 1.5em;
    }

    h4 {
        font-size: 1.25em;
    }
}

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

    .container {
        padding: 20px;
    }

    pre {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.25em;
    }

    h4 {
        font-size: 1em;
    }

    pre {
        font-size: 0.7em;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    h4 {
        font-size: 0.9em;
    }

    pre {
        font-size: 0.6em;
    }
}

/* 动态网络节点 */
.network-node {
    width: 15px;
    height: 15px;
    background: #1de9b6;
    border-radius: 50%;
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* 标记为示例展示 */
.sample-display {
    border: 2px dashed #ff9800;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.sample-display::before {
    content: '示例展示';
    display: block;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 10px;
}

