/* 保障资产页 — 政务蓝金风格 */
.page-assets {
  background: linear-gradient(180deg, #e8f0fc 0%, var(--app-bg) 28%);
}

.page-assets .app-main {
  padding-bottom: 8px;
}

/* 顶栏 */
.assets-header {
  position: relative;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 14px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #0a52c8 0%, var(--gov-blue) 55%, var(--gov-blue-deep) 100%);
  box-shadow: 0 4px 16px rgba(0, 58, 158, 0.18);
}

.assets-header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.assets-header .header-action {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
}

.assets-header .header-action svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* 未登录引导 */
.assets-guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 14px 0;
  padding: 12px 14px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #d6e4f7;
  box-shadow: var(--card-shadow);
}

.assets-guest-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
}

.assets-guest-banner strong {
  color: var(--gov-blue);
}

.assets-guest-banner .btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 13px;
}

/* 可领取保障金条 */
.assets-fund-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 14px 0;
  padding: 11px 14px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #e67a2e, #d45a12);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(230, 122, 46, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.assets-fund-strip[hidden] {
  display: none !important;
}

.assets-fund-strip span {
  font-size: 13px;
  font-weight: 500;
}

.assets-fund-strip em {
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
}

.assets-fund-strip .strip-arrow {
  font-size: 18px;
  opacity: 0.9;
}

/* 支票卡片增强 */
.page-assets .check-voucher {
  position: relative;
  margin: 12px 14px;
  padding: 16px 16px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffef8 0%, #fff 40%);
  border: 2px solid #c5daf0;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(0, 82, 217, 0.08);
}

.page-assets .check-voucher::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(0, 82, 217, 0.15);
  border-radius: 8px;
  pointer-events: none;
}

.page-assets .check-voucher-head {
  position: relative;
  z-index: 1;
}

.page-assets .check-amount {
  background: rgba(0, 82, 217, 0.06);
}

.page-assets .check-seal-wrap {
  position: relative;
  float: right;
  width: 76px;
  height: 76px;
  margin-top: -12px;
}

.page-assets .check-seal {
  width: 72px;
  height: 72px;
  margin: 0;
  object-fit: contain;
}

.page-assets .check-seal-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: var(--gov-red);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 3px solid var(--gov-red);
  border-radius: 50%;
  opacity: 0.88;
  transform: rotate(-12deg);
}

.page-assets .check-seal-fallback[hidden],
.page-assets .check-seal:not([hidden]) + .check-seal-fallback {
  display: none;
}

/* 资产总览卡 */
.page-assets .asset-summary {
  position: relative;
  margin: 0 14px 14px;
  padding: 18px 16px 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0052d9 0%, #003a9e 72%);
  box-shadow: 0 8px 24px rgba(0, 58, 158, 0.25);
}

.page-assets .asset-summary::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-assets .asset-summary-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  opacity: 0.92;
}

.page-assets .asset-summary .big-amt {
  margin: 10px 0 6px;
  font-size: 30px;
  letter-spacing: 0.5px;
}

.page-assets .asset-summary-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.88;
}

.page-assets .asset-summary-foot a {
  color: #f5d76e;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* 三卡资产 */
.assets-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 14px 10px;
}

.assets-section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.assets-section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: var(--gov-blue);
  border-radius: 2px;
}

.assets-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 14px 14px;
}

.assets-trio .at-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 12px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 82, 217, 0.06);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.assets-trio .at-card:active {
  transform: scale(0.98);
}

.assets-trio .at-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.assets-trio .at-card small {
  font-size: 11px;
  color: var(--muted);
}

.assets-trio .at-card .at-link {
  margin-top: 8px;
  font-size: 11px;
  color: var(--gov-blue);
  font-weight: 500;
}

.assets-trio .at-card--check strong {
  color: var(--gov-blue);
}

.assets-trio .at-card--fund strong {
  color: var(--gov-orange);
}

.assets-trio .at-card--salary strong {
  color: var(--gov-green);
}

/* 收益区 */
.page-assets .assets-earnings {
  margin: 0 14px 14px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.page-assets .assets-earnings h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.page-assets .assets-earnings h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: var(--gov-orange);
  border-radius: 2px;
}

.page-assets .earn-card {
  margin-bottom: 14px;
}

.page-assets .earn-status {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.page-assets .earn-card .earn-detail-link {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gov-orange);
  text-decoration: none;
  background: rgba(230, 122, 46, 0.08);
  border-radius: 999px;
}

.page-assets .quick-four a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  font-size: 11px;
  color: var(--ink);
  text-decoration: none;
  background: #f6f9fc;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 82, 217, 0.06);
  -webkit-tap-highlight-color: transparent;
}

.page-assets .quick-four a:active {
  background: #eef4fc;
}

/* 最近动态 */
.assets-ledger-preview {
  margin: 0 14px 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.assets-ledger-preview[hidden] {
  display: none !important;
}

.assets-ledger-preview .preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.assets-ledger-preview .preview-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.assets-ledger-preview .preview-head a {
  font-size: 12px;
  color: var(--gov-blue);
  text-decoration: none;
}

.assets-ledger-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.assets-ledger-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.assets-ledger-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.assets-ledger-list .li-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.assets-ledger-list .li-meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.assets-ledger-list .li-amt {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.assets-ledger-list .li-amt.in {
  color: var(--gov-green);
}

.assets-ledger-list .li-amt.out {
  color: var(--gov-red);
}

.assets-ledger-empty {
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* 认购引导 */
.assets-plan-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(90deg, #fff5f5, #fff);
  border: 1px solid #f5d0d0;
  border-radius: var(--radius-md);
  -webkit-tap-highlight-color: transparent;
}

.assets-plan-cta strong {
  display: block;
  font-size: 14px;
  color: var(--gov-red);
}

.assets-plan-cta small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.assets-plan-cta .cta-go {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--gov-blue);
  white-space: nowrap;
}

.page-assets .tips-box {
  margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
