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

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background: linear-gradient(to bottom, #f5f5dc, #8b9467);
    line-height: 1.6;
    padding: 20px;
}

header {
    text-align: center;
    padding: 50px 20px;
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, rgba(255,165,0,0) 70%);
    color: #fff;
    border-radius: 15px;
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffcc00;
}

header p {
    font-size: 1.2em;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

section {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    margin-bottom: 15px;
    color: #8b9467;
}

section p {
    margin-bottom: 15px;
}

pre {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

code {
    font-size: 1em;
    color: #d63384;
}

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

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

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

th {
    background-color: #8b9467;
    color: #fff;
}

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

footer {
    text-align: center;
    padding: 20px;
    background: radial-gradient(circle, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%);
    color: #fff;
    border-radius: 15px;
    margin-top: 40px;
}

a {
    color: #ff9900;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #cc7a00;
}

button {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }
}

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

@media (max-width: 1024px) {
    section {
        padding: 20px;
    }

    table, th, td {
        font-size: 0.9em;
    }
}

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

    header h1 {
        font-size: 2em;
    }

    section h2 {
        font-size: 1.5em;
    }

    button {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    section h2 {
        font-size: 1.3em;
    }

    pre {
        font-size: 0.9em;
    }
}

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

    header h1 {
        font-size: 1.5em;
    }

    section h2 {
        font-size: 1.1em;
    }

    button {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

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

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

/* 表格样式优化 */
table th, table td {
    border: 1px solid #ccc;
}

table th {
    background-color: #8b9467;
    color: #fff;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 链接样式 */
a[rel="nofollow"] {
    /* 无特殊样式 */
}

