
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #4567b7, #6a5acd);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
    color: #ff9800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 28px;
    color: #f4a460;
}

h3 {
    font-size: 24px;
    color: #ffa500;
}

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

a:hover {
    color: #ffcc00;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff9800;
    color: #fff;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

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

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 文章样式 */
.article {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
}

.article h2 {
    color: #ffeb3b;
}

.article p {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
}

.article pre {
    background: #1e1e1e;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
}

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

.article th, .article td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.article th {
    background: #ff9800;
    color: #fff;
}

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

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

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

    .article pre {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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