/* ===== 同城便民信息平台 - 公共样式 ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --danger: #ef4444;
  --warn: #f59e0b;
  --success: #10b981;
  --text: #1f2937;
  --text-sub: #6b7280;
  --bg: #f3f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(31, 41, 55, .08);
  --shadow-hover: 0 8px 24px rgba(37, 99, 235, .15);
  --max-width: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.main-body { padding-top: 64px; min-height: calc(100vh - 220px); }
.section { margin: 18px auto; }

/* ===== 头部 ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { flex-shrink: 0; }
.logo img { height: 40px; }
.logo-text { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 10px; background: var(--gradient); color: #fff; font-size: 18px; font-weight: 700; }
.search-box { flex: 1; max-width: 480px; display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; }
.search-box input { flex: 1; border: 0; background: transparent; padding: 9px 16px; font-size: 14px; outline: none; }
.search-box button { border: 0; background: var(--gradient); color: #fff; padding: 9px 22px; cursor: pointer; font-size: 14px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--text); }
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.active { background: var(--gradient); color: #fff; }
.main-nav a.nav-ad { color: var(--warn); font-weight: 600; }
.user-area { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-link { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-plain { display: inline-block; padding: 7px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--text); font-size: 14px; cursor: pointer; }
.btn-plain:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { display: inline-block; padding: 8px 20px; border-radius: 8px; background: var(--gradient); color: #fff; font-size: 14px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-lg { padding: 12px 28px; font-size: 16px; border-radius: 10px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-warn { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.btn-warn:hover { background: var(--warn); color: #fff; }
.btn-mini { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 13px; border: 1px solid var(--border); background: #fff; color: var(--text-sub); cursor: pointer; }
.btn-mini:hover { border-color: var(--primary); color: var(--primary); }
.nav-toggle { display: none; border: 0; background: transparent; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--text); border-radius: 2px; }
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--border); padding: 8px 0; }
.mobile-nav a { display: block; padding: 12px 24px; border-bottom: 1px solid #f3f4f6; }
.mobile-nav.open { display: block; }

/* ===== 轮播 ===== */
.home-banner { background: #1e293b; position: relative; }
.banner-carousel { position: relative; max-width: var(--max-width); margin: 0 auto; overflow: hidden; }
.banner-slide { display: none; position: relative; }
.banner-slide img { width: 100%; height: 360px; object-fit: cover; }
.banner-placeholder { height: 360px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; background: var(--gradient); }
.banner-slide.active { display: block; animation: fadeIn .6s; }
@keyframes fadeIn { from { opacity: .2; } to { opacity: 1; } }
.banner-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 24px 16px; color: #fff; font-size: 18px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.banner-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.banner-dots span.on { background: #fff; width: 22px; border-radius: 4px; }
.notice-bar { background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; border-radius: var(--radius); padding: 10px 16px; font-size: 14px; margin-top: 18px; }
.notice-icon { background: var(--warn); color: #fff; border-radius: 4px; padding: 1px 8px; margin-right: 8px; font-size: 12px; }

/* ===== 分类 ===== */
.category-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; background: #fff; padding: 20px 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px; border-radius: 10px; transition: all .2s; }
.cat-item:hover { background: var(--primary-light); transform: translateY(-2px); }
.cat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-icon-color-0 { background: linear-gradient(135deg,#60a5fa,#3b82f6); color:#fff; font-size:22px; font-weight:700; }
.cat-icon-color-1 { background: linear-gradient(135deg,#34d399,#10b981); color:#fff; font-size:22px; font-weight:700; }
.cat-icon-color-2 { background: linear-gradient(135deg,#fbbf24,#f59e0b); color:#fff; font-size:22px; font-weight:700; }
.cat-icon-color-3 { background: linear-gradient(135deg,#f472b6,#ec4899); color:#fff; font-size:22px; font-weight:700; }
.cat-icon-color-4 { background: linear-gradient(135deg,#a78bfa,#8b5cf6); color:#fff; font-size:22px; font-weight:700; }
.cat-icon-color-5 { background: linear-gradient(135deg,#38bdf8,#0ea5e9); color:#fff; font-size:22px; font-weight:700; }
.cat-icon-color-6 { background: linear-gradient(135deg,#fb7185,#f43f5e); color:#fff; font-size:22px; font-weight:700; }
.cat-icon-color-7 { background: linear-gradient(135deg,#4ade80,#22c55e); color:#fff; font-size:22px; font-weight:700; }
.cat-name { font-size: 13px; color: var(--text); }

/* ===== 区块 ===== */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; position: relative; padding-left: 12px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--gradient); }
.section-more { color: var(--text-sub); font-size: 14px; }
.section-more:hover { color: var(--primary); }

/* ===== 信息卡片网格 ===== */
.info-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.info-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .2s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-cover { position: relative; height: 140px; background: #e5e7eb; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 10px 12px 12px; }
.card-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-sub); }
.cat-tag { background: var(--primary-light); color: var(--primary); padding: 1px 8px; border-radius: 4px; font-size: 12px; }
.meta-views { margin-left: auto; }
.tag-top { position: absolute; top: 8px; left: 8px; background: var(--gradient); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; z-index: 2; }
.no-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #9ca3af; font-size: 13px; background: #eef2f7; }
.empty-tip { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--text-sub); }

/* ===== 热门列表 ===== */
.hot-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hot-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.hot-item:last-child { border-bottom: 0; }
.hot-item:hover { background: var(--primary-light); }
.hot-rank { width: 22px; height: 22px; border-radius: 6px; background: #e5e7eb; color: var(--text-sub); font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hot-rank-1 { background: #f59e0b; color: #fff; }
.hot-rank-2 { background: #94a3b8; color: #fff; }
.hot-rank-3 { background: #d97706; color: #fff; }
.hot-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 14px; }
.hot-views { font-size: 12px; color: var(--text-sub); flex-shrink: 0; }

/* ===== 广告墙入口 ===== */
.adwall-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px; border-radius: var(--radius); background: var(--gradient); color: #fff; }
.adwall-entry h2 { font-size: 24px; margin-bottom: 6px; }
.adwall-entry p { opacity: .9; font-size: 14px; }
.adwall-entry-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.adwall-count { font-size: 14px; opacity: .9; }
.adwall-entry .btn-primary { background: #fff; color: var(--primary); }

/* ===== 列表页 ===== */
.list-layout { display: flex; gap: 16px; }
.list-side { width: 180px; flex-shrink: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 8px; align-self: flex-start; position: sticky; top: 80px; }
.side-title { font-size: 15px; font-weight: 700; padding: 8px 12px; }
.side-item { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-sub); }
.side-item:hover { background: var(--primary-light); color: var(--primary); }
.side-item.on { background: var(--gradient); color: #fff; }
.list-main { flex: 1; min-width: 0; }
.list-head { background: #fff; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.list-head-title { font-size: 16px; font-weight: 600; }
.list-head-title small { color: var(--text-sub); font-weight: 400; margin-left: 8px; }
.list-row { display: flex; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-bottom: 12px; transition: all .2s; }
.list-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.row-cover { position: relative; width: 150px; height: 100px; border-radius: 8px; overflow: hidden; background: #eef2f7; flex-shrink: 0; }
.row-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1; min-width: 0; }
.row-title { font-size: 16px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-content { font-size: 13px; color: var(--text-sub); margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-sub); }
.pager { text-align: center; padding: 18px 0; }
.pager a, .pager span { display: inline-block; min-width: 36px; padding: 7px 10px; margin: 0 3px; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text-sub); }
.pager .current { background: var(--gradient); color: #fff; border-color: transparent; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 详情页 ===== */
.detail-page { margin-top: 18px; }
.crumb { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.detail-layout { display: flex; gap: 20px; }
.detail-gallery { width: 46%; flex-shrink: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; position: relative; }
.gallery-main { border-radius: 8px; overflow: hidden; display: flex; }
.gallery-slide { flex: 0 0 100%; min-width: 100%; max-width: 100%; visibility: hidden; opacity: 0; transition: opacity .3s ease; }
.gallery-slide.on { visibility: visible; opacity: 1; }
.gallery-slide img { width: 100%; height: 380px; object-fit: contain; background: #111827; }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; cursor: pointer; }
.gallery-dots span.on { background: var(--primary); }
.gallery-prev, .gallery-next { position: absolute; top: 45%; transform: translateY(-50%); width: 34px; height: 46px; border: 0; background: rgba(0,0,0,.4); color: #fff; font-size: 22px; cursor: pointer; border-radius: 6px; }
.gallery-prev { left: 16px; } .gallery-next { right: 16px; }
.detail-main { flex: 1; min-width: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.detail-title { font-size: 24px; font-weight: 700; }
.detail-tags { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag-price { background: #fef3c7; color: #b45309; padding: 2px 10px; border-radius: 4px; font-size: 13px; }
.detail-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-sub); border-bottom: 1px dashed var(--border); padding-bottom: 14px; }
.detail-contact { margin-top: 16px; background: var(--primary-light); border-radius: 10px; padding: 12px 16px; }
.contact-title { font-size: 13px; color: var(--primary); font-weight: 600; }
.contact-value { font-size: 18px; font-weight: 700; margin-top: 4px; }
.detail-content { margin-top: 18px; }
.content-title { font-size: 16px; font-weight: 600; border-left: 4px solid var(--primary); padding-left: 10px; margin-bottom: 10px; }
.content-body { font-size: 15px; color: #374151; white-space: pre-wrap; }

/* ===== 表单 ===== */
.form-page { max-width: 720px; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.form-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.form-title small { font-size: 13px; color: var(--text-sub); font-weight: 400; margin-left: 8px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group label em { color: var(--danger); font-style: normal; }
.form-group input[type=text], .form-group input[type=password], .form-group input[type=tel], .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; background: #fff; transition: border .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-group textarea { resize: vertical; }
.form-tip { font-size: 12px; color: var(--text-sub); margin-top: 6px; }
.form-static { background: var(--bg); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.form-submit { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.code-row { display: flex; gap: 10px; }
.code-btn { flex-shrink: 0; }
.code-btn.disabled { opacity: .6; cursor: not-allowed; }

/* 上传 */
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.upload-item { position: relative; border-radius: 10px; overflow: hidden; background: #eef2f7; aspect-ratio: 4/3; }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-remove { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 0; cursor: pointer; font-size: 14px; line-height: 22px; text-align: center; }
.upload-add { display: inline-block; padding: 10px 18px; border: 1px dashed #c4d3f5; border-radius: 10px; background: var(--primary-light); color: var(--primary); cursor: pointer; font-size: 14px; }
.upload-add:hover { background: #dbeafe; }

/* 金额档位 */
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.level-item { position: relative; }
.level-item input { display: none; }
.level-card { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid var(--border); border-radius: 12px; padding: 14px 8px; cursor: pointer; background: #fff; transition: all .2s; }
.level-card b { font-size: 16px; }
.level-card small { color: var(--text-sub); font-size: 13px; }
.level-card em { font-style: normal; font-size: 11px; color: #9ca3af; }
.level-item input:checked + .level-card { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,.15); transform: translateY(-2px); }
.level-free .level-card b { color: var(--success); }

/* ===== 登录注册 ===== */
.auth-page { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin: 30px 0; }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; }

/* ===== 个人中心 ===== */
.user-layout { display: flex; gap: 16px; }
.user-side { width: 220px; flex-shrink: 0; align-self: flex-start; position: sticky; top: 80px; }
.user-card { background: var(--gradient); color: #fff; border-radius: var(--radius); padding: 24px 16px; text-align: center; }
.user-avatar { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.user-name { font-size: 17px; font-weight: 600; }
.user-mobile { font-size: 13px; opacity: .85; margin-top: 4px; }
.user-menu { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 12px; padding: 8px; }
.menu-item { padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--text-sub); }
.menu-item.on { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.user-side .btn-plain { width: 100%; margin-top: 12px; text-align: center; }
.user-main { flex: 1; min-width: 0; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.panel-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; padding-left: 10px; border-left: 4px solid var(--primary); }
.my-row { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #f3f4f6; padding: 12px 0; }
.my-row:last-child { border-bottom: 0; }
.my-row-cover { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: #eef2f7; flex-shrink: 0; }
.my-row-cover img { width: 100%; height: 100%; object-fit: cover; }
.my-row-body { flex: 1; min-width: 0; }
.my-row-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-row-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-sub); margin-top: 6px; flex-wrap: wrap; }
.my-row-ops { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.status-tag { padding: 2px 10px; border-radius: 4px; font-size: 12px; }
.st-pass { background: #d1fae5; color: #047857; }
.st-pending { background: #fef3c7; color: #b45309; }
.st-reject { background: #fee2e2; color: #b91c1c; }
.st-expired { background: #f3f4f6; color: #6b7280; }

/* ===== 支付页 ===== */
.pay-page { display: flex; justify-content: center; }
.pay-card { width: 100%; max-width: 480px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin: 30px 0; }
.pay-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 18px; }
.pay-order { background: var(--bg); border-radius: 10px; padding: 14px 16px; }
.pay-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.pay-row span { color: var(--text-sub); }
.pay-row b { font-weight: 600; max-width: 65%; word-break: break-all; text-align: right; }
.pay-amount { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.pay-amount span { color: var(--text-sub); }
.pay-num { font-size: 30px; font-weight: 700; color: var(--danger); }
.pay-buttons { display: flex; gap: 12px; margin-top: 20px; }
.pay-buttons .btn-primary { flex: 1; text-align: center; }
.pay-tip { font-size: 12px; color: var(--text-sub); text-align: center; margin-top: 14px; }

/* ===== 广告墙页 ===== */
.adwall-page { max-width: 1000px; }
.adwall-head { text-align: center; margin-bottom: 18px; }
.adwall-head h1 { font-size: 28px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.adwall-head p { color: var(--text-sub); font-size: 14px; margin-top: 6px; }
.adwall-view { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; overflow: hidden; }
.adwall-status { text-align: center; font-size: 12px; color: var(--text-sub); padding-bottom: 10px; }
.adwall-track { overflow: hidden; position: relative; transition: none; }
.ad-grid { display: flex; flex-wrap: wrap; margin: -6px; }
.ad-grid > .ad-item { flex: 0 0 calc(33.333% - 12px); min-width: 0; margin: 6px; }
.ad-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.ad-imgs { position: relative; overflow: hidden; background: #e5e7eb; aspect-ratio: 3/2; }
.ad-imgs .ad-slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: none; }
.ad-imgs .ad-slide.active { display: block; animation: adFade .45s ease; }
.ad-imgs .ad-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-imgs:empty { display: none; }
@keyframes adFade { from { opacity: .2; } to { opacity: 1; } }
@supports (display: grid) {
  .ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
  .ad-grid > .ad-item { flex: none; margin: 0; }
}
@supports not (aspect-ratio: 3 / 2) {
  .ad-imgs { height: 210px; }
}
.ad-text { padding: 8px 10px; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adwall-release { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-top: 16px; }
.release-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; padding-left: 10px; border-left: 4px solid var(--gradient); border-left-color: var(--primary); }
.release-login-tip, .release-limit-tip { background: var(--primary-light); border-radius: 10px; padding: 18px; text-align: center; color: var(--text-sub); font-size: 14px; }

/* ===== 页脚 ===== */
.site-footer { background: #111827; color: #9ca3af; margin-top: 30px; padding: 26px 0; }
.footer-inner { text-align: center; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }

/* ===== Toast ===== */
.toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); background: rgba(17,24,39,.92); color: #fff; padding: 10px 22px; border-radius: 22px; font-size: 14px; z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s; }
.toast.show { opacity: 1; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(5, 1fr); }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-layout { flex-direction: column; }
  .detail-gallery { width: 100%; }
}
@media (max-width: 768px) {
  .main-body { padding-top: 58px; }
  .header-inner { height: 58px; gap: 10px; }
  .search-box { order: 3; flex-basis: 100%; max-width: none; margin: 6px 16px; }
  .main-nav, .user-area { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 8px 12px; }
  .main-body { padding-top: 104px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-icon { width: 44px; height: 44px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .card-cover { height: 110px; }
  .banner-slide img, .banner-placeholder { height: 180px; }
  .list-layout { flex-direction: column; }
  .list-side { width: 100%; position: static; display: flex; overflow-x: auto; gap: 6px; padding: 10px; }
  .side-title { display: none; }
  .side-item { white-space: nowrap; }
  .row-cover { width: 100px; height: 76px; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-grid { grid-template-columns: repeat(3, 1fr); }
  .user-layout { flex-direction: column; }
  .user-side { width: 100%; position: static; }
  .ad-grid { margin: -5px; }
  .ad-grid > .ad-item { flex: 0 0 calc(50% - 10px); margin: 5px; }
  .ad-imgs { aspect-ratio: 4/3; }
  @supports (display: grid) {
    .ad-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
    .ad-grid > .ad-item { flex: none; margin: 0; }
  }
  @supports not (aspect-ratio: 4 / 3) {
    .ad-imgs { height: 170px; }
  }
  .adwall-entry { flex-direction: column; align-items: flex-start; }
  .adwall-entry-right { align-items: flex-start; }
  .detail-title { font-size: 19px; }
  .gallery-slide img { height: 260px; }
  .form-card { padding: 18px; }
  .pay-buttons { flex-direction: column; }
}

/* 微信扫码支付 */
.pay-qr { margin-top: 20px; text-align: center; }
.qr-box { display: inline-flex; align-items: center; justify-content: center; width: 240px; height: 240px; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.qr-box img, .qr-box canvas { display: block; }
.qr-loading { color: var(--text-sub); font-size: 13px; }
.qr-tip { margin-top: 12px; font-size: 14px; color: var(--text); }
.qr-count { margin-top: 8px; font-size: 13px; color: var(--text-sub); }
.qr-count b { color: var(--danger); }
.qr-status { margin-top: 10px; font-size: 14px; color: var(--primary); min-height: 20px; }
.qr-actions { justify-content: center; }
