
/* 基础样式与页面布局 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #8B4513, #556B2F);
    color: #fff;
    line-height: 1.6;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

h1, h2, h3 {
    font-family: 'Impact', sans-serif;
    color: #FFA500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 1rem;
    color: #f4f4f4;
    margin-bottom: 1.5rem;
}

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

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

button {
    background: linear-gradient(to bottom, #CD853F, #8B4513);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

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

pre {
    background: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 24px;
    }
}

/* 动画效果 */
@keyframes crtEffect {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

body {
    animation: crtEffect 1s ease-in-out;
}

/* 装饰性图片 */
.decorative-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

/* 提示文字样式 */
.tip {
    text-align: center;
    font-size: 14px;
    color: #ccc;
    margin-top: 20px;
}

