/* APP 政务风通用布局 */
.app-body {
  background: var(--app-bg);
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: calc(56px + var(--safe-bottom));
  background: var(--app-bg);
}

.app-main { flex: 1; }

/* —— 顶栏（内页） —— */
.app-page-header {
  position: relative;
  padding: 14px 16px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, var(--gov-blue-header) 0%, var(--gov-blue) 100%);
}

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

.app-page-header .header-action {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.app-page-header .header-action svg {
  width: 16px;
  height: 16px;
}

/* —— 首页 Hero —— */
.home-hero {
  position: relative;
  padding: 16px 16px 28px;
  color: #fff;
  background: linear-gradient(165deg, #0a4ab5 0%, #0052d9 55%, #003a9e 100%);
  overflow: hidden;
}

.home-hero::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  background: url("/assets/images/hero-skyline.svg") center bottom / cover no-repeat;
  opacity: 0.35;
  content: "";
}

.home-hero::after {
  position: absolute;
  right: -20px;
  bottom: -1px;
  left: -20px;
  height: 20px;
  background: var(--app-bg);
  border-radius: 16px 16px 0 0;
  content: "";
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
  align-items: center;
}

.home-hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.home-hero .slogan {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  opacity: 0.92;
}

.home-hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* 通知栏 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -14px 14px 12px;
  padding: 11px 14px;
  position: relative;
  z-index: 3;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.notice-bar .tag {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: var(--gov-red);
  font-size: 13px;
  font-weight: 600;
}

.notice-bar .tag svg {
  width: 16px;
  height: 16px;
  color: var(--gov-red);
}

.notice-bar .divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.notice-bar .text {
  flex: 1;
  min-width: 0;
  color: #4a5568;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-bar .arrow {
  color: #b0b8c4;
  flex-shrink: 0;
}

.notice-bar .arrow svg {
  width: 18px;
  height: 18px;
}

/* 白卡片区块 */
.app-card {
  margin: 0 14px 12px;
  padding: 16px 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

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

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

.section-head a {
  color: var(--muted);
  font-size: 13px;
}

/* 服务宫格 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 8px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  text-align: center;
  background: none;
  border: 0;
}

.svc-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.svc-icon--blue { background: var(--gov-blue); }
.svc-icon--orange { background: var(--gov-orange); }
.svc-icon--red { background: var(--gov-red); }
.svc-icon--purple { background: var(--gov-purple); }
.svc-icon--green { background: var(--gov-green); }
.svc-icon--cyan { background: #3a8fd9; }

.service-item strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.service-item small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

/* 红色计划横幅 */
.plan-banner {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 8px;
  align-items: center;
  margin: 0 14px 12px;
  padding: 18px 16px;
  color: #fff;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #c41e22 0%, #9a181c 100%);
  box-shadow: 0 4px 16px rgba(196, 30, 34, 0.2);
}

.plan-banner h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.plan-banner p {
  margin: 0 0 12px;
  font-size: 12px;
  opacity: 0.9;
}

.plan-banner .btn-outline {
  display: inline-block;
  padding: 7px 14px;
  color: var(--gov-red);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border-radius: 20px;
  border: 0;
}

.plan-banner-img {
  width: 100px;
  height: 72px;
  object-fit: contain;
}

/* 服务指南横滑 */
.guide-scroll {
  display: flex;
  gap: 10px;
  margin: 0 -2px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-scroll::-webkit-scrollbar { display: none; }

.guide-card {
  flex: 0 0 38%;
  padding: 12px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.guide-card .g-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-radius: var(--radius-sm);
}

.guide-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.guide-card small { font-size: 11px; color: var(--muted); }

/* —— 个人中心 —— */
.profile-hero {
  padding: 12px 16px 20px;
  color: #fff;
  background: linear-gradient(165deg, #083d96 0%, #0052d9 100%);
}

.profile-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile-hero-top h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.profile-hero-top a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
}

.profile-hero-top a svg { width: 20px; height: 20px; }

.profile-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  object-fit: cover;
  background: #e8edf5;
}

.profile-user h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #7a5a00;
  background: linear-gradient(90deg, #f5e6a8, #e8c84a);
  border-radius: 20px;
}

.profile-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.profile-invite-row .btns {
  display: flex;
  gap: 8px;
}

.btn-sm-white {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gov-blue);
  background: #fff;
  border: 0;
  border-radius: var(--radius-sm);
}

.btn-sm-ghost {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
}

.finance-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: -10px 14px 12px;
  padding: 14px 8px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.finance-cell {
  text-align: center;
}

.finance-cell .fc-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  border-radius: 8px;
}

.finance-cell span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.finance-cell strong {
  font-size: 12px;
  font-weight: 700;
}

.fc-blue .fc-icon { background: var(--gov-blue); }
.fc-blue strong { color: var(--gov-blue); }
.fc-orange .fc-icon { background: var(--gov-orange); }
.fc-orange strong { color: var(--gov-orange); }
.fc-gold .fc-icon { background: #d4a017; }
.fc-gold strong { color: #b8860b; }
.fc-purple .fc-icon { background: var(--gov-purple); }
.fc-purple strong { color: var(--gov-purple); }

.checkin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px 12px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.checkin-row .ci-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #eef3fc;
  border-radius: var(--radius-md);
  color: var(--gov-blue);
}

.checkin-row .ci-icon svg { width: 22px; height: 22px; }

.checkin-row .grow { flex: 1; }
.checkin-row strong { display: block; font-size: 14px; margin-bottom: 4px; }
.checkin-row small { font-size: 12px; color: var(--muted); }

.checkin-meta {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}

.checkin-meta em {
  color: var(--gov-red);
  font-style: normal;
  font-weight: 700;
}

.btn-primary-sm {
  display: block;
  margin-top: 6px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: var(--gov-blue);
  border: 0;
  border-radius: 20px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 6px;
}

.menu-grid a,
.menu-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
}

.menu-grid .mi {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border-radius: var(--radius-md);
  background: var(--gov-blue);
}

.mi--orange { background: var(--gov-orange); }
.mi--green { background: var(--gov-green); }
.mi--red { background: var(--gov-red); }

.list-rows {
  margin: 0 14px 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.list-rows a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f0f2f5;
}

.list-rows a:last-child { border-bottom: 0; }

.list-rows .lr-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* —— 全民宣传（工资保障） —— */
.promo-hero {
  padding: 20px 16px 24px;
  color: #fff;
  background: linear-gradient(135deg, #0a52c8, #0052d9);
}

.promo-hero h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.promo-hero p { margin: 0; font-size: 13px; opacity: 0.9; }

.promo-hero-visual {
  float: right;
  width: 100px;
  height: 80px;
  margin-left: 8px;
}

.user-card {
  display: flex;
  gap: 12px;
  margin: -12px 14px 12px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.user-card .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8edf5;
}

.stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 14px 12px;
}

.stat-box {
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.stat-box .sb-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gov-blue);
  border-radius: 8px;
  font-size: 14px;
}

.stat-box .label { font-size: 12px; color: var(--muted); }
.stat-box .value { font-size: 22px; font-weight: 700; color: var(--gov-red); }

.reward-list .reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
}

.reward-list .reward-item:last-child { border-bottom: 0; }

.reward-item .ri-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.reward-item .ri-amt {
  margin-left: auto;
  color: var(--gov-red);
  font-size: 15px;
  font-weight: 700;
}

.tips-box {
  margin: 0 14px 12px;
  padding: 14px;
  background: #eef4fc;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: #4a5568;
  line-height: 1.65;
}

.tips-box h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--gov-blue);
}

.btn-block-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 28px);
  margin: 12px 14px 20px;
  min-height: 48px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: var(--gov-blue);
  border: 0;
  border-radius: var(--radius-md);
}

/* —— 保障资产 —— */
.check-voucher {
  margin: 12px 14px;
  padding: 16px;
  background: #fff;
  border: 2px solid #b8d4f0;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.check-voucher-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.check-voucher-head img {
  width: 40px;
  height: 40px;
}

.check-voucher-head strong { font-size: 15px; }
.check-voucher-head small { display: block; color: var(--muted); font-size: 11px; }

.check-field {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.check-amount {
  display: inline-block;
  padding: 4px 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gov-blue);
  border: 2px solid var(--gov-blue);
  letter-spacing: 1px;
}

.check-seal {
  float: right;
  width: 72px;
  height: 72px;
  margin-top: -8px;
}

.asset-summary {
  margin: 0 14px 12px;
  padding: 18px 16px;
  color: #fff;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0052d9, #003a9e);
}

.asset-summary .eye-btn {
  display: inline-flex;
  margin-left: 6px;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: 0;
}

.asset-summary .eye-btn svg { width: 16px; height: 16px; }

.asset-summary .big-amt {
  margin: 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #f5d76e;
}

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

.asset-trio .at-card {
  padding: 12px 8px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.asset-trio .at-card strong {
  display: block;
  margin: 6px 0;
  font-size: 14px;
  font-weight: 700;
}

.asset-trio .at-card a {
  font-size: 11px;
  color: var(--gov-blue);
}

.earn-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(90deg, #fff8f0, #fff);
  border: 1px solid #ffe4c4;
  border-radius: var(--radius-md);
}

.earn-card .ec-amt {
  font-size: 20px;
  font-weight: 700;
  color: var(--gov-orange);
}

.quick-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.quick-four a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  font-size: 11px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
}

/* —— 保障项目 —— */
.projects-top {
  margin: 12px 14px;
  padding: 18px 16px;
  color: #fff;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0052d9, #003d8f);
}

.projects-top h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.projects-features {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 11px;
  opacity: 0.9;
}

.project-card {
  margin: 0 14px 12px;
  padding: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.project-card .pc-tag {
  display: inline-block;
  margin: 12px 12px 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-radius: 4px;
}

.pc-tag--blue { background: var(--gov-blue); }
.pc-tag--orange { background: var(--gov-orange); }

.project-card .pc-body {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 8px;
  padding: 12px 14px 14px;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gov-blue);
}

.project-card.pc-orange h3 { color: var(--gov-orange); }

.pc-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
  font-size: 11px;
  color: var(--muted);
}

.pc-meta strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.btn-subscribe {
  display: block;
  width: 100%;
  padding: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.btn-subscribe--blue { background: var(--gov-blue); }
.btn-subscribe--orange { background: var(--gov-orange); }

.section-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  font-size: 15px;
  font-weight: 700;
}

.section-title-bar::before {
  width: 3px;
  height: 14px;
  background: var(--gov-blue);
  border-radius: 2px;
  content: "";
}
