* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft Yahei", "PingFang SC", "Helvetica Neue", serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 顶部对齐 */
    height: 100vh;
    margin: 0;
    overflow-y: auto; /* 允许垂直滚动 */
}

/* 页面外部容器 */
.warp {
    width: 40%; /* 适应电脑端，设定40%宽度 */
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* 顶部间距，确保不被遮挡 */
    margin-left: auto; /* 自动设置左边距 */
    margin-right: auto; /* 自动设置右边距 */
}

/* 小屏设备适配 */
@media screen and (max-width: 768px) {
    .warp {
        width: 90%; /* 手机端宽度设为90% */
        padding: 15px;
        margin-top: 10px; /* 减少顶部间距 */
        margin-left: auto; /* 自动设置左边距 */
        margin-right: auto; /* 自动设置右边距 */
    }
}

/* 标题样式 */
h1, h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #444;
}

h3 {
    font-size: 1.1rem;
    color: #333;
}

/* 按钮样式 */
.btn {
    display: block;
    width: 80%;
    max-width: 300px;
    margin: 10px auto;
    padding: 10px 18px;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 按钮图标 */
.btn img {
    width: 25px;
    height: 15px;
    margin-right: 10px;
}

/* 滚动文本容器 */
.marquee-container {
    width: 100%; /* 容器宽度 */
    overflow: hidden; /* 隐藏超出部分 */
    position: relative; /* 使容器成为相对定位 */
    display: flex;
    justify-content: center; /* 确保文本居中 */
}

/* 滚动文本 */
.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 10s linear infinite; /* 滚动动画 */
    color: #e53935;
    font-size: 1.2rem;
}

/* 滚动动画 */
@keyframes marquee {
    from {
        transform: translateX(100%); /* 开始时，文本在右侧外面 */
    }
    to {
        transform: translateX(-100%); /* 滚动到左侧外面 */
    }
}


/* 内容区域 */
.content-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.content-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ff9800;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 页脚 */
.footer {
    font-size: 1rem;
    color: #06D7E4;
    margin-top: 30px;
}

.footer a {
    color: #000;
    text-decoration: none;
}

.footer a:hover {
    color: #007bff;
}

.footer .back-btn {
    background-color: #ff4081; /* 更改按钮颜色为粉红色 */
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
    width: 50%;
    margin: 15px auto;
    border: 2px solid #ff4081; /* 边框 */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer .back-btn:hover {
    background-color: #f50057; /* 悬停效果 */
    transform: translateY(-2px);
}

/* 小屏设备适配 */
@media screen and (max-width: 768px) {
    body {
        height: auto; /* 允许页面内容溢出并滚动 */
        margin: 0;
        padding: 0;
        justify-content: flex-start; /* 顶部对齐 */
        align-items: flex-start;
        overflow-y: auto; /* 允许滚动 */
    }

    .warp {
        width: 90%; /* 手机端宽度设为90% */
        padding: 15px;
        margin-top: 10px; /* 减少顶部间距 */
    }

    h1 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 10px 18px;
        width: 90%; /* 按钮宽度自适应 */
    }

    .footer {
        font-size: 0.9rem;
    }

    .footer .back-btn {
        font-size: 0.9rem;
        width: 70%;
        padding: 8px 16px;
    }
}

/* 适配更大屏幕 */
@media screen and (min-width: 1024px) {
    .warp {
        width: 40%; /* 电脑端保持40%宽度 */
        padding: 40px;
    }

    .btn {
        width: 60%;
    }
}
