* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f0f0;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero h1,
.hero-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-logo {
  height: 1em;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.hero p,
.desc {
  color: #666;
  font-size: 14px;
}

h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.note-input {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: 1px solid #f0e6b8;
  border-radius: 8px;
  background: #fff9e6;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.image-uploader {
  margin-top: 14px;
}

.upload-label {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed #b7bcc7;
  background: #f7f9fc;
  color: #566074;
  font-size: 13px;
  cursor: pointer;
}

.file-input-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.image-preview-wrap {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-item {
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}

.image-preview {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ececec;
  background: #fafafa;
}

.remove-image-btn {
  margin-top: 6px;
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
}

.expire-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.expire-input {
  max-width: 160px;
  margin-top: 0;
}

.expire-unit {
  color: #666;
  font-size: 14px;
}

.expire-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preset-btn {
  border: 1px solid #ddd;
  background: #f7f7f7;
  color: #555;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.preset-btn.active {
  border-color: #e74c3c;
  background: #fff1ef;
  color: #e74c3c;
  font-weight: 600;
}

.live-status {
  margin: 18px 0 8px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8f6 0%, #ffffff 100%);
  border: 1px solid #ffe0d8;
}

.live-status-icon {
  font-size: 34px;
  margin-bottom: 6px;
}

.live-status-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.live-countdown {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e74c3c;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.live-status-desc {
  font-size: 13px;
  color: #777;
}

.message-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.message-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ececec;
  background: #fafafa;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 15px;
  margin-top: 8px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #e74c3c;
  color: #fff;
  flex: 1;
}

.btn-secondary {
  background: #eee;
  color: #666;
  flex: 1;
}

.btn-wechat {
  background: #07c160;
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.full {
  width: 100%;
  margin-top: 12px;
}

.hidden {
  display: none !important;
}

.center {
  text-align: center;
  padding: 40px 24px;
}

.success-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #27ae60;
  font-size: 28px;
  font-weight: 700;
}

.result-card {
  text-align: center;
}

.tags {
  margin: 12px 0;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  margin: 4px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
}

.link-box {
  padding: 12px;
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 8px;
  font-size: 13px;
  word-break: break-all;
  margin: 12px 0;
  text-align: left;
}

.burned-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.warning {
  background: #fff3cd;
  color: #856404;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* 后台分入口登录 Tab（平台运营 / 代理登录） */
.login-card-with-tabs {
  padding: 0;
  overflow: hidden;
}

.login-entry-tabs {
  display: flex;
  background: #e74c3c;
}

.login-entry-tab {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.login-entry-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.login-entry-tab.active {
  background: #fff;
  color: #e74c3c;
  font-weight: 600;
  cursor: default;
}

.login-entry-tab.active:hover {
  background: #fff;
  color: #e74c3c;
}

.login-card-body {
  padding: 24px;
}

.login-card-body.text-center {
  text-align: center;
}

.read-browser-tip {
  position: relative;
  background: #eef6ff;
  color: #1a5276;
  border: 1px solid #b8daff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0;
  text-align: left;
}

.read-browser-tip p {
  margin: 0;
}

.read-browser-tip strong {
  color: #154360;
}

.read-wx-guide-arrow {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 9998;
  color: #2980b9;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
  animation: guidePulse 1.2s ease-in-out infinite;
  pointer-events: none;
}

[data-wechat-read-actions] .input {
  margin-bottom: 0;
}

.message-content {
  background: #fff9e6;
  border: 1px solid #f0e6b8;
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
}

.burn-tip {
  margin-top: 12px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

.ref-name {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.share-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

.section-block {
  margin-top: 16px;
  text-align: left;
}

.section-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.status-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.status-meta {
  margin: 12px 0 16px;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.wechat-guide {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.wechat-guide-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.wechat-guide-arrow {
  position: absolute;
  top: 12px;
  right: 22px;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  animation: guidePulse 1.2s ease-in-out infinite;
}

.wechat-guide-card {
  position: absolute;
  left: 50%;
  top: 96px;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.wechat-guide-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.wechat-guide-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

@keyframes guidePulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.65; }
}

.wechat-share-card {
  top: 72px;
  max-width: 380px;
  padding: 18px 16px 14px;
}

.wechat-share-tip {
  font-size: 14px;
  color: #e74c3c;
  font-weight: 600;
  margin-bottom: 12px !important;
}

.wechat-share-poster {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 10px;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  -webkit-touch-callout: default;
  user-select: none;
  pointer-events: auto;
}

.wechat-share-sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 14px !important;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(8px);
}

.nav-brand {
  color: #e74c3c;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-link.active,
.nav-link:hover {
  color: #e74c3c;
  background: #fff1f0;
}

.profile-card .name {
  font-size: 22px;
  font-weight: 700;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-text {
  flex: 1;
  min-width: 0;
}

.mine-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f3f3;
  flex-shrink: 0;
}

.mine-avatar.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.avatar-picker {
  cursor: pointer;
  display: inline-block;
}

.login-box,
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.edit-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.edit-actions {
  display: flex;
  gap: 10px;
}

.sent-list {
  margin-top: 10px;
}

.sent-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sent-item:last-child {
  border-bottom: none;
}

.sent-main {
  flex: 1;
  min-width: 0;
}

.sent-name {
  font-weight: 600;
  font-size: 15px;
}

.sent-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #999;
  font-size: 12px;
}

.sent-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 48px;
}

.status-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: #856404;
}

.status-pill.read { background: #e8f8ef; color: #1e7e34; }
.status-pill.expired,
.status-pill.deleted { background: #fdecea; color: #c0392b; }
.status-pill.active { background: #fff3cd; color: #856404; }

.link-btn {
  border: none;
  background: transparent;
  color: #e74c3c;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  padding: 6px 4px;
  -webkit-tap-highlight-color: transparent;
}

.link-btn.danger { color: #c0392b; }

.menu-card {
  padding: 8px 16px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

.menu-item:last-child { border-bottom: none; }
.menu-item.danger { color: #e74c3c; }
.menu-item .arrow { color: #ccc; font-size: 20px; flex: 0 0 auto; }
.menu-item .email {
  display: block;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
  margin-top: 4px;
}
.menu-item-email { align-items: flex-start; }
.menu-item-email-text {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}
.menu-item-email-label {
  display: block;
  font-size: 15px;
  color: #333;
}

.empty {
  color: #999;
  font-size: 13px;
  padding: 8px 0;
}

.plan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.plan-item:last-child { border-bottom: none; }
.plan-item.recommend { background: #fff8f6; margin: 0 -8px; padding: 14px 8px; border-radius: 8px; }
.plan-price { color: #e74c3c; font-weight: 700; font-size: 18px; }

/* 以「¥48 开通」为准，包月/包年按钮同宽 */
.plan-item .pay-plan-btn {
  flex: 0 0 7.5em;
  width: 7.5em;
  min-width: 7.5em;
  max-width: 7.5em;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.vip-invite-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.vip-invite-row .input {
  flex: 1;
  margin-bottom: 0;
}

.vip-invite-row .btn {
  flex-shrink: 0;
}

.field-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: #666;
}

.prose h1 { font-size: 22px; margin-bottom: 12px; }
.prose h2 { font-size: 16px; margin: 18px 0 8px; }
.prose p { color: #555; font-size: 14px; margin-bottom: 8px; }

.sub { color: #666; font-size: 14px; }
.hidden { display: none !important; }

@media (max-width: 600px) {
  .row-2 {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .image-preview-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .message-images {
    grid-template-columns: 1fr;
  }

  .login-box,
  .profile-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.site-footer {
  max-width: 720px;
  margin: 4px auto 28px;
  padding: 0 16px 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #888;
}
.site-footer a {
  color: #888;
  text-decoration: none;
  display: inline-block;
  margin: 0 2px;
}
.site-footer a:hover {
  color: #666;
  text-decoration: underline;
}
.site-footer-sep {
  color: #ccc;
  margin: 0 4px;
}

.login-tabs{display:flex;gap:8px;margin:12px 0 8px}
.login-tab{flex:1;border:1px solid #ddd;background:#f7f7f7;color:#555;border-radius:999px;padding:8px 12px;font-size:14px;cursor:pointer}
.login-tab.active{border-color:#e74c3c;background:#fff1ef;color:#e74c3c;font-weight:600}
.login-subtabs{display:flex;gap:8px;margin:0 0 10px}
.login-subtab{flex:1;border:1px solid #eee;background:#fafafa;color:#666;border-radius:8px;padding:7px 10px;font-size:13px;cursor:pointer}
.login-subtab.active{border-color:#e74c3c;background:#fff1ef;color:#e74c3c;font-weight:600}
.wx-primary-box{margin:4px 0 16px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:4px 0 14px;color:#999;font-size:13px}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:#eee}
.auth-agree{display:flex;align-items:flex-start;gap:8px;margin:0 0 14px;font-size:13px;line-height:1.6;color:#666;text-align:left;cursor:pointer}
.auth-agree input[type=checkbox]{margin-top:3px;flex:0 0 auto;width:16px;height:16px;cursor:pointer}
.auth-agree a{color:#c0392b;text-decoration:none}
.auth-agree a:hover{text-decoration:underline}
.bind-phone-box{margin:14px 0;padding:14px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}
.bind-phone-code-row{display:flex;gap:8px;align-items:center;margin-top:10px}
.bind-phone-code-row .input{margin-top:0;flex:1}
.bind-phone-code-row .btn{flex:0 0 auto;white-space:nowrap}
.btn-wechat{background:#07c160!important;border-color:#07c160!important;color:#fff!important}
.btn-wechat:hover{background:#06ad56!important}
#loginPanel .input,#registerPanel .input,#registerPanel .btn,#resetLoginPanel .input{margin-top:10px}


.prose a { color: #c0392b; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul { margin: 8px 0 12px 1.2em; color: #555; font-size: 14px; }
.share-tip a { color: #c0392b; }

.retain-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}
.retain-option input[type=checkbox] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.retain-option + .desc,
.retain-option ~ .desc {
  margin-top: 8px;
}

.history-expand,
.history-collapse {
  margin-top: 10px;
}

.history-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.history-modal.hidden {
  display: none !important;
}
.history-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.history-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.history-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.history-modal-head h3 {
  margin: 0;
  font-size: 18px;
}
.history-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0 4px;
}
.history-modal-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}
.history-modal-body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 12px;
}
.history-modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.history-modal-images img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
