
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: radial-gradient(circle, rgba(0,123,255,1) 0%, rgba(255,255,255,1) 100%);
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: background 0.5s ease;
}

.navbar a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #FF5733;
}

.navbar a.active {
    color: #FF5733;
}

/* 主要内容 */
.container {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: auto;
}

.hero-section {
    height: 100vh;
    background: linear-gradient(to right, #007BFF, #6A1B9A);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInDown 2s ease-out;
}

.hero-section p {
    font-size: 1.2em;
    max-width: 600px;
    animation: fadeInUp 2s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文章内容 */
article {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

article h2, article h3, article h4 {
    font-family: 'Poppins', sans-serif;
    color: #007BFF;
    margin-top: 20px;
}

article pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #007BFF;
    color: white;
}

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

.button:hover {
    background: #6A1B9A;
    transform: scale(1.05);
}

/* 图像样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* 动画与视觉效果 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.parallax {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    height: 400px;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .hero-section h1 {
        font-size: 2.5em;
    }
}

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

@media (max-width: 1024px) {
    .navbar {
        padding: 15px;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }
}

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

    .navbar a {
        margin: 0 10px;
        font-size: 0.9em;
    }

    article {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5em;
    }

    .hero-section p {
        font-size: 0.9em;
    }

    .navbar {
        flex-direction: column;
    }

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

@media (max-width: 320px) {
    .hero-section h1 {
        font-size: 1.2em;
    }

    .hero-section p {
        font-size: 0.8em;
    }

    article {
        padding: 15px;
    }
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-top: 20px;
}

