/* 智体掼蛋 PC 前端样式 */

/* 全站基准：正文默认 16px，只有次要信息（提示、元信息、角标）才更小 */
html {
    font-size: 16px;
}

body {
    font-size: 1rem;
    background-color: #f7f8fa;
    padding-top: 56px;
}

#app {
    min-height: calc(100vh - 160px);
}

.card {
    border: 1px solid #e6e8eb;
    border-radius: 10px;
}

.table > :not(caption) > * > * {
    padding: 0.45rem 0.6rem;
}

.table thead th {
    white-space: nowrap;
    font-weight: 600;
}

.nav-tabs .nav-link {
    color: #4a5568;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

.text-small {
    font-size: 0.9375rem;
}

.footer {
    border-top: 1px solid #e6e8eb;
}

.zhg-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, .55);
}

.zhg-brand-text {
    font-weight: 700;
    letter-spacing: 1px;
}

/* 顶栏导航：保持简洁，仅做菜单居中 */
.zhg-navbar .navbar-nav .nav-link {
    margin: 0 1rem;
    padding: 0.5rem 0.25rem;
}

.zhg-navbar .navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 #ff4d4f;
}

@media (min-width: 768px) {
    .zhg-navbar .navbar-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        flex: none;
        margin: 0;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 767.98px) {
    .zhg-navbar .navbar-nav {
        align-items: center;
        width: 100%;
        position: static;
        transform: none;
    }
}

.zhg-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #1c1f26, #7a1220);
}

.zhg-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

/* 表单与按钮：站点以 -sm 作为常规尺寸，统一按 16px 呈现 */
.form-control-sm,
.form-select-sm,
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .form-control-plaintext,
.input-group-sm > .input-group-text,
.input-group-sm > .btn,
.btn-sm {
    font-size: 1rem;
}

/* 全局网络请求加载提示 */
#zhg-loading {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 27, 38, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

#zhg-loading.is-show {
    opacity: 1;
    visibility: visible;
}

.zhg-loading-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(18, 21, 30, 0.18);
    color: #2f3a4d;
    font-size: 15px;
    font-weight: 600;
}

.zhg-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 77, 79, 0.25);
    border-top-color: #ff4d4f;
    border-radius: 50%;
    animation: zhg-spin 0.8s linear infinite;
}

@keyframes zhg-spin {
    to {
        transform: rotate(360deg);
    }
}
