﻿/* 搜索表单样式（保持不变） */
.search-form {
    width: 320px;
    gap: 8px !important;
    padding: 4px 0;
}

.search-form .form-control {
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
    outline: none;
}

.search-form .btn-outline-light {
    height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    border-color: #ced4da;
    color: #212529;
    background-color: #f8f9fa;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.search-form .btn-outline-light:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

@media (max-width: 576px) {
    .search-form {
        width: 100%;
    }
}

/* Logo + 站点名称样式（核心改造：增大Logo尺寸） */
.brand-container {
    display: flex;
    align-items: center; /* 垂直居中logo和文字 */
    gap: 12px; /* 【修改】增大Logo和文字间距，更大气 */
    text-decoration: none;
    /* 新增：增加点击区域，提升交互体验 */
    padding: 2px 0;
}

/* Logo图片样式（【核心修改】增大尺寸） */
.brand-logo {
    width: 48px; /* 【修改】从36px增大到48px，更醒目 */
    height: 48px; /* 【修改】从36px增大到48px */
    object-fit: contain; /* 保持Logo比例，不变形 */
    border-radius: 6px; /* 【修改】轻微增大圆角，更精致 */
    /* 新增：添加轻微阴影，提升立体感 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 站点文字容器（可选隐藏） */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4; /* 【修改】微调行高，和大Logo匹配 */
}

.brand-main {
    font-size: 1.25rem; /* 【修改】增大主标题字号，更协调 */
    font-weight: 700; /* 【修改】加粗字体，增强视觉冲击 */
    color: white;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.8rem; /* 【修改】增大副标题字号 */
    color: rgba(255, 255, 255, 0.9); /* 【修改】提高透明度，更清晰 */
    white-space: nowrap;
    /* 新增：轻微文字阴影，提升可读性 */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 移动端适配：小屏幕隐藏文字，仅显示Logo（【修改】调整移动端Logo尺寸） */
@media (max-width: 768px) {
    .brand-text {
        display: none; /* 移动端隐藏文字，只留Logo */
    }

    .brand-logo {
        width: 42px; /* 【修改】移动端从32px增大到42px，依然大气 */
        height: 42px; /* 【修改】移动端从32px增大到42px */
    }
}

/* 基础样式（保持不变） */
.comment-item {
    background-color: #f8f9fa;
}

.post-content {
    line-height: 1.8;
    font-size: 16px;
}

.pagination .page-link {
    color: #0d6efd;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.card-header {
    background-color: #f8f9fa;
}

.avatar-sm {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.navbar-nav {
    align-items: center;
}

.dropdown-menu {
    z-index: 1050;
}

/* 新增：嵌套下拉菜单样式（解决二级菜单空白/不显示） */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%; /* 二级菜单向右展开 */
    margin-top: -6px;
    display: none;
    position: absolute;
    z-index: 1060; /* 层级高于一级菜单 */
}

/* 鼠标悬停/点击时显示二级菜单 */
.dropdown-submenu:hover .dropdown-menu,
.dropdown-submenu.show .dropdown-menu {
    display: block;
}

/* 适配移动端触摸交互 */
.dropdown-submenu a.dropdown-toggle::after {
    margin-left: 0.5em;
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

/* 新增：版权信息样式 */
.footer-copyright {
    margin-top: 60px; /* 和内容区保持间距 */
    padding: 20px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #6c757d;
}

.copyright-text {
    text-align: center;
    line-height: 1.6;
}

.copyright-link {
    color: #0d6efd;
    text-decoration: none;
}

    .copyright-link:hover {
        text-decoration: underline;
    }

/* 全局表情展示样式（优化：固定尺寸+强制生效） */
.emoji-display {
    font-size: 24px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    margin: 0 2px !important;
    display: inline-block !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
}
