/* ============================================================
   理财详情 / 提现确认 / 安全设置 共享样式
   ============================================================ */

/* 顶部进度卡（理财详情用） */
.detail-hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  color: #fff;
  padding: 0 16px 28px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.detail-hero .top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  position: relative;
  z-index: 2;
}

.detail-hero .top-bar .title {
  font-size: 16px;
  font-weight: 700;
}

.detail-hero .top-bar .icn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero .top-bar .icn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

.detail-hero .prod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  position: relative;
  z-index: 2;
}

.detail-hero .prod-row .lh .label {
  font-size: 11px;
  opacity: 0.8;
}

.detail-hero .prod-row .lh .name {
  font-size: 22px;
  font-weight: 700;
  margin-top: 2px;
}

.detail-hero .prod-row .rh {
  text-align: right;
}

.detail-hero .prod-row .rh .label {
  font-size: 11px;
  opacity: 0.8;
}

.detail-hero .prod-row .rh .rate {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-brand);
}

.detail-hero .prod-row .rh .rate .u {
  font-size: 16px;
  opacity: 0.85;
}

.detail-hero .prod-row .rh .sub {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

/* 进度条带文字 */
.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 6px;
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.progress-text .pct {
  font-weight: 700;
  color: var(--color-brand);
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 999px;
}

/* 数据网格 */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.data-grid .cell {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
}

.data-grid .cell .k {
  font-size: 11px;
  opacity: 0.8;
}

.data-grid .cell .v {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.data-grid .cell .v.up { color: var(--color-brand); }

/* 信息卡（提现/安全用） */
.info-card {
  background: var(--color-card);
  margin: 0 0 8px;
  padding: 14px 16px;
}

.info-card .ic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}

.info-card .ic-row:last-child {
  border-bottom: none;
}

.info-card .ic-row .k {
  color: var(--color-text-sub);
}

.info-card .ic-row .v {
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}

.info-card .ic-row .v.up { color: var(--color-success); }
.info-card .ic-row .v.down { color: var(--color-danger); }
.info-card .ic-row .v.brand { color: #8B6B00; background: var(--color-brand-bg); padding: 2px 8px; border-radius: 4px; font-family: monospace; }

/* 验证码方块输入 */
.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.code-inputs .ci {
  width: 44px;
  height: 52px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  background: var(--color-card);
}

.code-inputs .ci.filled {
  border-color: var(--color-primary);
  background: #fff;
}

.code-inputs .ci.active {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-bg);
}

/* 安全设置 - 开关 */
.switch {
  width: 40px;
  height: 22px;
  background: var(--color-border);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.switch.on {
  background: var(--color-success);
}

.switch.on::after {
  transform: translateX(18px);
}

/* 安全等级条 */
.sec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.sec-item:last-child { border-bottom: none; }

.sec-item .si-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sec-item .si-ic svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sec-item .si-meta {
  flex: 1;
  min-width: 0;
}

.sec-item .si-meta .t {
  font-size: 14px;
  font-weight: 600;
}

.sec-item .si-meta .s {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.sec-item .si-r {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-item .si-r .tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
}

.sec-item .arrow {
  width: 14px;
  height: 14px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 2;
}

/* 大按钮列 */
.action-stack {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-stack .btn {
  width: 100%;
}

/* 步骤条 */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: var(--color-card);
  margin-bottom: 8px;
}

.steps .step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.steps .step .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-sub);
}

.steps .step.active { color: var(--color-primary); font-weight: 600; }
.steps .step.active .num { background: var(--color-primary); color: #fff; }
.steps .step.done .num { background: var(--color-success); color: #fff; }
.steps .line {
  width: 28px;
  height: 1px;
  background: var(--color-border);
}
.steps .line.done { background: var(--color-success); }

/* 提示框 */
.notice {
  margin: 12px 16px;
  padding: 10px 12px;
  background: var(--color-brand-bg);
  border-radius: 8px;
  font-size: 11px;
  color: #8B6B00;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.6;
}

.notice.warn {
  background: #FFF1F2;
  color: var(--color-danger);
}

.notice svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice .nt { color: var(--color-text); font-weight: 700; margin-right: 4px; }