/* 黄河饭店吐槽 H5 - 全局样式（金色主题，移动端优先） */
:root {
  --gold: #b98a2f;
  --gold-light: #d3a55c;
  --bg: #f5f5f5;
  --card: #fff;
  --text: #333;
  --muted: #999;
  --line: #f0ede6;
  --red: #c04a3a;
  --blue: #3468a8;
  --green: #3d8b40;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#app { max-width: 640px; margin: 0 auto; min-height: calc(100vh - 46px); padding-bottom: 40px; }

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 640px;
  margin: 0 auto;
  height: 46px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  color: #fff;
  padding: 0 12px;
}
.nav-back {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 4px 8px 4px 0;
  cursor: pointer;
}
.nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 500; }
.nav-right { min-width: 26px; text-align: right; }
.nav-link { color: #fff; font-size: 13px; text-decoration: none; }

/* 通用 */
.card { background: var(--card); padding: 16px; margin: 12px 12px 0; border-radius: 10px; }
.section-title { font-size: 18px; font-weight: 600; }
.section-title-sm { font-size: 16px; font-weight: 600; }
.hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.link { color: var(--gold); font-size: 13px; cursor: pointer; background: none; border: none; padding: 0; }
.row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.empty-tip { text-align: center; color: var(--muted); padding: 48px 0; font-size: 13px; }

textarea, input, select {
  width: 100%;
  border: 1px solid #e5e0d3;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
textarea:focus, input:focus, select:focus { border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
.counter { text-align: right; color: #c0bbae; font-size: 11px; margin-top: 4px; }

/* 按钮 */
.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  line-height: 46px;
  cursor: pointer;
  margin-top: 24px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  color: #fff;
}
.btn:disabled { background: #ccc9c2; cursor: not-allowed; }
.btn-plain {
  background: #fff;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 10px;
  font-size: 14px;
  line-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn-row .btn-plain, .btn-row .btn { flex: 1; margin-top: 0; }

/* 状态标签 */
.status-tag { font-size: 11px; padding: 2px 10px; border-radius: 6px; }
.st-pending { background: #fdeeee; color: var(--red); }
.st-processing { background: #e8f1fb; color: var(--blue); }
.st-replied { background: #e8f5e9; color: var(--green); }
.st-closed { background: #eee; color: #888; }

/* 列表项 */
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.time { color: var(--muted); font-size: 12px; }
.item-content {
  font-size: 14px; color: #444; line-height: 1.6;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.item-foot { margin-top: 8px; display: flex; gap: 16px; }
.meta { color: var(--muted); font-size: 12px; }
.item { cursor: pointer; }

/* 图片九宫格 */
.img-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.img-item { position: relative; width: 84px; height: 84px; }
.img-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; cursor: pointer; }
.img-del {
  position: absolute; right: -8px; top: -8px; width: 20px; height: 20px;
  background: rgba(0,0,0,.6); color: #fff; border-radius: 50%;
  text-align: center; line-height: 18px; font-size: 14px; cursor: pointer;
}
.img-add {
  width: 84px; height: 84px; border: 1px dashed #ccc; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #ccc; cursor: pointer; background: #fafafa;
}

/* 表单字段 */
.field { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.field .label { width: 88px; color: #666; font-size: 14px; flex-shrink: 0; }
.field input, .field select { border: none; padding: 4px 0; }

/* 语言切换 */
.lang-bar { margin-top: 32px; text-align: center; color: #999; font-size: 13px; }
.lang-bar span { padding: 0 10px; cursor: pointer; }
.lang-bar .lang-active { color: var(--gold); font-weight: 600; }
.lang-bar .sep { color: #ddd; cursor: default; }

/* mock / 模式提示条 */
.mock-banner { background: #f7f1e3; color: #8a7a55; font-size: 12px; text-align: center; padding: 7px 0; }

/* 回复时间线 */
.reply { border-top: 1px solid var(--line); padding: 10px 0; }
.reply-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.reply-name { color: var(--gold); font-size: 13px; }
.reply-content { font-size: 14px; color: #444; line-height: 1.6; }
.transfer-log { border-top: 1px dashed #eee; padding: 8px 0; color: #888; font-size: 12px; }

/* 提交成功页 */
.success-wrap { text-align: center; padding: 60px 24px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e8f5e9; color: var(--green); font-size: 32px; line-height: 64px; }
.success-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.success-tip { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* 登录页 */
.logo-area { text-align: center; padding: 48px 0 28px; }
.logo { font-size: 22px; font-weight: 600; color: var(--gold); letter-spacing: 4px; }
.logo-sub { color: #999; font-size: 13px; margin-top: 6px; }
.role-bar { display: flex; margin: 0 12px 12px; background: #eee7d8; border-radius: 10px; overflow: hidden; }
.role { flex: 1; text-align: center; line-height: 40px; font-size: 14px; color: #8a7a55; cursor: pointer; }
.role-active { background: var(--gold); color: #fff; }

/* 筛选条 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 12px 0; }
.filter { padding: 4px 14px; border-radius: 16px; background: #fff; color: #666; font-size: 13px; cursor: pointer; }
.filter-active { background: var(--gold); color: #fff; }
.search-bar { display: flex; gap: 8px; margin: 12px 12px 0; }
.search-bar input { flex: 1; }
.search-btn { color: var(--gold); font-size: 14px; line-height: 40px; cursor: pointer; }

/* 看板 */
.head-card { background: linear-gradient(90deg, var(--gold-light), var(--gold)); color: #fff; padding: 24px 20px; }
.head-name { font-size: 19px; font-weight: 600; }
.head-sub { font-size: 12px; opacity: .9; margin-top: 4px; }
.stat-grid { display: flex; flex-wrap: wrap; background: #fff; margin: 12px; border-radius: 10px; overflow: hidden; }
.stat { width: 33.33%; text-align: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(3), .stat:nth-child(6) { border-right: none; }
.stat .num { font-size: 20px; font-weight: 600; }
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.warn .num { color: var(--red); }
.menu { background: #fff; margin: 0 12px; border-radius: 10px; }
.menu-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 17px 16px; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }
.arrow { color: #ccc; font-size: 18px; }

/* 账号管理 */
.acc-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.role-tag { font-size: 10px; background: #e8f1fb; color: var(--blue); border-radius: 4px; padding: 1px 8px; font-weight: 400; }
.role-tag.role-super { background: #fdeeee; color: var(--red); }
.enabled-tag { font-size: 10px; background: #e8f5e9; color: var(--green); border-radius: 4px; padding: 1px 8px; font-weight: 400; }
.enabled-tag.disabled { background: #eee; color: #999; }
.acc-actions { display: flex; gap: 18px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.act { color: var(--gold); font-size: 13px; cursor: pointer; }
.act-danger { color: var(--red); }

/* 弹层 */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.panel { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 20px 18px; max-height: 82vh; overflow-y: auto; }
.panel-title { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 14px; }
.f-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0; }
.f-label { width: 84px; color: #666; font-size: 13px; flex-shrink: 0; }
.f-row input, .f-row select { border: none; padding: 4px 0; font-size: 14px; }

/* 灯箱 */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 200; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox img { max-width: 94vw; max-height: 90vh; }

/* 提交按钮区 */
.submit-wrap { padding: 20px 12px 0; }
.logout-wrap { padding: 16px 12px; }
.logout-wrap .btn-plain { width: 100%; border-color: var(--red); color: var(--red); line-height: 44px; }
