/* ============================================================
   自媒体供稿系列服务 - 前台移动端样式（微信风格）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.4; color: #333; background-color: #f5f5f5; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 750px; margin: 0 auto; background-color: #fff; min-height: 100vh; }

/* 顶部固定头部 */
.wx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background-color: #fff; max-width: 750px; margin: 0 auto; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-placeholder { height: 50px; }
.header-content { display: flex; align-items: center; justify-content: space-between; padding: 0 15px; height: 50px; }
.header-left, .header-right { width: 60px; display: flex; align-items: center; }
.header-center { flex: 1; text-align: center; }
.header-title { font-size: 17px; font-weight: 600; color: #333; }
.header-icon { font-size: 20px; color: #333; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* 底部标签栏 */
.wx-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background-color: #fff; max-width: 750px; margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05); border-top: 1px solid #f0f0f0;
}
.tabbar-placeholder { height: 60px; }
.tabbar-content { display: flex; height: 60px; }
.tabbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; font-size: 11px; }
.tabbar-item.active { color: #07c160; }
.tabbar-icon { font-size: 22px; margin-bottom: 4px; }

/* 按钮 */
.wx-btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 500; cursor: pointer; border: none; font-size: 16px; text-align: center; }
.wx-btn-primary { background-color: #07c160; color: #fff; }
.wx-btn-primary:active { background-color: #06ad56; }
.wx-btn-secondary { background-color: #fff; color: #333; border: 1px solid #ddd; }
.wx-btn-secondary:active { background-color: #f5f5f5; }

/* 提示条 */
.toast {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 999; max-width: 80%; padding: 10px 18px; border-radius: 8px;
  font-size: 14px; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: toastIn .3s ease;
}
.toast-success { background-color: rgba(7,193,96,0.95); }
.toast-error { background-color: rgba(255,77,79,0.95); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============ 登录/注册页 ============ */
.auth-wrap { padding: 60px 30px 40px; text-align: center; }
.auth-logo {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px;
  background: linear-gradient(135deg, #07c160, #05a952); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  box-shadow: 0 8px 24px rgba(7,193,96,0.3);
}
.auth-title { font-size: 22px; font-weight: 700; color: #222; }
.auth-sub { font-size: 14px; color: #999; margin: 8px 0 24px; line-height: 1.7; }
.auth-form { text-align: left; }
.form-item {
  display: flex; align-items: center; background: #f7f7f7; border-radius: 10px;
  padding: 13px 15px; margin-bottom: 14px;
}
.form-item i { color: #999; font-size: 16px; margin-right: 10px; width: 18px; text-align: center; }
.form-item input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; color: #333; }
.auth-btn { width: 100%; margin-top: 6px; }
.auth-tip { margin-top: 20px; font-size: 13px; color: #999; }
.invite-by {
  background: #f0f9eb; color: #333; font-size: 14px; border-radius: 10px;
  padding: 12px 15px; margin-bottom: 18px; text-align: center;
}
.invite-by b { color: #07c160; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; vertical-align: 1px; margin-left: 4px; }
.tag-basic { background: rgba(153,153,153,0.12); color: #666; }
.tag-standard { background: rgba(0,122,255,0.1); color: #007aff; }
.tag-pro { background: rgba(255,149,0,0.12); color: #ff9500; }
.tag-ok { background: rgba(7,193,96,0.12); color: #07c160; }
.tag-wait { background: rgba(153,153,153,0.12); color: #999; }

/* ============ 购买激活码页 ============ */
.buy-hero {
  background: linear-gradient(135deg, #07c160, #05a952); color: #fff;
  padding: 28px 20px; text-align: center;
}
.buy-hero-title { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.buy-hero-sub { font-size: 14px; opacity: 0.95; }
.buy-price-card {
  display: flex; justify-content: space-between; align-items: center;
  margin: 16px; padding: 18px; background: #fff; border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); border: 1px solid #f0f0f0;
}
.buy-price-label { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.buy-price-desc { font-size: 13px; color: #666; line-height: 1.7; }
.buy-price-desc b { color: #07c160; font-size: 16px; }
.buy-price-num { font-size: 32px; font-weight: 800; color: #ff3b30; }
.buy-price-tag {
  display: inline-block; background: #fef0ef; color: #ff3b30;
  font-size: 11px; padding: 2px 8px; border-radius: 8px; margin-top: 4px;
}
.wx-tasks { padding: 0 16px; }
.tasks-header { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 12px; }
.tasks-title { font-size: 16px; font-weight: 600; color: #333; }
.benefit-item {
  display: flex; align-items: center; gap: 10px; background: #f9f9f9;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; color: #444;
}
.step-row { display: flex; align-items: center; background: #f9f9f9; border-radius: 12px; padding: 16px 14px; }
.step-item { flex: 1; text-align: center; }
.step-num {
  width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%;
  background: #07c160; color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step-name { font-size: 12px; color: #666; }
.step-line { flex: 0 0 24px; height: 2px; background: #d9f5e6; }
.buy-footer { padding: 8px 16px 40px; text-align: center; }
.buy-btn { width: 100%; padding: 15px; font-size: 17px; font-weight: 600; border-radius: 12px; }
.buy-trust { margin-top: 10px; font-size: 12px; color: #999; }

/* 激活动效 */
.activate-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 30px; text-align: center; background: #fff; }
.activate-ring { position: relative; width: 120px; height: 120px; margin-bottom: 30px; }
.ring-spinner {
  width: 120px; height: 120px; border-radius: 50%;
  border: 6px solid #e6f7ee; border-top-color: #07c160;
  animation: spin 1s linear infinite;
}
.ring-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #07c160; font-size: 40px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.activate-title { font-size: 18px; font-weight: 600; color: #222; margin-bottom: 10px; }
.activate-sub { font-size: 14px; color: #999; margin-bottom: 30px; }
.activate-bar { width: 200px; height: 6px; border-radius: 3px; background: #f0f0f0; overflow: hidden; }
.activate-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: #07c160; animation: fillbar 3s ease forwards; }
@keyframes fillbar { to { width: 100%; } }

/* ============ 首页：版本卡 / 任务中心 ============ */
.version-card {
  margin: 14px 16px; padding: 20px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #07c160, #04a04e);
  box-shadow: 0 8px 24px rgba(7,193,96,0.25);
}
.version-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.version-label { font-size: 13px; opacity: 0.9; }
.version-badge {
  display: inline-block; background: rgba(255,255,255,0.2); border-radius: 12px;
  padding: 3px 12px; font-size: 13px; font-weight: 600;
}
.version-revenue { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.version-revenue b { font-size: 32px; }
.version-upgrade { background: rgba(255,255,255,0.14); border-radius: 10px; padding: 12px; }
.upgrade-text { font-size: 13px; margin-bottom: 8px; }
.upgrade-text b { color: #fff; }
.upgrade-count { font-size: 12px; opacity: 0.9; margin-top: 6px; text-align: right; }

/* 进度条 */
.progress-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.3); overflow: hidden; }
.progress-bar i { display: block; height: 100%; border-radius: 4px; background: #ffd60a; transition: width .4s ease; }
.task-progress { margin: 10px 0 8px; }
.task-progress .progress-bar { background: #f0f0f0; }
.task-progress .progress-bar i { background: linear-gradient(90deg, #07c160, #34c759); }
.progress-text { font-size: 12px; color: #999; margin-top: 6px; }

/* 任务卡片（激励化） */
.task-card {
  background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.task-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.task-title { font-size: 16px; font-weight: 600; color: #333; flex: 1; padding-right: 10px; line-height: 1.3; }
.task-reward { font-size: 20px; font-weight: 800; color: #ff9500; white-space: nowrap; }
.task-desc { color: #666; font-size: 14px; line-height: 1.6; }
.task-incentive { font-size: 13px; color: #e67e00; background: #fff7ec; border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.task-done { color: #07c160; }
.task-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #f5f5f5; }
.task-status { padding: 3px 12px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.status-open { background: rgba(7,193,96,0.1); color: #07c160; }
.status-going { background: rgba(255,149,0,0.12); color: #ff9500; }
.btn-invite { display: inline-flex; align-items: center; gap: 4px; color: #07c160; font-size: 14px; font-weight: 600; }
.pro-card { border: 1px solid #ffe0b3; background: linear-gradient(180deg, #fffaf3, #fff); }

/* ============ 邀请页 ============ */
.invite-link-card { margin: 14px 16px; padding: 16px; background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.invite-link-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.invite-link-box { display: flex; align-items: center; gap: 8px; background: #f7f7f7; border-radius: 10px; padding: 10px 12px; }
.invite-link-text { flex: 1; font-size: 13px; color: #555; word-break: break-all; }
.btn-copy { flex-shrink: 0; background: #07c160; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
.btn-copy:active { background: #06ad56; }
.invite-link-tip { font-size: 12px; color: #999; margin-top: 10px; }
.invite-stats { display: flex; margin: 0 16px; background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.stat-item { flex: 1; text-align: center; padding: 18px 0; }
.stat-item + .stat-item { border-left: 1px solid #f5f5f5; }
.stat-num { font-size: 24px; font-weight: 800; color: #333; }
.stat-label { font-size: 12px; color: #999; margin-top: 4px; }
.invite-item { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.invite-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.invite-name { font-size: 15px; font-weight: 600; }
.invite-account { font-size: 12px; color: #999; font-weight: 400; }
.invite-item-row { display: flex; justify-content: space-between; font-size: 13px; color: #666; padding: 3px 0; }
.invite-item-row b { color: #333; font-weight: 500; }
.invite-item-row .money { color: #ff3b30; font-weight: 600; }
.empty-state { text-align: center; padding: 40px 0; color: #ccc; }
.empty-state i { font-size: 40px; margin-bottom: 10px; }
.empty-state p { font-size: 13px; color: #999; }

/* ============ 个人中心 ============ */
.profile-guide { margin: 14px 16px; padding: 22px; text-align: center; background: linear-gradient(135deg, #fff7ec, #fff); border-radius: 14px; border: 1px solid #ffe0b3; }
.guide-icon { font-size: 40px; color: #ff9500; margin-bottom: 10px; }
.guide-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.guide-sub { font-size: 13px; color: #888; margin-bottom: 16px; }
.profile-card { margin: 14px 16px; background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.profile-head { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid #f5f5f5; }
.profile-avatar { width: 52px; height: 52px; border-radius: 50%; background: #e6f7ee; color: #07c160; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.profile-name { flex: 1; font-size: 17px; font-weight: 600; }
.profile-list { padding: 4px 20px; }
.profile-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #f7f7f7; font-size: 14px; }
.profile-row:last-child { border-bottom: none; }
.profile-row span { color: #999; }
.profile-row b { color: #333; font-weight: 500; word-break: break-all; text-align: right; max-width: 60%; }
.profile-actions { margin: 0 16px 20px; }

@media (max-width: 750px) {
  .container { max-width: 100%; }
  .wx-header, .wx-tabbar { max-width: 100%; }
}

/* 购买页 - 支付宝支付方式 */
.pay-methods { margin-top: 14px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: #fff; border: 1.5px solid #07c160; border-radius: 12px; }
.pay-method i.fa-alipay { font-size: 30px; color: #1677ff; }
.pay-method-name { flex: 1; font-size: 15px; font-weight: 600; color: #333; }
.pay-method-check { width: 22px; height: 22px; border-radius: 50%; background: #07c160; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.buy-btn i { margin-right: 6px; }
