/* KIN兼职 - 移动端 H5（橙暖活力风） */
/* ========== 基础变量 ========== */
:root {
  --primary: #ff5e14;
  --primary-deep: #e04a00;
  --primary-light: #ffb02e;
  --accent: #ff3b14;
  --accent-light: #ff7a45;
  --bg: #fff6ef;
  --card: #ffffff;
  --text-1: #3a2416;
  --text-2: #93705a;
  --text-3: #c2a391;
  --line: #ffe8d6;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-card: 0 3px 12px rgba(255, 94, 20, 0.07);
  --shadow-pop: 0 12px 40px rgba(58, 36, 22, 0.22);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ========== 首页顶部:深色顶栏 + 遮阳篷(集市摊位风) ========== */
/* 页面装饰背景:光斑 + 微点阵(纯前端装饰) */
.home-page {
  position: relative;
}

.home-page::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 560px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(300px 220px at 92% 40px, rgba(255, 176, 46, 0.15), transparent 70%),
    radial-gradient(280px 210px at 6% 320px, rgba(255, 94, 20, 0.10), transparent 70%),
    radial-gradient(rgba(255, 94, 20, 0.055) 1.5px, transparent 1.5px);
  background-size: auto, auto, 22px 22px;
}

/* 深咖啡色顶栏(带细斜纹) */
.topbar {
  padding-top: env(safe-area-inset-top);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 12px, transparent 12px 24px),
    #2e1a0c;
  position: relative;
  z-index: 2;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 12px;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

/* 品牌方块徽标 */
.brand-logo {
  flex-shrink: 0;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff8f3c 0%, #ff5e14 60%, #ff3b14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(150, 50, 0, 0.4);
  box-shadow: 0 4px 10px rgba(255, 94, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #c9a98f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 在线状态胶囊(绿点呼吸) */
.topbar-live {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #ffd9b8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* 遮阳篷:橙/奶油相间条纹 + 双色锯齿垂边 */
.awning {
  position: relative;
  height: 9px;
  background: repeating-linear-gradient(90deg, #ffe3c8 0 18px, #ff7c1a 18px 36px);
  filter: drop-shadow(0 2px 2px rgba(120, 50, 0, 0.15));
}

.awning::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 7px;
  background: radial-gradient(circle at 50% 0, #ffe3c8 62%, transparent 64%);
  background-size: 36px 7px;
  background-repeat: repeat-x;
}

.awning::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 7px;
  background: radial-gradient(circle at 50% 0, #ff7c1a 62%, transparent 64%);
  background-size: 36px 7px;
  background-repeat: repeat-x;
  background-position: 18px 0;
}

/* ========== 滚动公告条 ========== */
.notice-bar {
  margin: 12px 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #ffddc2;
  border-radius: 11px;
  padding: 6px 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.notice-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffb02e, #ff7c1a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-icon svg {
  width: 13px;
  height: 13px;
}

.notice-viewport {
  flex: 1;
  min-width: 0;
  height: 19px;
  overflow: hidden;
}

.notice-track {
  list-style: none;
  margin: 0;
  padding: 0;
  animation: ticker 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.notice-track li {
  height: 19px;
  line-height: 19px;
  font-size: 11.5px;
  color: #93705a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes ticker {
  0%, 26%   { transform: translateY(0); }
  32%, 58%  { transform: translateY(-19px); }
  64%, 90%  { transform: translateY(-38px); }
  96%, 100% { transform: translateY(-57px); }
}

/* ========== 取景框式外框轮播 ========== */
.banner-frame {
  position: relative;
  margin: 11px 16px 0;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #ffddc2;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(255, 94, 20, 0.12);
}

/* 内衬虚线画框 */
.banner-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed #ffcf9e;
  border-radius: 11px;
  pointer-events: none;
  z-index: 1;
}

.banner-frame .banner-slide {
  border-radius: 9px;
  overflow: hidden;
  background: #fff3e6;
}

.banner-frame .banner-slide img {
  width: 100%;
  height: auto;
  min-height: 110px;
  max-height: 36vh;
  display: block;
  object-fit: cover;
}

/* 取景框四角(相机对焦角标) */
.fc {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid var(--primary);
  z-index: 2;
}

.fc-tl { top: -5px;    left: -5px;  border-right: none;  border-bottom: none; border-radius: 7px 0 0 0; }
.fc-tr { top: -5px;    right: -5px; border-left: none;   border-bottom: none; border-radius: 0 7px 0 0; }
.fc-bl { bottom: -5px; left: -5px;  border-right: none;  border-top: none;    border-radius: 0 0 0 7px; }
.fc-br { bottom: -5px; right: -5px; border-left: none;   border-top: none;    border-radius: 0 0 7px 0; }

/* 顶部"精选"贴纸 */
.frame-tag {
  position: absolute;
  top: -9px;
  left: 14px;
  z-index: 2;
  background: linear-gradient(135deg, #ff8f3c, #ff5e14);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  transform: rotate(-2deg);
  box-shadow: 0 3px 8px rgba(255, 94, 20, 0.38);
}

/* 右下角页码计数 */
.frame-counter {
  position: absolute;
  right: 15px;
  bottom: 14px;
  z-index: 2;
  background: rgba(46, 26, 12, 0.62);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.frame-counter b {
  color: #ffd161;
  font-size: 12px;
  margin-right: 2px;
}

/* ========== 三枚保障徽章 ========== */
.promise-row {
  display: flex;
  gap: 8px;
  margin: 10px 16px 0;
}

.promise-chip {
  flex: 1;
  text-align: center;
  background: #ffffff;
  border: 1px solid #ffddc2;
  border-radius: 10px;
  padding: 7px 4px 6px;
  box-shadow: var(--shadow-card);
}

.promise-chip b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.promise-chip b::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd161;
  vertical-align: 3px;
  margin-right: 4px;
}

.promise-chip span {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

/* ========== 任务列表 ========== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 7px;
}

.section-title {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  background: #2e1a0c;
  padding: 5px 14px 5px 24px;
  border-radius: 4px 10px 10px 4px;
}

/* 价签打孔 */
.section-title::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.section-more {
  font-size: 12px;
  color: var(--text-3);
}

.task-list {
  padding: 2px 16px 30px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* 暖白卡片 + 橙描边 + 左侧橙色粗边 */
.task-card {
  background: #ffffff;
  border: 1px solid #ffddc2;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(255, 94, 20, 0.07);
  padding: 15px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: cardIn 0.4s ease both;
  transition: transform 0.15s, box-shadow 0.2s;
}

.task-card:active {
  transform: scale(0.98);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-main {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 佣金大字:更饱和的红橙 */
.task-reward-line {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 900;
  color: var(--accent);
}

/* 横向胶囊"立即报名"按钮 */
.task-btn {
  flex-shrink: 0;
  min-width: 86px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8f3c 0%, #ff5e14 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(255, 94, 20, 0.38), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: transform 0.15s, box-shadow 0.2s;
}

.task-btn:active {
  transform: scale(0.94);
  box-shadow: 0 3px 8px rgba(255, 94, 20, 0.38);
}

/* 已报名:暖灰不可点击态 */
.task-btn.applied {
  background: #f3e7dc;
  color: #b09a8a;
  box-shadow: none;
  cursor: default;
}

.task-btn.applied:active {
  transform: scale(0.98);
  box-shadow: none;
}

.task-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 标签:白底橙字描边小方块 */
.tag {
  font-size: 11px;
  color: var(--primary);
  background: #fff5ec;
  border: 1px solid #ffcf9e;
  border-radius: 5px;
  padding: 2px 8px;
  line-height: 1.5;
}

.task-reward {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8f3c, #ff5e14);
  border: 2px dashed rgba(255, 255, 255, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 94, 20, 0.32);
}

.task-reward span {
  line-height: 1.3;
}

.empty {
  text-align: center;
  color: var(--text-3);
  padding: 60px 0;
  font-size: 14px;
}

.empty::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe3cc, #fff3e6);
}

/* ========== 悬浮按钮组(投诉 + 商务合作) ========== */
.fab-group {
  position: fixed;
  right: 14px;
  bottom: calc(30px + var(--safe-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-group.fab-above-footer {
  bottom: calc(96px + var(--safe-bottom));
}

.fab-complaint {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc53d 0%, #ff9a00 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 154, 0, 0.42), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.15s;
}

.fab-complaint.fab-report {
  background: linear-gradient(135deg, #f5330f 0%, #ff6a3d 100%);
  box-shadow: 0 10px 24px rgba(245, 51, 15, 0.42), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.fab-complaint:active {
  transform: scale(0.92);
}

.fab-complaint svg {
  width: 20px;
  height: 20px;
}

/* 商务合作页 */
.cooperation-page {
  padding-bottom: 40px;
}

.cooperation-box {
  margin: 14px 16px 0;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 12px;
}

.cooperation-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* 数据统计页(旧版) */
.stats-page {
  padding-bottom: 40px;
}

.stats-box {
  margin: 14px 16px 0;
  background: #ffffff;
  border: 1px solid #ffddc2;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(255, 94, 20, 0.07);
  padding: 18px 16px;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stats-name {
  font-size: 18px;
  font-weight: 800;
}

.stats-mode {
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 4px 12px;
  border-radius: 999px;
}

.stats-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stats-item {
  background: #fff3e6;
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
}

.stats-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.stats-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
}

.stats-tip {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.6;
}

/* ========== 仅限微信打开提示 ========== */
.wx-only {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg);
  text-align: center;
  padding: 24px;
}

.wx-only-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3);
}

.wx-only-icon svg {
  width: 36px;
  height: 36px;
}

.wx-only-text {
  font-size: 16px;
  color: var(--text-1);
  font-weight: 600;
}

/* ========== 推广员统计页 ========== */
.stats-page {
  min-height: 100vh;
  background: #fff6ef;
  padding-bottom: 40px;
}

.stats-state {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #c2a391;
  font-size: 14px;
}

.stats-loading-text {
  color: #93705a;
  font-size: 14px;
}

/* 橙红渐变头部 */
.stats-hero {
  position: relative;
  background: linear-gradient(165deg, #ff6a00 0%, #ff3b14 100%);
  padding: 60px 20px 80px;
  border-radius: 0 0 24px 24px;
  color: #fff;
  overflow: hidden;
}

.stats-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 2.5px, transparent 2.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

.stats-hero-name {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  position: relative;
}

/* 金黄徽章 */
.stats-hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, #ffd161, #ffb02e);
  color: #7a3c00;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(184, 100, 0, 0.3);
  position: relative;
}

.stats-hero-code {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
}

.stats-hero-code-val {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #ffe9c2;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

.stats-overview-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -52px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ffddc2;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 22px rgba(255, 94, 20, 0.16);
}

.overview-item {
  flex: 1;
  text-align: center;
}

.overview-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-1);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}

.overview-num .unit {
  font-size: 13px;
  color: #93705a;
  font-weight: 500;
  margin-left: 2px;
}

.overview-item.today .overview-num {
  color: var(--accent);
}

.overview-item.today .overview-num .unit {
  color: var(--accent);
}

.overview-label {
  margin-top: 8px;
  font-size: 13px;
  color: #93705a;
}

.overview-divider {
  width: 1px;
  height: 36px;
  background: #ffe8d6;
}

.stats-tabs {
  display: flex;
  margin: 70px 16px 14px;
  background: #ffeadb;
  border-radius: 12px;
  padding: 4px;
}

.stats-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  color: #93705a;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.stats-tabs button.active {
  background: linear-gradient(135deg, #ff8f3c, #ff5e14);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(255, 94, 20, 0.35);
}

.stats-detail-card {
  margin: 0 16px;
  background: #fff;
  border: 1px solid #ffddc2;
  border-radius: 14px;
  padding: 20px;
  min-height: 280px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #ffe8d6;
  margin-bottom: 24px;
}

.detail-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}

.detail-count {
  font-size: 12px;
  color: #93705a;
}

.detail-empty-state {
  padding: 30px 0 10px;
  text-align: center;
  color: #c2a391;
  font-size: 13px;
}

.empty-pie {
  width: 80px;
  height: 80px;
  margin-bottom: 14px;
}

.empty-text {
  font-size: 13px;
  color: #c2a391;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed #ffe8d6;
}

.detail-list li:last-child {
  border-bottom: none;
}

.d-date {
  font-size: 14px;
  color: #6f4f3a;
}

.d-cnt {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

/* ========== 详情页 ========== */
.detail-page {
  padding-bottom: 24px;
}

.detail-hero {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, #ff7c1a 0%, #ff5e14 100%);
  padding: calc(12px + env(safe-area-inset-top)) 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(224, 74, 0, 0.25);
}

.back-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.detail-hero-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-card {
  margin: 14px 16px 0;
  background: var(--card);
  border: 1px solid #ffddc2;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
}

.detail-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.detail-reward-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-reward {
  background: linear-gradient(135deg, #ff3b14, #ff7a18);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  padding: 5px 14px;
  box-shadow: 0 4px 12px rgba(255, 59, 20, 0.3);
}

.detail-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-text strong {
  color: var(--accent);
  font-weight: 700;
}

/* 二维码区 */
.qr-box {
  margin: 14px 16px 0;
  background: var(--card);
  border: 1px solid #ffddc2;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 16px;
  text-align: center;
}

.qr-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.qr-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.qr-grid {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 二维码上方文字(后台可配) */
.qr-caption {
  max-width: 180px;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  line-height: 1.4;
  word-break: break-all;
}

.qr-caption::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd161;
  vertical-align: 3px;
  margin-right: 4px;
}

.qr-img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  border: 1px dashed #ffb02e;
  padding: 8px;
  object-fit: contain;
  background: #fff;
}

.qr-tip {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
}

.qr-tip b {
  color: var(--accent);
}

/* 详情图片 */
.gallery {
  margin: 14px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-item {
  background: var(--card);
  border: 1px solid #ffddc2;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #fffaf4;
}

.gallery-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
}

/* ========== 投诉页 ========== */
.complaint-page {
  padding-bottom: 40px;
}

.complaint-form {
  margin: 14px 16px 0;
  background: var(--card);
  border: 1px solid #ffddc2;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.type-chip {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff3e6;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.type-chip.on {
  background: #fff1e6;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.form-textarea {
  width: 100%;
  min-height: 130px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  color: var(--text-1);
}

.form-textarea:focus {
  border-color: #ffb02e;
}

.form-input {
  width: 100%;
  height: 44px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-1);
}

.form-input:focus {
  border-color: #ffb02e;
}

.form-char {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
}

.btn-submit {
  margin: 20px 16px 0;
  width: calc(100% - 32px);
  height: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff7c1a, #ff3b14);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255, 94, 20, 0.38);
}

.btn-submit:active {
  transform: scale(0.98);
}

.form-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

.form-tip {
  margin: 14px 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
}

/* ========== 弹窗 ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(58, 36, 22, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-body {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 18px 18px 0 0;
  padding: 24px 20px calc(20px + var(--safe-bottom));
  animation: slideUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-title {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.modal-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 6px;
}

.modal-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.modal-task {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-task:active {
  background: #fffaf4;
}

.modal-task .task-title {
  -webkit-line-clamp: 1;
  font-size: 14px;
}

.modal-task .task-reward {
  width: 52px;
  height: 52px;
  font-size: 10px;
  border-radius: 12px;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
}

.modal-btn.ghost {
  background: #f7ece2;
  color: var(--text-2);
}

.modal-btn.primary {
  background: linear-gradient(135deg, #ff8f3c, #ff5e14);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 94, 20, 0.32);
}

/* 成功提示 */
.success-box {
  text-align: center;
  padding: 30px 10px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb02e, #ff7a18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.success-box h3 {
  margin-top: 14px;
  font-size: 17px;
}

.success-box p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  background: rgba(58, 36, 22, 0.88);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
  animation: fadeIn 0.2s ease;
}

/* 加载 */
.loading {
  text-align: center;
  padding: 50px 0;
  color: var(--text-3);
  font-size: 14px;
}

/* 任务列表分页加载提示 */
.load-more {
  text-align: center;
  padding: 16px 0 24px;
  color: var(--text-3);
  font-size: 13px;
  user-select: none;
  -webkit-user-select: none;
}
.load-more [v-cloak] { display: none; }
.load-more span { transition: opacity 0.2s; }
.load-more span:active { opacity: 0.5; }

/* ==================================================
   全局动效增强(丝滑感)
   ================================================== */

/* ---- 页面切换过渡:每次进入/切回都有淡入上移 ---- */
.home-page,
.detail-page,
.complaint-page,
.cooperation-page,
.stats-page {
  animation: pageIn 0.32s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 首页顶部:深色顶栏下落,公告/外框轮播/徽章依次浮现 ---- */
.topbar {
  animation: topIn 0.4s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes topIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notice-bar {
  animation: riseIn 0.45s cubic-bezier(0.22, 0.9, 0.3, 1) both 0.08s;
}

.banner-frame {
  animation: riseIn 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both 0.16s;
}

.promise-row {
  animation: riseIn 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both 0.24s;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- banner 轮播切换淡入(需配合模板 :key 触发) ---- */
.banner-slide img {
  animation: bannerIn 0.35s ease both;
}

@keyframes bannerIn {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- 详情页内容逐层浮现 ---- */
.detail-card,
.qr-box,
.gallery {
  animation: cardIn 0.42s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.qr-box { animation-delay: 0.07s; }
.gallery { animation-delay: 0.14s; }

/* ---- 投诉 / 合作页渐入 ---- */
.complaint-form {
  animation: riseIn 0.4s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.cooperation-img {
  animation: riseIn 0.45s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

/* ---- 数据统计页逐层浮现 ---- */
.stats-overview-card,
.stats-tabs,
.stats-detail-card {
  animation: riseIn 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.stats-tabs { animation-delay: 0.08s; }
.stats-detail-card { animation-delay: 0.16s; }

/* ---- 成功提示:弹性弹出 + 图标脉冲 ---- */
.success-box {
  animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.success-icon {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.1s;
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.6); }
  70%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---- 悬浮按钮弹入 ---- */
.fab-group {
  animation: fabIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.2s;
}

@keyframes fabIn {
  from { opacity: 0; transform: translateY(18px) scale(0.7); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Toast 上浮提示 ---- */
.toast {
  animation: toastIn 0.25s cubic-bezier(0.22, 0.9, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ---- 任务卡片悬浮微抬升(仅支持悬停的设备,避免覆盖移动端按压缩放) ---- */
@media (hover: hover) {
  .task-card:hover {
    box-shadow: 0 12px 30px rgba(255, 94, 20, 0.15);
    transform: translateY(-2px);
  }
}

/* ---- 统一触摸按压反馈 + 光晕涟漪 ---- */
.back-btn,
.type-chip,
.btn-submit,
.modal-btn,
.stats-tabs button {
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.back-btn:active,
.type-chip:active,
.btn-submit:active,
.modal-btn:active,
.stats-tabs button:active {
  transform: scale(0.94);
}

.modal-task {
  transition: transform 0.12s ease, background 0.2s ease;
}
.modal-task:active {
  transform: scale(0.97);
  background: #fffaf4;
}

/* 按压光晕涟漪(独立按钮) */
.task-btn,
.back-btn,
.fab-complaint,
.btn-submit,
.modal-btn {
  position: relative;
  overflow: hidden;
}
.task-btn::after,
.back-btn::after,
.fab-complaint::after,
.btn-submit::after,
.modal-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.task-btn:active::after,
.back-btn:active::after,
.fab-complaint:active::after,
.btn-submit:active::after,
.modal-btn:active::after {
  transform: scale(2.2);
  opacity: 1;
}

/* ==================================================
   推荐弹窗:单任务精推 + 轮换进度
   ================================================== */

/* 弹窗面板:顶部留出图标凸出空间 */
.modal-body {
  position: relative;
  padding-top: 40px;
}
.modal-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(255, 224, 190, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* 顶部闪电图标:橙红渐变方块徽章(凸出面板) */
.modal-gift {
  width: 70px;
  height: 70px;
  margin: -54px auto 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff8f3c 0%, #ff5e14 55%, #ff3b14 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(255, 94, 20, 0.5), 0 2px 0 rgba(255, 255, 255, 0.55) inset;
  transform: rotate(-6deg);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.05s;
  z-index: 2;
}
.modal-gift svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 3px rgba(180, 60, 0, 0.35));
}

/* 主推荐卡片:暖白 + 橙描边 */
.modal-feature {
  position: relative;
  margin-top: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ee 100%);
  border: 1px solid #ffd9b8;
  box-shadow: 0 12px 30px rgba(255, 94, 20, 0.12);
  padding: 16px 14px 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  animation: riseIn 0.45s cubic-bezier(0.22, 0.9, 0.3, 1) both 0.1s;
}
.modal-feature:active {
  transform: scale(0.97);
}
.modal-feature::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 46, 0.18) 0%, rgba(255, 176, 46, 0) 70%);
  pointer-events: none;
}

/* 左上角"热门推荐"缎带:橙金渐变 */
.mf-ribbon {
  position: absolute;
  top: -1px;
  left: -1px;
  background: linear-gradient(135deg, #ffb02e 0%, #ff5e14 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px 4px 10px;
  border-radius: 13px 0 14px 0;
  box-shadow: 0 4px 12px rgba(255, 94, 20, 0.35);
  z-index: 1;
}

.mf-body {
  flex: 1;
  min-width: 0;
  padding-top: 18px;
}
.mf-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mf-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 报酬票券徽标:圆角方形 + 白虚线边(票券感) */
.mf-reward {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff9a3d 0%, #ff5e14 100%);
  border: 2px dashed rgba(255, 255, 255, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(255, 94, 20, 0.4);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.2s;
}

/* 轮换进度 */
.modal-progress {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.mp-line {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(194, 163, 145, 0), rgba(194, 163, 145, 0.6));
}
.mp-line:last-child {
  background: linear-gradient(90deg, rgba(194, 163, 145, 0.6), rgba(194, 163, 145, 0));
}
.mp-text {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}
