/* ============================================
   三菱日联社会福祉 - 前端H5样式 v2.0
   参考风格：深蓝科技感 + 白色卡片内容
   ============================================ */
:root {
  --bg-outer: #0d1b35;
  --bg-inner: #f0f4f8;
  --primary: #1a3a6b;
  --primary-dark: #0f2347;
  --primary-light: #2a5298;
  --gold: #f5c518;
  --gold-dark: #d4a017;
  --green: #06c755;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #9ca3af;
  --border: #e8edf4;
  --card-shadow: 0 2px 16px rgba(0,0,0,0.08);
  --card-radius: 14px;
  --btn-radius: 12px;
  --app-max: 480px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-outer);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }
img { max-width: 100%; }

/* APP WRAPPER */
#app-wrapper {
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-inner);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.page-content { flex: 1; padding-bottom: 70px; }

/* TOP NAV */
.top-nav {
  background: var(--white);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: transparent; padding: 2px; }
.nav-title { font-size: 14px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.nav-subtitle { font-size: 10px; color: var(--text-light); font-weight: 400; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-bell { width: 36px; height: 36px; border-radius: 50%; background: #f0f4f8; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; position: relative; }
.nav-bell-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; border: 2px solid #fff; }
.btn-login-nav { background: var(--primary); color: #fff; padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; transition: background 0.2s; }
.btn-login-nav:hover { background: var(--primary-light); }

/* HERO SECTION */
.hero-section {
  background: linear-gradient(160deg, #0f2347 0%, #1a3a6b 50%, #1e4d8c 100%);
  padding: 24px 20px 28px;
  position: relative;
  overflow: hidden;
}
.hero-section::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: rgba(245,197,24,0.08); border-radius: 50%; }
.hero-section::after { content: ''; position: absolute; bottom: -40px; left: -40px; width: 150px; height: 150px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,197,24,0.15); border: 1px solid rgba(245,197,24,0.3); color: var(--gold); padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 14px; }
.hero-title { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 6px; letter-spacing: -0.5px; }
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-stat { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 8px; text-align: center; backdrop-filter: blur(4px); }
.hero-stat-value { font-size: 16px; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-label { font-size: 10px; color: rgba(255,255,255,0.6); margin-top: 3px; }

/* LOGIN BANNER */
.login-banner { margin: 14px 16px; background: linear-gradient(135deg, #fff8e6, #fffbf0); border: 1.5px solid rgba(245,197,24,0.4); border-radius: var(--card-radius); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: transform 0.15s; }
.login-banner:active { transform: scale(0.98); }
.login-banner-left { display: flex; align-items: center; gap: 12px; }
.login-banner-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.login-banner-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.login-banner-desc { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.login-banner-arrow { width: 28px; height: 28px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; flex-shrink: 0; }

/* SECTION HEADER */
.section-header { padding: 16px 16px 10px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-title { font-size: 17px; font-weight: 800; color: var(--text-dark); }
.section-subtitle { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.section-badge { background: rgba(26,58,107,0.08); color: var(--primary); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* BENEFIT CARDS */
.benefit-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.benefit-card { background: var(--white); border-radius: var(--card-radius); padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--card-shadow); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; border: 1.5px solid transparent; }
.benefit-card:active { transform: scale(0.98); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.benefit-card:hover { border-color: rgba(26,58,107,0.15); }
.benefit-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.benefit-icon.blue { background: rgba(26,58,107,0.08); }
.benefit-icon.green { background: rgba(6,199,85,0.1); }
.benefit-icon.orange { background: rgba(245,158,11,0.1); }
.benefit-info { flex: 1; min-width: 0; }
.benefit-name { font-size: 15px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.benefit-tag { background: rgba(26,58,107,0.08); color: var(--primary); padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 600; }
.benefit-meta { display: flex; gap: 16px; margin-top: 8px; }
.benefit-meta-label { font-size: 10px; color: var(--text-light); }
.benefit-meta-value { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: 1px; }
.benefit-arrow { width: 28px; height: 28px; border-radius: 50%; background: #f0f4f8; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 14px; flex-shrink: 0; }

/* NOTICE */
.notice-card { margin: 14px 16px; background: rgba(245,197,24,0.06); border: 1.5px solid rgba(245,197,24,0.25); border-radius: var(--card-radius); padding: 14px 16px; display: flex; gap: 10px; }
.notice-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.notice-title { font-size: 13px; font-weight: 700; color: #92400e; margin-bottom: 4px; }
.notice-text { font-size: 12px; color: #78350f; line-height: 1.6; }

/* LINE */
.line-section { margin: 0 16px 14px; background: var(--white); border-radius: var(--card-radius); padding: 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--card-shadow); }
.line-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.line-desc { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.btn-line { background: var(--green); color: #fff; padding: 9px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; transition: opacity 0.2s; white-space: nowrap; }
.btn-line:hover { opacity: 0.9; }

/* BOTTOM NAV */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-max); height: 64px; background: var(--white); border-top: 1px solid var(--border); display: flex; align-items: center; z-index: 200; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 0; cursor: pointer; transition: all 0.2s; color: var(--text-light); font-size: 10px; font-weight: 500; text-decoration: none; }
.nav-item.active { color: var(--primary); }
.nav-item-icon { font-size: 22px; line-height: 1; transition: transform 0.2s; }
.nav-item.active .nav-item-icon { transform: scale(1.1); }

/* MODAL SHEET */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-sheet { background: var(--white); width: 100%; max-width: var(--app-max); border-radius: 20px 20px 0 0; overflow: hidden; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); max-height: 85vh; display: flex; flex-direction: column; }
.modal-overlay.show .modal-sheet { transform: translateY(0); }
.modal-drag-bar { width: 36px; height: 4px; background: #e0e0e0; border-radius: 2px; margin: 10px auto 0; }
.modal-header { padding: 14px 20px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.modal-header-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.modal-header-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.modal-header-sub { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.8; color: var(--text-mid); }
.modal-footer { padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.btn-primary-full { width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 14px; border-radius: var(--btn-radius); font-size: 15px; font-weight: 700; text-align: center; transition: opacity 0.2s; cursor: pointer; border: none; }
.btn-primary-full:active { opacity: 0.85; }
.btn-ghost-full { width: 100%; background: transparent; color: var(--text-light); padding: 10px; border-radius: var(--btn-radius); font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; border: none; }

/* PAGE HERO */
.page-hero { background: linear-gradient(160deg, #0f2347 0%, #1a3a6b 100%); padding: 20px 20px 24px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.page-hero-back { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 12px; cursor: pointer; }
.page-hero-title { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.3; }
.page-hero-desc { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* FORM */
.form-section { padding: 14px 16px; }
.form-card { background: var(--white); border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow); margin-bottom: 14px; }
.form-card-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.form-card-header-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(26,58,107,0.08); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.form-card-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.form-card-body { padding: 16px; }
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-label .required { color: #ef4444; margin-left: 3px; }
.form-input { width: 100%; background: #f8fafc; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: 14px; color: var(--text-dark); transition: all 0.2s; }
.form-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(26,58,107,0.08); }
.form-input::placeholder { color: #c0c8d4; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* UPLOAD */
.upload-area { border: 2px dashed var(--border); border-radius: 10px; padding: 20px 16px; text-align: center; cursor: pointer; transition: all 0.2s; background: #f8fafc; position: relative; }
.upload-area:hover { border-color: var(--primary); background: rgba(26,58,107,0.03); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 28px; margin-bottom: 6px; }
.upload-title { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.upload-hint { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-thumb { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; border: 1.5px solid var(--border); }

/* BANK */
.bank-options { display: flex; flex-direction: column; gap: 8px; }
.bank-option { border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; background: #f8fafc; }
.bank-option.selected { border-color: var(--primary); background: rgba(26,58,107,0.04); }
.bank-option input[type="radio"] { display: none; }
.bank-option-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.bank-option.selected .bank-option-radio { border-color: var(--primary); background: var(--primary); }
.bank-option.selected .bank-option-radio::after { content: ''; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.bank-option-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.bank-option-en { font-size: 11px; color: var(--text-light); }

/* SUBMIT */
.submit-section { padding: 0 16px 20px; }
.btn-submit { width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 15px; border-radius: var(--btn-radius); font-size: 16px; font-weight: 700; text-align: center; border: none; cursor: pointer; transition: opacity 0.2s, transform 0.1s; box-shadow: 0 4px 16px rgba(26,58,107,0.3); }
.btn-submit:active { opacity: 0.9; transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* PROGRESS */
.progress-hero { background: linear-gradient(160deg, #0f2347 0%, #1a3a6b 100%); padding: 20px 20px 28px; position: relative; overflow: hidden; }
.progress-hero::before { content: ''; position: absolute; top: -50px; right: -50px; width: 180px; height: 180px; background: rgba(245,197,24,0.08); border-radius: 50%; }
.progress-amount-card { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(8px); }
.progress-amount-label { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 500; }
.progress-amount-value { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.2; margin: 4px 0; }
.progress-amount-value span { font-size: 18px; color: var(--gold); }
.progress-monthly { font-size: 13px; color: rgba(255,255,255,0.7); }
.progress-monthly strong { color: var(--gold); }

/* STEPS */
.progress-steps { display: flex; align-items: center; padding: 20px 16px; background: var(--white); margin: 14px 16px; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-item:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--border); z-index: 0; }
.step-item.done:not(:last-child)::after, .step-item.active:not(:last-child)::after { background: var(--primary); }
.step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-light); position: relative; z-index: 1; transition: all 0.3s; }
.step-item.done .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-item.active .step-dot { background: var(--gold); border-color: var(--gold); color: var(--primary); box-shadow: 0 0 0 4px rgba(245,197,24,0.2); }
.step-label { font-size: 9px; color: var(--text-light); margin-top: 5px; text-align: center; line-height: 1.3; }
.step-item.active .step-label { color: var(--primary); font-weight: 700; }

/* APP CARDS */
.app-card { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); margin: 0 16px 12px; overflow: hidden; }
.app-card-top { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.app-card-type { font-size: 14px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.app-status-badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-reviewing { background: rgba(59,130,246,0.1); color: #2563eb; }
.status-pending_payment { background: rgba(245,158,11,0.1); color: #d97706; }
.status-manual_verify { background: rgba(139,92,246,0.1); color: #7c3aed; }
.status-paid { background: rgba(6,199,85,0.1); color: #059669; }
.status-rejected { background: rgba(239,68,68,0.1); color: #dc2626; }
.app-card-body { padding: 14px 16px; }
.app-info-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.app-info-label { color: var(--text-light); }
.app-info-value { font-weight: 600; color: var(--text-dark); }

/* AUTH */
.auth-page { min-height: 100vh; background: linear-gradient(160deg, #0f2347 0%, #1a3a6b 60%, #1e4d8c 100%); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 40px 20px 20px; }
.auth-logo-area { text-align: center; margin-bottom: 28px; }
.auth-logo { width: 64px; height: 64px; border-radius: 18px; background: transparent; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; border: none; overflow: hidden; }
.auth-logo img { width: 48px; height: 48px; object-fit: contain; }
.auth-title { font-size: 20px; font-weight: 800; color: #fff; }
.auth-subtitle { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.auth-card { background: var(--white); border-radius: 20px; padding: 24px 20px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.auth-card-title { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.auth-card-subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 16px; }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* PROFILE */
.profile-hero { background: linear-gradient(160deg, #0f2347 0%, #1a3a6b 100%); padding: 24px 20px 32px; text-align: center; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 3px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 12px; }
.profile-name { font-size: 18px; font-weight: 700; color: #fff; }
.profile-email { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.profile-menu { padding: 0 16px; margin-top: -16px; }
.profile-menu-card { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; margin-bottom: 12px; }
.profile-menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: #f8fafc; }
.profile-menu-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.profile-menu-text { flex: 1; font-size: 14px; font-weight: 600; color: var(--text-dark); }
.profile-menu-arrow { color: var(--text-light); font-size: 16px; }

/* TOAST */
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-20px); background: rgba(26,26,46,0.92); color: #fff; padding: 10px 20px; border-radius: 20px; font-size: 13px; font-weight: 500; z-index: 9999; opacity: 0; transition: all 0.3s; pointer-events: none; white-space: nowrap; backdrop-filter: blur(8px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(6,199,85,0.9); }
.toast.error { background: rgba(239,68,68,0.9); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-icon { font-size: 52px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--text-mid); }
.empty-desc { font-size: 13px; color: var(--text-light); margin-top: 6px; }

/* LOADING */
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.8); z-index: 9000; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; backdrop-filter: blur(4px); }
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 13px; color: var(--text-mid); font-weight: 500; }

/* MISC */
.terms-note { text-align: center; font-size: 11px; color: var(--text-light); padding: 0 16px 16px; line-height: 1.6; }
.requirements-card { background: rgba(26,58,107,0.04); border: 1.5px solid rgba(26,58,107,0.12); border-radius: var(--card-radius); padding: 14px 16px; margin-bottom: 14px; }
.requirements-title { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.requirement-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-mid); padding: 4px 0; line-height: 1.5; }
.requirement-check { color: var(--primary); font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.child-card { background: rgba(6,199,85,0.04); border: 1.5px solid rgba(6,199,85,0.15); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.child-card-title { font-size: 13px; font-weight: 700; color: #059669; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.deadline-tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #dc2626; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
}


/* ============================================
   亿诚日本补助管理后台 - 全新UI样式
   ============================================ */

/* 后台基础 */
.admin-body {
  background: #f1f5f9;
  min-height: 100vh;
  font-family: -apple-system, 'Hiragino Sans', 'Noto Sans JP', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 侧边栏 */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-sidebar-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}
.admin-sidebar-brand-text {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}
.admin-sidebar-brand-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}
.admin-nav-wrap {
  flex: 1;
  padding: 12px 10px;
}
.admin-nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 8px 6px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  margin-bottom: 2px;
}
.admin-nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.admin-nav-link.active {
  background: rgba(59,130,246,0.18);
  color: #60a5fa;
  font-weight: 600;
}
.admin-nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
}
.admin-nav-link.active svg { opacity: 1; }
.admin-sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.admin-nav-link.danger { color: rgba(239,68,68,0.7); }
.admin-nav-link.danger:hover { background: rgba(239,68,68,0.1); color: #f87171; }

/* 主内容区 */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-content {
  padding: 24px;
  flex: 1;
}
.admin-page-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.admin-page-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

/* 统计卡片 */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 8px;
}
.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.admin-stat-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}
.admin-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.admin-stat-icon svg { width: 20px; height: 20px; }
.stat-blue { background: #eff6ff; color: #3b82f6; }
.stat-green { background: #f0fdf4; color: #22c55e; }
.stat-amber { background: #fffbeb; color: #f59e0b; }
.stat-purple { background: #faf5ff; color: #a855f7; }

/* 卡片 */
.admin-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 20px;
  overflow: hidden;
}
.admin-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.admin-card-body { padding: 20px; }

/* 表格 */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  background: #f8fafc;
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-reviewing { background: #eff6ff; color: #3b82f6; }
.badge-pending_payment { background: #fffbeb; color: #d97706; }
.badge-manual_verify { background: #faf5ff; color: #7c3aed; }
.badge-paid { background: #f0fdf4; color: #16a34a; }
.badge-rejected { background: #fef2f2; color: #dc2626; }
.badge-disability { background: #eff6ff; color: #2563eb; }
.badge-childcare { background: #f0fdf4; color: #16a34a; }
.badge-elderly { background: #fffbeb; color: #d97706; }

/* 筛选栏 */
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-search-input {
  flex: 1;
  min-width: 180px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #0f172a;
  transition: all 0.2s;
}
.admin-search-input:focus {
  border-color: #3b82f6;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.admin-select {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color 0.2s;
}
.admin-select:focus { border-color: #3b82f6; outline: none; }

/* 按钮 */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-admin-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-admin-primary { background: #3b82f6; color: #fff; }
.btn-admin-primary:hover { background: #2563eb; }
.btn-admin-success { background: #22c55e; color: #fff; }
.btn-admin-success:hover { background: #16a34a; }
.btn-admin-warning { background: #f59e0b; color: #fff; }
.btn-admin-warning:hover { background: #d97706; }
.btn-admin-danger { background: #ef4444; color: #fff; }
.btn-admin-danger:hover { background: #dc2626; }
.btn-admin-outline { background: transparent; color: #64748b; border: 1.5px solid #e2e8f0; }
.btn-admin-outline:hover { background: #f8fafc; border-color: #cbd5e1; }

/* 表单 */
.admin-form-group { margin-bottom: 16px; }
.admin-form-group:last-child { margin-bottom: 0; }
.admin-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.admin-form-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #0f172a;
  transition: all 0.2s;
  font-family: inherit;
}
.admin-form-input:focus {
  border-color: #3b82f6;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
select.admin-form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
textarea.admin-form-input { resize: vertical; min-height: 80px; }

/* 提示框 */
.admin-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.admin-alert-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* 弹窗 */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.admin-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.admin-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.admin-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.admin-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.admin-modal-close:hover { background: #e2e8f0; }
.admin-modal-body { padding: 20px; }
.admin-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* 后台登录 */
.admin-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.admin-login-logo {
  text-align: center;
  margin-bottom: 24px;
}
.admin-login-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 12px;
}
.admin-login-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.admin-login-sub {
  font-size: 13px;
  color: #94a3b8;
}

/* 详情行 */
.detail-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 13px;
  gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: #94a3b8; min-width: 90px; flex-shrink: 0; }
.detail-value { font-weight: 600; color: #0f172a; text-align: right; flex: 1; word-break: break-all; }

/* 分隔区块 */
.admin-section-block {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}
.admin-section-block-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
