/* 银连记 · 全局设计变量 */
/* 将此文件引入所有页面，确保品牌统一 */

:root {
  /* 主色调 */
  --primary: #0F2B56;
  --gold: #C8A458;
  --gold-light: rgba(200, 164, 88, 0.12);
  --gold-glow: rgba(200, 164, 88, 0.25);

  /* 辅助色 */
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --border: rgba(200, 164, 88, 0.12);
  --border-light: rgba(200, 164, 88, 0.08);

  /* 文字色 */
  --text: #222222;
  --gray: #6B7280;
  --text-white: #FFFFFF;
  --text-white-secondary: rgba(255, 255, 255, 0.7);
  --text-white-hint: rgba(255, 255, 255, 0.5);

  /* 引力场色 */
  --halo-blue: rgba(15, 43, 86, 0.3);
  --halo-gold: rgba(200, 164, 88, 0.4);
  --halo-bright-blue: #3B7DD8;
  --core-white: #FFFFFF;
  --beam-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);

  /* 圆角 */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 50px;

  /* 阴影 */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-btn-gold: 0 4px 14px rgba(200, 164, 88, 0.25);

  /* 字体 */
  --font-title: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;

  /* 动画 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ===== 通用组件 ===== */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* Section */
.sec { padding: 28px 20px; }
.sec-h { font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 16px; color: var(--text); }

/* 按钮 */
.btn-row { display: flex; gap: 12px; margin-top: 24px; }
.btn { flex: 1; padding: 13px; border-radius: var(--radius-full); font-weight: 600; font-size: 15px; text-align: center; cursor: pointer; transition: all var(--transition-fast); font-family: inherit; border: none; }
.btn-primary { background: var(--gold); color: var(--primary); box-shadow: var(--shadow-btn-gold); }
.btn-primary:active { transform: scale(0.96); }
.btn-secondary { background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-pay { background: var(--gold); color: var(--primary); box-shadow: var(--shadow-btn-gold); }

/* 表单 */
.form-container { max-width: 480px; margin: 0 auto; padding: 24px 20px; }
.form-card { background: var(--card); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 11px 14px; background: var(--bg); border: 1px solid #E5E7EB; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; outline: none; transition: all var(--transition-fast); font-family: inherit; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 43, 86, 0.08); }
.radio-group { display: flex; gap: 10px; }
.radio-option { flex: 1; text-align: center; padding: 10px; background: var(--bg); border: 1px solid #E5E7EB; border-radius: var(--radius-sm); cursor: pointer; color: var(--gray); font-size: 14px; transition: all var(--transition-fast); user-select: none; }
.radio-option.selected { background: rgba(15, 43, 86, 0.05); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* 进度条 */
.progress-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; position: relative; }
.progress-step .dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; transition: all .3s; }
.progress-step.active .dot { background: var(--primary); box-shadow: 0 0 6px rgba(15, 43, 86, .3); }
.progress-step.done .dot { background: var(--gold); }
.progress-step .label { font-size: 10px; color: var(--gray); white-space: nowrap; }
.progress-step.active .label { color: var(--primary); font-weight: 600; }
.progress-line { height: 2px; background: #E2E8F0; flex: 1; margin: 0 4px; position: relative; top: -10px; z-index: -1; }
.progress-line.done { background: var(--gold); }

/* 卡片网格 */
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fc { background: var(--card); border-radius: var(--radius-md); padding: 20px 16px; border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: all var(--transition-normal); }
.fc:active { box-shadow: var(--shadow-card-hover); border-color: rgba(200, 164, 88, .25); }
.fc .ft { font-size: 14px; font-weight: 600; margin-top: 10px; margin-bottom: 4px; color: var(--text); }
.fc .fd { font-size: 12px; color: var(--gray); line-height: 1.5; }

/* 身份卡片 */
.ig { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ic { background: var(--card); border-radius: var(--radius-md); padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: all var(--transition-normal); text-decoration: none; color: inherit; }
.ic:active { box-shadow: var(--shadow-card-hover); border-color: rgba(200, 164, 88, .25); }
.ic .il { flex: 1; }
.ic .il .n { font-size: 14px; font-weight: 600; color: var(--text); }
.ic .il .d { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* 报告页 */
.report-container { max-width: 480px; margin: 0 auto; padding: 24px 20px; }
.report-card { background: var(--card); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-card); margin-bottom: 16px; }
.report-title { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.report-highlight { color: var(--gold); font-weight: 700; }
.report-divider { border: none; border-top: 1px solid var(--border-light); margin: 16px 0; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table td { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.info-table td:last-child { text-align: right; font-weight: 500; }

/* 工具箱 */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-card { background: var(--card); border-radius: var(--radius-md); padding: 20px 16px; border: 1px solid var(--border); box-shadow: var(--shadow-card); text-align: center; transition: all var(--transition-normal); cursor: pointer; }
.tool-card:active { box-shadow: var(--shadow-card-hover); }
.tool-card .tool-icon { width: 40px; height: 40px; margin: 0 auto 10px; background: rgba(200, 164, 88, .1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.tool-card .tool-name { font-size: 14px; font-weight: 600; color: var(--text); }
.tool-card .tool-desc { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* 论坛 */
.forum-container { max-width: 480px; margin: 0 auto; padding: 24px 20px; }

/* 个人中心 */
.profile-header { text-align: center; padding: 32px 20px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(15, 43, 86, .05); margin: 0 auto 12px; }
.profile-name { font-size: 20px; font-weight: 700; color: var(--text); }
.profile-menu { background: var(--card); border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; }
.profile-menu-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: all var(--transition-fast); color: var(--text); text-decoration: none; }
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: rgba(15, 43, 86, .03); }

/* 浮动按钮 */
.floating-buttons { position: fixed; bottom: 100px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; box-shadow: var(--shadow-btn-gold); border: none; }
.float-btn.emergency { background: #ef4444; animation: pulse-danger 2s infinite; }
.float-btn.service { background: var(--primary); }
@keyframes pulse-danger { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .4); } 50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); } }

/* 返回按钮 */
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 14px; cursor: pointer; margin-bottom: 12px; }
.back-link:hover { text-decoration: underline; }
