:root {
    --primary-color: #e84a5f;
    --secondary-color: #ff847c;
    --text-color: #2a363b;
    --light-bg: #fecea8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

header {
    height: 100vh;
    color: white;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.hero {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
}

.section {
    padding: 5rem 10%;
    text-align: center;
}

.section:nth-child(even) {
    background-color: #f9f9f9;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 5%;
}

.product-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info p {
    margin-bottom: 1rem;
}

.product-card:hover .product-info {
    transform: translateY(0);
}

.buy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.buy-btn:hover {
    background: var(--secondary-color);
}

footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 3rem 5%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }
} 

/* 添加轮播图相关样式 */
.slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slides {
    height: 100%;
    width: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100vh;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.slide h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.slide .tagline {
    font-size: 1.5rem;
}

/* 添加遮罩层 */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* 轮播按钮样式 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
    z-index: 3;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev {
    left: 2rem;
}

.next {
    right: 2rem;
}

/* 轮播点样式 */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .slide h1 {
        font-size: 2.5rem;
    }
    
    .slide .tagline {
        font-size: 1.2rem;
    }
    
    .slider-btn {
        padding: 0.8rem 1rem;
        font-size: 1.2rem;
    }

    .prev {
        left: 1rem;
    }

    .next {
        right: 1rem;
    }
} 

/* 修改页脚样式 */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}