/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏样式 */
nav {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #007BFF;
    color: #fff;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
}

/* 通用段落样式 */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
}

.section h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background-color: #007BFF;
    display: block;
    margin: 10px auto 0;
}

/* 内容样式 */
.content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.text {
    flex: 1;
    padding: 20px;
}

.text p, .text ol {
    font-size: 18px;
    margin-bottom: 20px;
}

.text ol {
    padding-left: 20px;
}

.text ol li {
    margin-bottom: 10px;
}

.image, .image-slider {
    flex: 1;
    padding: 20px;
}

.image img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

/* 按钮样式 */
.access-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    margin: 10px 10px 10px 0;
    transition: background-color 0.3s;
}

.access-button:hover {
    background-color: #0056b3;
}

#download-buttons .access-button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* 小按钮样式 */
.small-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #bbb;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    margin: 5px 5px 5px 0;
    transition: background-color 0.3s;
}

.small-button:hover {
    background-color: #999;
}

/* 图片轮播样式 */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    flex-shrink: 0;
    cursor: pointer;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-nav .prev,
.slider-nav .next {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    user-select: none;
}

/* 模态框样式 */
.modal {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

/* 提示文字样式 */
.slider-instruction {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

/* 多张图片并排显示（桌面设备） */
@media (min-width: 769px) {
    .slides {
        flex-wrap: nowrap;
    }

    .slides img {
        width: calc(100%); /* 显示三张图片 */
    }

    .slider-instruction {
        font-size: 14px;
    }
}

/* 触摸滑动支持（移动设备） */
@media (max-width: 768px) {
    .slides {
        flex-wrap: nowrap;
    }

    .slides img {
        width: 100%;
    }
}

/* 隐藏箭头按钮（移动设备） */
@media (max-width: 768px) {
    .slider-nav .prev,
    .slider-nav .next {
        display: none;
    }
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        border-top: 1px solid #eee;
    }

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

    .section h2 {
        font-size: 28px;
    }

    .content {
        flex-direction: column;
    }

    .text, .image, .image-slider {
        padding: 0;
    }

    .slider-nav .prev,
    .slider-nav .next {
        font-size: 24px;
    }

    .slider-instruction {
        font-size: 14px;
    }
}
