/* 香源宾馆 H5 —— 国企高端政务风（中国红 + 金 + 米白）
   视觉基调：庄重、克制、有质感；特效克制不外露，强调"稳中有光" */
:root {
  --primary: #9e1b1b;        /* 中国红（主） */
  --primary-2: #c8102e;      /* 亮红（渐变用） */
  --primary-deep: #7e1414;   /* 深红（渐变/沉底） */
  --primary-soft: #f6e9e9;
  --gold: #c9a227;           /* 金 */
  --gold-2: #e7c873;         /* 亮金 */
  --gold-soft: #f7f1e1;
  --bg: #f6f3ef;             /* 米白 */
  --card: #ffffff;
  --text: #2a2320;
  --muted: #8c8078;
  --line: #eae3d9;
  --ok: #2e8b57;
  --warn: #d98a00;
  --danger: #b3261e;
  --info: #2f6fb0;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(60, 40, 30, .06);
  --shadow-lg: 0 12px 30px rgba(60, 40, 30, .14);
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "STZhongsong", "STSong", "SimSun", serif;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  /* 极淡金点纹理，提升质感 */
  background-image: radial-gradient(rgba(201, 162, 39, .055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text); font-size: 14px; line-height: 1.6;
  padding: 0 0 70px;
}
a { color: var(--primary); text-decoration: none; }

/* ===== 特效关键帧 ===== */
@keyframes xyUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes xyShine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes xySweep { 0% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(240%) skewX(-18deg); } }
@keyframes xyBreath { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* 全局演示提示横幅（每页常驻）——深红底金字，庄重正式 */
.demo-banner {
  position: sticky; top: 0; z-index: 999;
  background: linear-gradient(90deg, #7e1414, #9e1b1b, #7e1414);
  color: #f6e3b8; font-size: 12px; padding: 8px 12px; text-align: center; font-weight: 600;
  letter-spacing: .3px;
  border-bottom: 1px solid rgba(201, 162, 39, .45);
  box-shadow: 0 1px 10px rgba(90, 20, 20, .18);
}
/* 全局水印层 */
.watermark {
  position: fixed; inset: 0; z-index: 998; pointer-events: none; overflow: hidden;
  display: flex; flex-wrap: wrap; opacity: .045; transform: rotate(-18deg); gap: 40px 60px;
}
.watermark span { font-size: 22px; font-weight: 800; color: #9e1b1b; white-space: nowrap; }

/* 布局 */
.wrap { max-width: 720px; margin: 0 auto; padding: 12px; }

/* 卡片：金边 + 微阴影 + 入场淡入上滑 + hover 轻起 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 15px 14px; margin-bottom: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: xyUp .4s ease both;
}
.card:hover { border-color: rgba(201, 162, 39, .42); box-shadow: 0 8px 22px rgba(60, 40, 30, .10); }
.card h3 {
  margin: 0 0 10px; font-family: var(--font-serif);
  font-size: 15.5px; font-weight: 800; letter-spacing: 1.5px; color: #46311f;
  display: flex; align-items: center; gap: 8px;
}
.card h3::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--primary));
  box-shadow: 0 1px 3px rgba(158, 27, 27, .25);
}

/* 顶部标题：红金流光 + 回纹底纹 + 底部金线（三端内页统一「红金宋体」气质） */
.app-header {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #6f1010 0%, #9e1b1b 38%, #c8102e 62%, #8a1515 100%);
  background-size: 220% 100%;
  animation: xyShine 10s linear infinite;
  color: #fff; padding: 22px 16px;
  box-shadow: 0 2px 16px rgba(90, 20, 20, .22);
  border-radius: 0 0 14px 14px;
}
/* 回纹底纹（鎏金，极低透明度，与门户首页同源） */
.app-header::before {
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='%23e7c873' stroke-width='1.4'><path d='M8 28v-20h20M44 8h20v20M64 44v20H44M28 64H8V44'/><path d='M14 22v-8h8M50 14h8v8M58 50v8h-8M22 58h-8v-8'/></g></svg>");
  background-size: 72px 72px;
}
.app-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.app-header .logo {
  position: relative;
  font-family: var(--font-serif); font-size: 21px; font-weight: 900; letter-spacing: 3px;
  color: #fff6e4; text-shadow: 0 1px 0 rgba(0, 0, 0, .18), 0 0 14px rgba(255, 220, 150, .32);
}
.app-header .sub {
  position: relative;
  font-size: 12px; color: #f0d9a8; margin-top: 5px; letter-spacing: 1.2px;
}
.app-header .sub::before { content: "◆ "; font-size: 8px; color: rgba(231, 200, 115, .8); }

/* 按钮 */
.btn {
  display: inline-block; border: none; border-radius: 10px; padding: 11px 16px;
  font-size: 14px; font-weight: 600; letter-spacing: 1.5px; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #9e1b1b, #c8102e); color: #fff;
  box-shadow: 0 3px 10px rgba(120, 25, 25, .24);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(120, 25, 25, .30); }
/* 悬停时一道光泽扫过 */
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translateX(-140%) skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after { animation: xySweep .9s ease; }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { background: var(--primary-soft); color: var(--primary); border: 1px solid rgba(201, 162, 39, .3); }
.btn-gold { background: linear-gradient(120deg, #c9a227, #e7c873); color: #4a3a12; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; }
.btn-line { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn-line:hover { border-color: rgba(201, 162, 39, .5); }

/* 大入口卡片 */
.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry .big {
  position: relative; overflow: hidden; grid-column: span 2;
  background: linear-gradient(135deg, #7e1414, #9e1b1b 55%, #c8102e);
  color: #fff; border-radius: var(--radius); padding: 22px;
  box-shadow: 0 8px 24px rgba(90, 20, 20, .22);
  animation: xyUp .45s ease both;
}
.entry .big::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  animation: xySweep 6s ease-in-out infinite; pointer-events: none;
}
.entry .big h2 {
  margin: 0 0 6px; font-size: 20px; font-family: var(--font-serif);
  letter-spacing: 1px; color: #fff6e4;
}
.entry .big p { margin: 0; color: #f3dcc0; opacity: .95; font-size: 13px; }
.entry .small {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: xyUp .45s ease both;
}
.entry .small:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, .5);
}
.entry .small:nth-of-type(2) { animation-delay: .06s; }
.entry .small:nth-of-type(3) { animation-delay: .12s; }

/* 快捷预约按钮组 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick .q {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 4px; text-align: center; box-shadow: var(--shadow); font-size: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: xyUp .45s ease both;
}
.quick .q:hover {
  transform: translateY(-2px); border-color: rgba(201, 162, 39, .5);
  box-shadow: var(--shadow-lg);
}
.quick .q:nth-child(1) { animation-delay: 0s; }
.quick .q:nth-child(2) { animation-delay: .05s; }
.quick .q:nth-child(3) { animation-delay: .1s; }
.quick .q:nth-child(4) { animation-delay: .15s; }
.quick .q .ic { font-size: 22px; }

/* 底部导航（毛玻璃 + 金线） */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 162, 39, .28); display: flex;
}
.tabbar a {
  flex: 1; text-align: center; padding: 8px 0; font-size: 11px; color: var(--muted);
  transition: color .2s ease;
}
.tabbar a.active { color: var(--primary); font-weight: 700; }
.tabbar a.active .ic { transform: translateY(-1px) scale(1.12); }
.tabbar a .ic { display: block; font-size: 20px; margin-bottom: 2px; transition: transform .2s ease; }

/* 表单 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; margin-bottom: 5px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; background: #fff; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .14);
}
.field textarea { min-height: 70px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px;
  font-size: 13px; cursor: pointer; background: #fff;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.chip:hover { border-color: rgba(201, 162, 39, .55); }
.chip.on {
  background: linear-gradient(120deg, #9e1b1b, #c8102e); color: #fff; border-color: transparent;
  box-shadow: 0 2px 8px rgba(120, 25, 25, .2);
}
.chip.locked { background: #f2efe9; color: #b6ada4; border-style: dashed; cursor: not-allowed; }

/* 徽标/状态（保留语义色，加微边框更精致） */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; border: 1px solid transparent; }
.tag-core { background: #fbe9e6; color: #9e1b1b; border-color: rgba(158, 27, 27, .22); }
.tag-premium { background: #fdf3d9; color: #8f6b00; border-color: rgba(201, 162, 39, .32); }
.tag-normal { background: #eef1f4; color: #4a5a6a; border-color: rgba(74, 90, 106, .18); }
.st-wait { background: #fdf3d9; color: #96670f; border-color: rgba(201, 162, 39, .3); }
.st-process { background: #e6eefb; color: #2f6fb0; border-color: rgba(47, 111, 176, .22); }
.st-sched { background: #e4f5ea; color: #2e8b57; border-color: rgba(46, 139, 87, .22); }
.st-finish { background: #f0eeea; color: #6f6a63; border-color: rgba(111, 106, 99, .16); }
.st-cancel { background: #fbe6e3; color: #b3261e; border-color: rgba(179, 38, 30, .22); }
.st-warn { background: #fdf3d9; color: #96670f; border-color: rgba(201, 162, 39, .3); }
.st-danger { background: #fbe6e3; color: #b3261e; border-color: rgba(179, 38, 30, .22); }

/* 列表 */
.row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row .t { font-weight: 600; }
.row .s { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); font-size: 12px; }
/* 分节标题：右侧渐隐金线（宋体 + 字距，与卡片标题同气质） */
.section-title {
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 800; color: #5c4a38;
  margin: 16px 4px 8px;
  display: flex; align-items: center; gap: 8px; letter-spacing: 2px;
}
.section-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 39, .55), transparent);
}
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; text-align: center; box-shadow: var(--shadow);
  animation: xyUp .45s ease both;
}
.stat .n {
  font-family: var(--font-serif); font-size: 22px; font-weight: 800; color: var(--primary);
  letter-spacing: .5px;
}
.stat .l { font-size: 12px; color: var(--muted); }

/* 弹窗（金边 + 深阴影） */
.modal-mask {
  position: fixed; inset: 0; background: rgba(30, 20, 16, .45);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: 12px; border: 1px solid rgba(201, 162, 39, .35);
  width: 86%; max-width: 380px; padding: 18px;
  box-shadow: 0 20px 50px rgba(40, 25, 20, .3);
  animation: xyUp .28s ease both;
}
.modal h4 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 16px; letter-spacing: .5px; }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal .modal-actions .btn { flex: 1; }

/* Toast（深红金边毛玻璃） */
.toast {
  position: fixed; left: 50%; top: 40%; transform: translateX(-50%);
  background: linear-gradient(120deg, rgba(64, 32, 28, .95), rgba(34, 22, 18, .95));
  border: 1px solid rgba(201, 162, 39, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #f6e9e9; padding: 10px 18px; border-radius: 10px; z-index: 1100;
  font-size: 14px; max-width: 80%; text-align: center;
  box-shadow: 0 10px 30px rgba(40, 25, 20, .3);
  animation: xyUp .25s ease both;
}

/* 表格（金色表头） */
table.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
table.tbl th {
  background: linear-gradient(180deg, #f8f4ec, #f2ece1);
  color: #5a4a3a; font-weight: 700; letter-spacing: .3px;
}

/* 侧边菜单（后台）：深墨红 + 金点缀 */
.admin-layout { display: flex; }
.admin-side {
  width: 120px; min-height: 100vh; padding: 12px 0; position: fixed;
  left: 0; top: 0; bottom: 0; overflow-y: auto;
  background: linear-gradient(180deg, #2a1a1a, #1d1512);
  color: #d8cfc6;
}
.admin-side .brand {
  color: #f0d9a8; font-family: var(--font-serif); font-weight: 800;
  padding: 10px 14px; font-size: 15px; letter-spacing: 1px;
  border-bottom: 1px solid rgba(201, 162, 39, .28); margin-bottom: 8px;
}
.admin-side a {
  display: block; padding: 11px 14px; font-size: 13px; color: #d8cfc6;
  cursor: pointer; border-left: 3px solid transparent;
  transition: background .2s ease, color .2s ease;
}
.admin-side a:hover { color: #f6e3b8; background: rgba(201, 162, 39, .07); }
.admin-side a.active {
  background: rgba(201, 162, 39, .13); color: #f6e3b8;
  border-left-color: var(--gold);
}
.admin-main { margin-left: 120px; flex: 1; padding: 12px; }
.admin-main table.tbl { font-size: 12px; }
@media (max-width: 600px) { .admin-side { width: 104px; } .admin-main { margin-left: 104px; } }

.hidden { display: none !important; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; background: #f2efe9; color: #6f6a63; border: 1px solid var(--line); }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 10px; }
.spacer { height: 12px; }

/* ================================================================
   手机适配（H5 唯一交付端，≤640px 逐项收紧）
   ================================================================ */
@media (max-width: 640px) {
  /* 顶部：字号与间距收紧，标题一行放下 */
  .app-header { padding: 16px 14px; }
  /* 散客端头部用了内联 -12px 负边距做通栏，移动端版心是 10px，用 !important 对齐 */
  .app-header { margin: -10px -10px 12px !important; border-radius: 0 0 14px 14px; }
  .app-header .logo { font-size: 19px; letter-spacing: 1.5px; }
  .app-header .sub { font-size: 11px; letter-spacing: .3px; }
  .demo-banner { font-size: 11px; padding: 6px 10px; line-height: 1.5; }

  /* 版心：去掉多余留白 */
  .wrap { padding: 10px; }

  /* 卡片与按钮：更大点击热区 */
  .card { padding: 14px 12px; border-radius: 12px; }
  .btn { padding: 12px 16px; font-size: 15px; }
  .btn-block { height: 48px; line-height: 1.2; }

  /* 输入框：16px 防止 iOS 聚焦自动放大 */
  .field input, .field select, .field textarea { font-size: 16px; padding: 11px 12px; }
  .field textarea { min-height: 84px; }
  .chip { padding: 8px 14px; font-size: 13px; }

  /* 首页入口 / 快捷宫格 */
  .entry { gap: 10px; }
  .entry .big { padding: 18px 16px; }
  .entry .big h2 { font-size: 18px; letter-spacing: 1px; }
  .entry .small { padding: 14px 10px; }
  .quick { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .quick .q { padding: 12px 2px; font-size: 11px; border-radius: 12px; }
  .quick .q .ic { font-size: 24px; }

  /* 统计：三列改两列，数字不挤 */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat .n { font-size: 20px; }

  /* 表格：横向滑动查看，避免撑破屏幕 */
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.tbl { min-width: 560px; }
  .card:has(> table.tbl) { padding: 8px; }

  /* 弹窗与提示 */
  .modal { width: 92%; max-width: none; }
  .modal .modal-actions { flex-direction: column; }
  .toast { max-width: 86%; font-size: 13.5px; }

  /* 底部导航：贴合全面屏安全区 */
  .tabbar { padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { padding: 7px 0 5px; font-size: 10.5px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

  /* 长文本防撑破：单位名、摘要、地址这类不可控内容 */
  .row { gap: 10px; }
  .row > * { min-width: 0; overflow-wrap: anywhere; }
  .row > *:last-child { text-align: right; max-width: 64%; }
  .card h3 { flex-wrap: wrap; }
  .modal, .card, td, th { overflow-wrap: anywhere; }

  /* 小源悬浮客服：避开底部导航与键盘 */
  .xy-fab { right: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 54px; height: 54px; font-size: 15px; }
}

/* ===== 会员积分（等级 / 积分卡 / 商城 / 券码） ===== */
.op-head { display: flex; justify-content: space-between; align-items: center; }
.op-head .more { font-size: 12.5px; color: var(--primary); }
.op-main { display: flex; gap: 18px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.op-bal { flex: none; }
.op-bal b {
  font-family: var(--font-serif); font-size: 34px; font-weight: 900; color: var(--primary); line-height: 1.1;
}
.op-bal span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }
.op-tier { flex: 1; min-width: 180px; }
.op-tier .t1 { font-size: 13.5px; font-weight: 700; color: #5c4a38; }
.op-tier .t1 em { font-style: normal; color: var(--gold); }
.op-bar { height: 6px; background: #f0e9df; border-radius: 4px; overflow: hidden; margin: 7px 0 5px; }
.op-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--primary)); }
.tier-line { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tier-pill {
  flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; background: #fff; font-size: 12px; color: var(--muted);
}
.tier-pill b { display: block; font-size: 13px; color: #5c4a38; }
.tier-pill.cur { border-color: rgba(201, 162, 39, .55); background: linear-gradient(120deg, #fffdf8, #fdf3e2); }
.tier-pill.cur b { color: var(--primary); }

/* 商城宫格 */
.mall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .mall-grid { grid-template-columns: repeat(4, 1fr); } }
.mall-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff;
  display: flex; flex-direction: column; gap: 5px;
}
.mall-item .mi-ic { font-size: 26px; line-height: 1; }
.mall-item .mi-name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.mall-item .mi-desc { font-size: 11.5px; color: var(--muted); min-height: 34px; }
.mall-item .mi-pt { font-family: var(--font-serif); font-size: 17px; font-weight: 900; color: var(--primary); }
.mall-item .mi-pt small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.mall-item .btn { margin-top: 4px; padding: 8px 10px; font-size: 12.5px; letter-spacing: .5px; }
.mall-item.lock { background: #faf8f5; }
.mall-item.lock .mi-name { color: #8c8078; }
.mi-tag { font-size: 10.5px; padding: 1px 6px; border-radius: 8px; background: #f2efe9; color: #6f6a63; align-self: flex-start; }

/* 券码卡 */
.coupon {
  display: flex; gap: 12px; align-items: center;
  border: 1px dashed rgba(201, 162, 39, .55); border-radius: 12px; padding: 12px;
  background: linear-gradient(120deg, #fffdf8, #fdf5e6); margin-bottom: 10px;
}
.coupon .cp-ic { font-size: 24px; }
.coupon .cp-name { font-weight: 700; font-size: 13.5px; }
.coupon .cp-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: 2px; font-weight: 800; color: var(--primary); font-size: 13px; }
.coupon .cp-meta { margin-left: auto; text-align: right; }
.coupon.used { filter: grayscale(1); opacity: .62; }

/* 快捷入口红点（服务通知未读提醒） */
.q-dot {
  position: absolute; top: 6px; right: calc(50% - 26px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); border: 1.5px solid #fff;
  box-shadow: 0 0 0 2px rgba(179, 38, 30, .18);
  animation: xyBreath 1.6s ease-in-out infinite;
}
.quick .q { position: relative; }

/* 服务工单：接单回执 / 等待接单提示 */.cp-accept {
  margin: 10px 0 4px; padding: 11px 13px; border-radius: 10px;
  background: linear-gradient(120deg, #eaf6ef, #f2faf5);
  border: 1px solid rgba(46, 139, 87, .3);
}
.cp-accept .ca-h { font-size: 11.5px; color: #2e8b57; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px; }
.cp-accept .ca-b { font-size: 13.5px; color: #2a2320; }
.cp-accept .ca-b a { color: var(--primary); font-weight: 700; }
.cp-accept .ca-t { font-size: 12.5px; color: #2e8b57; margin-top: 3px; font-weight: 600; }
.cp-wait {
  margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px;
  background: #fdf7e6; border: 1px dashed rgba(201, 162, 39, .6); color: #8a6a12;
}

/* 后台核销 */
.pt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pt-row:last-child { border-bottom: none; }

/* ================================================================
   机构端首页增强（organ home）
   桌面宽屏双栏、移动端自动单列；仅机构端使用，不影响其他端
   ================================================================ */
.organ-wrap { max-width: 1060px; }

/* 顶部欢迎卡（机构专属红金横幅） */
.org-hero {
  position: relative; overflow: hidden; border: none; color: #fff;
  background: linear-gradient(120deg, #6f1010 0%, #9e1b1b 40%, #c8102e 68%, #8a1515 100%);
  padding: 20px 22px 18px; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(110, 20, 20, .22);
}
.org-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='%23e7c873' stroke-width='1.4'><path d='M8 28v-20h20M44 8h20v20M64 44v20H44M28 64H8V44'/><path d='M14 22v-8h8M50 14h8v8M58 50v8h-8M22 58h-8v-8'/></g></svg>");
  background-size: 72px 72px;
}
.org-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.org-hero .oh-top {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.org-hero .oh-name {
  font-family: var(--font-serif); font-size: 21px; font-weight: 900; letter-spacing: 2px;
  color: #fff6e4; text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
.org-hero .oh-badges { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.org-hero .oh-days { text-align: right; flex: none; }
.org-hero .oh-days .d1 { font-size: 12px; color: #f0d9a8; letter-spacing: 1px; }
.org-hero .oh-days .d2 { font-family: var(--font-serif); font-size: 24px; font-weight: 800; color: #ffe9b8; line-height: 1.2; }
.org-hero .oh-days .d2 small { font-size: 12px; font-weight: 600; color: #f0d9a8; margin-left: 2px; }
.org-hero .oh-meta {
  position: relative; display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.org-hero .oh-meta > div {
  flex: 1; min-width: 150px; background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(231, 200, 115, .28); border-radius: 10px; padding: 9px 12px;
}
.org-hero .oh-meta span { display: block; font-size: 11px; color: #f0d9a8; letter-spacing: 1px; }
.org-hero .oh-meta b { font-size: 14px; color: #fff; letter-spacing: .5px; }

/* 桌面双栏（≥900px 生效，窄屏自动单列） */
.organ-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .organ-grid { grid-template-columns: 11fr 9fr; gap: 14px; align-items: start; }
  .organ-grid .card { margin-bottom: 14px; }
}

/* 权益清单：两列对齐 + 金色对勾 */
.priv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.priv-item {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(120deg, #fdf7f0, #faf3ea);
  border: 1px solid rgba(201, 162, 39, .25); border-radius: 9px; padding: 9px 11px;
  font-size: 13px; color: #5a4632; font-weight: 500;
}
.priv-item::before { content: "✓"; color: var(--gold); font-weight: 800; font-size: 14px; flex: none; }
.priv-locked { font-size: 12px; color: var(--muted); }

/* 快捷入口：统一图标底座，四列整齐 */
.quick .q .ic {
  width: 46px; height: 46px; margin: 0 auto 7px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #fdf3f1, #f9ede4);
  border: 1px solid rgba(201, 162, 39, .22); border-radius: 13px; font-size: 21px;
}
.quick .q:hover .ic { background: linear-gradient(150deg, #fbe9e6, #f6e3d4); }

/* 数字卡：纯文字值缩字号防撑破 */
.stat .n.n-sm { font-size: 15px; padding: 5px 0; letter-spacing: 0; }

/* 顶部导航条：隐藏横向滚动条（仍可滑动/滚轮横移） */
#topnav-card::-webkit-scrollbar, #topnav-card::-webkit-scrollbar-button { display: none; height: 0; }

/* 底部导航高亮：图标+文字同色已由 .tabbar a.active 保证 */

/* 后台：≤700px 侧边菜单改为顶部横滑条 */
@media (max-width: 700px) {
  .admin-layout { display: block; }
  .admin-side {
    position: static; width: 100%; min-height: 0;
    display: flex; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 8px; gap: 2px; border-bottom: 1px solid rgba(201, 162, 39, .35);
  }
  .admin-side .brand { border-bottom: none; margin-bottom: 0; padding: 6px 10px; font-size: 14px; white-space: nowrap; flex: none; }
  .admin-side a {
    white-space: nowrap; flex: none; border-left: none; border-bottom: 3px solid transparent;
    padding: 9px 11px; font-size: 12.5px;
  }
  .admin-side a.active { border-left: none; border-bottom-color: var(--gold); }
  .admin-main { margin-left: 0; padding: 10px; }
  .admin-main .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
