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

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

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

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

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #2c3e50;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

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

.top-bar-left {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 主导航 */
.main-nav {
    padding: 15px 0;
    border-bottom: 2px solid #e74c3c;
}

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

.logo h1 {
    color: #e74c3c;
    font-size: 32px;
    font-weight: bold;
}

.logo p {
    color: #7f8c8d;
    font-size: 12px;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

/* 轮播图 */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.slider-wrapper {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
}

.btn-primary {
    background: #e74c3c;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-controls button {
    background: rgba(255,255,255,0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.5);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 快捷分类 */
.quick-categories {
    padding: 40px 0;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-item {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.category-item:hover {
    border-color: #e74c3c;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 40px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.category-item h3 {
    color: #333;
    font-size: 16px;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* 促销活动 */
.promotions-section {
    padding: 60px 0;
    background: #fff;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.promotion-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.promotion-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.promotion-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.promotion-info {
    padding: 20px;
}

.promotion-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price .current {
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
}

.price .original {
    color: #95a5a6;
    text-decoration: line-through;
    font-size: 16px;
}

.btn-add-cart {
    width: 100%;
    background: #e74c3c;
    color: #fff;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: #c0392b;
}

/* 热门商品 */
.products-section {
    padding: 60px 0;
}

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

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

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

.product-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    background: #fff;
    color: #333;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #7f8c8d;
    font-size: 12px;
    text-transform: uppercase;
}

.product-info h3 {
    color: #333;
    margin: 10px 0;
    font-size: 16px;
}

.product-rating {
    color: #f39c12;
    margin: 10px 0;
    font-size: 14px;
}

.product-rating span {
    color: #7f8c8d;
    margin-left: 5px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price .current {
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
}

.product-price .sales {
    color: #95a5a6;
    font-size: 12px;
}

/* 服务优势 */
.features-section {
    padding: 60px 0;
    background: #2c3e50;
    color: #fff;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 50px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-item p {
    color: #bdc3c7;
}

/* 页脚 */
.footer {
    background: #1a252f;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    background: #34495e;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #e74c3c;
}

.footer-section ul {
    list-style: none;
}

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

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

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

.footer-section ul li i {
    margin-right: 10px;
    color: #e74c3c;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #7f8c8d;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* 备案信息样式 */
.footer-bottom .beian-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-bottom .beian-info a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom .beian-info a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none;
    }


    .category-grid {
        grid-template-columns: 1fr;
    }
}