/* 全局重置和基础样式 */
:root {
    --primary-color: #FF5252;
    --secondary-color: #333;
    --accent-color: #00B0FF;
    --light-color: #F5F5F5;
    --dark-color: #212121;
    --gray-color: #757575;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, li {
    list-style: none;
}

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

button, input, textarea, select {
    font-family: inherit;
    outline: none;
    border: none;
}

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

section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--gray-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #E64545;
    transform: translateY(-2px);
}

.outline-btn {
    border: 2px solid var(--dark-color);
    color: var(--dark-color);
    background: transparent;
}

.outline-btn:hover {
    background-color: var(--dark-color);
    color: white;
}

/* 页眉样式 */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: var(--box-shadow);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 35px;
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    position: relative;
    font-weight: 500;
    padding: 5px 0;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 200px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 20px;
    background-color: var(--light-color);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    cursor: pointer;
}

.cart-icon, .user-icon {
    position: relative;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 轮播区域 */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    height: 100%;
    padding: 0 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.slide-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 50px;
}

.slide-text h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.slide-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-text p {
    margin-bottom: 30px;
    color: var(--gray-color);
}

.slide-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

.slider-arrows {
    position: absolute;
    right: 50px;
    display: flex;
    gap: 10px;
}

.arrow-prev, .arrow-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.arrow-prev:hover, .arrow-next:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 服务特点 */
.service-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 50px;
    background-color: white;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    margin: -50px auto 0;
    position: relative;
    max-width: 1300px;
    z-index: 100;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-text h3 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.feature-text p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 促销区域 */
.promotion-area {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 2%;
    margin: 50px 0;
    padding: 0 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.promotion-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    color: var(--dark-color);
}

.promotion-card.large {
    height: 350px;
    background-color: #FFE082;
}

.promotion-card:not(.large) {
    height: 350px;
    background-color: #E3F2FD;
}

.promotion-content {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 1;
}

.promotion-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.promotion-content p {
    margin-bottom: 20px;
}

.promotion-image {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 60%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

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

/* 产品区域 */
.featured-products {
    padding: 60px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background-color: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

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

.product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1;
}

.product-badge.hot {
    background-color: var(--danger-color);
    color: white;
}

.product-badge.new {
    background-color: var(--accent-color);
    color: white;
}

.product-badge.sale {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

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

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

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

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    margin-bottom: 10px;
}

.current-price {
    font-weight: bold;
    font-size: 1.1rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-color);
    margin-left: 5px;
    font-size: 0.9rem;
}

.product-rating {
    color: #FFC107;
    font-size: 0.8rem;
}

/* 系列横幅 */
.collection-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 60px 0;
    padding: 0 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.collection-men, .collection-lookbook {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #F5F5F5;
}

.collection-content, .lookbook-content {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 1;
}

.collection-content h2, .lookbook-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.lookbook-content h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.collection-image, .lookbook-image {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 60%;
}

.collection-image img, .lookbook-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* 优惠注册 */
.newsletter {
    padding: 60px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.newsletter-content {
    display: flex;
    background-color: #FFEBEE;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.newsletter-models {
    flex: 1;
    overflow: hidden;
}

.newsletter-models img {
    height: 100%;
    object-fit: cover;
}

.newsletter-form {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-form h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.newsletter-form p {
    margin-bottom: 30px;
    color: var(--gray-color);
}

.newsletter-form form {
    display: flex;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
}

/* 博客区域 */
.trending-blog {
    padding: 60px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.blog-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-content p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 60px 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-column p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.8;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.contact-info li i {
    width: 20px;
    color: var(--primary-color);
}

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

.footer-bottom p {
    opacity: 0.7;
}

/* Toast通知 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
    max-width: 80%;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 移动菜单 */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.service-features, 
.promotion-card, 
.product-card,
.collection-men, 
.collection-lookbook, 
.blog-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-features.animate, 
.promotion-card.animate, 
.product-card.animate,
.collection-men.animate, 
.collection-lookbook.animate, 
.blog-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-container, 
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .slide-content {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .slide-text h1 {
        font-size: 2rem;
    }
    
    .promotion-area {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .collection-banner {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .newsletter-form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        justify-content: space-between;
    }
    
    .search-box {
        width: 150px;
    }
    
    .slide-content {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .slide-text {
        padding-right: 0;
        text-align: center;
        align-items: center;
    }
    
    .service-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .feature {
        width: 100%;
    }
    
    .product-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav.mobile {
        display: none;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 15px;
        border-radius: 5px;
    }
    
    .main-nav.mobile.active {
        display: block;
    }
    
    .main-nav.mobile ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav.mobile ul li {
        width: 100%;
    }
    
    .main-nav.mobile a {
        display: block;
        padding: 8px 0;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .main-nav ul li {
        flex: 1;
        text-align: center;
    }
    
    .promotion-content {
        top: 20px;
        left: 20px;
    }
    
    .product-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-content, 
    .lookbook-content {
        top: 20px;
        left: 20px;
    }
    
    .newsletter-form form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 4px;
    }
    
    .newsletter-form button {
        margin-top: 10px;
    }
} 