
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #FAF8E6, #f0e7d5);
    color: #0F2027;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    margin-top: 20px;
}

p {
    color: #2E4053;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #FFD700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

code {
    background-color: #2E4053;
    color: #FFD700;
    padding: 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background-color: #0F2027;
    color: #FFD700;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

th {
    background-color: #FFD700;
    color: #0F2027;
}

/* 头部设计 */
header {
    background: linear-gradient(135deg, #2E4053, #0F2027);
    color: #FFD700;
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: rgba(255, 215, 0, 0.1);
    transform: rotate(45deg);
    animation: headerGradient 10s infinite alternate;
}

@keyframes headerGradient {
    from { transform: rotate(45deg); }
    to { transform: rotate(-45deg); }
}

header h1 {
    font-size: 2.5em;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.navbar a {
    padding: 10px 15px;
    background-color: #FFD700;
    color: #0F2027;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: #2E4053;
    color: #FFD700;
    transform: scale(1.1);
}

/* 主体内容区域 */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 40px;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(135deg, #FAF8E6, #f0e7d5);
    border: 2px solid #2E4053;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 按钮样式 */
button {
    background-color: #FFD700;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

button:hover {
    transform: scale(1.1);
}

/* 动画效果 */
.loader {
    animation: bootUp 2s ease-in-out;
}

@keyframes bootUp {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.alert {
    background-color: #0F2027;
    color: #FFD700;
    padding: 10px;
    margin: 20px 0;
    border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .container {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 0.8em;
    }
}

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

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    code {
        font-size: 0.8em;
    }
}

