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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

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

/* 头部样式 */
.header {
    background-color: #ff9980;
    padding: 20px 0;
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 20px;
}

.logo img {
    height: 40px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    margin-right: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: normal;
    margin: 0;
}

/* 导航菜单样式 */
.navbar {
    background-color: #f5f5f5;
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
}

.nav-menu a:hover {
    color: #ff9980;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #c5a47e;
}

/* 轮播图 */
.carousel {
    position: relative;
    margin-top: 60px;
}

.carousel-item {
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* 产品展示 */
.products {
    padding: 4rem 0;
    background: #f9f9f9;
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
}

/* 底部样式 */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.link {
    margin-top: 1rem;
    opacity: 0.8;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* 轮播图指示器样式 */
.carousel {
    position: relative;
}

/* 轮播图指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.5); /* 淡黄色半透明 */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background-color: rgba(255, 215, 0, 0.8); /* 悬停时加深黄色 */
}

.indicator.active {
    background-color: #FFD700; /* 金黄色 */
    transform: scale(1.2);
}

.indicator.manual {
    background-color: #ff9980;
}

.indicator.manual.active {
    background-color: #e06c55;
}