﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}
/* 提示框 */
#toast-container {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 220px;
    max-width: 420px;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    opacity: 0;
    animation: fadeIn 0.35s ease forwards;
}

/* 不同类型 */
.toast-info {
    background: #2db7f5;
}

.toast-success {
    background: #52c41a;
}

.toast-warn {
    background: #faad14;
}

.toast-error {
    background: #ff4d4f;
}

/* 淡入 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡出（颜色 + 透明度） */
@keyframes fadeOut {
    from {
        opacity: 1;
        filter: saturate(1);
    }

    to {
        opacity: 0;
        filter: saturate(0);
    }
}

.group-item {
    position: relative;
    padding-left: 22px; /* 给 checkbox 预留空间 */
}

.group-checkbox {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
/* 手机 + 横屏 */
@media screen and (max-width: 991px) and (orientation: landscape) {

    .mobile-hide-landscape {
        display: none !important;
    }
}
