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

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    background: linear-gradient(135deg, #1A1A1A, #333333);
    color: #F5F5F5;
    line-height: 1.6;
    padding: 20px;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #00FFFF;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    font-weight: bold;
}

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

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

p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #F5F5F5;
}

a {
    color: #39FF14;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #39FF14;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

pre, code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

table th {
    background: #00FFFF;
    color: #1A1A1A;
}

.button-primary, .button {
    display: inline-block;
    background: linear-gradient(135deg, #00FFFF, #39FF14);
    color: #1A1A1A;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    font-weight: bold;
}

.button-primary:hover, .button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #39FF14, #00FFFF);
}

.card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
}

img {
    max-width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

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

.aurora-background {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

.code-preview {
    background: #1A1A1A;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-preview code {
    color: #39FF14;
    font-size: 0.9em;
}

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

@media (max-width: 1200px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1024px) {
    .card {
        padding: 15px;
    }
    h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.8em;
    }
    .button-primary, .button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.5em;
    }
    .card {
        padding: 10px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.2em;
    }
    h2 {
        font-size: 1.2em;
    }
    .button-primary, .button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

