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

body {
    font-family: "Microsoft YaHei", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5faf5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    background-color: #111;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    display: inline-block;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #4caf50;
}

.btn-login {
    background-color: #4caf50;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #388e3c;
}

/* 主横幅区域 */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
    margin-bottom: 60px;
    background-color: #222;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hero-content {
    flex: 1;
    padding: 0 40px;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-content p {
    margin-bottom: 25px;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    background-color: #9ae59d;
    color: #333;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn i {
    margin-left: 5px;
}

.btn:hover {
    background-color: #7ec17f;
}

.hero-image {
    flex: 1;
    position: relative;
    padding: 20px;
}

.main-image {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.badge-top, .badge-bottom {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 1.2rem;
}

.badge-top {
    top: 10px;
    right: 10px;
}

.badge-bottom {
    bottom: 10px;
    right: 10px;
}

/* 产品分类 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4caf50;
    margin: 10px auto 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.product-item {
    background-color: #e2f5e3;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    margin-bottom: 10px;
    display: inline-block;
}

.product-tag {
    display: inline-block;
    background-color: #4caf50;
    color: white;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.product-content p {
    font-size: 0.9rem;
    color: #666;
}

/* 热门产品 */
.hot-products {
    margin-bottom: 60px;
}

.hot-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.hot-product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.hot-product-item:hover {
    transform: translateY(-5px);
}

.hot-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hot-product-item h3 {
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

.view-more-tag {
    display: inline-block;
    background-color: #4caf50;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    float: right;
    transition: background-color 0.3s;
}

.view-more-tag:hover {
    background-color: #388e3c;
}

/* 旅行区域 */
.travel-section {
    background-color: #111;
    color: white;
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 60px;
}

.travel-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.travel-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.8;
}

.newsletter {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
}

.newsletter button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: #388e3c;
}

/* 页脚 */
.footer {
    padding: 30px 0;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo h3 {
    display: inline-block;
    background-color: #111;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #666;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #4caf50;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-media a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.social-media a:hover {
    background-color: #4caf50;
    color: white;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 30px 0;
    }
    
    .hero-content {
        padding: 0 20px 30px;
        text-align: center;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .product-grid,
    .hot-product-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .newsletter {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: 30px;
        padding: 12px;
    }
} 