body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* 整体背景保持常规灰色 */
}

h1,
h2 {
    text-align: center;
    font-weight: bold;
    color: #333; /* 标题颜色使用深灰色 */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post {
    background-color: #fff; /* 商业信息块背景为白色 */
    color: #444; /* 文字颜色为深灰色 */
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc; /* 边框使用浅灰色 */
    box-sizing: border-box;
    font-weight: bold;
}

.first-post {
    animation: swing 5s ease-in-out infinite alternate;
}

@keyframes swing {
    0% {
        transform: translateX(-5%);
    }
    100% {
        transform: translateX(5%);
    }
}

textarea,
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-weight: bold;
}

button {
    padding: 10px 15px;
    color: white;
    background-color: #007BFF; /* 按钮使用经典蓝色 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #0056b3; /* 按钮悬停颜色加深 */
}

a {
    color: #007BFF; /* 超链接使用经典蓝色 */
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.form-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qr-code {
    width: 150px;
}

.qr-tip {
    font-size: 14px;
    color: #666; /* 二维码提示文字使用深灰色 */
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
}

.copy-tip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    white-space: nowrap;
    font-weight: bold;
}

.wechat-id {
    color: #007BFF; /* 微信号使用经典蓝色 */
    cursor: pointer;
    text-decoration: underline;
    position: relative;
    font-weight: bold;
}

/* 新增的折叠按钮样式 */
.toggle-button {
    display: block;
    margin: 0 auto 10px;
    padding: 5px 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* 媒体查询，针对小屏幕设备（如苹果 8） */
@media (max-width: 414px) {
   .form-container {
        flex-direction: column;
    }

   .qr-code {
        width: 120px;
    }
}

.hidden {
    display: none;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #0056b3;
}

.ad-image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

/* 轮播广告样式 */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 33.3333%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slider-nav button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    cursor: pointer;
}

.slider-nav button.active {
    background-color: white;
}

/* 底部浮动发布按钮及表单样式 */
.bottom-float-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.float-toggle-button {
    background-color: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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

.float-hidden {
    display: none;
}

.float-formSection form {
    margin-bottom: 15px;
}