* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    padding-bottom: 60px;
    width: 100%;
}

/* 头部样式 */
.site-header {
    padding: 10px 0;
    text-align: center;
    background-color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    max-width: 180px;
    height: auto;
    max-height: 60px;
}

/* 城市导航 */
.city-nav {
    display: flex;
    background-color: #fff;
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    -webkit-overflow-scrolling: touch;
}

.city-item {
    text-align: center;
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.city-item.active {
    color: #ff6600;
    font-weight: bold;
}

/* 区域容器 */
.district-container {
    padding: 10px;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.district-item {
    width: 20%; /* 4 items per row */
    text-align: center;
    padding: 5px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}
.district-item.active {
    color: #ff6600;
    font-weight: bold;
}

/* 其他城市 */
.other-cities-wrapper {
    background-color: #fff;
    margin-bottom: 10px;
}

.cities-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    cursor: pointer;
}

.other-cities {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
}

.city-block {
    width: 20%; /* 5 items per row */
    text-align: center;
    padding: 5px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}
.city-block.active {
    color: #ff6600;
    font-weight: bold;
}

/* 帖子列表 */
.post-list {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
}

.post-item {
    width: 50%; /* 2 items per row */
    padding: 5px;
    border-bottom: none;
    box-sizing: border-box;
}

.post-link {
    display: block;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 100%;
}

.post-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Creates a square aspect ratio */
    position: relative;
    overflow: hidden;
}

.post-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-title {
    font-size: 14px;
    padding: 8px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    height: 36px;
}

.post-user {
    display: flex;
    align-items: center;
    padding: 5px 8px 8px;
    font-size: 12px;
    color: #666;
}

.user-avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
    object-fit: cover;
}

/* 底部导航 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    display: flex;
    border-top: 1px solid #eee;
    z-index: 10;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
}

.nav-item.active {
    color: #ff6600;
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 12px;
    margin-top: 2px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 12px;
    color: #666;
    background-color: #f9f9f9;
    cursor: pointer;
    margin: 0 5px 15px;
    border-radius: 5px;
}

/* 登录注册表单 */
.login-container, .register-container {
    padding: 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
}

.login-form, .register-form {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
}

.form-item {
    margin-bottom: 15px;
}

.form-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
}

.form-links {
    margin-top: 15px;
    text-align: center;
}

.form-links a {
    color: #666;
    text-decoration: none;
}

/* 个人中心 */
.profile-container {
    background-color: #fff;
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.avatar {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-name h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.user-vip {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.vip-tag {
    background-color: #ff6600;
    color: #fff;
    padding: 2px 5px;
    border-radius: 2px;
    margin-right: 5px;
}

.normal-tag {
    background-color: #999;
    color: #fff;
    padding: 2px 5px;
    border-radius: 2px;
}

.menu-list {
    margin-top: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.menu-item i {
    margin-right: 10px;
    font-size: 20px;
    color: #666;
}

.menu-item .icon-arrow {
    margin-left: auto;
    margin-right: 0;
    color: #ccc;
}

/* 帖子详情 */
.post-detail {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.post-header {
    margin-bottom: 15px;
}

.post-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-meta {
    color: #999;
    font-size: 12px;
}

.post-content {
    white-space: pre-wrap; /* 保持换行 */
    overflow: visible; /* 确保内容不被裁剪 */
    word-wrap: break-word; /* 处理长单词 */
    word-break: break-word; /* 处理长单词 */
    margin-bottom: 20px;
    line-height: 1.8;
    padding: 5px 0;
    max-height: none; /* 确保没有高度限制 */
}

.post-fav{
    background: url(../images/fav0.png) no-repeat left 0px / 16px 16px;
    display: inline-block;
    padding: 0 0 0 17px;
    margin: 0 0 0 10px;
    color: #333;
}
.post-fav.cur{
    background-image: url(../images/fav1.png);
    color: #ff6600;
}

.post-images {
    margin-bottom: 20px;
}

.post-image-item {
    margin-bottom: 10px;
}

.post-image-item img {
    width: 100%;
    border-radius: 5px;
}

.post-contact {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}
.post-contact .post-images{
    margin: 0;
}
.post-contact .post-image-item{
    margin: 10px 0 0 0;
}

.post-contact h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-locked {
    text-align: center;
    padding: 20px 0;
}

.btn-vip {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ff6600;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    margin-top: 10px;
}

/* 评论区 */
.comment-section {
    margin-top: 20px;
}

.comment-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 10px;
    resize: none;
}

.comment-list {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.comment-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.comment-user {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-nickname {
    font-weight: bold;
    margin-right: 10px;
}
.comment-nickname em{
    font-style: normal;
    font-weight: normal;
    font-size: 11px;
    background: #aaa;
    border-radius: 4px;
    padding: 1px 3px;
    color: #fff;
    margin: 0 0 0 5px;
}
.comment-nickname em.lv1,.comment-nickname em.lv2,.comment-nickname em.lv3,.comment-nickname em.lv4,.comment-nickname em.lv5,.comment-nickname em.lv6{
    background: #ff6600;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.comment-content {
    padding-left: 40px;
}

/* 发布帖子 */
.publish-container {
    padding: 15px;
}

.publish-form {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
}

.publish-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.publish-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    resize: none;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview-item {
    width: 80px;
    height: 80px;
    margin: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 我的帖子 */
.my-posts-container {
    padding: 15px;
}

.my-posts-container .post-item {
    width: 100%;
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.post-info {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
    margin: 5px 0 10px;
}

.post-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-view, .btn-delete {
    padding: 5px 10px;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    margin-left: 10px;
    font-size: 12px;
}

.btn-view {
    background-color: #1E9FFF;
}

.btn-delete {
    background-color: #FF5722;
}

.empty-tips {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    color: #999;
}

/* 会员中心 */
.vip-container {
    padding: 15px;
}

.vip-header {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.user-vip-info {
    margin-top: 10px;
}

.vip-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vip-icon, .normal-icon {
    padding: 3px 8px;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
}

.vip-icon {
    background-color: #ff6600;
}

.normal-icon {
    background-color: #999;
}

.vip-expire, .vip-tips {
    font-size: 12px;
    color: #999;
}

.vip-benefits {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.vip-benefits h3, .vip-packages h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
}

.benefit-item {
    width: 50%;
    padding: 5px 0;
    font-size: 14px;
    color: #666;
}

.vip-packages {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
}

.package-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.package-item {
    width: calc(50% - 10px);
    margin: 5px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

.package-item.active {
    border-color: #ff6600;
    background-color: #fff9f5;
}

.package-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.package-price {
    color: #ff6600;
    font-size: 18px;
    margin-bottom: 5px;
}

.package-desc {
    color: #999;
    font-size: 12px;
}

.package-notice {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.customer-service {
    margin-bottom: 15px;
}

.service-item {
    padding: 5px 0;
}

.service-item a {
    color: #1E9FFF;
    text-decoration: none;
}

.vip-action {
    text-align: center;
    margin-top: 20px;
}

.btn-buy-vip {
    display: inline-block;
    padding: 10px 30px;
    background-color: #ff6600;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-size: 16px;
}

/* 卡密兑换 */
.card-container {
    padding: 15px;
}

.card-form {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card-notice {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card-notice h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.card-notice p {
    color: #666;
    margin-bottom: 5px;
}

.card-history {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
}

.card-history h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.card-code {
    font-weight: bold;
    margin-bottom: 5px;
}

.card-date {
    font-size: 12px;
    color: #999;
}

.card-value {
    background-color: #ff6600;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.search-form {
    display: flex;
    width: 100%;
    padding: 0 10px 12px 10px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 25px 0 0 25px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-right: none;
}

.search-icon {
    margin-right: 10px;
    color: #999;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 4px 0;
    background: transparent;
}

.search-input::placeholder {
    color: #bbb;
}

.search-button {
    background-color: #111;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 0 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}


.guide-list ul{
    list-style: none;
}

.guide-list ul .guide-item {
    padding: 12px;
    margin-bottom: 10px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guide-list ul .guide-item > a{
    display: flex;
    text-decoration: none;
}

.guide-list ul .guide-image {
    width: 100px;
    height: 75px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.guide-list ul .guide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* 防止文本溢出 */
}

.guide-list ul .guide-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    line-height: 1.4;
}

.guide-list ul .guide-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.guide-list ul .guide-time {
    margin-right: 15px;
}

.guide-list ul .guide-views {
    display: flex;
    align-items: center;
}

.guide-list ul .guide-views::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>');
    background-size: contain;
    margin-right: 4px;
}


/* 媒体查询，进一步优化小屏幕 */
@media (max-width: 360px) {
    .district-item, .city-block {
        font-size: 12px;
    }
    
    .post-title {
        font-size: 13px;
    }
    
    .benefit-item {
        width: 100%;
    }
    
    .package-item {
        width: 100%;
        margin: 5px 0;
    }
}

.new-alert {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.new-alert .cle{
    position: fixed;
    right: 7%;
    font-size: 16px;
    margin: -20px 0 0 0;
    background: #ffffff;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 0 12px 0 12px;
    border-top: 0;
    border-right: 0;
}
.new-alert .sol{
    width: 86%;
    max-height: 60%;
    background: #fff;
    overflow: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}
.new-alert .cont{
    white-space: pre-wrap; 
    word-wrap: break-word; 
    word-break: break-word;
}
.new-alert .images img{
    display: block;
    width: 100%;
    height: auto;
    margin: 15px 0 0 0;
}



