/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f9f3e6;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    float: left;
}

.logo img {
    height: 50px;
}

nav {
    float: right;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #c41e3a;
}

/* 主要内容样式 */
main {
    margin-top: 80px;
    padding: 0;
}

main > section:not(.banner) {
    padding: 2rem;
}

.banner {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0;
}

.banner img {
    max-width: 100%;
    height: auto;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.feature-item {
    flex: 1;
    min-width: 300px;
    margin: 1rem;
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-item img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.feature-item h2 {
    color: #333;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #c41e3a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #a01830;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    color: #fff;
    margin-top: 3rem;
}

.slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.slider-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin: auto;
}

.slide.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
    border-radius: 4px;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: white;
}

@media screen and (max-width: 768px) {
    .slider {
        height: 400px;
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .slider {
        height: 300px;
    }
    
    .slider-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
} 