﻿#page_view img, #post_view img{
    max-width: 100% !important;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}



.form-group {
    margin-bottom: 1rem;
}

/* 如果有遗留的 has-error 样式 */
.has-error .form-control {
    border-color: #dc3545; /* 红色边框 */
    box-shadow: none;
}

.invalid-feedback {
    display: block; /* 确保错误提示显示 */
}

h3, .h3 {
    font-size: calc(0.8rem + 0.6vw) !important;
}
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    margin-right: 15px;
}

.data-label {
    font-weight: bold;
    color: #555;
    margin-right: 5px;
    white-space: nowrap;
}

.data-value {
    text-align: left;
    color: #333;
}

.fs-11px{
    font-size: 11px;
}
.fs-12px{
    font-size: 12px;
}


a.nav-link{
    color:#2b2e2e !important;
    font-size: 16px !important;
    opacity: 0.95 !important;
    font-weight: bold;
    -webkit-transition: color 0.3s linear !important;
}


.navbar-collapse{
    flex-grow: 0 !important;
}

a.nav-link:hover,a.nav-link.active{
    box-shadow: 0 3px 0 #194ac3;
}

.navbar-brand img {
    max-height: 80px; /* 原本PC端大小 */
    height: auto;
}

main#main{
    margin-top: 105px;
}

.dropdown-item.active, .dropdown-item:active{
    background: none !important;
    color: #212529;
}

.news-img-wrapper {
    height: 300px; /* 自定义统一高度 */
    overflow: hidden;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 60px; /* 原本PC端大小 */
        height: auto;
    }

    .navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
        box-shadow:none;
    }
}

/* PC端：鼠标悬停展开子菜单 */
@media (min-width: 768px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* 防止子菜单偏移 */
        animation: fadeInDown 0.3s both;
    }

    .nav-item{
        margin-left:15px;
    }
}

/* 小动画 */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
