
/* 基础样式与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #81C784, #967E76);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
    color: #03A9F4;
    font-weight: bold;
}
p {
    font-size: 1rem;
    line-height: 1.8;
}
a {
    color: #FFC107;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #03A9F4;
    text-shadow: 0 0 5px rgba(3, 169, 244, 0.5);
}

/* 导航栏设计 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(150, 126, 118, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}
.navbar .menu {
    display: flex;
    gap: 20px;
}
.navbar .menu a {
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
}
.navbar .menu a:hover {
    background: #03A9F4;
    color: #fff;
}

/* 首页轮播区域 */
.carousel {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-top: 60px;
}
.carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
    animation: slide 10s infinite ease-in-out;
}
@keyframes slide {
    0% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}

/* 内容模块布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}
.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* 视差滚动效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.parallax::after {
    content: '这是一个网页样式设计参考';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 仿生动画 */
@keyframes leafFall {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(100px) rotate(30deg); }
    100% { transform: translateY(200px) rotate(-30deg); }
}
.leaf {
    position: absolute;
    width: 50px;
    height: 50px;
    background: url('https://images.gptkong.com/demo/sample2.png') no-repeat center/cover;
    animation: leafFall 5s infinite ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .carousel {
        height: 300px;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

