

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background-color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 30px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1b5e20;
    font-size: 1.8rem;
    font-weight: 700;
}

.add-to-cart svg{
    width: 35px;
    height: 35px;
}

.logo i {
    color: #75a478;
    font-size: 2rem;
}

.logo span {
    background: linear-gradient(45deg, #1b5e20, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    background-color: #e8f5e9;
    color: #1b5e20;
}

nav a.active {
    padding: 5px 15px;
    background-color: #a5d6a7;
    color: white;
}

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 1.3rem;
}

.header-icons a {
    color: #2e7d32;
    transition: all 0.3s ease;
    position: relative;
}

.header-icons a:hover {
    color: #75a478;
    transform: translateY(-3px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ffab91;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 英雄区域 */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    top: -100px;
    right: -100px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    bottom: -50px;
    left: -50px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    color: #1b5e20;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: #2e7d32;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffab91 0%, #ffccbc 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(255, 171, 145, 0.3);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 171, 145, 0.4);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* 栏目公共样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1b5e20;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ffab91 0%, #ffccbc 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #4caf50;
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 热销商品 - 水平滚动卡片 */
.hot-products {
    padding: 80px 0;
    background-color: white;
}

.hot-products-container {
    position: relative;
}

.products-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    scrollbar-width: thin;
    scrollbar-color: #a5d6a7 transparent;
}

.products-scroll::-webkit-scrollbar {
    height: 8px;
}

.products-scroll::-webkit-scrollbar-track {
    background: #e8f5e9;
    border-radius: 10px;
}

.products-scroll::-webkit-scrollbar-thumb {
    background: #a5d6a7;
    border-radius: 10px;
}

.hot-product-card {
    min-width: 280px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.hot-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hot-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffab91 0%, #ffccbc 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
}

.products-scroll a:nth-child(1) .hot-product-card .hot-badge::after{
    content: "热销 NO.1";
}
.products-scroll a:nth-child(2) .hot-product-card .hot-badge::after{
    content: "热销 NO.2";
}
.products-scroll a:nth-child(3) .hot-product-card .hot-badge::after{
    content: "热销 NO.3";
}
.products-scroll a:nth-child(4) .hot-product-card .hot-badge::after{
    content: "热销 NO.4";
}
.products-scroll a:nth-child(5) .hot-product-card .hot-badge::after{
    content: "热销 NO.5";
}
.products-scroll a:nth-child(6) .hot-product-card .hot-badge::after{
    content: "热销 NO.6";
}
.products-scroll a:nth-child(7) .hot-product-card .hot-badge::after{
    content: "热销 NO.7";
}

.hot-product-img {
    height: 200px;
    overflow: hidden;
}

.hot-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-product-card:hover .hot-product-img img {
    transform: scale(1.05);
}

.hot-product-info {
    padding: 20px;
}

.hot-product-info h3 {
    font-size: 1.3rem;
    color: #1b5e20;
    margin-bottom: 10px;
}

.hot-product-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.hot-product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    color: #1b5e20;
    font-weight: 700;
}

.old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

.add-to-cart {
    background-color: #a5d6a7;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background-color: #75a478;
    transform: rotate(90deg);
}

/* 推荐商品 - 网格布局 */
.featured-products {
    padding: 80px 0;
    background-color: #f1f8e9;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.featured-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.featured-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-img img {
    transform: scale(1.08);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-card:hover .featured-overlay {
    opacity: 1;
}

.featured-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-category {
    color: #4caf50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.featured-content h3 {
    font-size: 1.4rem;
    color: #1b5e20;
    margin-bottom: 15px;
}

.featured-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-price {
    font-size: 1.5rem;
    color: #1b5e20;
    font-weight: 700;
}

.featured-btn {
    background-color: transparent;
    color: #75a478;
    border: 2px solid #a5d6a7;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-btn:hover {
    background-color: #a5d6a7;
    color: white;
}

/* 商品列表 - 杂志风格布局 */
.product-list {
    padding: 80px 0;
    background-color: white;
}

.list-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.list-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.list-item {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.list-img {
    width: 150px;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
}

.list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.list-item:hover .list-img img {
    transform: scale(1.1);
}

.list-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-content h3 {
    font-size: 1.3rem;
    color: #1b5e20;
    margin-bottom: 8px;
}

.list-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-price {
    font-size: 1.4rem;
    color: #1b5e20;
    font-weight: 700;
}

.list-rating {
    color: #ffb300;
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    background-color: transparent;
    color: #1b5e20;
    border: 2px solid #a5d6a7;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: #a5d6a7;
    color: white;
}

/* 复杂底部 */
footer {
    background-color: #1b5e20;
    color: white;
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    top: -200px;
    right: -200px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: #a5d6a7;
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #a5d6a7;
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 10px;
    color: #a5d6a7;
    width: 20px;
}

.footer-info p {
    margin-bottom: 15px;
    color: #ccc;
    display: flex;
    align-items: flex-start;
}

.footer-info i {
    margin-right: 12px;
    color: #a5d6a7;
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #a5d6a7;
    transform: translateY(-5px);
}

.newsletter p {
    color: #ccc;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-btn {
    background-color: #a5d6a7;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #75a478;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.payment-methods i {
    font-size: 1.8rem;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-bottom a{
    font-size: 18px;
    color: #fff;
    display: block;
    margin: 10px auto;
}

.footer-bottom p{
    font-size: 18px;
    color: #fff;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.footer-logo i {
    color: #a5d6a7;
    margin-right: 10px;
}

.copyright {
    margin-bottom: 10px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.legal-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: #a5d6a7;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .list-layout {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .list-item {
        flex-direction: column;
    }
    
    .list-img {
        width: 100%;
        height: 200px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}
