html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    min-height: 100%;
    margin-bottom: 580px;
    padding-top: 56px !important;
    overflow-x: hidden !important; /* 防止横向滚动条 */
}

header nav.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    /*margin-bottom: 0 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;*/
}

/* 平板 */
@media (max-width: 1024px) {
    body {
        margin-bottom: 1000px; /* 平板footer可能比PC高 */
    }
}

/* 移动端 */
@media (max-width: 768px) {
    body {
        margin-bottom: 1450px; /* 匹配iPhone12的1421px + 余量 */
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    body {
        margin-bottom: 1350px; /* 小屏手机可能稍小 */
    }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
