/* ==========================================================================
   六合工 H5 —— 样式表
   设计基准：375-430px 移动端；桌面端居中呈现
   ========================================================================== */

:root {
  --green: #21b08c;
  --green-deep: #17a17e;
  --green-light: #50c0a4;
  --red: #ff4d4f;
  --orange: #ffa400;
  --orange-soft: #ff8a3c;
  --blue: #5b79f0;
  --purple: #a06cd0;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #222222;
  --text-2: #4b4b4b;
  --muted: #9aa0a6;
  --muted-2: #b6bcc4;
  --line: #f1f2f4;
  --radius: 12px;
  --tabbar-h: 56px;
  --shadow-card: 0 2px 10px rgba(19, 45, 74, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #e9edf2;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  font-size: 14px;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
}

img {
  display: block;
}

svg {
  display: block;
}

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  box-shadow: 0 0 60px rgba(20, 40, 70, 0.12);
}

.page {
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}

.page.no-tabbar {
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   通用小组件
   -------------------------------------------------------------------------- */

.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 15px;
  padding: 0 4px;
  margin-left: 5px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffa63d, #ff7a1a);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.5px;
  vertical-align: 2px;
}

.empty {
  padding: 90px 0 40px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}

.empty svg {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  color: #dfe3e9;
}

/* 底部导航 */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid #eef0f3;
  display: flex;
  z-index: 60;
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #a6adb6;
  font-size: 10.5px;
  position: relative;
}

.tabbar-item svg {
  width: 21px;
  height: 21px;
}

.tabbar-item[data-tab="home"].active {
  color: var(--green);
}

.tabbar-item[data-tab="orders"].active {
  color: #2f6fd0;
}

.tabbar-item[data-tab="mine"].active {
  color: #16a87a;
}

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */

.home-header {
  background: linear-gradient(180deg, #1fae8b 0%, #24b28e 46%, #33b997 78%, #45c0a2 100%);
  padding: 12px 14px 12px;
  color: #fff;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  background: #fff;
}

.brand-row h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  flex: 1;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 26px;
  padding: 0 6px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12.5px;
}

.user-chip .vs {
  margin-left: 3px;
}

.user-chip svg {
  width: 12px;
  height: 12px;
  opacity: 0.9;
  margin-left: 2px;
}

.risk-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.quick-actions button {
  height: 40px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 13px;
}

.quick-actions svg {
  width: 15px;
  height: 15px;
}

.quick-actions button:active {
  background: rgba(255, 255, 255, 0.26);
}

.home-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  padding-top: 8px;
}

.search-bar {
  margin: 0 12px 8px;
  height: 36px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.search-bar svg {
  width: 16px;
  height: 16px;
  color: #b9c0c8;
  flex: none;
}

.search-bar input {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}

.search-bar input::placeholder {
  color: #c2c8d0;
}

.tabs {
  display: flex;
  background: #fff;
  height: 42px;
}

.tabs .tab {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  color: #6a7078;
}

.tabs .tab.active {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
}

.tabs .tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
}

.tabs .tab .flame {
  font-size: 13px;
  line-height: 1;
}

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--bg);
}

.filters button {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #6b7178;
}

.filters button svg {
  width: 11px;
  height: 11px;
  color: #a4abb3;
}

.filters button.on {
  color: var(--green);
}

.filters button.on svg {
  color: var(--green);
}

.home-list {
  padding: 0 10px 12px;
}

/* 公告卡 */
.notice-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 14px 6px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
}

.notice-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
}

.notice-head .ic {
  font-size: 14px;
  line-height: 1;
}

.notice-summary {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 0 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #5d636b;
}

.notice-summary .txt {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notice-summary .tm {
  flex: none;
  color: #b0b6bd;
  font-size: 11px;
}

.notice-title-link {
  display: block;
  padding: 2px 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1c1c1c;
}

/* 文章卡 */
.article-card {
  position: relative;
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 12px 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.article-card:active {
  background: #fcfdfd;
}

.article-cover {
  position: relative;
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ribbon {
  position: absolute;
  left: -17px;
  top: 3px;
  width: 46px;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #43cf8f, #23b579);
  color: #fff;
  font-size: 7px;
  line-height: 10px;
  text-align: center;
  letter-spacing: 0.5px;
}

.article-main {
  flex: 1;
  min-width: 0;
}

.article-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #1f2328;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.article-expert {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-size: 11.5px;
  color: #8b929b;
}

.article-expert svg {
  width: 12px;
  height: 12px;
  color: #8ab0f5;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge svg {
  width: 8px;
  height: 8px;
}

.b-blue {
  color: #5b79f0;
  background: #f3f7ff;
  border-color: #d7e3ff;
}

.b-orange {
  color: #e8931c;
  background: #fff9ee;
  border-color: #ffe6b8;
}

.b-purple {
  color: #a06cd0;
  background: #faf5ff;
  border-color: #e9d9fb;
}

.b-red {
  color: #e2544f;
  background: #fff5f4;
  border-color: #ffdad6;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11px;
  color: #a0a6ad;
}

.article-meta svg {
  width: 11px;
  height: 11px;
}

.open-pill {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 9px;
  background: #eefaf2;
  color: #34b06f;
  font-size: 9.5px;
}

.card-stamp {
  position: absolute;
  right: 10px;
  top: 72px;
  width: 46px;
  height: 46px;
  font-size: 20px;
  border-width: 1.5px;
  opacity: 0.92;
  pointer-events: none;
}

.card-stamp::after {
  inset: 2px;
}

.article-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  font-size: 11px;
  color: #a0a6ad;
}

.article-foot .stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.article-foot .stat svg {
  width: 11px;
  height: 11px;
}

.article-price {
  margin-left: auto;
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.2px;
}

.article-price small {
  font-size: 11px;
  font-weight: 400;
}

.list-more {
  padding: 14px 0 4px;
  text-align: center;
  font-size: 12px;
  color: #b3b9c0;
}

/* --------------------------------------------------------------------------
   文章详情
   -------------------------------------------------------------------------- */

.d-header {
  position: relative;
  height: 92px;
  background: linear-gradient(100deg, #6e7ae0 0%, #6f6ad6 42%, #7b5bb8 74%, #7d55b0 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.d-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.d-back svg {
  width: 18px;
  height: 18px;
}

.d-user {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px 0 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 12.5px;
}

.d-user .ava {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-user .ava svg {
  width: 13px;
  height: 13px;
  color: #fff;
}

.d-body {
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail {
  padding-bottom: 92px;
}

.title-card {
  padding: 14px 14px 12px;
  border-radius: 14px;
}

.title-card h1 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.55;
  font-weight: 700;
  color: #1b1f24;
  word-break: break-all;
}

.title-card .badges {
  margin-top: 12px;
}

.title-card .badge {
  height: 21px;
  font-size: 10.5px;
  padding: 0 7px;
  border-radius: 11px;
}

.title-card .pub-lines {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: #9aa0a6;
  line-height: 1.9;
}

.disclaimer {
  position: relative;
  padding: 12px 14px 13px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid transparent;
  background-image: linear-gradient(#fff, #fff),
    linear-gradient(120deg, #ffc46b, #ffa64d 55%, #ffd89b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-card);
}

.disclaimer h3 {
  margin: 0 0 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f07c1a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.disclaimer p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8a6a2f;
}

.result-card {
  padding: 12px 14px 14px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.result-head .label {
  font-size: 13.5px;
  color: #3a3f45;
  font-weight: 600;
}

.result-head .state {
  font-size: 13px;
  font-weight: 700;
  color: #2bb673;
}

.balls {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  flex-wrap: wrap;
}

.ball {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.12);
  animation: ball-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.ball b {
  font-size: 13px;
  font-weight: 700;
}

.ball i {
  font-size: 8.5px;
  font-style: normal;
  margin-top: 1px;
  opacity: 0.96;
}

.ball.red {
  background: radial-gradient(circle at 32% 28%, #ff6b6b, #e03131);
}

.ball.blue {
  background: radial-gradient(circle at 32% 28%, #5b9cf8, #1a6fd4);
}

.ball.green {
  background: radial-gradient(circle at 32% 28%, #4fd18a, #1f9d5f);
}

.ball.plus {
  width: 18px;
  height: 33px;
  background: none;
  box-shadow: none;
  color: #c6ccd3;
  font-size: 15px;
  font-weight: 400;
}

@keyframes ball-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

.content-card {
  position: relative;
  padding: 12px 14px 14px;
  overflow: hidden;
}

.content-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lock-badge {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #eefaef;
  color: #f2a93b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-badge svg {
  width: 15px;
  height: 15px;
}

.content-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #23272c;
}

.content-divider {
  height: 1px;
  margin: 13px 0 14px;
  background-image: linear-gradient(90deg, #eceef1 55%, transparent 0);
  background-size: 7px 1px;
  background-repeat: repeat-x;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pill {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #2c3138;
  letter-spacing: 1px;
}

.pill.small {
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  font-size: 13px;
  border-radius: 6px;
}

.pill-group-label {
  font-size: 10.5px;
  color: #aeb4bb;
  margin-right: 2px;
  align-self: center;
}

.stamp {
  position: absolute;
  right: 12px;
  top: 40px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 1px;
  transform: rotate(-9deg);
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  animation: stamp-in 0.45s cubic-bezier(0.2, 1.6, 0.5, 1) backwards;
}

.stamp::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed currentColor;
  opacity: 0.7;
}

.stamp.black {
  color: #2f3338;
}

.stamp.red {
  color: #e0413c;
}

.stamp.mini {
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -19px;
  width: 38px;
  height: 38px;
  font-size: 17px;
  border-width: 1.5px;
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: rotate(-26deg) scale(1.9);
  }
}

.locked-box {
  margin-top: 12px;
  border: 1.5px dashed #ffc7c7;
  border-radius: 10px;
  padding: 26px 12px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.locked-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 32%, rgba(255, 214, 214, 0.28), transparent 62%);
  pointer-events: none;
}

.locked-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff3e2;
  color: #f08a2c;
  font-size: 12px;
  font-weight: 600;
}

.gift-box {
  width: 58px;
  height: 56px;
  margin: 18px auto 10px;
  border-radius: 10px;
  background: linear-gradient(165deg, #ff8f8f, #f4506a);
  position: relative;
  box-shadow: 0 8px 18px rgba(245, 86, 108, 0.26);
}

.gift-box::before,
.gift-box::after {
  content: "";
  position: absolute;
  background: #ffd75e;
}

.gift-box::before {
  left: 0;
  right: 0;
  top: 15px;
  height: 8px;
}

.gift-box::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 8px;
  margin-left: -4px;
}

.gift-lid {
  position: absolute;
  left: -3px;
  right: -3px;
  top: 10px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff9a9a, #f6667e);
  box-shadow: 0 1px 2px rgba(190, 40, 70, 0.2);
}

.gift-knot {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 22px;
  height: 15px;
  margin-left: -11px;
  border-radius: 50% 50% 32% 32%;
  background: #ffd75e;
  box-shadow: 0 0 0 3px rgba(255, 215, 94, 0.22);
}

.locked-cta {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: #f0623f;
}

.locked-sub {
  position: relative;
  margin-top: 6px;
  font-size: 11.5px;
  color: #b3b9c0;
}

.history-card {
  padding: 0 0 2px;
  overflow: hidden;
}

.history-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 14px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2c3138;
}

.history-head .who {
  color: #3d434a;
}

.history-head .ic-refresh {
  width: 17px;
  height: 17px;
  color: #5b79f0;
}

.history-item {
  position: relative;
  padding: 11px 14px 12px;
  border-top: 1px solid #f4f5f7;
}

.history-item .h-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #23272c;
  padding-right: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-item .h-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.history-item .h-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 10.5px;
  color: #a7adb4;
}

.history-item .h-meta svg {
  width: 10px;
  height: 10px;
}

.history-item .h-meta .sep {
  flex: 1;
}

.h-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 17px;
  padding: 0 6px;
  border-radius: 9px;
  background: #eefaf2;
  color: #34b06f;
  font-size: 9.5px;
}

/* 详情底部操作条 */
.action-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-top: 1px solid #f0f1f3;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 55;
  box-shadow: 0 -4px 16px rgba(20, 40, 70, 0.05);
}

.action-info {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.action-info .hint {
  font-size: 10.5px;
  color: #a6acb3;
}

.action-info .amount {
  margin-top: 2px;
  font-size: 19px;
  font-weight: 700;
  color: #ff2d2f;
  letter-spacing: 0.3px;
}

.action-info .amount small {
  font-size: 11.5px;
  font-weight: 400;
  margin-left: 2px;
}

.btn-unlock {
  flex: none;
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6a4d, #ff3b52);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 6px 14px rgba(255, 70, 80, 0.28);
}

.btn-unlock svg {
  width: 15px;
  height: 15px;
}

.btn-unlock:active {
  filter: brightness(0.95);
}

.btn-unlock.done {
  background: linear-gradient(135deg, #cfd6dd, #b9c1c9);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   订单
   -------------------------------------------------------------------------- */

.plain-header {
  position: relative;
  height: 52px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f2f3f5;
}

.plain-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2328;
}

.plain-header .back {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22252a;
}

.plain-header .back svg {
  width: 19px;
  height: 19px;
}

.seg-tabs {
  display: flex;
  background: #fff;
  padding: 0 16px;
  gap: 26px;
  border-bottom: 1px solid #f2f3f5;
}

.seg-tabs button {
  position: relative;
  height: 42px;
  font-size: 13.5px;
  color: #6a7078;
}

.seg-tabs button.active {
  color: #ffa400;
  font-weight: 600;
}

.seg-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px;
  background: #ffa400;
}

.orders-body {
  background: #f4f4f4;
  min-height: calc(100vh - 95px);
  padding: 10px;
}

.order-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.order-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.order-cover {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  flex: none;
}

.order-title {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #23272c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #f5f6f7;
  font-size: 11px;
  color: #a3a9b0;
}

.order-price {
  color: #ff4d4f;
  font-weight: 600;
  font-size: 13px;
}

.tag-mini {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9.5px;
  background: #f2f5ff;
  color: #5b79f0;
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   我的
   -------------------------------------------------------------------------- */

.mine-hero {
  position: relative;
  background: linear-gradient(100deg, #5d7f8d 0%, #6b8a97 45%, #7d97a2 100%);
  padding: 18px 14px 40px;
  border-radius: 0 0 22px 22px;
  color: #fff;
  overflow: hidden;
}

.mine-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.mine-row {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 1;
}

.mine-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  flex: none;
}

.mine-name {
  display: flex;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mine-id {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.mine-gear {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

.mine-gear svg {
  width: 21px;
  height: 21px;
}

.wallet {
  position: relative;
  z-index: 1;
  margin: -26px 12px 0;
  border-radius: 13px;
  padding: 13px 15px 14px;
  background: linear-gradient(100deg, #ff8a5c 0%, #ff9d4f 52%, #ffb45c 100%);
  box-shadow: 0 8px 18px rgba(255, 140, 80, 0.28);
  color: #fff;
  overflow: hidden;
}

.wallet::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.wallet-head svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.wallet-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.wallet-amount .unit {
  font-size: 15px;
}

.btn-recharge {
  height: 30px;
  padding: 0 16px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  color: #e8773a;
  font-size: 12.5px;
  font-weight: 600;
}

.mine-grid {
  margin: 10px 12px;
  background: #fff;
  border-radius: 13px;
  padding: 16px 6px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 16px;
  box-shadow: var(--shadow-card);
}

.mine-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #4b5158;
}

.mine-cell .circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mine-cell .circle svg {
  width: 21px;
  height: 21px;
}

.c-green { background: #e9f6ec; color: #2f9e44; }
.c-blue { background: #e7f0fd; color: #1c66d6; }
.c-orange { background: #fdf0e6; color: #e8792b; }
.c-red { background: #fdecee; color: #e0455b; }
.c-sky { background: #e8f3fe; color: #2b7fd4; }

.apply-author {
  display: flex;
  width: calc(100% - 24px);
  margin: 0 12px 14px;
  height: 50px;
  background: #fff;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: #23272c;
  box-shadow: var(--shadow-card);
}

.apply-author .star {
  color: #ffa400;
  font-size: 17px;
  line-height: 1;
}

/* 设置页 */
.settings-body {
  padding: 10px 12px;
}

.setting-group {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  font-size: 14px;
  color: #2b3036;
  border-bottom: 1px solid #f5f6f7;
  min-height: 50px;
}

.setting-row svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row .val {
  margin-left: auto;
  font-size: 12.5px;
  color: #a8aeb5;
}

.setting-row .arrow {
  width: 12px;
  height: 12px;
  color: #c9ced4;
  transform: rotate(-90deg);
}

/* 公告文章 */
.notice-page {
  padding: 14px 14px 30px;
}

.notice-page h1 {
  margin: 0 0 6px;
  font-size: 19px;
}

.notice-page .sub {
  font-size: 11.5px;
  color: #a8aeb5;
  margin-bottom: 14px;
}

.notice-page p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.85;
  color: #3b4046;
}

/* --------------------------------------------------------------------------
   抽屉 / 弹层
   -------------------------------------------------------------------------- */

.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 28, 0.5);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in 0.18s ease;
}

.sheet {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: sheet-up 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-height: 86vh;
  overflow-y: auto;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 0 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: #1f2328;
}

.sheet-close {
  position: absolute;
  right: 0;
  top: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3b9c0;
}

.sheet-close svg {
  width: 16px;
  height: 16px;
}

.sheet-sub {
  font-size: 12px;
  color: #9aa0a6;
  text-align: center;
  margin-bottom: 12px;
}

.pay-product {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f8f9fb;
  margin-bottom: 14px;
}

.pay-product .p-cover {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  background-size: cover;
  flex: none;
}

.pay-product .p-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #2a2f35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pay-product .p-price {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #ff4d4f;
}

.pay-methods {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0f1f3;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-bottom: 1px solid #f5f6f7;
}

.pay-method:last-child {
  border-bottom: 0;
}

.pay-method .m-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-method .m-ico svg {
  width: 17px;
  height: 17px;
}

.pay-method .m-name {
  font-size: 13.5px;
  color: #2b3036;
}

.pay-method .m-desc {
  font-size: 11px;
  color: #a8aeb5;
  margin-top: 2px;
}

.pay-method .radio {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #d6dbe1;
  position: relative;
}

.pay-method.on .radio {
  border-color: #ff4d4f;
  background: #ff4d4f;
}

.pay-method.on .radio::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}

.btn-primary {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  background: linear-gradient(135deg, #ff6a4d, #ff3b52);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  box-shadow: 0 8px 18px rgba(255, 70, 80, 0.24);
}

.btn-primary:disabled {
  opacity: 0.55;
  box-shadow: none;
}

.btn-ghost {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background: #f4f6f9;
  color: #4b5158;
  font-size: 14px;
  margin-top: 10px;
}

.sheet-tip {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: #a8aeb5;
  text-align: center;
}

/* 充值 */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 4px;
}

.coin-item {
  position: relative;
  border: 1.5px solid #eef0f3;
  border-radius: 10px;
  padding: 13px 6px 10px;
  text-align: center;
}

.coin-item .c-amount {
  font-size: 18px;
  font-weight: 700;
  color: #2b3036;
}

.coin-item .c-amount small {
  font-size: 11px;
  font-weight: 400;
  color: #9aa0a6;
  margin-left: 1px;
}

.coin-item .c-bonus {
  margin-top: 5px;
  font-size: 10.5px;
  color: #b0873c;
}

.coin-item.on {
  border-color: #ffb24d;
  background: #fffaf1;
}

.coin-item.on .c-amount {
  color: #f0851c;
}

.balance-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #7b828a;
  margin: 4px 0 12px;
}

.balance-line b {
  color: #ff7a1a;
  font-size: 14px;
}

/* 表单 */
.field {
  margin-top: 12px;
}

.field label {
  display: block;
  font-size: 12px;
  color: #8f959c;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: #f7f8fa;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 13.5px;
}

.field textarea {
  min-height: 88px;
  resize: none;
  line-height: 1.6;
}

.qr-box {
  margin: 6px auto 12px;
  width: 168px;
  height: 168px;
  border-radius: 12px;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2c8d0;
  font-size: 12px;
  border: 1px dashed #dfe3e8;
}

/* toast */
.toast-root {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 200;
}

.toast {
  max-width: 78%;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(20, 24, 30, 0.86);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  animation: toast-in 0.2s ease;
}

.toast.success {
  background: rgba(28, 160, 110, 0.92);
}

.toast.error {
  background: rgba(210, 62, 62, 0.92);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}
