@import url('./lxgwwenkai-light.css');
@import url('./lxgwwenkai-regular.css');
@import url('./lxgwwenkaimono-regular.css');
@import url('./lxgwwenkaimono-light.css');
@import url('./lxgwwenkai-bold.css');
@import url('./lxgwwenkaimono-bold.css');

/* 基础样式 */
html {
    font-size: 18px;
}
body {
    color: #212121;
    background-color: #fff;
    font-family: lxgw wenkai,Roboto,lucida grande,lucida sans unicode,lucida,helvetica,hiragino sans gb,microsoft yahei,wenquanyi micro hei,sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8em;
    background: url('../images/bg-pattern.png') repeat;
    /* padding-top: 60px; 为固定导航栏留出空间 */
}

/* 导航栏样式 */
.navbar {
    height: 48px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.blur-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
}

.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 28px;
    width: auto;
    filter: none;
}

.navbar .nav-link {
    color: #1d1d1f !important;
    font-size: 14px;
    padding: 0 !important;
    line-height: 48px;
    transition: opacity 0.3s;
    white-space: nowrap;
    opacity: 0.8;
}

.navbar .nav-link:hover {
    opacity: 1;
}

.navbar .nav-link.hover-effect {
    position: relative;
    padding: 0.5rem 1rem;
    color: #666;
    transition: color 0.3s ease;
}

.navbar .nav-link.hover-effect:hover {
    color: #1a1a1a;
}

.navbar .nav-link.hover-effect::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #428bca;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link.hover-effect:hover::after {
    width: 100%;
}

/* 头像和通知样式 */
.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 12px;
}

/* 看板器 */
.dashboard-container {
    padding: 0.5rem;
}

.row.g-4 {
    margin-top: 0 !important;
    gap: 1rem !important;
}

/* 看板卡片 */
.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.card-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.card-title-link:hover {
    color: #428bca;
}

.card-title-link h3 {
    margin: 0;
    font-size: 1.2rem;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.update-time {
    font-size: 0.85rem;
    color: #666;
}

.expand-btn {
    color: #666;
    text-decoration: none;
}

.expand-btn:hover {
    color: #333;
}

.chart-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .search-container {
        flex: 0 0 300px;
        margin: 0 1rem;
    }
    
    .dashboard-card {
        height: 250px;
    }
    
    .chart-container {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .search-container {
        flex: 1;
        margin: 1rem 0;
    }
    
    .dashboard-card {
        height: 200px;
    }
    
    .chart-container {
        min-height: 250px;
    }
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    padding: 1.75rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    padding: 0.75rem 0;
}

.footer-bottom {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* 页脚免责声明（醒目警示） */
.disclaimer {
    font-size: 0.8rem;
    color: #c2706a;
    font-weight: 600;
}

.disclaimer::before {
    content: "⚠️ ";
}

/* 响应式调整 */
@media (max-width: 992px) {
    .search-box-wrapper {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        margin: 10px 0;
    }
    
    .auth-buttons {
        margin: 10px 0;
    }
}

/* 主容器调整 */
.main-container {
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 2px;  /* 知乎风格方形按钮 */
    display: none;  /* 改为使用 display 控制显示/隐藏 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(18,18,18,0.1);
}

.back-to-top:hover {
    background-color: #f6f6f6;
}

.back-to-top svg {
    color: #8590a6;  /* 知乎图标颜色 */
    width: 24px;
    height: 24px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .navbar {
        height: auto;
        padding: 0.5rem 1rem;
    }

    .search-box-wrapper {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        margin: 10px 0;
    }
}

.messages-list {
    margin-top: 20px;
}

.message-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
}

.message-item.unread {
    background: #f8f9fa;
    border-left: 3px solid #0d6efd;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-time {
    color: #666;
    font-size: 0.9em;
}

.message-content {
    color: #333;
}

.btn-group .btn {
    padding: 0.375rem 1rem;
}

.btn-group .btn.active {
    background-color: #007bff;
    color: white;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 1rem;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
}

/* 导航容器样式 */
.container-fluid {
    display: flex;
    justify-content: center !important; /* 强制居中 */
    align-items: center;
    height: 100%;
    padding: 0;
    width: 100%;
}

/* 导航内容样式 */
.navbar-collapse {
    flex: 0 1 auto !important; /* 防止导航内容拉伸 */
    width: auto !important; /* 防止宽度撑满 */
    margin: 0 auto !important; /* 强制居中 */
    justify-content: center !important; /* 强制居中 */
}

/* 导航列表样式 */
.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 48px;
    margin: 0 auto !important; /* 强制居中 */
    padding: 0;
}

/* 导航项样式 */
.nav-item {
    display: flex;
    align-items: center;
}

/* Logo样式 */
.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 28px;
    width: auto;
}

/* 导航链接样式 */
.nav-link, 
.nav-link.hover-effect {
    color: #1d1d1f !important;  /* 深色文字 */
    font-size: 20px;  /* 增大字体 */
    font-weight: 400;  /* 稍微加粗 */
    padding: 0 !important;
    line-height: 48px;
    transition: opacity 0.3s;
    white-space: nowrap;
    opacity: 0.8;
}

.nav-link:hover, 
.nav-link.hover-effect:hover {
    opacity: 1;
}

/* 移除所有可能影响居中的边距 */
.me-auto, .ms-auto, .mx-auto {
    margin: 0 !important;
}

/* 汉堡菜单按钮位置调整 */
.navbar-toggler {
    position: absolute;
    left: 15px;
}

/* 移动端适配 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 10px 0;
    }

    .navbar-nav {
        flex-direction: column !important;
        gap: 0;
    }

    .nav-link {
        padding: 8px 20px !important;
        line-height: 1.5;
    }
}

/* 当页面滚动时添加的样式（需要配合JS） */
.navbar.scrolled {
    background-color: rgba(22, 22, 23, 0.9);
}

/* 登录注册按钮样式 */
.btn-outline-primary {
    color: #1d1d1f;  /* 深色文字 */
    border-color: #1d1d1f;  /* 深色边框 */
    background: transparent;
    font-size: 16px;  /* 增大字体 */
    font-weight: 400;
    padding: 4px 12px;  /* 调整内边距 */
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    color: #ffffff;
    background-color: #1d1d1f;
    border-color: #1d1d1f;
}

.btn-primary {
    background-color: #1d1d1f;
    border-color: #1d1d1f;
    color: #ffffff;
    font-size: 16px;  /* 增大字体 */
    font-weight: 400;
    padding: 4px 12px;  /* 调整内边距 */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2d2d2f;
    border-color: #2d2d2f;
    color: #ffffff;
}

/* 调整按钮间距 */
.btn-sm {
    margin: 0 4px;  /* 添加按钮之间的间距 */
}

/* 导航列表样式 - 增加间距 */
.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 48px;  /* 保持较大间距 */
    margin: 0 auto !important;
    padding: 0;
}

/* 移动端样式调整 */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* 用户头像下拉菜单样式 */
.dropdown-menu {
    background-color: rgba(22, 22, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: #f5f5f7;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
