/* ============================================
   旗点科技 · 企业小程序原型设计系统
   风格：现代商务轻奢 · 顶配旗舰
   配色：深邃海军蓝 + 暖金铜色
   ============================================ */

:root {
  /* === 主色：深邃海军蓝（更高级） === */
  --primary: #0A1F44;
  --primary-light: #1B3A5C;
  --primary-dark: #06152B;
  --primary-50: #F2F5FA;
  --primary-100: #E1E8F1;
  --primary-200: #B7C4D6;

  /* === 强调色：暖金铜（取代亮黄） === */
  --accent: #C9A961;
  --accent-light: #DBC18A;
  --accent-dark: #A88846;
  --accent-50: #FAF5E8;

  /* === 背景与中性色 === */
  --bg: #F5F4F0;
  --bg-card: #FFFFFF;
  --bg-section: #FAF9F5;
  --bg-elevated: #FDFCF8;

  /* === 文本 === */
  --text: #0E1A2B;
  --text-secondary: #5B6573;
  --text-light: #98A1B0;
  --text-white: #FFFFFF;

  /* === 边框 === */
  --border: #E2E1DC;
  --border-light: #EFEDE7;
  --border-gold: rgba(201, 169, 97, 0.35);

  /* === 状态色 === */
  --success: #1E8E5C;
  --warning: #C68A1B;
  --danger: #C13838;
  --info: #2A6FB5;

  /* === 圆角 === */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* === 阴影（更精致） === */
  --shadow-xs: 0 1px 2px rgba(10, 31, 68, 0.05);
  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.06);
  --shadow: 0 8px 24px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 31, 68, 0.12);
  --shadow-xl: 0 24px 60px rgba(10, 31, 68, 0.18);
  --shadow-gold: 0 6px 20px rgba(201, 169, 97, 0.28);
  --shadow-gold-soft: 0 2px 12px rgba(201, 169, 97, 0.18);

  /* === 高度 === */
  --nav-height: 56px;
  --tabbar-height: 64px;
  --statusbar-height: 28px;

  /* === 渐变（高端商务） === */
  --grad-primary: linear-gradient(135deg, #0A1F44 0%, #1B3A5C 100%);
  --grad-gold: linear-gradient(135deg, #A88846 0%, #C9A961 50%, #DBC18A 100%);
  --grad-gold-soft: linear-gradient(135deg, #F4E9CC 0%, #FAF5E8 100%);
  --grad-card: linear-gradient(180deg, #FFFFFF 0%, #FAF9F5 100%);
  --grad-hero: linear-gradient(135deg, #06152B 0%, #0A1F44 40%, #1B3A5C 100%);
  --grad-night: linear-gradient(180deg, #0A1F44 0%, #1B3A5C 100%);

  /* === 字体 === */
  --font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(135deg, #E5E1D6 0%, #D4D0C2 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; outline: none; border: none; background: transparent; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
svg { display: block; }

/* ============== 设备外框（桌面端预览） ============== */
.device-stage {
  min-height: 100vh;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(ellipse at top left, rgba(201, 169, 97, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(10, 31, 68, 0.06), transparent 50%),
    linear-gradient(135deg, #E5E1D6 0%, #D4D0C2 100%);
}
.device {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 820px;
  background: #fff;
  border-radius: 40px;
  box-shadow:
    0 40px 80px -20px rgba(10, 31, 68, 0.45),
    0 0 0 10px #0A1F44,
    0 0 0 12px #C9A961,
    0 0 0 16px #06152B;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 480px) {
  .device-stage { padding: 0; }
  .device { border-radius: 0; min-height: 100vh; box-shadow: none; max-width: 100%; }
}

/* 顶部刘海装饰（仅装饰用） */
.device::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 24px;
  background: #1A1A1A;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 1000;
}
@media (max-width: 480px) { .device::before { display: none; } }

/* ============== 状态栏 ============== */
.statusbar {
  position: relative;
  z-index: 10;
  height: var(--statusbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.statusbar.dark { color: #fff; background: transparent; border: none; }
.statusbar .icons { display: flex; align-items: center; gap: 5px; }
.statusbar .icons svg { width: 14px; height: 14px; }

/* ============== 后台管理布局 ============== */
.admin-layout { display: grid; grid-template-columns: 60px 1fr; min-height: 100vh; background: #F4F5F7; }
.admin-side { background: linear-gradient(180deg, #0F2440, #1B3A5C); color: #fff; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; color: rgba(255,255,255,0.6); font-size: 10px; text-decoration: none; border-radius: 8px; width: 48px; transition: all .2s; }
.admin-side a.active { background: rgba(200,168,120,0.2); color: #C8A878; }
.admin-side a:hover { color: #fff; }
.admin-content { padding: 0; }
.admin-header { background: #fff; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 10; }
.admin-body { padding: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; padding: 16px; border-radius: 8px; }
.stat-num { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-trend { font-size: 11px; margin-top: 6px; color: var(--success); }
.admin-table { width: 100%; background: #fff; border-radius: 8px; overflow: hidden; font-size: 12px; border-collapse: collapse; }
.admin-table th { background: #F8F6F1; padding: 10px 12px; text-align: left; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: #FAFAFA; }
.chart-card { background: #fff; padding: 16px; border-radius: 8px; margin-bottom: 16px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 0 8px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-fill { width: 100%; background: linear-gradient(180deg, #1B3A5C, #2C5282); border-radius: 4px 4px 0 0; min-height: 4px; }
.bar-fill.accent { background: linear-gradient(180deg, #C8A878, #A88858); }
.bar-label { font-size: 10px; color: var(--text-muted); }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 16px; background: #fff; border-radius: 8px; }
.pagination-info { font-size: 12px; color: var(--text-muted); }
.pagination-btns { display: flex; gap: 4px; }
.pagination-btns button { min-width: 28px; height: 28px; padding: 0 8px; font-size: 12px; background: #fff; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.pagination-btns button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-btns button:disabled { opacity: 0.5; cursor: not-allowed; }
.tag.tag-danger { background: rgba(220, 38, 38, 0.1); color: #DC2626; }
.tag.tag-warning { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.tag.tag-success { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.tag.tag-info { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.tag.tag-default { background: var(--bg-page); color: var(--text-muted); }

/* ============== 顶部导航栏 ============== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.navbar.transparent { background: transparent; border: none; }
.navbar.transparent .navbar-title, .navbar.transparent .nav-btn { color: #fff; }
.navbar .nav-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.navbar .nav-btn:active { background: rgba(0, 0, 0, 0.05); }
.navbar .nav-btn svg { width: 20px; height: 20px; }
.navbar .navbar-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}
.navbar .navbar-title small { font-weight: 400; font-size: 11px; color: var(--text-secondary); margin-left: 6px; }

/* ============== 主内容区 ============== */
.page {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}
.page.no-tabbar { padding-bottom: 20px; }
.page.with-tabbar { padding-bottom: calc(var(--tabbar-height) + 16px); }

/* ============== 底部 TabBar ============== */
.tabbar {
  position: relative;
  z-index: 50;
  display: flex;
  height: var(--tabbar-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border-light);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-light);
  font-size: 11px;
  transition: color 0.2s;
  position: relative;
}
.tabbar .tab.active { color: var(--primary); }
.tabbar .tab svg { width: 22px; height: 22px; }
.tabbar .tab .badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============== 通用组件 ============== */

/* 标题分级（商务调性：街索多称重） */
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text); line-height: 1.35; letter-spacing: -0.005em; }
.text-display { font-family: var(--font-serif); font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--primary); }
.text-headline { font-size: 22px; font-weight: 600; line-height: 1.3; }
.text-title { font-size: 18px; font-weight: 600; }
.text-subtitle { font-size: 15px; font-weight: 500; }
.text-body { font-size: 14px; line-height: 1.7; }
.text-caption { font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.text-gold { color: var(--accent-dark); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-serif { font-family: var(--font-serif); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 14px rgba(10, 31, 68, 0.22); }
.btn-primary:active { background: var(--primary-dark); }
.btn-accent { background: var(--grad-gold); color: #fff; box-shadow: var(--shadow-gold); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline-gold { background: #fff; color: var(--accent-dark); border: 1px solid var(--accent); }
.btn-ghost { background: var(--primary-50); color: var(--primary); }
.btn-ghost-gold { background: var(--accent-50); color: var(--accent-dark); }
.btn-text { background: transparent; color: var(--primary); height: auto; padding: 4px 0; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-cancel { background: #F2F2F0; color: var(--text-secondary); }

/* 卡片 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-light);
}
.card:active { transform: scale(0.99); }
.card-bordered { box-shadow: none; border: 1px solid var(--border-light); }
.card-elevated { box-shadow: var(--shadow); }
.card-gold { border: 1px solid var(--border-gold); box-shadow: var(--shadow-gold-soft); }

/* 区块标题 */
.section {
  padding: 24px 16px 0;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--grad-gold);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(201, 169, 97, 0.4);
}
.section-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
}
.section-more {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}
.section-more:hover { color: var(--accent-dark); }
.section-more svg { width: 12px; height: 12px; }

/* 列表 */
.list { padding: 0 16px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  text-align: left;
  width: 100%;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--bg-section); }
.list-item-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.list-item-icon svg { width: 18px; height: 18px; }
.list-item-content { flex: 1; min-width: 0; }
.list-item-title { font-size: 14px; font-weight: 500; }
.list-item-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.list-item-arrow { color: var(--text-light); flex-shrink: 0; }
.list-item-arrow svg { width: 14px; height: 14px; }

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 500;
  background: var(--primary-50);
  color: var(--primary);
  letter-spacing: 0.02em;
}
.tag-accent { background: var(--accent-50); color: var(--accent-dark); border: 1px solid var(--border-gold); }
.tag-success { background: rgba(30, 142, 92, 0.1); color: var(--success); }
.tag-warning { background: rgba(198, 138, 27, 0.1); color: var(--warning); }
.tag-danger { background: rgba(193, 56, 56, 0.08); color: var(--danger); }
.tag-info { background: rgba(42, 111, 181, 0.1); color: var(--info); }
.tag-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.tag-gold-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent-dark); }

/* 头像 */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }

/* 表单 */
.form-group { padding: 0 16px; margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label .required { color: var(--danger); }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.08);
}
.form-textarea { height: 100px; padding: 12px 14px; resize: none; line-height: 1.6; }
.form-select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.form-tip { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* 模态弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 64, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 320px;
  overflow: hidden;
  animation: zoomIn 0.25s;
}
.modal-header { padding: 20px 20px 8px; text-align: center; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-body { padding: 12px 20px 20px; text-align: center; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.modal-footer { display: flex; border-top: 1px solid var(--border-light); }
.modal-footer .btn { flex: 1; height: 48px; border-radius: 0; box-shadow: none; }
.modal-footer .btn + .btn { border-left: 1px solid var(--border-light); }
.modal-footer .btn-primary { background: var(--grad-primary); }
.modal-footer .btn-cancel { background: #fff; color: var(--text); }

/* Toast */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 36, 64, 0.9);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 99999;
  max-width: 80%;
  text-align: center;
  animation: toastIn 0.3s;
}

/* ActionSheet */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  display: none;
  animation: fadeIn 0.2s;
}
.sheet-mask.show { display: block; }
.sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.show { transform: translateY(0); }
.sheet-header {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.sheet-close {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
}
.sheet-body { padding: 8px 0; max-height: 50vh; overflow-y: auto; }
.sheet-item {
  display: block;
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}
.sheet-item:active { background: var(--bg-section); }
.sheet-cancel {
  display: block;
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  font-size: 15px;
  background: var(--bg);
  margin-top: 8px;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty svg { width: 80px; height: 80px; margin: 0 auto 12px; opacity: 0.5; }
.empty-text { font-size: 13px; }

/* 加载更多 */
.loadmore { text-align: center; padding: 16px; color: var(--text-light); font-size: 12px; }

/* 分割线 */
.divider { height: 1px; background: var(--border-light); margin: 12px 0; }
.divider-text {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-light);
  padding: 20px 16px;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}

/* 工具类 */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; } .p-20 { padding: 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 20px; }
.text-3xl { font-size: 24px; }
.text-muted { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent-dark); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-through { text-decoration: line-through; }
.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none; }

/* 渐变文字 */
.gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

/* ============== Hero ============== */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding: 0 0 32px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200, 168, 120, 0.3) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(40px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.hero p {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 10px; }
.hero-cta .btn-gold { background: var(--grad-gold); color: #fff; border: none; }
.hero-cta .btn-ghost { background: rgba(255, 255, 255, 0.15); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }

/* 网格服务 */
.grid-service {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 20px 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  margin: 16px 16px 0;
  box-shadow: var(--shadow-sm);
}
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.grid-item:active { background: var(--primary-50); }
.grid-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--primary-50);
  color: var(--primary);
  position: relative;
}
.grid-icon.gold { background: rgba(200, 168, 120, 0.12); color: var(--accent-dark); }
.grid-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.grid-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.grid-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.grid-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.grid-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.grid-icon.cyan { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.grid-icon svg { width: 22px; height: 22px; }
.grid-label { font-size: 11px; color: var(--text); text-align: center; }

/* 数据展示 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  margin: 12px 16px 0;
  border-radius: var(--radius-lg);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}
.stats-item { text-align: center; }
.stats-num {
  font-size: 22px;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* 案例卡片 */
.case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.case-cover {
  position: relative;
  height: 160px;
  background: var(--grad-hero);
  overflow: hidden;
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
}
.case-body { padding: 14px; }
.case-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.case-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* 行业方案 */
.solution-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad-gold);
}
.solution-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--primary-50);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.solution-icon svg { width: 28px; height: 28px; }
.solution-info { flex: 1; min-width: 0; }
.solution-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.solution-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.solution-meta { display: flex; gap: 8px; margin-top: 8px; }
.solution-arrow { color: var(--text-light); flex-shrink: 0; }
.solution-arrow svg { width: 16px; height: 16px; }

/* 新闻卡片 */
.news-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
}
.news-cover {
  width: 100px; height: 76px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  flex-shrink: 0;
  overflow: hidden;
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-content { flex: 1; min-width: 0; }
.news-title { font-size: 14px; font-weight: 500; line-height: 1.5; }
.news-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--text-light); }

/* 流程时间轴 */
.timeline { padding: 20px 16px; }
.timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px; top: 38px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-100) 100%);
}
.timeline-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(27, 58, 92, 0.1);
  position: relative;
  z-index: 2;
}
.timeline-content { flex: 1; padding-top: 8px; }
.timeline-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.timeline-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* 价格表 */
.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--border-light);
}
.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-gold);
  transform: scale(1.02);
}
.pricing-card .featured-tag {
  position: absolute;
  top: -10px; right: 20px;
  background: var(--grad-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.pricing-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pricing-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}
.pricing-price .currency { font-size: 16px; color: var(--accent-dark); }
.pricing-price .amount { font-size: 28px; font-weight: 700; color: var(--accent-dark); }
.pricing-price .unit { font-size: 12px; color: var(--text-secondary); }
.pricing-features { list-style: none; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
}
.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-features li.disabled { color: var(--text-light); }
.pricing-features li.disabled::before { content: '○'; color: var(--text-light); }

/* 浮动按钮 */
.fab {
  position: fixed;
  right: 20px;
  bottom: calc(var(--tabbar-height) + 20px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  transition: transform 0.2s;
}
.fab-btn:active { transform: scale(0.92); }
.fab-btn.primary { background: var(--grad-primary); color: #fff; }
.fab-btn.accent { background: var(--grad-gold); color: #fff; }

/* 地图/位置 */
.location-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.location-map {
  height: 160px;
  background:
    linear-gradient(135deg, #D9E2EE 0%, #F0F4F9 100%),
    radial-gradient(circle at 30% 30%, rgba(27, 58, 92, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(200, 168, 120, 0.1) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}
.location-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 58, 92, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 58, 92, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.location-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  z-index: 2;
}
.location-pin svg { width: 32px; height: 32px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }
.location-info { padding: 14px; }
.location-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.location-address { font-size: 12px; color: var(--text-secondary); }

/* 后台管理 */
.admin-layout {
  display: flex;
  min-height: calc(100vh - var(--statusbar-height) - 44px);
  background: var(--bg);
}
.admin-sidebar {
  width: 96px;
  background: #fff;
  border-right: 1px solid var(--border-light);
  padding: 12px 0;
}
.admin-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  font-size: 11px;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}
.admin-menu-item.active { color: var(--primary); background: var(--primary-50); }
.admin-menu-item svg { width: 20px; height: 20px; }
.admin-content { flex: 1; padding: 16px; overflow-y: auto; }
.admin-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.admin-card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { text-align: left; padding: 10px 8px; background: var(--bg-section); color: var(--text-secondary); font-weight: 500; }
.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--border-light); }
.admin-table tr:last-child td { border-bottom: none; }

/* 桌面端导航面板 */
.proto-nav {
  position: fixed;
  top: 12px; right: 12px;
  z-index: 99999;
  background: rgba(15, 36, 64, 0.95);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  max-width: 280px;
}
.proto-nav-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.proto-nav-toggle svg { width: 14px; height: 14px; }
.proto-nav-panel {
  display: none;
  padding: 8px 0;
  max-height: 70vh;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.proto-nav-panel.show { display: block; }
.proto-nav-group { padding: 4px 12px; }
.proto-nav-title { font-size: 10px; color: rgba(255, 255, 255, 0.5); padding: 6px 0 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.proto-nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s;
}
.proto-nav-link:hover, .proto-nav-link.active { background: rgba(255, 255, 255, 0.12); color: var(--accent-light); }
.proto-nav-link small { color: rgba(255, 255, 255, 0.4); margin-left: 4px; }

@media (max-width: 480px) { .proto-nav { display: none; } }

/* 动画 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes toastIn { from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-slide-up { animation: slideUp 0.4s ease; }

/* 搜索栏 */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 8px 14px;
  background: #fff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.search-bar svg { width: 16px; height: 16px; color: var(--text-light); flex-shrink: 0; }
.search-bar input { flex: 1; font-size: 13px; }
.search-bar input::placeholder { color: var(--text-light); }
.search-bar .btn-sm { height: 28px; padding: 0 12px; font-size: 12px; }

/* Banner 轮播 */
.swiper {
  position: relative;
  margin: 12px 16px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 140px;
  background: var(--grad-hero);
}
.swiper-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s;
}
.swiper-slide.active { opacity: 1; }
.swiper-slide h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.swiper-slide p { font-size: 12px; opacity: 0.85; }
.swiper-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.swiper-dots .dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s, background 0.3s;
}
.swiper-dots .dot.active {
  width: 20px;
  background: #fff;
}

/* 客服 */
.kefu-bar {
  position: fixed;
  bottom: calc(var(--tabbar-height) + 90px);
  right: 16px;
  z-index: 80;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  font-size: 22px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 168, 120, 0.5), var(--shadow-gold); }
  50% { box-shadow: 0 0 0 10px rgba(200, 168, 120, 0), var(--shadow-gold); }
}

/* 权限徽章 */
.perm-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 500;
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}
.perm-tag.member { background: rgba(59, 130, 246, 0.12); color: var(--info); }
.perm-tag.dealer { background: rgba(200, 168, 120, 0.15); color: var(--accent-dark); }
.perm-tag.admin { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
