/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* 头部样式 */
header {
    background-color: #2d8f36;
    color: white;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 2rem;
}

.logo img {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

nav {
    padding-right: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

/* 英雄区域 */
.hero {
    background-image: url('picture/1.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 直播稻田区域 */
.live-rice-field {
    padding: 3rem 2rem;
    text-align: center;
    background-color: white;
    margin: 2rem 0;
}

.live-rice-field h2 {
    font-size: 2rem;
    color: #2d8f36;
    margin-bottom: 2rem;
}

#observe-btn {
    background-color: #2d8f36;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

#observe-btn:hover {
    background-color: #23752c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#rice-field-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.rice-field-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.rice-field-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 内容区域 */
.content {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.copywriting {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.copywriting h3 {
    font-size: 1.8rem;
    color: #2d8f36;
    margin-bottom: 1.5rem;
    text-align: center;
}

.copywriting p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

.copywriting p:first-of-type {
    font-weight: bold;
    color: #333;
}

/* 页脚 */
footer {
    background-color: #2d8f36;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
}

.contact {
    margin-bottom: 1rem;
    text-align: center;
}

.contact p {
    margin-bottom: 0.5rem;
}

.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    width: 100%;
    max-width: 600px;
}

.public-security-beian {
    background-color: #1a5f22;
    padding: 1rem;
    border-radius: 5px;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

.icp {
    background-color: #1a5f22;
    padding: 1rem;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

.public-security-beian a,
.icp a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-image {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.public-security-beian a:hover,
.icp a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        text-align: center;
        padding-left: 0;
    }

    .logo img {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    nav {
        position: static;
        transform: none;
        margin-top: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .contact {
        margin-bottom: 1rem;
    }

    #rice-field-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .live-rice-field h2 {
        font-size: 1.5rem;
    }

    #observe-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .copywriting h3 {
        font-size: 1.5rem;
    }

    .content {
        padding: 2rem 1rem;
    }

    .copywriting {
        padding: 1.5rem;
    }
}