/* ============================================
   同城信息圈 - 全新UI设计
   现代简约风格
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f0f4ff;
    background-image: linear-gradient(180deg, #f0f4ff 0%, #f8f9fc 100%);
    background-attachment: fixed;
    color: #1a1a2e;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ========== 全局容器 ========== */
.app {
    max-width: 480px;
    margin: 0 auto;
    background: #f0f2f5;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
}

.content {
    padding: 12px;
}

/* ========== 顶部头部 ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.city-select {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.search-box {
    flex: 1;
}

.search-box form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 0 6px 0 16px;
    height: 36px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.search-box button:hover {
    transform: scale(1.1);
}

/* ========== 底部导航（图标与小程序一致） ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 6px 0 calc(8px + constant(safe-area-inset-bottom));
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #999;
    transition: all 0.3s;
}

.bottom-nav .nav-item.active {
    color: #667eea;
    font-weight: 600;
}

.bottom-nav .nav-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: transform 0.25s;
}

.bottom-nav .nav-item.active .nav-icon-img {
    transform: translateY(-1px) scale(1.08);
}

.bottom-nav .nav-label {
    line-height: 1;
}

/* ========== Banner轮播 ========== */
.banner-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.banner-track {
    display: flex;
    transition: transform 0.4s ease;
}

.banner-item {
    min-width: 100%;
}

.banner-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.banner-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.banner-dots .dot.active {
    width: 18px;
    border-radius: 3px;
    background: #fff;
}

/* ========== 分类网格 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #fff;
    padding: 18px 12px;
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.category-item:hover {
    background: #f5f7fa;
    transform: translateY(-2px);
}

/* 分类图标（与小程序一致：渐变圆角方块 + emoji + 高光） */
.category-icon,
.cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.category-icon::after,
.cat-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
    pointer-events: none;
}

.cat-emoji {
    font-size: 25px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.category-name,
.cat-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    margin-top: 2px;
}

/* ========== 页面头部 ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 16px;
}

.page-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.page-header span {
    font-size: 13px;
    color: #999;
}

/* ========== 滚动公告栏 ========== */
.notice-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff7e6, #fffbe6);
    border-radius: 12px;
    padding: 10px 15px;
    margin: 15px 0;
    border: 1px solid #ffe58f;
    overflow: hidden;
}
.notice-icon {
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}
.notice-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.notice-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: noticeScroll 15s linear infinite;
}
.notice-scroll span {
    font-size: 13px;
    color: #d46b08;
    font-weight: 500;
}
@keyframes noticeScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ========== 信息列表卡片 ========== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.post-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #f0f5ff, #f9f0ff);
}

.post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.post-category {
    background: #f0f5ff;
    color: #667eea;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.post-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.post-price {
    font-size: 17px;
    font-weight: 700;
    color: #ff4d4f;
}

.post-views {
    font-size: 12px;
    color: #bbb;
}

/* ========== 空状态 ========== */
.empty {
    text-align: center;
    padding: 60px 20px;
}

.empty p {
    color: #999;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ========== 按钮 ========== */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #667eea;
    border: 1.5px solid #667eea;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #f0f5ff;
}

/* ========== 发布页面 ========== */
.publish-page {
    padding: 16px;
}

.publish-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.publish-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #ff4d4f;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: #fafafa;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 套餐选择 */
.package-select {
    margin-bottom: 18px;
}

.package-select h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.pkg-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pkg-card {
    position: relative;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.pkg-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.pkg-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f5ff, #f9f0ff);
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
}

.pkg-card .pkg-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.pkg-card .pkg-days {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.pkg-card .pkg-days span {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.pkg-card .pkg-price {
    font-size: 15px;
    font-weight: 700;
    color: #ff4d4f;
}

.pkg-card .pkg-price.free {
    color: #52c41a;
}

.pkg-card .pkg-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.pkg-card.selected .pkg-check {
    display: flex;
}

/* 图片上传 */
.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f5ff;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 14px;
    color: #666;
}

.upload-tip {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* 发布须知 */
.publish-tips {
    background: linear-gradient(135deg, #fffbe6, #fff7e6);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    border-left: 4px solid #faad14;
}

.publish-tips h4 {
    font-size: 14px;
    color: #d48806;
    margin-bottom: 10px;
}

.publish-tips ul {
    padding-left: 20px;
}

.publish-tips li {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* ========== 成功提示 ========== */
.success-box {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.success-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.success-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ========== 登录页面 ========== */
.login-box {
    padding: 40px 24px;
    text-align: center;
}

.login-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.login-tip {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.login-box form {
    text-align: left;
}

.login-box input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    margin-bottom: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

.login-box input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.error-msg {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}

/* ========== 个人中心 ========== */
.my-page {
    padding: 0;
}

.user-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px 50px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.user-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -80px;
    right: -50px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

.user-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.user-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.user-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 统计卡片 */
.my-stats {
    display: flex;
    background: #fff;
    border-radius: 16px;
    margin: -25px 16px 16px;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}

.stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

/* 功能菜单 */
.my-menu {
    background: #fff;
    border-radius: 16px;
    margin: 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.my-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.my-menu-item:last-child {
    border-bottom: none;
}

.my-menu-item:active {
    background: #f5f7fa;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 14px;
}

.menu-icon-service {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.menu-icon-publish {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.menu-icon-posts {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.menu-icon-orders {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.menu-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.menu-arrow {
    color: #ccc;
    font-size: 20px;
    font-weight: 300;
}

/* 状态Tab */
.my-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-x: auto;
}

.my-tabs a {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    background: #fff;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.my-tabs a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

/* 我的发布列表 */
.my-post-list {
    padding: 0 16px;
}

.my-post-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.my-post-link {
    display: block;
}

.my-post-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.my-post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.my-post-meta .price {
    color: #ff4d4f;
    font-weight: 600;
}

.my-post-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.pending {
    background: #fff7e6;
    color: #fa8c16;
}

.status-tag.active {
    background: #f6ffed;
    color: #52c41a;
}

.status-tag.offline {
    background: #f5f5f5;
    color: #999;
}

.status-tag.rejected {
    background: #fff2f0;
    color: #ff4d4f;
}

.expire-text {
    font-size: 12px;
    color: #fa8c16;
}

.btn-republish {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.28);
}

.reject-reason {
    font-size: 12px;
    color: #ff4d4f;
    background: #fff2f0;
    padding: 6px 10px;
    border-radius: 6px;
    width: 100%;
}

/* ========== 详情页 ========== */
.detail-page {
    padding: 0;
}

.detail-swiper {
    width: 100%;
    height: 280px;
    background: #f5f5f5;
    position: relative;
}

.detail-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    background: #fff;
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px;
    position: relative;
    z-index: 2;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-category {
    background: linear-gradient(135deg, #f0f5ff, #f9f0ff);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.detail-views {
    font-size: 13px;
    color: #999;
}

.detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff4d4f;
    margin-bottom: 16px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.detail-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.detail-contact {
    background: linear-gradient(135deg, #f6ffed, #f0f5ff);
    border-radius: 14px;
    padding: 18px;
    margin-top: 20px;
}

.detail-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-contact-row:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #999;
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

.page-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.page-info {
    font-size: 13px;
    color: #999;
}

/* 再次上架页面 */
.republish-page {
    padding: 16px;
}

.republish-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.republish-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    text-align: center;
}

.republish-info {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.republish-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.republish-desc {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pay-methods {
    margin-top: 16px;
}

.pay-methods h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.pay-method input {
    display: none;
}

.pay-method:has(input:checked) {
    border-color: #667eea;
    background: #f0f5ff;
}

.pay-icon {
    font-size: 24px;
}

.pay-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.btn-pay {
    margin-top: 16px;
    font-size: 16px;
    padding: 14px;
}

.pay-tip {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

/* 响应式 */
@media (max-width: 360px) {
    .pkg-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .pkg-card {
        padding: 10px 4px;
    }
    .pkg-card .pkg-days {
        font-size: 18px;
    }
    .pkg-card .pkg-price {
        font-size: 13px;
    }
}


/* ========== 页面标题居中 ========== */
.page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-header .back-btn {
    position: absolute;
    left: 0;
}
.page-header h1,
.page-header h2 {
    margin: 0;
    text-align: center;
    flex: 1;
}


/* ========== 置顶标识 ========== */
.top-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff9c6e, #ff7a45);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 600;
    vertical-align: middle;
}


/* ========== 详情页无图片占位图 ========== */
.detail-no-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f5f7ff, #f9f5ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.no-img-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.no-img-text {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* ========== 列表页无图片优化 ========== */
.post-card .no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7ff, #f9f5ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}


/* ========== 详情页面美化 ========== */
.detail-page {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 80px;
}
.detail-header {
    background: #fff;
    padding: 20px;
    margin: 15px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.4;
}
.detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff4d4f;
    margin-bottom: 15px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.detail-expire {
    background: linear-gradient(135deg, #f6ffed, #f0fff4);
    border: 1px solid #b7eb8f;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 13px;
    color: #389e0d;
}
.detail-expire.offline {
    background: linear-gradient(135deg, #fff1f0, #fff2f0);
    border-color: #ffccc7;
    color: #cf1322;
}
.detail-section {
    background: #fff;
    padding: 20px;
    margin: 15px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
}
.detail-desc {
    font-size: 16px;
    color: #2c2c2c;
    line-height: 2;
    font-weight: 400;
    letter-spacing: 0.5px;
    word-break: break-all;
    margin-bottom: 15px;
}
.contact-info {
    margin-bottom: 15px;
}
.contact-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}
.contact-label {
    color: #999;
    width: 70px;
    flex-shrink: 0;
}
.contact-value {
    color: #333;
    font-weight: 500;
}
.contact-value a {
    color: #667eea;
    text-decoration: none;
}
.btn-contact {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.publisher-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.publisher-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}
.publisher-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}
.detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: #fff;
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 100;
}
.bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.bar-btn:first-child {
    background: #f5f5f5;
    color: #666;
}
.bar-btn.call {
    background: linear-gradient(135deg, #52c41a, #389e0d);
    color: #fff;
}
.bar-btn:hover {
    transform: translateY(-1px);
}


/* ========== 公告栏美化 ========== */
.notice-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-right: 12px;
    border-right: 1px solid rgba(255,255,255,0.3);
    margin-right: 12px;
}
.notice-label {
    font-size: 13px;
    font-weight: 600;
    color: #ff6b35;
    background: rgba(255,107,53,0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ========== 详情页图片九宫格 ========== */
.detail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
}
.detail-images.single {
    grid-template-columns: 1fr;
}
.detail-images.two {
    grid-template-columns: repeat(2, 1fr);
}
.detail-img-item {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}
.detail-img-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-images.single .detail-img-item {
    padding-top: 60%;
}

/* ========== 小程序引导：底部悬浮条 ========== */
.mp-guide-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(64px + constant(safe-area-inset-bottom));
    bottom: calc(64px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-width: 456px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.22);
    border: 1px solid rgba(102, 126, 234, 0.15);
    z-index: 99;
    animation: mpGuideFade 0.4s ease;
}
@keyframes mpGuideFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.mp-guide-bar.hide { display: none; }
.mp-guide-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
}
.mp-guide-text { flex: 1; min-width: 0; line-height: 1.3; }
.mp-guide-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
}
.mp-guide-sub {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
}
.mp-guide-btn {
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}
.mp-guide-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    color: #bbb;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
}
.mp-guide-close:hover { background: #f2f2f2; color: #666; }

/* ========== 小程序引导：弹窗 ========== */
.mp-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s;
    padding: 24px;
}
.mp-mask.show { opacity: 1; visibility: visible; }
.mp-dialog {
    position: relative;
    width: 100%;
    max-width: 300px;
    background: #fff;
    border-radius: 22px;
    padding: 26px 24px 22px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.25s;
}
.mp-mask.show .mp-dialog { transform: scale(1); }
.mp-dialog-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
}
.mp-dialog-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
}
.mp-dialog-head img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}
.mp-qr-wrap {
    width: 190px;
    height: 190px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f4ff, #f6f0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}
.mp-qr-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
.mp-qr-fallback {
    display: none;
    flex-direction: column;
    gap: 6px;
    color: #667eea;
    font-size: 14px;
}
.mp-qr-fallback strong { font-size: 20px; color: #764ba2; }
.mp-tip-wechat,
.mp-tip-browser {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.mp-tip-wechat { color: #667eea; font-weight: 600; }

