
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace, 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.2));
    border-radius: 10px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header p {
    font-size: 1.2em;
    color: #e0e0e0;
}

/* 文章样式 */
article {
    margin-bottom: 40px;
}

article h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ff6f61;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

article h3 {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ffcc00;
}

article h4 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #66ccff;
}

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

article ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

article ul li {
    margin-bottom: 10px;
}

article pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    color: #00ff00;
}

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

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

article th, article td {
    padding: 10px;
    text-align: left;
    color: #ffffff;
}

article th {
    background-color: rgba(255, 255, 255, 0.2);
}

figure {
    margin: 20px 0;
    text-align: center;
}

figure img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

figure img:hover {
    transform: scale(1.05);
}

figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #cccccc;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #ff6f61;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #ff8a80;
    transform: scale(1.05);
}

/* 链接样式 */
a {
    color: #66ccff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffcc00;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.2em;
    }
    article h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
    header h1 {
        font-size: 2em;
    }
    article h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 40px 15px;
    }
    article h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    article h2 {
        font-size: 1.4em;
    }
    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    article h3 {
        font-size: 1.4em;
    }
    article p, article ul, article pre, article table {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2em;
    }
    .container {
        padding: 10px;
    }
    article h2 {
        font-size: 1.2em;
    }
    article h3 {
        font-size: 1.2em;
    }
    .button {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

/* 动画与过渡 */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 提示信息样式 */
.alert {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 1em;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

