/* TaiChu SSO 自定义样式 */

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}


.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 按钮样式 */
.btn {
    /* border-radius: 0.375rem; */
    font-weight: 500;
}

/* 表单样式 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 主页横幅样式 */
.jumbotron {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

/* 功能卡片样式 */
.card h-100 {
    transition: transform 0.2s ease-in-out;
}

.card h-100:hover {
    transform: translateY(-5px);
}

/* 代码块样式 */
code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    /* border-radius: 0.25rem; */
    font-size: 0.875em;
}

/* 徽章样式 */
.badge {
    font-size: 0.75em;
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
}

/* 表格样式 */
.table {
    background-color: white;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

/* 模态框样式 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

/* 警告框样式 */
.alert {
    border: none;
    /* border-radius: 0.5rem; */
}

/* 页脚样式 */
footer {
    margin-top: auto;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 授权页面样式 */
.authorization-card {
    max-width: 500px;
    margin: 2rem auto;
}

.app-info {
    background-color: #f8f9fa;
    /* border-radius: 0.5rem; */
    padding: 1rem;
    margin: 1rem 0;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    /* border-radius: 50%; */
    margin-right: 0.5rem;
}

.status-active {
    background-color: #28a745;
}

.status-inactive {
    background-color: #dc3545;
}

.status-pending {
    background-color: #ffc107;
}

/* 数据表格样式 */
.data-table {
    font-size: 0.9rem;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.data-table td {
    vertical-align: middle;
}

/* 搜索框样式 */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 首页分屏现代化样式 */
.split-hero {
    min-height: 70vh;
}

.auth-card .card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

.hero-image-container {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 420px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,110,253,0.55), rgba(102,16,242,0.55));
}

.overlay-text {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
}

@media (max-width: 991px) {
    .hero-image-container {
        min-height: 280px;
        margin-top: 1rem;
    }
}

/* 全屏背景图与叠层 */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.full-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.85);
}

.page-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,110,253,0.35), rgba(102,16,242,0.35));
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* 右侧登录/注册切换强化 */
.auth-card .nav-pills {
    gap: 0.5rem;
}

.auth-card .nav-link {
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 1rem;
}

.auth-card .nav-link.active {
    background: #fff;
    color: #0d6efd;
    border-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.auth-card .btn {
    border-radius: 999px;
    font-weight: 700;
}