/**
 * 腾讯 WeUI 之上：全站布局 / 表格 / 提示条（桌面端友好）
 * WeUI 主样式见 tencent_head 中 CDN
 */
:root {
  --tx-brand: #07c160;
  --tx-brand-active: #06ad56;
  --tx-page-bg: #f7f7f7;
  --tx-text: #353535;
  --tx-muted: #888;
  --tx-border: #e5e5e5;
  --tx-danger: #fa5151;
  --tx-warn-bg: #fff7e6;
}

html {
  font-size: 16px;
}

body {
  color: var(--tx-text);
  background: var(--tx-page-bg);
}

/* 顶栏（类微信主色） */
.app-navbar {
  background: var(--tx-brand);
  color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.app-navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.app-brand {
  color: #fff !important;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none !important;
}
.app-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.app-nav-links a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
}
.app-nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.app-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.app-nav-actions .weui-btn {
  margin-top: 0;
}

/* 页脚 */
.app-footer {
  background: #2e2e2e;
  color: #9a9a9a;
  padding: 32px 16px 24px;
  margin-top: 40px;
  font-size: 13px;
}
.app-footer a {
  color: #cfcfcf !important;
  text-decoration: none !important;
}
.app-footer a:hover {
  text-decoration: underline !important;
}
.app-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* 内容区 */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
.app-container--narrow {
  max-width: 560px;
}
.app-container--doc {
  max-width: 900px;
}

/* 提示条 */
.t-alert {
  padding: 12px 14px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
}
.t-alert--error {
  background: #fff6f6;
  border: 1px solid #ffc9c9;
  color: #b42b2b;
}
.t-alert--success {
  background: #f0fff4;
  border: 1px solid #b7eb8f;
  color: #237804;
}
.t-alert--info {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #0958d9;
}

/* 后台顶栏深色 */
.app-navbar--inverse {
  background: #191919;
}
.app-navbar--inverse .app-nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* 表格（列表页） */
.t-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--tx-border);
}
.t-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.t-table th,
.t-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--tx-border);
  text-align: left;
  vertical-align: middle;
}
.t-table th {
  background: #fafafa;
  font-weight: 600;
  color: #555;
}
.t-table tr:last-child td {
  border-bottom: none;
}
.t-table code {
  font-size: 13px;
}

/* 间距工具 */
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mt-3 {
  margin-top: 16px !important;
}
.mb-3 {
  margin-bottom: 16px !important;
}
.mt-4 {
  margin-top: 24px !important;
}
.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}
.py-5 {
  padding-top: 28px;
  padding-bottom: 28px;
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--tx-muted) !important;
}
.small {
  font-size: 13px;
}

/* 与 weui-btn 并排的小表单 */
.t-inline-form {
  display: inline;
}

/* 徽章 */
.t-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  background: #eee;
  color: #555;
}
.t-badge--ok {
  background: #e8f8ef;
  color: var(--tx-brand);
}
.t-badge--off {
  background: #f0f0f0;
  color: #999;
}

/* ThinkPHP 分页（默认 Bootstrap 类名） */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}
.page-item {
  list-style: none;
}
.page-link {
  display: block;
  padding: 6px 12px;
  border: 1px solid var(--tx-border);
  border-radius: 4px;
  color: var(--tx-brand);
  text-decoration: none;
  background: #fff;
}
.page-item.active .page-link,
.page-link:hover {
  background: var(--tx-brand);
  color: #fff;
  border-color: var(--tx-brand);
}
.page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
}

/* 列表行内操作、工具条 */
.t-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.t-toolbar .t-page-title {
  margin: 0;
}
.t-page-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--tx-text);
}
.t-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.t-hidden {
  display: none !important;
}
.mb-4 {
  margin-bottom: 24px !important;
}
.pb-5 {
  padding-bottom: 40px;
}
.mt-2 {
  margin-top: 8px !important;
}
