/* eg-web 本地样式：只补原站靠 PHP 注入的两处 + 我们面板的微调，视觉主体仍是原站那套 bootstrap/mdb/style.css */

/* 原站 connexion.php 用内联 style 注入的背景（换成自托管路径，其余逐字照抄） */
body:before {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0.5;
	background: url("/vendor/img/background-tweeter.jpg");
	background-size: cover;
	content: "";
	z-index: -1;
}

/* 原站 .home 用 Montserrat；中文没有 Montserrat 字形，补一条中文字体兜底，避免落到宋体 */
.home, .home p, .home label, footer { font-family: 'Montserrat', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }

/* fixed-top 导航会盖住 section 顶部，原站靠 .section 的 75px padding 撑开，这里保持一致即可 */
.section-summary { padding-bottom: 40px; }

/* 表单报错/提示条 */
#web-alert .alert { border-radius: 2px; margin-bottom: 0; }

/* 面板表格：原站 style.css 把 table 压得很紧，这里只做可读性微调 */
#panel .table th, #panel .table td { color: #fff; border-top: 1px solid rgba(255, 255, 255, .18); font-weight: normal; }
#panel .table th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; opacity: .8; }
#panel .table td.text-left, #panel .table th.text-left { text-align: left; }
#panel .table td.text-right, #panel .table th.text-right { text-align: right; }
#panel .badge { font-size: 11px; }
#panel .section-light, #panel .indigo { box-shadow: 0 2px 5px rgba(0,0,0,.25); }

/* 页脚（原站页脚是 elegant-color 深灰） */
footer.page-footer { margin-top: 0; }
footer.page-footer a { text-decoration: none; }

/* 11-19 登录验证码（防暴力破解）：图片跟输入框同高，点击换一张 */
#cap-box .cap-img { width: 100%; max-width: 118px; height: 38px; background: #fff; border-radius: 2px; cursor: pointer; }
#cap-box a.white-text { text-decoration: underline; }

/* ── 11-19 管理后台（admin.html）────────────────────────────────
   配色不自己发明：紫卡 = .section-light(#512da8)、蓝卡 = .indigo(#3f51b5)、
   顶栏/底栏 = #212121，全跟登录页同一套类名。 */
body { background: #212121; }   /* 主题原本 body{background:#797979}：页面比视口短时，页脚下面会露出一大条灰 */
.home .section { min-height: 42vh; }

#admin-wrap .eg-lab, .eg-lab, #gate .eg-lab {
  font-size: 11px; letter-spacing: .4px; color: rgba(255,255,255,.78);
  margin-bottom: 2px; text-transform: none; opacity: 1;
}

/* 表格里不用横线分行：去掉 bootstrap/mdb 的 border-top，改成斑马底 + 竖分隔线 */
#admin-wrap .eg-adm-table th, #admin-wrap .eg-adm-table td {
  border-top: 0; border-bottom: 0; color: #fff; font-size: 12.5px; vertical-align: middle; padding: .45rem .6rem;
}
#admin-wrap .eg-adm-table thead th {
  font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
  color: rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.35);
}
#admin-wrap .eg-adm-table tbody tr:nth-child(even) { background: rgba(255,255,255,.055); }
#admin-wrap .eg-adm-table tbody td { border-right: 1px solid rgba(255,255,255,.14); }
#admin-wrap .eg-adm-table tbody td:last-child { border-right: 0; }
#admin-wrap .eg-adm-table.table-hover tbody tr:hover { background: rgba(0,0,0,.20); }
#admin-wrap .eg-adm-table td .sub { font-size: 11px; color: rgba(255,255,255,.68); }

/* 卡片里的输入框：跟登录页一样的白色文字，只补一点底色调和竖线对齐 */
#admin-wrap .form-control, #admin-wrap .form-control:focus {
  background-color: rgba(255,255,255,.10); color: #fff; border: 0;
  border-bottom: 1px solid rgba(255,255,255,.55); border-radius: 2px; box-shadow: none;
}
#admin-wrap .form-control::placeholder { color: rgba(255,255,255,.55); }
#admin-wrap select.form-control option { color: #212121; }
#admin-wrap .btn-sm { padding: .22rem .55rem; font-size: 12px; line-height: 1.45; }
#admin-wrap .btn-flat, #gate .btn-flat { color: #fff; }

/* 徽章：紫底上用半透明黑底白字，会员用金色，待领信用红，避免花花绿绿 */
.eg-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; color: #fff; background: rgba(0,0,0,.28); white-space: nowrap; }
.eg-badge.gold { background: #ffd54f; color: #3e2723; }
.eg-badge.red { background: #ef5350; color: #fff; }
.eg-badge.dim { background: rgba(0,0,0,.20); color: rgba(255,255,255,.85); }

/* 紫卡里那些 MDB 文字色工具类要换个亮度，不然灰字在紫底上看不清 */
#admin-wrap .grey-text, #gate .grey-text { color: rgba(255,255,255,.80) !important; }
#admin-wrap .red-text { color: #ffcdd2 !important; }
#admin-wrap .green-text { color: #ffe082 !important; }
#admin-wrap .sub { font-size: 11px; color: rgba(255,255,255,.68); }

/* ── 11-20 管理页「账号数据」面板（#adm-data，复用 .mail-panel 的紫卡底子）── */
#adm-data .eg-data-h { font-size:14px; color:#cdb4ed; margin:20px 0 8px; letter-spacing:.5px; }
#adm-data .eg-chips { display:flex; flex-wrap:wrap; gap:8px; }
#adm-data .eg-chip { display:inline-flex; gap:6px; align-items:baseline; background:#2b263a;
  border:1px solid #554a68; border-radius:8px; padding:6px 10px; font-size:13px; color:#f1ecfa; }
#adm-data .eg-chip b { font-weight:600; font-size:12px; color:#cdb4ed; }
#adm-data .eg-chip i { font-style:normal; font-weight:600; }
#adm-data .eg-scroll { max-height:320px; overflow:auto; border:1px solid #4d4360; border-radius:8px; margin-top:10px; }
#adm-data .eg-scroll table { margin-bottom:0; }
#adm-data .eg-scroll thead th { position:sticky; top:0; background:#3a3350; z-index:1; }
#adm-data .eg-note { font-size:12px; color:#d4c8e5; line-height:1.7; margin:10px 0 0; overflow-wrap:anywhere; }
#adm-data .sub { font-size:11px; color:#a99bc2; }

/* 11-20 邀请码号池 */
#adm-invites .eg-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;letter-spacing:.5px;user-select:all;word-break:break-all}
#adm-invites table td{vertical-align:middle}
#inv-body{max-height:340px}

/* 11-20 面板折叠（用户指令：资源检索太占位）*/
.eg-fold > h2{margin-bottom:.35rem}
.eg-fold-btn{background:none;border:0;padding:0;margin:0;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit;cursor:pointer;text-align:left;width:100
/* 11-20 面板折叠（用户指令：资源检索太占位）*/
.eg-fold > h2{margin-bottom:.35rem}
.eg-fold-btn{background:none;border:0;padding:0;margin:0;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;cursor:pointer;text-align:left;width:100%}
.eg-fold-btn:hover{opacity:.85}
.eg-fold-caret{display:inline-block;margin-left:2px;opacity:.8;font-size:.72em;vertical-align:.1em}
.eg-fold-btn small{font-size:11px;opacity:.6;font-weight:400;margin-left:6px}
.eg-note{font-size:12px;opacity:.82;margin-bottom:.6rem}
