/* Google 一键登录按钮样式（带文字） */
.btn-google {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn-google:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* 纯图标 Google 按钮 */
.btn-google-icon {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-google-icon:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}
.btn-google-icon svg {
    width: 24px;
    height: 24px;
}

/* GitHub 纯图标按钮 */
.btn-github-icon {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-github-icon:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}
.btn-github-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* 全局透明背景 */
body { text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 内容区域透明，文字白色加阴影 */
.container:not(.navbar .container) {
    background-color: transparent !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 30px;
    max-width: 500px;
    margin: 30px auto;
    color: #fff;
}

/* 后台管理区域透明 */
.admin-wrapper {
    background-color: transparent !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    color: #fff;
}

/* 欢迎卡片透明 */
.welcome-card {
    position: absolute !important;
    top: 100px !important;
    right: 30px !important;
    background-color: transparent !important;
    padding: 20px;
    max-width: 350px;
    text-align: center;
    z-index: 10;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .welcome-card {
        position: static;
        margin: 20px auto;
        max-width: 100%;
    }
}

/* 导航栏透明？保留深色半透明效果，可选 */
.navbar {
    background-color: rgba(0,0,0,0.7) !important;
}

/* 页脚透明，文字白色 */
footer {
    background-color: transparent !important;
    color: #fff;
}
footer a {
    color: #fff;
    text-decoration: underline;
}
footer a:hover {
    color: #ddd;
}

/* 表格文字颜色调整，确保可读 */
.table {
    color: #fff;
}
.table a {
    color: #fff;
    text-decoration: underline;
}
.table a:hover {
    color: #ddd;
}

/* 表单控件透明背景 */
.form-control, .form-select {
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.form-control:focus, .form-select:focus {
    background-color: rgba(255,255,255,0.3);
    color: #fff;
}
.form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

/* 按钮透明 */
.btn-primary {
    background-color: rgba(66,133,244,0.8);
    border: none;
    color: #fff;
}
.btn-primary:hover {
    background-color: rgba(66,133,244,1);
}
.btn-success {
    background-color: rgba(52,168,83,0.8);
}
.btn-warning {
    background-color: rgba(251,188,5,0.8);
    color: #000;
}
.btn-danger {
    background-color: rgba(234,67,53,0.8);
}

/* 卡片、警告框透明 */
.card, .alert {
    background-color: rgba(0,0,0,0.5) !important;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

/* 链接颜色 */
a {
    color: #fff;
}
a:hover {
    color: #ddd;
}

/* 确保页脚完全透明 */
footer, footer * {
    background-color: transparent !important;
}
footer .text-muted {
    color: #ffffff !important;
}

/* 强制页脚透明并设置文字颜色为深色 */
footer, footer * {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    color: #ffffff !important;
}
footer a {
    color: #ffffff !important;
    text-decoration: underline;
}
footer a:hover {
    color: #ffffff !important;
}
footer .text-muted {
    color: #ffffff !important;
}

/* 彻底清除页脚背景 */
footer, footer.footer, .footer {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none;
    padding: 1rem 0 !important;
}
footer *, footer.footer *, .footer * {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
}
footer a, footer.footer a, .footer a {
    color: #ffffff !important;
    text-decoration: underline;
}
footer a:hover, footer.footer a:hover, .footer a:hover {
    color: #ffffff !important;
}
footer .text-muted, footer.footer .text-muted, .footer .text-muted {
    color: #ffffff !important;
}

/* 终极页脚背景清除 - 强制所有页脚元素透明 */
html body footer,
html body footer *,
html body footer div,
html body footer span,
html body footer .container,
html body footer .text-muted,
html body footer a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
html body footer a {
    color: #ffffff !important;
    text-decoration: underline !important;
}
html body footer a:hover {
    color: #ffffff !important;
}

/* 全局文字加深加粗 */
body, p, h1, h2, h3, h4, h5, h6, span, div, a, td, th, li, label, input, button, .navbar-brand, .btn, .alert, .table, .form-control, .form-select, footer, footer * {
    font-weight: 600 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 页脚文字特别加粗 */
footer, footer * {
    font-weight: 700 !important;
    color: #ffffff !important;
}

/* 链接加粗 */
a, footer a {
    font-weight: 700 !important;
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* 按钮加粗 */
.btn {
    font-weight: 700 !important;
}

/* 表格头部加粗 */
th {
    font-weight: 700 !important;
}

/* 标题加粗 */
h1, h2, h3 {
    font-weight: 700 !important;
}

/* 页脚文字左下角对齐 */
footer .container {
    text-align: left !important;
    padding-left: 20px !important;
}

/* 强制页脚文字左下角显示 */
footer {
    text-align: left !important;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-left: 20px !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}
footer .container {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    text-align: left !important;
}
footer .container .text-muted {
    text-align: left !important;
    display: block;
    width: 100%;
}
footer a {
    text-align: left !important;
}

/* 增加底部空白，使文字更靠下 */
footer {
    padding-bottom: 40px !important;
}

/* 终极页脚透明+深色文字 - 最高优先级 */
html body footer.footer-site,
html body footer.footer-site *,
footer.footer-site,
footer.footer-site * {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none;
    color: #000 !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding-left: 20px !important;
    margin: 0 !important;
}
html body footer.footer-site a,
footer.footer-site a {
    color: #000 !important;
    text-decoration: underline !important;
}
html body footer.footer-site .container,
footer.footer-site .container {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    max-width: 100% !important;
}

/* 增加底部内边距，使文字更靠下 */
footer.footer-site {
    padding-bottom: 100px !important;
}

/* 去除所有阴影 */
body, p, h1, h2, h3, h4, h5, h6, span, div, a, td, th, li, label, input, button, .navbar-brand, .btn, .alert, .table, .form-control, .form-select, footer, footer *, .welcome-card, .container:not(.navbar .container), .admin-wrapper, .card, .alert {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: none;
}

/* 背景图片变暗30% */
body {
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: -1;
}

/* ========== 仪表盘页面文字和边框加深加黑 ========== */
/* 表格文字黑色、边框深色加粗 */
table th,
table td {
    color: #000000 !important;
    border-color: #333333 !important;
    font-weight: 600 !important;
}

/* 表格头部特别加粗 */
table th {
    font-weight: 700 !important;
}

/* 输入框边框加深，文字黑色 */
.form-control,
.form-select {
    border: 2px solid #333333 !important;
    color: #000000 !important;
    font-weight: 500 !important;
}

/* 按钮文字加粗，边框加深 */
.btn {
    font-weight: 700 !important;
    border-width: 2px !important;
}

.btn-warning,
.btn-danger,
.btn-primary {
    border-color: #000000 !important;
}

/* 操作区域链接加深 */
.table a:not(.btn) {
    color: #000000 !important;
    font-weight: 600 !important;
    text-decoration: underline;
}

/* 确保登录按钮始终可点击 */
.login-buttons a {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    opacity: 1 !important;  /* 确保不透明 */
    visibility: visible !important;
}

/* 后台管理强制宽屏 */
.admin-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
}
.admin-wrapper .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}
.admin-wrapper .card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.admin-wrapper table {
    min-width: 800px; /* 可根据需要调整 */
}
/* 确保所有按钮可点击 */
.admin-wrapper a,
.admin-wrapper button {
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative;
}

/* 后台管理强制全宽 */
.admin-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.admin-wrapper .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}
.admin-wrapper table {
    min-width: 800px; /* 确保表格不挤压 */
}

/* 后台管理强制全宽 */
.admin-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.admin-wrapper .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}
.admin-wrapper table {
    min-width: 800px;
}

/* 确保所有按钮可点击 */
.btn, .btn-sm, button, a.btn, a.btn-sm, form button {
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative;
}
td form {
    display: inline-block !important;
}

/* 为导航栏按钮组添加间距 */
.navbar .d-flex.ms-auto {
    gap: 0.5rem !important;
}
