/* ============================================================
   停云落月 · 违规公示（LiteBans）主题 v2
   2026-11-17：与主站统一；新增浅色/暗色两套（默认跟随系统，可手动切换）
   配色：深灰导航 #2D2D2D + 草绿 #5DA552；暗色 #12161b 底 + #1a2027 卡片
   ============================================================ */

:root {
    --lt-green: #5DA552;
    --lt-green-dark: #4a8a41;
    --lt-green-soft: rgba(93, 165, 82, .12);
    --lt-orange: #f5a623;
    --lt-deep: #2D2D2D;
    --lt-bg: #F5F5F5;
    --lt-card: #ffffff;
    --lt-line: #e6e8eb;
    --lt-text: #333333;
    --lt-muted: #777777;
    --lt-link: #3d7a35;
    --lt-thead: #2D2D2D;
    --lt-stripe: #fafbfa;
    --lt-rowhover: #f1f8ef;
    --lt-labelbg: #f7f8f9;
    --lt-input: #ffffff;
    --lt-inputline: #dcdfe3;
    --lt-avatarline: #e3e5e8;
    --lt-avatarbg: #f2f3f5;
    --lt-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    --lt-navshadow: 0 2px 10px rgba(0, 0, 0, .2);
}

html[data-lt-theme="dark"] {
    --lt-green: #6fbf62;
    --lt-green-dark: #5aa350;
    --lt-green-soft: rgba(111, 191, 98, .16);
    --lt-deep: #15191e;
    --lt-bg: #12161b;
    --lt-card: #1a2027;
    --lt-line: #2a323c;
    --lt-text: #e6e9ef;
    --lt-muted: #93a0ad;
    --lt-link: #8fd18f;
    --lt-thead: #1f262e;
    --lt-stripe: #171d24;
    --lt-rowhover: #202a22;
    --lt-labelbg: #151a20;
    --lt-input: #12171c;
    --lt-inputline: #303a46;
    --lt-avatarline: #33404c;
    --lt-avatarbg: #222a33;
    --lt-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    --lt-navshadow: 0 2px 12px rgba(0, 0, 0, .55);
}

html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }

body {
    background: var(--lt-bg);
    color: var(--lt-text);
    font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
    padding-bottom: 78px; /* 给主站底部导航留位置 */
    transition: background .2s ease, color .2s ease;
}

a { color: var(--lt-link); }
a:hover, a:focus { color: var(--lt-green); text-decoration: none; }

.container { max-width: 1200px; }

/* ---------- 导航：与主站同款深灰条 ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 12px 0;
    background: var(--lt-deep) !important;
    box-shadow: var(--lt-navshadow);
    font-weight: 500;
}

.navbar .container { max-width: 1200px; }

.navbar-brand.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: none;
    color: #fff !important;
    padding: 0;
    margin-right: 26px;
    border-radius: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: none;
}

.navbar-brand.brand-badge::before {
    content: "";
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: url("/images/mc-bg.png") center / cover no-repeat;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    flex: none;
}

.navbar-brand.brand-badge:hover { background: none; color: #fff !important; }

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, .76) !important;
    font-size: 14px;
    padding: 8px 14px !important;
    border-radius: 7px;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
}

.nav-item.active > .nav-link,
.navbar-active > .nav-link {
    color: #fff !important;
    background: var(--lt-green-soft);
    box-shadow: inset 0 -2px 0 var(--lt-green);
}

.my-lg-0 a {
    color: #9fd694 !important;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 7px;
    white-space: nowrap;
}

.my-lg-0 a:hover { color: #fff !important; background: rgba(93, 165, 82, .18); }

/* 主题切换按钮（深浅色） */
.navbar .container { display: flex; align-items: center; }
.navbar-brand.brand-badge { order: 0; }
/* 手机端顺序：品牌 → 主题按钮（推到右边）→ 汉堡 → 展开的菜单。
   菜单是 100% 宽会换行，若排在按钮前面会把两个按钮挤到菜单下面（2026-11-17 审计发现）。 */
.lt-theme-btn { order: 1; margin-left: auto; }
.navbar-toggler { order: 2; }
.navbar-collapse { order: 3; }
@media (min-width: 992px) {
    .navbar-collapse { order: 1; }
    .lt-theme-btn { order: 2; margin-left: 8px; }
    .navbar-toggler { order: 3; }
}

.lt-theme-btn {
    margin-right: 8px;
    width: 38px;
    height: 38px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.lt-theme-btn:hover { background: rgba(93, 165, 82, .25); border-color: var(--lt-green); transform: translateY(-1px); }

.lt-ico { width: 16px; height: 16px; display: block; }
.lt-ico-sun { display: none; }
html[data-lt-theme="dark"] .lt-ico-moon { display: none; }
html[data-lt-theme="dark"] .lt-ico-sun { display: block; }

/* 暗色下控制台图标保持原色（黑底白标），只加一圈浅色细边+描边阴影，避免糊在深色卡片上。
   2026-11-17：BOSS 明确不要白色反相图标。 */
html[data-lt-theme="dark"] .avatar[src*="console"] {
    filter: none;
    background: #ffffff;
    box-shadow: 0 0 0 1.5px rgba(226, 232, 240, .75), 0 2px 6px rgba(0, 0, 0, .45);
}
.lt-theme-btn:focus-visible { outline: 2px solid var(--lt-green); outline-offset: 2px; }

/* 汉堡按钮：原生图标在深色底上几乎看不见，改成手绘三条白杠 */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.navbar-toggler:focus { outline: 0; box-shadow: 0 0 0 2px rgba(93, 165, 82, .45); }

.navbar-toggler-icon {
    display: inline-block;
    position: relative;
    width: 22px;
    height: 16px;
    background-image: none !important;
    filter: none;
}

.navbar-toggler-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 6px 0 #fff, 0 12px 0 #fff;
}

/* ---------- 页面标题 ---------- */
h1, h2 { color: var(--lt-text); }

h1.litebans-header {
    margin: 30px 0 16px;
    padding: 2px 0 2px 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    border: 0;
    border-left: 4px solid var(--lt-green);
    border-radius: 0;
    background: none;
    text-align: left;
}

.litebans-header + .row, .row + .row { text-align: initial; }

/* 兼容老页面的 .modal-header（被当作标题容器用） */
.modal-header {
    border: 0;
    border-radius: 0;
    background: none;
    padding: 0;
}

/* ---------- 搜索表单 ---------- */
.litebans-check-form {
    display: inline-block;
    background: var(--lt-card);
    border: 1px solid var(--lt-line);
    border-radius: 10px;
    padding: 13px 16px;
    margin: 4px 0 18px;
    box-shadow: var(--lt-shadow);
}

.litebans-check-form .form-group { margin: 0 8px 0 0; }
.litebans-check-form .form-control { width: 210px; }

.form-control {
    height: 40px;
    border-radius: 8px;
    border-color: var(--lt-inputline);
    font-size: 14px;
    color: var(--lt-text);
    background: var(--lt-input);
}

.form-control::placeholder { color: var(--lt-muted); opacity: .8; }

.form-control:focus {
    border-color: var(--lt-green);
    background: var(--lt-input);
    color: var(--lt-text);
    box-shadow: 0 0 0 .15rem rgba(93, 165, 82, .18);
}

.btn {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
}

.btn-primary {
    background: var(--lt-green);
    border-color: var(--lt-green);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--lt-green-dark) !important;
    border-color: var(--lt-green-dark) !important;
    box-shadow: 0 4px 12px rgba(93, 165, 82, .28);
}

.litebans-check-btn { height: 40px; }

/* ---------- 表格卡片 ---------- */
.table-responsive.litebans-tablewrap {
    background: var(--lt-card);
    border: 1px solid var(--lt-line);
    border-radius: 10px;
    box-shadow: var(--lt-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 4px 0 18px;
}

.table {
    margin-bottom: 0;
    color: var(--lt-text);
}

.table thead th {
    background: var(--lt-thead);
    color: #fff;
    border: 0 !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    padding: 11px 8px;
    white-space: nowrap;
}

.table td {
    border-color: var(--lt-line) !important;
    padding: 10px 8px !important;
    font-size: 13.5px;
    vertical-align: middle !important;
    text-align: center;
}

/* 原因列左对齐，长句更好读 */
.litebans-tablewrap td:nth-child(3) { text-align: left; }

.table-striped tbody tr:nth-of-type(odd) { background: var(--lt-stripe); }
.table-striped tbody tr:nth-of-type(odd) > td { background: transparent; }

.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: var(--lt-rowhover); }

.table td a { color: var(--lt-link); }
.table td a:hover { color: var(--lt-green); }

/* 头像 */
.avatar {
    width: 30px;
    height: 30px;
    margin: 0 0 4px;
    border-radius: 6px;
    border: 1px solid var(--lt-avatarline);
    background: var(--lt-avatarbg);
    image-rendering: pixelated;
    vertical-align: middle;
}

.avatar-name { font-size: 13px; line-height: 1.35; }
.avatar-name-left { display: flex; align-items: center; gap: 7px; }
.avatar-name-left .avatar { margin: 0; }

/* ---------- 徽章 ---------- */
.badge {
    font-weight: 600;
    border-radius: 999px;
    padding: .34em .7em;
    font-size: 12px;
}

.badge-secondary {
    background: var(--lt-labelbg);
    color: var(--lt-muted);
    border: 1px solid var(--lt-line);
}

.litebans-label-info {
    background: rgba(33, 150, 243, .1);
    color: #1565c0;
    border: 1px solid rgba(33, 150, 243, .28);
}

html[data-lt-theme="dark"] .litebans-label-info {
    background: rgba(96, 165, 250, .16);
    color: #9ecbff;
    border-color: rgba(96, 165, 250, .4);
}

.litebans-label-active {
    background: var(--lt-green-soft);
    color: var(--lt-green-dark);
    border: 1px solid rgba(93, 165, 82, .35);
}

html[data-lt-theme="dark"] .litebans-label-active { color: var(--lt-green); }

/* ---------- 翻页 ---------- */
.litebans-pager {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 8px 0 0;
    border-radius: 50%;
    background: var(--lt-card);
    border: 1px solid var(--lt-line);
    color: var(--lt-muted) !important;
    font-size: 20px;
    line-height: 1;
    box-shadow: var(--lt-shadow);
    vertical-align: middle;
}

.litebans-pager:hover { border-color: var(--lt-green); color: var(--lt-green) !important; }

.litebans-pager-active {
    background: var(--lt-green);
    border-color: var(--lt-green);
    color: #fff !important;
}

.litebans-pager-inactive { opacity: .4; pointer-events: none; }

.litebans-pager-number {
    display: inline-block;
    margin: 0 0 0 2px;
    color: var(--lt-muted);
    font-size: 13px;
    vertical-align: middle;
}

/* ---------- 提示 / 弹层 ---------- */
.alert {
    border-radius: 10px;
    border: 1px solid var(--lt-line);
    box-shadow: var(--lt-shadow);
}

.alert-light { background: var(--lt-card); color: var(--lt-text); }
.alert-success { background: #eef8ec; border-color: #cde8c7; color: #2f6b27; }
.alert-danger { background: #fdeeee; border-color: #f5c9c9; color: #a12f2f; }

html[data-lt-theme="dark"] .alert-success {
    background: rgba(74, 222, 128, .1);
    border-color: rgba(74, 222, 128, .3);
    color: #8fd18f;
}
html[data-lt-theme="dark"] .alert-danger {
    background: rgba(248, 113, 113, .1);
    border-color: rgba(248, 113, 113, .3);
    color: #fca5a5;
}

code {
    background: rgba(0, 0, 0, .05);
    color: #b3501f;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: .92em;
}

html[data-lt-theme="dark"] code { background: rgba(255, 255, 255, .08); color: #ffb37a; }

/* ---------- 申诉提示卡（index.php） ---------- */
.notice-card {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #f3ddad;
    border-left: 5px solid var(--lt-orange);
    border-radius: 12px;
    margin: 4px 0 20px;
    box-shadow: 0 4px 16px rgba(245, 166, 35, .1);
}

.notice-card summary {
    cursor: pointer;
    padding: 18px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none;
}

.notice-card summary::-webkit-details-marker { display: none; }

.notice-card .notice-title { font-size: 18px; font-weight: 700; color: #7a5c00; }
.notice-card .notice-arrow {
    display: inline-block;
    font-size: 14px;
    color: #c07f00;
    transition: transform .3s ease;
}

.notice-card[open] .notice-arrow { transform: rotate(180deg); }
.notice-card .notice-body { padding: 0 26px 22px; }
.notice-card .notice-body p {
    line-height: 1.95;
    font-size: 14.5px;
    color: #6d5a1e;
    margin: 0 0 12px;
}

.notice-card .notice-body p:last-child { margin-bottom: 0; }
.notice-card .notice-body a { color: #2b6cb0; font-weight: 600; }
.notice-card .notice-body strong { color: #a33a2b; }

html[data-lt-theme="dark"] .notice-card {
    background: linear-gradient(135deg, #2a2413 0%, #322a16 100%);
    border-color: #5a4a1f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
html[data-lt-theme="dark"] .notice-card .notice-title { color: #e8c877; }
html[data-lt-theme="dark"] .notice-card .notice-arrow { color: #d9a94a; }
html[data-lt-theme="dark"] .notice-card .notice-body p { color: #d8c9a4; }
html[data-lt-theme="dark"] .notice-card .notice-body a { color: #8fc1ff; }
html[data-lt-theme="dark"] .notice-card .notice-body strong { color: #ff9c8f; }

/* ---------- 详情页 ---------- */
.litebans-label-container { font-size: 13px; }
.noalign-w { text-align: left; }

.litebans-table-info td { white-space: normal; }
.litebans-table-info td:first-child {
    width: 150px;
    color: var(--lt-muted);
    font-weight: 600;
    background: var(--lt-labelbg);
}
.litebans-table-info td:nth-child(2) { text-align: left; }

.litebans-table-info .avatar-name {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}
.litebans-table-info .avatar-name .avatar { margin: 0; }
.litebans-table-info .avatar-name br { display: none; }

/* ---------- 手机端 ---------- */
@media (max-width: 768px) {
    .navbar { padding: 10px 0; }
    .navbar-brand.brand-badge { font-size: 16px; margin-right: 8px; }
    .navbar-brand.brand-badge::before { width: 26px; height: 26px; }
    .navbar-nav .nav-link { padding: 9px 6px !important; }
    .my-lg-0 { margin-top: 8px; }
    .lt-theme-btn { width: 34px; height: 34px; font-size: 15px; }

    h1.litebans-header { margin: 22px 0 12px; font-size: 21px; }

    .litebans-check-form { display: block; padding: 12px; }
    .litebans-check-form .form-group { margin: 0 0 10px; }
    .litebans-check-form .form-control { width: 100%; }
    .litebans-check-btn { width: 100%; }

    .table thead th { font-size: 12px; padding: 10px 6px; }
    .table td { font-size: 13px; padding: 9px 6px !important; }
    .avatar { width: 26px; height: 26px; }
    .litebans-pager { width: 36px; height: 36px; font-size: 18px; margin-right: 6px; }

    .notice-card summary { padding: 15px 18px; }
    .notice-card .notice-body { padding: 0 18px 18px; }
    .notice-card .notice-body p { font-size: 14px; }
}

@media (max-width: 576px) {
    .container { padding-left: 10px; padding-right: 10px; }
    .litebans-tablewrap .table { white-space: nowrap; }
    .litebans-tablewrap td:nth-child(3) { white-space: normal; min-width: 150px; }
    .litebans-table-info td:first-child { width: 84px; font-size: 12.5px; padding: 8px 6px !important; }
    .litebans-table-info td:nth-child(2) { font-size: 13px; word-break: break-word; }
    .litebans-table-info .avatar-name .avatar { margin: 0 6px 0 0; }
}
