* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background: #fff;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 10px;
}

/* 顶部导航 */
header {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid #eee;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.logo img {
    height: 40px;
}

.header-left, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
}
.header-right {
    justify-content: flex-end;
}

/* 下拉菜单 */
.dropdown-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #1e88e5; /* 蓝色背景 */
    min-width: 160px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    right: 0;
    top: 100%;
    z-index: 1000;
}
.dropdown.active .dropdown-content {
    display: block;
}
.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: white; /* 白色文字 */
    transition: background 0.3s;
}
.dropdown-content a:hover {
    background: #1976d2; /* 悬停时更深的蓝色 */
}

/* 确保下拉菜单不重叠的样式 */
#appDropdown {
    position: relative;
}

#serviceDropdown {
    position: relative;
}

#appDropdown .dropdown-content {
    left: 0;
    right: auto;
}

#serviceDropdown .dropdown-content {
    right: 0;
    left: auto;
}

/* 确保下拉菜单不会互相影响 */
.dropdown-content {
    position: absolute;
    top: 100%;
    z-index: 1000;
}

/* 轮播图 - 自适应图片版本 */
.slider-container {
    width: 100%;
    max-width: 500px; /* 限制最大宽度 */
    margin: 15px auto; /* 上下15px，水平居中 */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #f5f5f5; /* 加载时的背景色 */
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: auto; /* 改为自动高度 */
}

.slide {
    min-width: 100%;
    display: flex; /* 新增：使用flex布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    background: #f5f5f5; /* 备用背景色 */
}

.slide img {
    width: auto; /* 改为自动宽度 */
    height: auto; /* 改为自动高度 */
    max-width: 100%; /* 限制最大宽度 */
    max-height: 80vh; /* 限制最大高度 */
    object-fit: contain; /* 保持图片完整比例 */
    display: block; /* 移除图片底部间隙 */
}

/* 导航箭头优化 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    font-size: 18px;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 15px; }
.next { right: 15px; }

/* 导航点优化 */
.slider-nav {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.1);
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 响应式调整 */
@media (max-width: 600px) {
    .slider-container {
        border-radius: 0;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
    }
    
    .slide img {
        max-height: 60vh;
    }
}

@media (max-width: 400px) {
    .slider-nav {
        bottom: 10px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
}
/* 游戏卡片 */
.game-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.game-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.game-image {
    width: 230px;
    height: 100px;
    min-width: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
}
.game-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.play-btn {
    margin-left: auto;
    padding: 10px 50px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* 使游戏卡片可点击区域更明显 */
.game-image {
    cursor: pointer;
    transition: transform 0.3s;
}

.game-image:hover {
    transform: scale(1.02);
}

.play-btn {
    cursor: pointer;
    transition: background 0.3s;
}

.play-btn:hover {
    background: #3e8e41;
}

/* 温馨提示 - 居中版本 */
.tips {
    background: #f8f8f8;
    padding: 20px 15px;
    border-radius: 8px;
    margin: 20px auto; /* 上下20px，左右自动居中 */
    max-width: 100%; /* 防止在小屏幕上太宽 */
    text-align: center; /* 内容居中 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tips-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.tips-title:before,
.tips-title:after {
    content: "";
    position: absolute;
    height: 2px;
    width: 30px;
    background: #4CAF50;
    top: 50%;
}

.tips-title:before {
    left: -30px;
}

.tips-title:after {
    right: -30px;
}

.tips-content {
    text-align: left;
    display: inline-block; /* 使ul能根据内容自适应 */
    margin: 0 auto; /* 水平居中 */
}

.tips-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    max-width: 380px; /* 控制最大宽度 */
}

.tips-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.tips-content li:before {
    content: "•";
    color: #4CAF50;
    font-size: 18px;
    position: absolute;
    left: 5px;
    top: -1px;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .tips {
        padding: 15px 10px;
        margin: 15px auto;
    }
    
    .tips-title {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .tips-title:before,
    .tips-title:after {
        width: 20px;
    }
    
    .tips-title:before {
        left: -20px;
    }
    
    .tips-title:after {
        right: -20px;
    }
    
    .tips-content li {
        font-size: 13px;
        padding-left: 20px;
    }
    
    /* 保持原有的游戏卡片响应式样式 */
    .game-image {
        width: 80px;
        height: 80px;
    }
    .play-btn {
        padding: 8px 15px;
    }
}