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

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

ul {
    list-style: none;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo-image {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav {
    flex: 1;
    text-align: right;
}

.layui-nav {
    background: transparent !important;
    line-height: 50px;
}

.layui-nav .layui-nav-item > a {
    color: #555 !important;
    font-weight: 500;
    padding: 0 18px !important;
    transition: all 0.3s ease;
}

.layui-nav .layui-nav-item.layui-this > a {
    color: #c0392b !important;
}

.layui-nav .layui-nav-item > a:hover {
    color: #c0392b !important;
    transform: translateY(-2px);
}

.cart-count {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 12px;
    margin-left: 5px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.4);
}

/* 汉堡菜单按钮 - 默认隐藏 */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.3s ease;
}

.hamburger-menu:hover {
    color: #c0392b;
}

/* 主轮播图 */
.hero-banner {
    margin-top: 74px;
}

.banner-item {
    height: 600px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* 只让活动的轮播项使用flex布局 */
.layui-carousel > [carousel-item] > .layui-this {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.banner-item .layui-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.banner-content {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* 确保轮播图控制按钮可以点击 */
.layui-carousel .layui-carousel-arrow {
    z-index: 10 !important;
}

.layui-carousel .layui-carousel-ind {
    z-index: 10 !important;
}

.banner-content h2 {
    font-size: 52px;
    margin-bottom: 25px;
    font-weight: 300;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

.banner-content p {
    font-size: 22px;
    margin-bottom: 35px;
    opacity: 0.95;
    letter-spacing: 1px;
}

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

.section-title h2 {
    font-size: 38px;
    font-weight: 300;
    color: #333;
    margin-bottom: 18px;
    position: relative;
    letter-spacing: 3px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 100%);
    border-radius: 2px;
}

.section-title p {
    color: #777;
    font-size: 16px;
    letter-spacing: 1px;
}

/* 品牌特色 */
.brand-features {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #333;
    font-weight: 500;
}

.feature-item p {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

/* 热门产品 */
.hot-products {
    padding: 100px 0;
    background: #fff;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 25px;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.product-image {
    position: relative;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.85) 0%, rgba(192, 57, 43, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 19px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.price {
    font-size: 22px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 18px;
}

.product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* 品牌故事 */
.brand-story {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.story-content h2 {
    font-size: 38px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 300;
    letter-spacing: 2px;
}

.story-intro {
    font-size: 19px;
    color: #e74c3c;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.9;
}

.story-content p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.9;
    font-size: 16px;
}

.story-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.story-image:hover img {
    transform: scale(1.02);
}

/* 客户评价 */
.testimonials {
    padding: 100px 0;
    background: #fff;
}

.testimonial-item {
    text-align: center;
    padding: 50px 40px;
}

.testimonial-content {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-content p {
    font-size: 20px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 35px;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 60px;
    color: #e74c3c;
    position: absolute;
    top: -20px;
    left: -30px;
    opacity: 0.3;
}

.client-info h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.client-info span {
    color: #e74c3c;
    font-size: 15px;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #c0392b;
    white-space: nowrap;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-desc {
    color: #666;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.divider {
    color: rgba(0,0,0,0.15);
}

.footer-right span {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-right span:hover {
    color: #c0392b;
}

.footer-right i {
    margin-right: 8px;
    color: #c0392b;
    font-size: 14px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(192, 57, 43, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #c0392b;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.4);
    color: white;
}

.footer-copyright {
    color: #888;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        justify-content: center;
    }

    .footer-right {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 25px 0;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-desc {
        font-size: 13px;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 10px;
    }

    .footer-right .divider {
        display: none;
    }

    .footer-social {
        margin: 5px 0;
    }

    .footer-copyright {
        font-size: 12px;
    }
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .brand-features,
    .hot-products,
    .brand-story,
    .testimonials {
        padding: 50px 0;
    }
    
    .layui-col-md3 {
        margin-bottom: 30px;
    }
    
    .footer {
        padding: 50px 0 0;
    }
    
    /* 移动端导航样式 */
    .hamburger-menu {
        display: block;
    }
    
    .hamburger-menu.active i {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }
    
    .hamburger-menu.active {
        color: #c0392b;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
    }
    
    .nav.active {
        display: block;
    }
    
    .layui-nav {
        display: block;
        background: white !important;
        line-height: normal;
    }
    
    .layui-nav .layui-nav-item {
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .layui-nav .layui-nav-item > a {
        display: block;
        padding: 15px 20px !important;
        text-align: left;
    }
    
    .layui-nav .layui-nav-child {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
    }
    
    .layui-nav .layui-nav-child dd {
        margin: 0;
    }
    
    .layui-nav .layui-nav-child a {
        padding-left: 40px !important;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* LayUI 按钮自定义 */
.layui-btn-normal {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.layui-btn-normal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4) !important;
}

.layui-btn-primary {
    border: 2px solid #e74c3c !important;
    color: #e74c3c !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.layui-btn-primary:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: white !important;
    border-color: #e74c3c !important;
}

.layui-btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border: none !important;
}

.layui-btn-warm {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    border: none !important;
}

.layui-btn-fluid {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    color: #555 !important;
}

.layui-btn-fluid:hover {
    background: linear-gradient(135deg, #fecfef 0%, #ff9a9e 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4) !important;
    color: #c0392b !important;
}