
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1B5E20, #81C784);
    color: #333333;
    line-height: 1.6;
    padding: 20px;
    animation: background-animate 15s linear infinite;
}

@keyframes background-animate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1B5E20;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #555555;
}

.notice {
    text-align: center;
    font-size: 1rem;
    color: #FFEB3B;
    margin-bottom: 20px;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

.main-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.main-content h2, .main-content h3 {
    font-family: 'Playfair Display', serif;
    color: #1B5E20;
    margin-bottom: 15px;
}

.main-content p {
    margin-bottom: 15px;
    color: #333333;
}

.main-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.main-content code {
    font-family: 'Courier New', Courier, monospace;
    color: #d6336c;
}

.sidebar {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.sidebar h3 {
    font-family: 'Playfair Display', serif;
    color: #1B5E20;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    background: #81C784;
    color: #ffffff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.sidebar ul li:hover {
    background: #66BB6A;
    cursor: pointer;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.footer p {
    color: #555555;
    font-size: 0.9rem;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1B5E20;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2E7D32;
}

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

.button:hover::before {
    width: 200%;
    height: 200%;
}

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

    .main-content, .sidebar {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .container {
        grid-template-columns: 3fr 1fr;
    }

    .main-content {
        padding: 30px;
    }

    .sidebar {
        padding: 25px;
    }
}

@media (min-width: 1440px) {
    header h1 {
        font-size: 3rem;
    }

    .main-content h2 {
        font-size: 2rem;
    }

    .main-content h3 {
        font-size: 1.5rem;
    }
}

article {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
}

article h2 {
    font-family: 'Playfair Display', serif;
    color: #1B5E20;
    margin-bottom: 10px;
}

article p {
    margin-bottom: 10px;
    color: #333333;
}

article pre {
    background: #f0f0f0;
    padding: 10px;
    border-left: 4px solid #1B5E20;
    overflow-x: auto;
    margin-bottom: 10px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #d6336c;
}

.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

button {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

a {
    color: #1B5E20;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a[rel="nofollow"]::after {
    content: '';
}

.icon {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin-right: 10px;
}

svg {
    width: 50px;
    height: 50px;
}

.highlight {
    color: #FFEB3B;
    font-weight: bold;
}

.card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.card-content {
    padding: 10px;
}

.card-content h4 {
    font-family: 'Playfair Display', serif;
    color: #1B5E20;
    margin-bottom: 10px;
}

.card-content p {
    color: #555555;
    font-size: 0.9rem;
}

@media (min-width: 1200px) {
    .image-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

