/* 现代化导航系统样�?- High-End Vibrant */

:root {
    --app-shell-max-width: 1604px;
}

/* 全局页面布局 */
body {
    background-color: #f8fafc; /* Clean base */
    background-image: 
        radial-gradient(at 0% 0%, rgba(10, 37, 64, 0.035) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(29, 78, 216, 0.025) 0px, transparent 50%); /* Subtle ambient light */
    color: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page-container {
    background: transparent;
    min-height: 100vh;
}

/* 现代化头部导航栏 */
.modern-navbar {
    width: min(calc(100% - 60px), var(--app-shell-max-width));
    margin: 10px auto 0;
    top: 10px;
    background:
        radial-gradient(circle at 47% -35%, rgba(61, 126, 255, 0.14) 0%, transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 252, 255, 0.94) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(184, 209, 249, 0.96);
    border-radius: 16px;
    box-shadow:
        0 15px 36px rgba(47, 94, 168, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 88px;
    overflow: visible;
}

.modern-navbar.scrolled {
    background:
        radial-gradient(circle at 47% -35%, rgba(61, 126, 255, 0.16) 0%, transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.95) 100%);
    box-shadow:
        0 16px 38px rgba(47, 94, 168, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.navbar-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
}

.navbar-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 28px;
}

/* Logo区域 */
.navbar-brand-section {
    flex-shrink: 0;
}

.modern-navbar-brand {
    text-decoration: none;
    display: block;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 52px;
    width: 52px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 18px rgba(28, 95, 194, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: transform 0.3s ease;
}

.modern-navbar-brand:hover .brand-logo {
    transform: rotate(-5deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}

.brand-name {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
    font-size: 1.56rem;
    font-weight: 900;
    color: #0b2a62;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.brand-subtitle {
    display: flex;
    align-items: center;
    margin-top: 6px;
    font-size: 0.76rem;
    color: #263f74;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.brand-subtitle::before,
.brand-subtitle::after {
    content: none;
}

/* 搜索区域 - 高端显眼风格 */
.navbar-search-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: 0 1 auto;
    width: min(560px, calc(100% - 620px));
    max-width: 560px;
    margin: 0;
}

.modern-search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(181, 206, 247, 0.96);
    border-radius: 50px; /* Full Pill Shape */
    padding: 0 8px 0 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 14px 28px rgba(48, 90, 166, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.search-input-wrapper:hover {
    border-color: rgba(112, 163, 246, 0.95);
    box-shadow:
        0 16px 30px rgba(48, 90, 166, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    transform: translateY(-1px);
}

.search-input-wrapper:focus-within {
    background: #ffffff;
    border-color: #6da8ff;
    box-shadow: 0 0 0 4px rgba(38, 119, 255, 0.12), 0 18px 24px -8px rgba(44, 105, 201, 0.18), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    transform: translateY(-2px) scale(1.01);
}

.search-icon {
    font-size: 1.22rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    color: #1f5fcc;
    background: none;
    -webkit-text-fill-color: currentColor;
    opacity: 0.92;
}

.search-input-wrapper:focus-within .search-icon {
    opacity: 1;
    transform: scale(1.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #243b63;
    padding: 0;
    font-weight: 500;
}

.search-input::placeholder {
    color: #7b8ead;
    font-weight: 400;
    transition: opacity 0.2s;
}

.search-input-wrapper:focus-within .search-input::placeholder {
    opacity: 0.7;
}

.search-btn {
    background: linear-gradient(135deg, #1f7dff 0%, #1d4ed8 100%);
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%; /* Circle button */
    margin-left: 0.75rem;
    cursor: pointer;
    opacity: 0.9;
    transform: scale(1); /* Always visible now */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 22px -8px rgba(29, 78, 216, 0.48);
}

.search-btn i {
    font-size: 1.2rem;
}

.search-input-wrapper:focus-within .search-btn {
    opacity: 1;
    box-shadow: 0 10px 18px -5px rgba(10, 37, 64, 0.38);
    transform: rotate(0deg); /* Reset rotation if added later */
}

.search-btn:hover {
    background: linear-gradient(135deg, #176be6 0%, #1747bd 100%);
    transform: scale(1.05);
    box-shadow: 0 12px 24px -8px rgba(29, 78, 216, 0.56);
}

.search-btn:active {
    transform: scale(0.95);
}

/* 用户操作区域 */
.navbar-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    order: 1;
}

/* 用户按钮 */
/* Language switcher */
.language-switcher {
    position: relative;
    flex-shrink: 0;
    order: 2;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    max-width: 190px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1.5px solid #b6cdf3;
    border-radius: 14px;
    color: #1e293b;
    font-weight: 800;
    font-size: 0.93rem;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(31, 125, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.language-btn:hover,
.language-btn[aria-expanded="true"] {
    background: #f6faff;
    border-color: #1f7dff;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31, 125, 255, 0.16);
}

.language-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.language-current {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 86px;
}

.language-code {
    display: none;
    font-size: 0.82rem;
    letter-spacing: 0;
}

.language-arrow {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: #64748b;
    transition: transform 0.25s ease;
}

.language-btn[aria-expanded="true"] .language-arrow {
    transform: rotate(180deg);
}

.language-menu {
    min-width: 230px;
    max-height: 430px;
    overflow-y: auto;
    padding: 0.6rem;
    margin-top: 0.8rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 44px -14px rgba(15, 23, 42, 0.2);
    z-index: 1100;
}

.language-menu::-webkit-scrollbar {
    width: 6px;
}

.language-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.language-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 0.58rem 0.7rem;
    border-radius: 11px;
    color: #475569;
    font-weight: 700;
    transition: all 0.2s ease;
}

.language-option:hover,
.language-option:focus {
    background: #eff6ff;
    color: #061a33;
    transform: translateX(2px);
}

.language-option.active {
    background: #eaf3ff;
    color: #0b4cc2;
}

.language-option-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.16;
}

.language-native,
.language-option-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-native {
    font-size: 0.94rem;
}

.language-option-meta {
    margin-top: 3px;
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
}

.language-check {
    color: #1f7dff;
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 54px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(213, 226, 248, 0.95);
    border-radius: 14px;
    padding: 0 17px;
    color: #2a3e5f;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-btn:hover {
    background: #fff;
    border-color: rgba(135, 177, 245, 0.98);
    box-shadow: 0 10px 20px rgba(44, 92, 160, 0.1);
    color: #0b2d63;
}

.user-avatar i {
    font-size: 1.2rem;
    color: #0a2540;
}

.user-name {
    font-size: 0.96rem;
    font-weight: 700;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* PC端鼠标悬停显示下拉菜�?*/
@media (min-width: 769px) {
    .user-dropdown {
        position: relative;
    }
    
    .user-dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;
        position: absolute;
        top: 100%;
        right: 0;
    }
    
    .user-dropdown:hover .dropdown-menu,
    .user-dropdown.show .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .user-dropdown:hover .dropdown-arrow,
    .user-dropdown.show .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* 现代化下拉菜�?*/
.modern-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 18px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.1);
    padding: 0.85rem 0.8rem;
    margin-top: 0.8rem;
    min-width: 260px;
    z-index: 1100;
}

.modern-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 48px;
    padding: 0.7rem 0.95rem;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 10px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.25;
}

.modern-dropdown .dropdown-item:hover {
    background: #eff6ff;
    color: #061a33;
    transform: translateX(2px);
}

.modern-dropdown .dropdown-item i {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
    color: #94a3b8;
    margin-right: 0 !important;
    transition: color 0.2s ease;
}

.modern-dropdown .dropdown-item:hover i {
    color: #0a2540;
}

.modern-dropdown .dropdown-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 认证按钮 */
.auth-buttons {
    display: flex;
    gap: 16px;
}

.auth-btn {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.96rem;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.auth-btn i {
    font-size: 1.05rem;
    line-height: 1;
}

.login-btn {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #b6cdf3;
    box-shadow: 0 4px 12px rgba(31, 125, 255, 0.08);
}

.login-btn i {
    color: #1f7dff;
}

.login-btn:hover {
    background: #f6faff;
    border-color: #1f7dff;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31, 125, 255, 0.16);
}

.register-btn {
    background: linear-gradient(135deg, #2c7bff 0%, #1d4ed8 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 10px 22px -6px rgba(29, 78, 216, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.register-btn i {
    color: #ffffff;
}

.register-btn:hover {
    background: linear-gradient(135deg, #1f6df0 0%, #1747bd 100%);
    transform: translateY(-1px);
    box-shadow:
        0 14px 26px -6px rgba(29, 78, 216, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
}

/* 帮助按钮 */
.docs-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 54px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.88);
    color: #2a3e5f;
    border: 1px solid rgba(213, 226, 248, 0.95);
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.96rem;
    transition: all 0.2s ease;
}

.docs-btn:hover {
    color: #0b2d63;
    border-color: rgba(135, 177, 245, 0.98);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(44, 92, 160, 0.1);
}

/* 移动端菜单按�?*/
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background: #475569;
    margin: 2.5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 移动端侧边栏搜索和用户区域样�?*/
.mobile-sidebar-search, .mobile-sidebar-user {
    display: none; /* 默认隐藏 */
}

/* 移动端搜索区域样�?*/
.mobile-sidebar-search {
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.mobile-search-wrapper {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    transition: all 0.2s ease;
}

.mobile-search-wrapper:focus-within {
    background: #fff;
    border-color: #0a2540;
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.mobile-search-wrapper .search-icon {
    font-size: 1rem;
    color: #94a3b8;
    margin-right: 0.8rem;
    background: none;
    -webkit-text-fill-color: #94a3b8;
}

.mobile-search-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1e293b;
    padding: 0.3rem 0;
}

.mobile-search-wrapper input::placeholder {
    color: #94a3b8;
}

.mobile-search-wrapper .search-submit-btn {
    background: linear-gradient(135deg, #0a2540 0%, #1d4ed8 100%);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-search-wrapper .search-submit-btn:hover {
    background: linear-gradient(135deg, #061a33 0%, #1e40af 100%);
}

/* 移动端用户区域样�?*/
.mobile-sidebar-user {
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.08) 0%, rgba(29, 78, 216, 0.08) 100%);
    border-radius: 12px;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a2540 0%, #1d4ed8 100%);
    border-radius: 10px;
}

.mobile-user-avatar i {
    font-size: 1.3rem;
    color: white;
}

.mobile-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.mobile-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    min-width: calc(50% - 0.25rem);
    justify-content: center;
}

.mobile-action-btn:hover {
    background: #fff;
    border-color: rgba(10, 37, 64, 0.28);
    color: #061a33;
}

.mobile-action-btn.logout-btn {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.mobile-action-btn.logout-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.mobile-action-btn i {
    font-size: 1rem;
}

/* 未登录时的移动端认证区域 */
.mobile-auth-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
}

.mobile-auth-btn.login-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.mobile-auth-btn.login-btn:hover {
    background: #fff;
    border-color: rgba(10, 37, 64, 0.28);
    color: #061a33;
}

.mobile-auth-btn.register-btn {
    background: linear-gradient(135deg, #0a2540 0%, #1d4ed8 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.24);
}

.mobile-auth-btn.register-btn:hover {
    background: linear-gradient(135deg, #061a33 0%, #1e40af 100%);
}

.mobile-auth-section .mobile-action-btn {
    width: 100%;
    flex: none;
    margin-top: 0.5rem;
}

/* 主布局容器 */
.main-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: var(--app-shell-max-width);
    min-height: calc(100vh - 98px);
    background: transparent;
    margin: 0 auto;
}

/* 现代化侧边栏 - Professional Utility */
.modern-sidebar {
    width: 238px;
    flex: 0 0 238px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(205, 222, 250, 0.95);
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(44, 92, 160, 0.1);
    position: sticky;
    top: 112px;
    height: calc(100vh - 120px);
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: all 0.3s ease;
    margin: 14px 26px 8px 0;
    padding: 12px 14px 12px;
    animation: none;
}

.sidebar-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 导航区域 */
.sidebar-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 0;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section:last-child {
    margin-bottom: 1rem;
}

.sidebar-nav > .nav-section.mt-auto {
    position: static;
    margin-top: auto !important;
    margin-bottom: 0;
}

/* 区域标题 */
.section-header {
    padding: 8px 2px 10px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #7788a8;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

h2.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #7788a8;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-title i {
    width: 6px;
    height: 20px;
    margin-right: 8px;
    border-radius: 999px;
    color: transparent;
    background: linear-gradient(180deg, #1d6fff 0%, #70b8ff 100%);
    box-shadow: 0 5px 12px rgba(29, 111, 255, 0.25);
    overflow: hidden;
}

/* 导航列表 */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
    animation: none;
}

/* 导航链接 - Professional Utility Style */
.nav-link {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    color: #203b67;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    margin: 0;
    background: transparent;
}

.nav-link:hover {
    color: #0b45bf;
    background: #f3f8ff;
    transform: none;
}

.nav-link.active {
    color: #fff;
    min-height: 42px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #1c73ff 0%, #50a8ff 100%);
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(28, 115, 255, 0.22);
    transform: none;
}

/* 移除旧的指示�?*/
.nav-indicator {
    display: none;
}

/* 导航图标 */
.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #eef5ff;
    margin-right: 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 14px;
    color: #2377ff;
    transition: all 0.2s ease;
}

.nav-link:hover .nav-icon i {
    color: #0b45bf;
    transform: none;
}

.nav-link.active .nav-icon {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.active .nav-icon i {
    color: #fff; /* White icon on active gradient */
}

/* 导航文字 */
.nav-text {
    flex: 1;
    font-size: 14px;
    letter-spacing: 0;
}

.nav-link::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    margin-left: 8px;
    color: #9ab0cc;
    font-size: 12px;
    opacity: 0.95;
    transition: color 0.2s ease;
}

.nav-link.active::after {
    color: #ffffff;
}

/* 分类链接特殊样式 */
.category-link .nav-icon {
    background: #eef5ff;
}

.category-link .nav-icon i {
    color: #2377ff;
}

.category-link:hover .nav-icon i {
    color: #061a33;
}

.category-link.active .nav-icon {
    background: transparent;
}

.category-link.active .nav-icon i {
    color: #fff;
}

/* 全平台支持现代化样式 - 极简�?*/
.platform-support-minimal {
    margin: 0.25rem 0 0 0;
    padding: 0.45rem 0.8rem 0.45rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.platform-title {
    font-size: 0.66rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.45rem;
}

.platform-icons-row {
    display: flex;
    gap: 0.95rem;
    flex-wrap: wrap;
}

.platform-icons-row i {
    font-size: 1.05rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
    cursor: help;
}

.platform-icons-row i:hover {
    color: #061a33;
    transform: scale(1.2);
    filter: drop-shadow(0 2px 4px rgba(10, 37, 64, 0.18));
}


/* 主内容区�?*/
.main-content {
    flex: 1;
    background: transparent;
    padding: 2rem;
    overflow-x: hidden;
}

.main-content .container-fluid {
    max-width: 100%;
    padding: 0;
}

/* 全站工具列表卡片 - 与侧栏协调的白色卡片样式 */
.main-content .row:has(.tool-card-grid),
.main-content .tool-grid-wrapper {
    --bs-gutter-x: 1.35rem;
    --bs-gutter-y: 1.35rem;
}

.main-content .tool-card-grid,
.main-content .tool-card-grid-homepage {
    position: relative !important;
    min-height: 318px !important;
    height: 100% !important;
    overflow: hidden !important;
    border: 1px solid rgba(207, 222, 244, 0.96) !important;
    border-radius: 16px !important;
    background:
        radial-gradient(circle at 82% 22%, rgba(39, 119, 255, 0.06), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 254, 255, 0.96) 100%) !important;
    box-shadow: 0 16px 34px rgba(48, 86, 150, 0.1) !important;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease !important;
}

.main-content .tool-card-grid::before,
.main-content .tool-card-grid-homepage::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
        radial-gradient(circle at 18% 20%, rgba(26, 115, 255, 0.055) 0 1px, transparent 1.8px),
        linear-gradient(145deg, transparent 0 72%, rgba(227, 239, 255, 0.42) 72.5% 100%) !important;
    background-size: 14px 14px, 100% 100% !important;
    opacity: 0.72 !important;
}

.main-content .tool-card-grid:hover,
.main-content .tool-card-grid-homepage:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(155, 192, 246, 0.95) !important;
    box-shadow: 0 22px 42px rgba(40, 99, 190, 0.16) !important;
}

.main-content .tool-card-grid .card-body,
.main-content .tool-card-grid-homepage .card-body {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: 100% !important;
    padding: 30px 24px 24px !important;
    text-align: center !important;
    pointer-events: none !important;
}

.main-content .tool-icon-grid,
.main-content .tool-icon-homepage {
    width: 76px !important;
    height: 76px !important;
    margin: 0 auto 22px 42px !important;
    padding: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%) !important;
    border: 1px solid rgba(211, 226, 247, 0.95) !important;
    box-shadow: 0 10px 20px rgba(42, 86, 150, 0.12), inset 0 1px 0 rgba(255,255,255,0.9) !important;
    transition: transform 0.24s ease, box-shadow 0.24s ease !important;
}

.main-content .tool-card-grid:hover .tool-icon-grid,
.main-content .tool-card-grid-homepage:hover .tool-icon-homepage {
    transform: translate(-2px, -2px) !important;
    box-shadow: 0 14px 24px rgba(42, 86, 150, 0.16), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

.main-content .tool-icon-grid img,
.main-content .tool-icon-homepage img {
    width: 100% !important;
    height: 100% !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain !important;
}

.main-content .badges-grid,
.main-content .badges-homepage {
    position: absolute !important;
    top: 22px !important;
    right: 22px !important;
    z-index: 4 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    pointer-events: none !important;
}

.main-content .vip-badge-grid,
.main-content .batch-badge-grid,
.main-content .local-badge-grid,
.main-content .software-badge-grid,
.main-content .vip-badge-homepage,
.main-content .batch-badge-homepage,
.main-content .local-badge-homepage,
.main-content .software-badge-homepage {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 24px !important;
    padding: 4px 9px !important;
    border: 0 !important;
    border-radius: 5px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: 0 7px 15px rgba(22, 83, 165, 0.16) !important;
}

.main-content .vip-badge-grid,
.main-content .vip-badge-homepage {
    background: linear-gradient(135deg, #ffb629 0%, #f27b00 100%) !important;
}

.main-content .batch-badge-grid,
.main-content .batch-badge-homepage {
    background: linear-gradient(135deg, #5aa1ff 0%, #1e6fe8 100%) !important;
}

.main-content .local-badge-grid,
.main-content .local-badge-homepage {
    background: linear-gradient(135deg, #ff9f45 0%, #f06b00 100%) !important;
}

.main-content .software-badge-grid,
.main-content .software-badge-homepage {
    background: linear-gradient(135deg, #475569 0%, #0f766e 100%) !important;
}

.main-content .tool-card-grid:has(.badges-grid > :nth-child(4)),
.main-content .tool-card-grid-homepage:has(.badges-homepage > :nth-child(4)) {
    min-height: 348px !important;
}

.main-content .tool-card-grid:has(.badges-grid > :nth-child(4)) .card-title,
.main-content .tool-card-grid-homepage:has(.badges-homepage > :nth-child(4)) .card-title {
    margin-top: 30px !important;
}

.main-content .tool-card-grid .card-title,
.main-content .tool-card-grid-homepage .card-title {
    width: 100% !important;
    min-height: auto !important;
    margin: 0 0 13px !important;
    color: #10264b !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.main-content .tool-card-grid .card-text,
.main-content .tool-card-grid-homepage .card-text {
    width: 100% !important;
    height: 5.9em !important;
    margin: 0 0 22px !important;
    color: #3f5377 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.48 !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.main-content .tool-card-grid .mt-auto,
.main-content .tool-card-grid-homepage .mt-auto,
.main-content .tool-card-grid-homepage .mb-2:has(.tool-card-button-homepage) {
    margin-top: auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.main-content .tool-card-button,
.main-content .tool-card-button-homepage {
    position: relative !important;
    z-index: 3 !important;
    pointer-events: none !important;
    min-width: 142px !important;
    height: 38px !important;
    padding: 0 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #1e78ff 0%, #0564e8 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(22, 103, 232, 0.28) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    transition: transform 0.24s ease, box-shadow 0.24s ease !important;
}

.main-content .tool-card-grid:hover .tool-card-button,
.main-content .tool-card-grid-homepage:hover .tool-card-button-homepage {
    transform: translateY(-1px) !important;
    box-shadow: 0 14px 26px rgba(22, 103, 232, 0.34) !important;
}

.main-content .tool-card-grid a.stretched-link,
.main-content .tool-card-grid-homepage a.stretched-link {
    z-index: 5 !important;
}

.main-content .tool-meta-homepage {
    display: none !important;
}

.main-content .tool-card-homepage-style {
    max-width: none !important;
    margin-bottom: 1.35rem !important;
}

.main-content > .container-fluid > h1.my-4 {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 22px 0 24px !important;
    color: #10264b !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
}

.main-content > .container-fluid > h1.my-4 i {
    color: #1e78ff !important;
    font-size: 1.05em !important;
    filter: drop-shadow(0 8px 16px rgba(30, 120, 255, 0.18)) !important;
}

@media (max-width: 992px) {
    .main-content .tool-card-grid,
    .main-content .tool-card-grid-homepage {
        min-height: 300px !important;
    }

    .main-content .tool-card-grid .card-body,
    .main-content .tool-card-grid-homepage .card-body {
        padding: 26px 20px 22px !important;
    }

    .main-content .tool-icon-grid,
    .main-content .tool-icon-homepage {
        margin-left: 28px !important;
    }
}

/* 响应式设�?*/
@media (max-width: 1200px) {
    .navbar-content {
        gap: 1rem;
    }

    .navbar-search-section {
        max-width: 400px;
        margin: 0;
    }

    .modern-sidebar {
        width: 228px;
        flex-basis: 228px;
        margin-right: 20px;
    }

    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .navbar-search-section {
        max-width: 300px;
        margin: 0;
    }

    .brand-text {
        display: flex;
    }

    .brand-subtitle {
        display: none;
    }

    .user-name {
        display: none;
    }

    .language-btn {
        max-width: none;
        padding: 0 12px;
    }

    .language-current {
        display: none;
    }

    .language-code {
        display: inline;
    }

    .docs-btn span {
        display: none;
    }

    .modern-sidebar {
        width: 220px;
        flex-basis: 220px;
        margin-right: 16px;
    }

    .nav-link {
        padding: 0 9px;
        margin-right: 0;
    }

    .nav-icon {
        width: 23px;
        height: 23px;
        margin-right: 8px;
    }

    .platform-support-modern {
        margin: 0 1rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .modern-navbar {
        width: 100%;
        height: 60px;
        margin: 0;
        top: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .navbar-container {
        padding: 0;
    }

    .navbar-content {
        height: 60px;
        padding: 0 1rem;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .navbar-search-section {
        display: none;
    }

    .user-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-wrapper {
        position: relative;
        min-height: calc(100vh - 60px);
    }

    .modern-sidebar {
        position: fixed;
        top: 60px;
        left: -280px;
        width: 280px;
        flex-basis: auto;
        height: calc(100vh - 60px);
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        z-index: 999;
        transition: left 0.3s ease;
        border-right: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        background: #ffffff;
        padding-left: 0;
        padding-right: 0;
    }

    .modern-sidebar.show {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-content {
        padding: 0;
    }

    .mobile-sidebar-search {
        display: block;
    }

    .mobile-sidebar-user {
        display: block;
    }

    .nav-section {
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .section-header {
        padding: 0.8rem 0.5rem;
    }

    .nav-link {
        padding: 0.7rem 1rem;
        margin: 0 0 0.25rem 0;
        border-radius: 10px;
    }

    .nav-link:hover {
        transform: none;
        background: rgba(10, 37, 64, 0.08);
    }

    .nav-link.active {
        transform: none;
        border-radius: 10px;
    }

    .nav-indicator {
        display: none;
    }

    .platform-support-minimal {
        margin: 0.5rem 0.5rem 0 0.5rem;
        padding: 1rem;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
    }

    .platform-support-modern {
        margin: 0 1rem;
        padding: 0.8rem;
    }

    .platform-grid {
        gap: 0.6rem;
    }

    .platform-row {
        gap: 0.3rem;
    }

    .platform-item {
        padding: 0.4rem 0.2rem;
    }

    .platform-item i {
        font-size: 0.9rem;
    }

    .platform-item span {
        font-size: 0.6rem;
    }

    .main-content {
        padding: 1rem;
        width: 100%;
    }

    /* 移动端菜单按钮样式调�?*/
    .mobile-menu-btn {
        position: relative;
        z-index: 1001;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 480px) {
    .modern-navbar {
        height: 55px;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-content {
        height: 55px;
    }

    .brand-logo {
        height: 35px;
        width: 35px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .main-wrapper {
        min-height: calc(100vh - 55px);
    }

    .modern-sidebar {
        top: 55px;
        height: calc(100vh - 55px);
        left: -280px;
    }

    .sidebar-overlay {
        top: 55px;
        height: calc(100vh - 55px);
    }

    .sidebar-content {
        padding: 0.8rem 0;
    }

    .section-title {
        font-size: 0.8rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .nav-icon {
        width: 30px;
        height: 30px;
        margin-right: 0.6rem;
    }

    .nav-icon i {
        font-size: 1rem;
    }

    .platform-support-modern {
        margin: 0 0.8rem;
        padding: 0.6rem;
    }

    .platform-header {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .platform-grid {
        gap: 0.5rem;
    }

    .platform-item {
        padding: 0.3rem 0.1rem;
    }

    .platform-item i {
        font-size: 0.8rem;
    }

    .platform-item span {
        font-size: 0.55rem;
    }

    .main-content {
        padding: 0.8rem;
    }
}

/* 滚动条样�?*/
.modern-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.modern-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.modern-sidebar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.32);
    border-radius: 3px;
}

.modern-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 37, 64, 0.45);
}

/* 动画效果 */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modern-sidebar {
    animation: slideInLeft 0.3s ease-out;
}

.nav-item {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.15s; }
.nav-item:nth-child(3) { animation-delay: 0.2s; }
.nav-item:nth-child(4) { animation-delay: 0.25s; }
.nav-item:nth-child(5) { animation-delay: 0.3s; }
.nav-item:nth-child(6) { animation-delay: 0.35s; }
.nav-item:nth-child(7) { animation-delay: 0.4s; }
.nav-item:nth-child(8) { animation-delay: 0.45s; }

/* Footer已移�?*/
