
/* 全局样式与配色 */
:root {
    --primary-color: #1e3c3a;
    --secondary-color: #ff9f43;
    --accent-color: #2a9d8f;
    --text-color: #333;
    --bg-gradient: linear-gradient(135deg, #e6d5b8, #d4a5a5);
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ddd;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--accent-color);
}

section {
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

article {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

ul, ol {
    padding-left: 20px;
    margin: 10px 0;
}

pre {
    background: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

th {
    background: var(--secondary-color);
    color: white;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button:hover {
    background: var(--accent-color);
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
}

.button:hover::before {
    animation: glow 0.5s ease-out;
}

@keyframes glow {
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    pre {
        font-size: 0.9rem;
    }

    section {
        padding: 15px;
    }
}

