/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 农业科技主题导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #8d6e63 0%, #5d4037 50%, #3e2723 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(93, 64, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8bc34a, #689f38, #558b2f, #8bc34a);
    background-size: 200% 100%;
    animation: cropWave 3s ease-in-out infinite;
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #90ee90;
    text-shadow: 0 0 5px rgba(144, 238, 144, 0.5);
}

/* 汉堡菜单样式 - 默认隐藏 */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: white;
}

/* 农业科技主题英雄区域样式 */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #a5d6a7 0%, #66bb6a 50%, #388e3c 100%);
    color: white;
    margin: 2rem 0;
    border-radius: 20px;
    border: 3px solid #2e7d32;
    box-shadow: 0 12px 30px rgba(56, 142, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(139, 195, 74, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 45% 85%, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
    animation: cropFloat 10s ease-in-out infinite;
}

@keyframes cropFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(0.5deg); }
    66% { transform: translateY(4px) rotate(-0.5deg); }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* 农业科技主题文章分类样式 */
.game-categories {
    margin: 2rem 0;
}

.category {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(141, 110, 99, 0.15);
    border: 3px solid #8d6e63;
    position: relative;
    overflow: hidden;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8bc34a, #689f38, #7cb342, #9ccc65);
    background-size: 200% 100%;
    animation: cropGrowth 4s linear infinite;
}

@keyframes cropGrowth {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.category h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #5d4037;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
    border-radius: 25px;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(50%, 200px), 1fr));
    gap: 1.5rem;
}

/* 农业科技主题文章卡片样式 */
.game-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(93, 64, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #8d6e63;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #8bc34a, #689f38, #7cb342, #9ccc65, #8bc34a);
    background-size: 300% 100%;
    animation: cropRipen 5s linear infinite;
}

@keyframes cropRipen {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(93, 64, 55, 0.25);
    border-color: #5d4037;
}

.game-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.game-card-content {
    padding: 0.5rem;
}

.game-card h4 {
    font-size: 1.1rem;
    color: #2d5016;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.game-card p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
}

/* 农业科技主题页脚样式 */
.footer {
    background: linear-gradient(135deg, #5d4037 0%, #3e2723 50%, #2c1d18 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8bc34a, #689f38, #7cb342, #9ccc65, #8bc34a);
    background-size: 200% 100%;
    animation: harvestFlow 6s linear infinite;
}

@keyframes harvestFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #90ee90;
    text-shadow: 0 0 5px rgba(144, 238, 144, 0.5);
}

/* 农业科技主题详情页样式 */
.game-detail {
    margin: 2rem 0;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 12px 35px rgba(93, 64, 55, 0.2);
    border: 3px solid #8d6e63;
    position: relative;
    overflow: hidden;
}

.game-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #8bc34a, #689f38, #7cb342, #9ccc65, #8bc34a);
    background-size: 200% 100%;
    animation: fieldGrowth 4s linear infinite;
}

@keyframes fieldGrowth {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.game-detail-image {
    margin: 2rem auto;
    max-width: 650px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(93, 64, 55, 0.2);
    border: 3px solid #8d6e63;
    position: relative;
}

.game-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 17px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.game-detail-info {
    text-align: center;
}

.game-detail-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #5d4037;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(93, 64, 55, 0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 2rem;
}

.game-detail-info h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8bc34a, #689f38, #7cb342);
    border-radius: 2px;
}

.game-detail-info p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #6d4c41;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.play-button {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: #c0392b;
}

.back-button {
    display: inline-block;
    margin: 1rem 0;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.back-button:hover {
    color: #2980b9;
}

/* 农业科技主题相关文章样式 */
.may-like {
    margin: 4rem 0;
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(93, 64, 55, 0.15);
    border: 3px solid #8d6e63;
    position: relative;
    overflow: hidden;
}

.may-like::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #8bc34a, #689f38, #7cb342, #9ccc65, #8bc34a);
    background-size: 200% 100%;
    animation: relatedGrowth 4s linear infinite;
}

@keyframes relatedGrowth {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.may-like h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #5d4037;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 2rem;
    background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
    border-radius: 25px;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

/* 农业科技主题辅助页面样式 */
.auxiliary-page {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    padding: 2.5rem;
    border-radius: 25px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(93, 64, 55, 0.15);
    border: 3px solid #8d6e63;
    position: relative;
    overflow: hidden;
}

.auxiliary-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8bc34a, #689f38, #7cb342, #9ccc65, #8bc34a);
    background-size: 200% 100%;
    animation: auxiliaryGrowth 5s linear infinite;
}

@keyframes auxiliaryGrowth {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.auxiliary-page h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.auxiliary-page h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #34495e;
}

.auxiliary-page p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.auxiliary-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.auxiliary-page li {
    margin-bottom: 0.5rem;
}

/* 联系表单样式 */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background-color: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(50%, 180px), 1fr));
    }
}

@media (max-width: 768px) {
    /* 汉堡菜单显示 */
    .hamburger {
        display: block;
    }
    
    /* 导航链接隐藏 */
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #4a7c59 0%, #2d5016 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1rem 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        padding: 1rem 0;
    }
    
    /* 英雄区域 */
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* 文章详情页 */
    .game-detail {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .game-detail-image {
        max-width: 100%;
    }
    
    .game-detail-info h2 {
        font-size: 1.8rem;
    }
    
    /* 文章卡片 */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .game-card img {
        /* height: 200px; */
        height: 150px;
    }
    
    /* 可能喜欢的文章 - 垂直排列 */
    .may-like .games-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .may-like .game-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .category h3,
    .may-like h3 {
        font-size: 1.5rem;
    }
    
    .game-detail {
        padding: 1rem;
    }
    
    .game-detail-info h2 {
        font-size: 1.5rem;
    }
    
    .play-button {
        width: 100%;
        text-align: center;
    }
}