/* u5168u5c40u6837u5f0f */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b6b;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: #ff6b6b;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff5252;
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff6b6b;
}

/* u5934u90e8u6837u5f0f */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #ff6b6b;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
}

.search-cart {
    display: flex;
    align-items: center;
}

.search {
    position: relative;
    margin-right: 20px;
}

.search input {
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    width: 200px;
    outline: none;
}

.search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.cart a {
    font-size: 1.2rem;
    position: relative;
}

.cart span {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff6b6b;
    color: #fff;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* u82f1u96c4u533au57dfu6837u5f0f */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://ae01.alicdn.com/kf/S1d3b0c2a7d0c4d0c9b5b8c8c8c8c8cX.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* u5206u7c7bu6837u5f0f */
.featured-categories {
    padding: 80px 0;
    background-color: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-info {
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

.category-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* u4ea7u54c1u6837u5f0f */
.featured-products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

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

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-info h3 a {
    color: #333;
}

.product-price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.add-to-cart {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #ff5252;
}

.view-details {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-details:hover {
    background-color: #f5f5f5;
    color: #333;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

/* u4f18u52bfu6837u5f0f */
.benefits {
    padding: 80px 0;
    background-color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* u5e95u90e8u6837u5f0f */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ff6b6b;
}

.footer-section p {
    margin-bottom: 15px;
    color: #ddd;
}

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

.footer-section ul li a {
    color: #ddd;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.social {
    margin-top: 20px;
}

.social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social a:hover {
    background-color: #ff6b6b;
}

.footer-section.contact i {
    margin-right: 10px;
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* u54cdu5e94u5f0fu6837u5f0f */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
    }
    
    .logo, nav, .search-cart {
        margin-bottom: 15px;
    }
    
    .search input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .search-cart {
        flex-direction: column;
    }
    
    .search {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* u4ea7u54c1u8be6u60c5u9875u6837u5f0f */
.product-detail {
    padding: 80px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.product-detail-price {
    color: #ff6b6b;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-detail-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-detail-features {
    margin-bottom: 30px;
}

.product-detail-features h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.product-detail-features ul {
    list-style: disc;
    padding-left: 20px;
}

.product-detail-features ul li {
    margin-bottom: 10px;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
}

.product-detail-actions .add-to-cart {
    padding: 12px 25px;
    font-size: 1.1rem;
}

.related-products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
}

/* u8d2du7269u8f66u9875u9762u6837u5f0f */
.cart-page {
    padding: 80px 0;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 50px;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    font-weight: bold;
}

.cart-item-price {
    color: #ff6b6b;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.cart-item-quantity span {
    margin: 0 10px;
    font-weight: bold;
}

.cart-item-remove {
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-summary {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cart-summary h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 25px;
}

.cart-summary-total {
    font-weight: bold;
    font-size: 1.2rem;
}

.cart-summary .btn {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
    font-size: 1.2rem;
    color: #666;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .cart-item-image {
        grid-row: span 3;
    }
    
    .cart-item-price, .cart-item-quantity {
        margin-top: 10px;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
