/* ===================================================
   大鱼圈线报 H5 前端样式
   干净清爽 参考京粉风格
   =================================================== */

:root {
  --primary: #ff3b30;
  --primary-dark: #e6352b;
  --primary-bg: #fff1f0;
  --bg: #f6f7f9;
  --card-bg: #ffffff;
  --text-main: #191919;
  --text-sub: #96979b;
  --text-desc: #5f6064;
  --border: #f0f1f3;
  --green: #07c160;
  --orange: #ff9500;
  --shadow: 0 1px 6px rgba(20, 20, 40, 0.05);
  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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-main);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, button, select { font-family: inherit; border: none; outline: none; background: none; }

/* ========== 顶部：标题栏 + 栏目Tab（一体式清爽白底） ========== */
.top-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 8px rgba(20, 20, 40, 0.06);
}
.header {
  height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
}
.header-logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff6a5c 0%, #ff3b30 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.10), 0 3px 8px rgba(255, 59, 48, 0.28);
}
.header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
/* 右上角发布线报按钮 */
.header-publish {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 14px;
  background: linear-gradient(135deg, #ff5a50 0%, #ff3b30 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
  transition: opacity 0.2s, transform 0.1s;
  user-select: none;
  white-space: nowrap;
}
.header-publish svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.header-publish:active { opacity: 0.85; transform: scale(0.95); }

/* ========== 栏目Tab ========== */
.tab-bar {
  display: flex;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 6px;
  border-bottom: 1px solid var(--border);
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-item {
  flex-shrink: 0;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--text-sub);
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.tab-item.active {
  color: var(--primary);
  font-weight: 600;
}
.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

/* ========== 二级分类筛选（全局） ========== */
.filter-bar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-item {
  flex-shrink: 0;
  padding: 4px 13px;
  font-size: 12px;
  color: var(--text-desc);
  background: #fff;
  border-radius: 15px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}
.filter-item.active {
  background: var(--primary-bg);
  border-color: #ffd9d6;
  color: var(--primary);
  font-weight: 600;
}

/* ========== 线报列表（紧凑，一屏约4条） ========== */
.post-list {
  padding: 8px 10px;
}

.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  animation: cardIn 0.3s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-header {
            display: flex;
            justify-content: space-between;
            background: #fff9f6;
            padding: 10px 12px;
            border-radius: 4px;
            font-size: 12px;
            color: #999;
            margin-bottom: 2px;
        }
        .post-header .author {
            color: #999;
        }
        .post-header .time {
            color: #999;
        }


/* ========== 卡片主体：左侧文字 + 右侧缩略图 ========== */
.post-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
   padding: 10px 12px 8px;
}
.post-main {
  flex: 1;
  min-width: 0;
}
.post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.post-content {
  font-size: 13px;
  color: var(--text-desc);
  line-height: 1.55;
  word-break: break-all;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.post-content.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}
/* 内容中的链接自动高亮 */
.content-link {
  color: #2e7cf6;
  text-decoration: underline;
  text-decoration-color: rgba(46, 124, 246, 0.35);
  text-underline-offset: 2px;
  word-break: break-all;
}
/* 来源平台标签（与展开按钮同行） */
.post-platform {
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-taobao {  color: #191919; }
.badge-jd     {  color: #191919; }
.badge-pdd    {  color: #191919; }
.badge-douyin {  color: #191919; }
.badge-other  { color: #191919; }

.post-expand-btn {
  font-size: 12px;
  color: #191919;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  padding: 2px 0;
  flex-shrink: 0;
}
.post-expand-btn .arrow {
  margin-left: 3px;
  font-size: 14px;
  font-weight: bold;
  transition: none; /* 不需要旋转动画，直接切换字符 */
}
/* 右侧缩略图（仅折叠时显示第一张） */
.post-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 展开后显示全部图片（默认隐藏） */
.post-images {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.post-images.show { display: grid; }
.post-images.single { grid-template-columns: 1fr; }
.post-images.two { grid-template-columns: repeat(2, 1fr); }
.post-images .img-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}
.post-images.single .img-item { padding-bottom: 60%; }
.post-images .img-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 卡片底部操作栏（紧凑） */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding: 10px 12px 8px;
  border-top: 1px solid var(--border);
}
.post-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-sub);
}
.post-footer-left .stat {
  display: flex;
  align-items: center;
  gap: 2px;
}
.post-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-copy {
  padding: 4px 14px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff5a50, var(--primary));
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3);
  transition: opacity 0.2s, transform 0.1s;
  user-select: none;
}
.btn-copy:active { opacity: 0.8; transform: scale(0.95); }
.btn-delete {
  padding: 4px 10px;
  font-size: 11px;
  color: #999;
  background: #f5f5f6;
  border-radius: 15px;
  cursor: pointer;
  user-select: none;
}
.btn-delete:active { opacity: 0.7; }

/* ========== 加载/空状态 ========== */
.loading-more {
  text-align: center;
  padding: 16px;
  color: var(--text-sub);
  font-size: 12px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
}
.empty-state .icon {
  font-size: 46px;
  margin-bottom: 12px;
  opacity: 0.35;
}
.empty-state .text {
  font-size: 14px;
}

/* ========== 发布页面 ========== */
.publish-page {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 90px;
}
.back-bar {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 12px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.back-bar .back-btn {
  font-size: 24px;
  color: var(--text-main);
  cursor: pointer;
  margin-right: 6px;
  line-height: 1;
}
.back-bar .title {
  font-size: 16px;
  font-weight: 600;
}

/* 发布页双Tab切换 */
.pub-tabs {
  position: sticky;
  top: 50px;
  z-index: 99;
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.pub-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-sub);
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
}
.pub-tab.active {
  color: var(--primary);
  font-weight: 600;
}
.pub-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.pub-tab .count {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 5px;
  margin-left: 3px;
  border-radius: 8px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 10px;
  text-align: center;
}

.publish-wrap {
  padding: 12px;
}
.form-group {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.form-label {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.form-label .required {
  color: var(--primary);
  margin-right: 2px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
  color: var(--text-main);
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  background: #fff;
}
.form-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-row {
  display: flex;
  gap: 10px;
}
.form-row > * { flex: 1; }

/* 表单提示 */
.form-tip {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 6px;
  line-height: 1.6;
}

/* 图片上传 */
.upload-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.upload-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.upload-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.upload-btn {
  width: 100%;
  padding-bottom: 100%;
  border: 1.5px dashed #d9dadd;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  background: #fafbfc;
  transition: border-color 0.2s;
}
.upload-btn:active { border-color: var(--primary); }
.upload-btn::before {
  content: '+';
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: #c3c4c8;
  line-height: 1;
}
.upload-btn::after {
  content: '添加图片';
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: #a6a7ab;
  white-space: nowrap;
}

/* 发布配额条 */
.quota-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 12px 0;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--primary-bg);
  border: 1px solid #ffd9d6;
  font-size: 12px;
  color: var(--primary);
}
.quota-bar .quota-left { display: flex; align-items: center; gap: 6px; }
.quota-bar .quota-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.quota-bar .quota-num { font-weight: 700; }
.quota-bar .quota-expire {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}
.quota-bar .quota-expire.warn { color: #e64545; opacity: 1; font-weight: 600; }
/* 会员配额条（金色） */
.quota-bar.member {
  background: linear-gradient(135deg, #fff8e6, #ffefd0);
  border-color: #f5d78a;
  color: #a36a00;
}
.quota-bar.member .quota-dot { background: #e6a817; }
.quota-bar .quota-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #f0d9a8;
  color: #b07a10;
}
.quota-bar .quota-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb63a, #ff8a3c);
  cursor: pointer;
}
.quota-bar .quota-link:active { opacity: 0.8; }

/* 会员引导卡（免费次数用完时） */
.vip-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd76a 0%, #ffb63a 100%);
  box-shadow: 0 4px 14px rgba(255, 170, 40, 0.35);
}
.vip-guide-txt { flex: 1; min-width: 0; }
.vip-guide-title {
  font-size: 14px;
  font-weight: 700;
  color: #7a4d00;
  margin-bottom: 2px;
}
.vip-guide-desc {
  font-size: 11px;
  color: #96650a;
  line-height: 1.5;
}
.vip-guide-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 18px;
  background: #7a4d00;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
  user-select: none;
}
.vip-guide-btn:active { opacity: 0.85; transform: scale(0.96); }

/* 未登录授权引导 */
.login-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  width: 80%;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  padding: 40px 28px 32px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(20, 20, 40, 0.08);
}
.login-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6a5c 0%, #ff3b30 100%);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.35);
}
.login-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.login-desc {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 26px;
  line-height: 1.7;
}
.login-btn {
  height: 46px;
  border-radius: 23px;
  background: linear-gradient(135deg, #ff5a50, var(--primary));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
  user-select: none;
}
.login-btn:active { opacity: 0.85; transform: scale(0.98); }
.login-btn svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

/* 发布限制提示 */
.limit-tip {
  background: #fff7e6;
  border: 1px solid #ffe1a8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #c77700;
  line-height: 1.7;
  margin-bottom: 10px;
}
.limit-tip a {
  color: var(--primary);
  font-weight: 600;
}

/* 提交按钮 */
.submit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -1px 8px rgba(0,0,0,0.06);
  z-index: 100;
}
.submit-btn {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  background: linear-gradient(135deg, #ff5a50, var(--primary));
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
  transition: opacity 0.2s;
}
.submit-btn:active { opacity: 0.85; }
.submit-btn:disabled { opacity: 0.5; box-shadow: none; }

/* 编辑模式：提交栏右侧的取消按钮 */
.submit-bar-inner {
  display: flex;
  gap: 10px;
  align-items: center;
}
.submit-bar-inner .cancel-edit {
  flex-shrink: 0;
  height: 46px;
  padding: 0 20px;
  border-radius: 23px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.submit-bar-inner .cancel-edit:active { opacity: 0.7; }

/* ========== 我的发布 ========== */
.my-panel {
  padding: 12px;
}
/* 顶部用户信息条 */
.my-head {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.my-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 11px;
  overflow: hidden;
  flex-shrink: 0;
}
.my-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-head-info {
  flex: 1;
  min-width: 0;
}
.my-head-name {
  font-size: 15px;
  font-weight: 600;
}
.my-head-sub {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}
.my-head-stats {
  display: flex;
  gap: 14px;
  text-align: center;
  flex-shrink: 0;
}
.my-head-stats .num {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.my-head-stats .label {
  font-size: 10px;
  color: var(--text-sub);
}

/* 我的发布列表卡片 */
.my-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.my-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
/* 状态标签 */
.status-tag {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
}
.status-tag.pending {
  background: #fff3e0;
  color: #f57c00;
}
.status-tag.approved {
  background: #e6f7ee;
  color: #07a35a;
}
.status-tag.rejected {
  background: #f5f5f6;
  color: #999;
}
.my-card-time {
  font-size: 11px;
  color: var(--text-sub);
}
.my-card-body {
  display: flex;
  gap: 10px;
}
.my-card-main {
  flex: 1;
  min-width: 0;
}
.my-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.my-card-content {
  font-size: 12px;
  color: var(--text-desc);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}
.my-card-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.my-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-card-thumb.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #d4d5d8;
}
.my-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 11px;
  color: var(--text-sub);
}
.my-card-meta .copy-stat {
  margin-left: auto;
}
.my-card-ops {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.my-edit-btn {
  padding: 5px 16px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff5a50, var(--primary));
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.25);
  user-select: none;
}
.my-edit-btn:active { opacity: 0.8; transform: scale(0.96); }
.my-del-btn {
  padding: 5px 16px;
  font-size: 12px;
  color: var(--text-sub);
  background: #f5f5f6;
  border-radius: 15px;
  cursor: pointer;
  user-select: none;
}
.my-del-btn:active { opacity: 0.7; }
/* 我的发布空状态 */
.my-empty {
  background: #fff;
  border-radius: var(--radius);
  padding: 60px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.my-empty .icon {
  font-size: 46px;
  opacity: 0.35;
  margin-bottom: 12px;
}
.my-empty .text {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 18px;
}
.my-empty .go-btn {
  display: inline-block;
  padding: 8px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff5a50, var(--primary));
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 59, 48, 0.3);
}

/* ========== 会员页面 ========== */
.member-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 12px 12px 100px;
}
/* 会员状态卡片（金色渐变） */
.member-hero {
  position: relative;
  background: linear-gradient(135deg, #7a4d00 0%, #b07a10 45%, #e6a817 100%);
  border-radius: 16px;
  padding: 20px 18px 16px;
  color: #fff;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(200, 145, 30, 0.35);
}
.member-hero-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.member-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.member-hero-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-hero-info { min-width: 0; }
.member-hero-name {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-hero-level {
  font-size: 12px;
  opacity: 0.92;
  margin-top: 1px;
}
.member-edit-nick {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  color: #fff;
  cursor: pointer;
  vertical-align: middle;
}
.member-edit-nick:active { opacity: 0.7; }

/* 修改昵称弹窗 */
.nickname-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nickname-box {
  width: 78%;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  animation: nicknameIn 0.25s ease;
}
@keyframes nicknameIn {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.nickname-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 14px;
}
.nickname-input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  background: var(--bg);
}
.nickname-input:focus { border-color: var(--primary); }
.nickname-ops {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.nickname-btn {
  flex: 1;
  height: 38px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}
.nickname-btn.cancel {
  background: var(--bg);
  color: var(--text-desc);
}
.nickname-btn.ok {
  background: linear-gradient(135deg, #ff8a3c, #ff4d4f);
  color: #fff;
  font-weight: 600;
}
.nickname-btn:active { opacity: 0.8; }
.member-hero-expire {
  font-size: 12px;
  opacity: 0.92;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.member-hero-expire.expire-warn { color: #ffd76a; opacity: 1; font-weight: 600; }
.member-hero-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
  position: relative;
  z-index: 1;
}
.hero-stat { flex: 1; text-align: center; }
.hero-stat .num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.hero-stat .label {
  font-size: 10px;
  opacity: 0.85;
  margin-top: 1px;
}
.hero-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* 会员区块标题 */
.member-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-desc);
  margin: 4px 2px 10px;
}

/* 四大权益 */
.member-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.benefit {
  background: #fff;
  border-radius: 12px;
  padding: 12px 4px;
  text-align: center;
  box-shadow: var(--shadow);
}
.benefit-icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.benefit-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}
.benefit-desc {
  font-size: 9px;
  color: var(--text-sub);
  margin-top: 1px;
  line-height: 1.4;
}

/* 套餐选择 */
.member-plans {
  display: flex;
  gap: 10px;
}
.plan {
  position: relative;
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 16px 12px 14px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s;
}
.plan:active { transform: scale(0.98); }
.plan.selected { border-color: var(--primary); }
.plan.hot { border-color: #ffe6b8; }
.plan.hot.selected { border-color: var(--primary); }
.plan-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffb63a, #e6a817);
  color: #7a4d00;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.plan-price {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.plan-price .num { font-size: 26px; }
.plan-price .unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sub);
}
.plan-desc {
  font-size: 10px;
  color: var(--text-sub);
  line-height: 1.5;
}
.plan-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #d9dadd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.plan.selected .plan-check {
  border-color: var(--primary);
  background: var(--primary);
}
.plan.selected .plan-check::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.member-tips {
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 20px;
  line-height: 1.9;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.82);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  max-width: 80%;
  text-align: center;
}
.toast.show { opacity: 1; }

/* ========== 图片预览 ========== */
.image-preview-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.image-preview-mask.show { display: flex; }
.image-preview-mask img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 6px;
}
