/* 全局初始化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 页面基础样式 - 更亮的背景效果 */
body {
    background: url('images/beijing.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333; /* 文字改为深色，适应亮色背景 */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5); /* 白色文字阴影增强可读性 */
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* 渐变覆盖层 - 调亮背景（降低黑色透明度） */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 降低黑色透明度，让背景更亮（数值越小越亮） */
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.15));
    z-index: 0;
}

/* 容器样式 - 更亮的半透明背景 */
.container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 10px;
    /* 更浅的背景色，提升整体亮度 */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* 顶部导航 - 保持融合感 */
.main-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 5px;
    position: relative;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* 更淡的阴影 */
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.logo img {
    height: 36px;
}

.header-left, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
    z-index: 2;
}

.header-left {
    justify-content: flex-start;
    padding-right: 40px;
}

.header-right {
    justify-content: flex-end;
    padding-left: 40px;
}

/* 下拉菜单 - 适应亮色背景 */
.dropdown-btn {
    background: rgba(33, 150, 243, 0.9);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: rgba(33, 150, 243, 1);
    transform: translateY(-1px);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(30, 136, 229, 0.95);
    min-width: 160px;
    border-radius: 4px;
    top: 100%;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown.active .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: white;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: rgba(25, 118, 210, 0.9);
}

/* 下拉菜单位置调整 */
#appDropdown {
    position: relative;
}

#serviceDropdown {
    position: relative;
}

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

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

/* 轮播图 - 适应亮色背景 */
.slider-container {
    width: 100%;
    max-width: 500px;
    margin: 15px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: auto;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* 导航箭头 - 适应亮色背景 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.2); /* 更浅的箭头背景 */
    color: #333; /* 箭头改为深色 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    font-size: 18px;
    border: none;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.3);
    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: 8px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3); /* 深色导航点 */
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #333; /* 更明显的激活状态 */
    transform: scale(1.3);
}

/* 游戏卡片 - 适应亮色背景 */
.game-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    padding: 0 5px;
}

.game-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7); /* 更亮的卡片背景 */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.game-image {
    width: 230px;
    height: 100px;
    min-width: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

/* 进入游戏按钮样式 - 无白色背景和边框，绿色悬停效果 */
.play-btn {
    margin-left: auto;
    padding: 10px 30px;
    background: transparent; /* 完全透明背景 */
    color: #333; /* 深色文字 */
    border: none; /* 取消边框 */
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* 添加微妙的下划线效果替代边框 */
.play-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.play-btn:hover {
    background: #4CAF50; /* 绿色悬停背景 */
    color: white; /* 白色文字 */
    transform: translateY(-1px);
}

/* 悬停时去除下划线 */
.play-btn:hover::after {
    background-color: transparent;
}

/* 温馨提示 - 完全去除边框框架感 */
.tips {
    background: transparent; /* 完全透明背景，去除容器感 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 20px 15px;
    border-radius: 0; /* 去除圆角 */
    margin: 20px auto;
    max-width: 100%;
    text-align: center;
    box-shadow: none; /* 完全去除阴影 */
    color: #333;
}

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

/* 保留标题装饰线但弱化视觉分割 */
.tips-title:before,
.tips-title:after {
    content: "";
    position: absolute;
    height: 1px; /* 细线更柔和 */
    width: 30px;
    background: rgba(76, 175, 80, 0.5); /* 弱化颜色 */
    top: 50%;
}

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

.tips-content {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
    padding: 10px; /* 轻微内边距保持阅读空间 */
}

.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: #555;
}

.tips-content li:before {
    content: "•";
    color: rgba(76, 175, 80, 0.8);
    font-size: 18px;
    position: absolute;
    left: 5px;
    top: -1px;
}

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

@media (max-width: 400px) {
    .slider-nav {
        bottom: 10px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .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: 120px;
        height: 60px;
    }
    
    .play-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .logo img {
        height: 32px;
    }
    
    .dropdown-btn {
        padding: 5px 10px;
        font-size: 13px;
    }
}
    