/* 重置样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

/* 头部幻灯片容器 */
.header-slideshow {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 幻灯片容器 */
.slideshow-container {
    max-width: 100%;
    width: 100%;
    position: relative;
    margin: 0 auto;
    background-color: #fff;
    overflow: hidden;
    cursor: grab;
}

.slideshow-container:active {
    cursor: grabbing;
}

/* 幻灯片项 */
.mySlides {
    display: none;
    position: relative;
    width: 100%;
}

.mySlides:first-child {
    display: block;
}

/* 广告链接 */
.ad-link {
    display: block;
    text-decoration: none;
    width: 100%;
}

/* 图片样式 */
.mySlides img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border: 0;
}

/* 广告标识 */
.ad-label {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 3px 7px;
    border-radius: 4px 0 0 0;
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    z-index: 2;
}

.ad-label:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 底部指示器 */
.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.6);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* 淡入动画 */
.fade {
    animation: fade 1.5s ease-in-out;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* 网站主要内容样式 */
.main-content {
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-item h2 {
    color: #333;
    margin-bottom: 15px;
}

.content-item p {
    color: #666;
    line-height: 1.6;
}

/* 页脚样式 */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .mySlides img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .mySlides img {
        height: 200px;
    }
    
    .ad-label {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .indicator {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .slide-indicators {
        bottom: 12px;
        gap: 8px;
    }
    
    .main-content {
        padding: 30px 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .mySlides img {
        height: 180px;
    }
    
    .ad-label {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .indicator {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .main-content {
        padding: 20px 10px;
    }
    
    .content-item {
        padding: 20px;
    }
}

/* 防止文字选择 */
.slideshow-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 图片加载优化 */
.mySlides img {
    background: #f0f0f0;
}