.mine-page .mine-grid[data-v-dfdda197] {
  grid-template-columns: repeat(var(--codex-mine-grid-count, 4), minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.mine-page .mine-grid[data-v-dfdda197] .big-menu[data-v-dfdda197] {
  height: 87px !important;
  min-width: 0 !important;
  padding: 0 !important;
  gap: 11px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.mine-page .mine-grid[data-v-dfdda197] .big-menu[data-v-dfdda197] > text:first-child {
  max-width: 100% !important;
  overflow: visible !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  line-height: 20px !important;
  letter-spacing: -1px !important;
  text-align: center !important;
}

.mine-page .mine-grid[data-v-dfdda197] .round-icon[data-v-dfdda197] {
  width: 56px !important;
  height: 56px !important;
  font-size: 22px !important;
}

.codex-affiliation-menu { cursor: pointer; }
.codex-affiliation-menu .round-icon { background: #8b5cf6 !important; }
.recommend-page .action-row,
.recommend-page .tag-corner { display: none !important; }

.codex-affiliation-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  overflow-y: auto;
  color: #252529;
  background: linear-gradient(90deg, #eea08c, #dc3d53 15%, #d73a51 85%, #eea08c);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html.codex-affiliation-active #app {
  visibility: hidden !important;
  pointer-events: none !important;
}

.codex-affiliation-page {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 38px;
}

.codex-affiliation-nav {
  height: 82px;
  padding: 25px 16px 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  color: #fff;
  background: #e92720;
}

.codex-affiliation-nav h1 {
  margin: 0;
  text-align: center;
  font-size: 17px;
}

.codex-affiliation-nav button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
}

.codex-affiliation-nav button::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 11px;
  width: 13px;
  height: 13px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.codex-affiliation-body { padding: 12px; }
.codex-affiliation-loading,
.codex-promotion-empty,
.codex-affiliation-empty {
  padding: 30px 12px;
  border-radius: 12px;
  text-align: center;
  color: #888;
  background: #fff;
}

.codex-promotion-search,
.codex-affiliation-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 13px;
  border-radius: 10px;
  background: #fff;
}

.codex-promotion-search span {
  width: 18px;
  height: 18px;
  border: 2px solid #9b9b9f;
  border-radius: 50%;
  position: relative;
}

.codex-promotion-search span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  background: #9b9b9f;
  transform: rotate(45deg);
}

.codex-promotion-search input,
.codex-affiliation-search input {
  flex: 1;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.codex-promotion-stat {
  height: 96px;
  margin: 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-radius: 12px;
  text-align: center;
  background: #fff;
}

.codex-promotion-stat div { display: flex; flex-direction: column; gap: 7px; }
.codex-promotion-stat strong { font-size: 19px; }
.codex-promotion-stat span { color: #666; font-size: 14px; }
.codex-promotion-user {
  min-height: 124px;
  margin-bottom: 12px;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 15px;
  border-radius: 12px;
  background: #fff;
}
.codex-promotion-user img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.codex-promotion-name { font-size: 16px; font-weight: 800; }
.codex-promotion-name span { color: #999; font-size: 12px; font-weight: 400; }
.codex-promotion-name span.online { color: #32a85b; }
.codex-promotion-income,
.codex-promotion-last { margin-top: 9px; color: #777; font-size: 12px; line-height: 1.45; }

.codex-affiliation-card {
  margin-bottom: 12px;
  padding: 17px 15px;
  border-radius: 12px;
  background: #fff;
}
.codex-affiliation-card h2 { margin: 0 0 14px; font-size: 16px; }
.codex-affiliation-line {
  min-height: 44px;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
}
.codex-affiliation-line span { color: #888; }
.codex-affiliation-line strong { text-align: right; font-weight: 600; word-break: break-all; }
.codex-affiliation-danger {
  width: 100%;
  height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  color: #e92720;
  background: #fff0ee;
}
.codex-affiliation-search { padding-right: 5px; background: #f6f6f7; }
.codex-affiliation-search button,
.codex-affiliation-result button,
.codex-affiliation-actions button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #e92720;
  white-space: nowrap;
}
.codex-search-results { margin-top: 12px; }
.codex-affiliation-result {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.codex-affiliation-result img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.codex-affiliation-result div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.codex-affiliation-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codex-affiliation-result span { color: #888; font-size: 12px; }
.codex-affiliation-result button:disabled { color: #999; background: #e5e5e5; }
.codex-affiliation-request { padding: 13px 0 16px; border-bottom: 1px solid #eee; }
.codex-affiliation-request:last-child { border-bottom: 0; }
.codex-affiliation-request h3 { margin: 0 0 8px; display: flex; justify-content: space-between; font-size: 15px; }
.codex-affiliation-request h3 span { color: #e92720; font-size: 12px; font-weight: 400; }
.codex-affiliation-rate {
  min-height: 48px;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  font-size: 14px;
}
.codex-affiliation-rate span { color: #888; }
.codex-affiliation-rate div { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.codex-affiliation-rate input {
  width: 96px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  text-align: right;
}
.codex-affiliation-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.codex-affiliation-actions button.secondary { color: #e92720; background: #fff0ee; }
.codex-affiliation-explain { padding: 4px 7px 25px; color: rgba(255,255,255,.9); font-size: 12px; line-height: 1.7; }

@media (min-width: 700px) {
  .codex-affiliation-page { box-shadow: 0 0 36px rgba(0,0,0,.15); }
}
