/* 组件样式文件 - 导航栏、侧边栏和相关组件 */

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden; /* 只隐藏水平滚动条 */
    overflow-y: auto; /* 允许垂直滚动 */
}

/* 侧边栏项目样式 */
.sidebar-item.active {
    background-color: #f3f0ff;
    color: #6366f1;
}

.sidebar-item:hover:not(.active) {
    background-color: #f9fafb;
}

.sidebar-item.active i {
    color: #6366f1;
}

/* 卡片样式 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Logo样式 */
@keyframes firefly-glow {
    0% { text-shadow: 0 0 3px rgba(99, 102, 241, 0.2); }
    50% { text-shadow: 0 0 8px rgba(99, 102, 241, 0.3); }
    100% { text-shadow: 0 0 3px rgba(99, 102, 241, 0.2); }
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(99, 102, 241, 0.2));
}

.logo-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    border-radius: 50%;
    margin-left: 2px;
    margin-right: 2px;
    position: relative;
    top: -1px;
    box-shadow: 0 0 4px rgba(99, 102, 241, 0.4);
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    transition: transform 0.2s ease;
    margin-top: 10px;
}

.logo-container:hover .logo-text {
    filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.3));
}

.logo-container:hover .logo-dot {
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.5);
}

.logo-image {
    max-height: 92px;
    height: auto;
    width: auto;
    transition: all 0.2s ease;
}

.logo-container:hover .logo-image {
    transform: scale(1.02);
}

.logo-link {
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.logo-link:hover {
    background-color: transparent;
}

.logo-link:after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b5cf6, transparent);
    transform: translateX(-50%);
    transition: width 0.2s ease;
    opacity: 0;
}

.logo-link:hover:after {
    width: 60%;
    opacity: 0.6;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-left: 4px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

a:hover .logo-subtitle {
    color: #6366f1;
    opacity: 0.9;
}

/* 导航栏样式 */
.navbar {
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 主内容区域样式 */
.main-content {
    margin-left: 16rem;
    margin-top: 60px;
    padding: 2rem;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* 折叠状态下的主内容区域 */
body.sidebar-collapsed .main-content {
    margin-left: 0 !important;
}

/* 箭头图标样式 */
.ri-arrow-down-s-line {
    display: inline-block !important;
    font-size: 1.1rem;
    vertical-align: middle;
    color: currentColor;
    opacity: 0.8;
}

.ri-arrow-up-s-line {
    display: inline-block !important;
    font-size: 1.1rem;
    vertical-align: middle;
    color: currentColor;
    opacity: 0.8;
}

.features-menu-wrapper .arrow-icon,
.credits-menu-wrapper .arrow-icon,
.user-menu-wrapper .arrow-icon,
.language-menu-wrapper .arrow-icon {
    transition: transform 0.2s ease;
    display: inline-block;
    will-change: transform;
}

/* 功能中心下拉菜单样式 */
#features-dropdown {
    max-height: 80vh;
    overflow-y: auto;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 
                0 5px 10px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 0;
    margin-top: 8px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

#features-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#features-dropdown.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

/* 积分中心下拉菜单样式 */
#credits-dropdown {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 
                0 5px 10px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-top: 8px !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#credits-dropdown.hidden {
    display: none;
}

/* 用户菜单下拉样式 */
#user-dropdown {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 
                0 5px 10px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-top: 8px !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#user-dropdown.hidden {
    display: none;
}

#features-dropdown::-webkit-scrollbar {
    width: 4px;
}

#features-dropdown::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}

#features-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 100px;
}

#features-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

#features-dropdown ul {
    margin: 0.5rem 0;
}

#features-dropdown ul li a {
    transition: all 0.15s ease;
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

#features-dropdown ul li a:hover {
    background-color: rgba(99, 102, 241, 0.04);
    color: #6366f1;
    padding-left: 1.25rem;
}

#features-dropdown ul li a:active {
    background-color: rgba(99, 102, 241, 0.08);
    transform: scale(0.98);
}

#features-dropdown h3 {
    color: #6366f1;
    font-weight: 600;
    padding: 0.75rem 1rem 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: none;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

#features-dropdown .grid > div {
    position: relative;
}

#features-dropdown .grid > div:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05), transparent);
}

/* 导航菜单悬停效果 */
.navbar a:hover, .navbar button:hover {
    color: #6366f1;
}

/* 侧边栏样式 */
.sidebar {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 16rem;
    overflow-y: auto;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    z-index: 40;
    box-shadow: 1px 0 5px rgba(0,0,0,0.05);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

/* 快捷访问按钮样式 */
.quick-access-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
}

.quick-access-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.quick-access-btn:hover::before {
    left: 100%;
}

.quick-access-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

/* 侧边栏切换按钮样式 */
#sidebar-toggle-btn {
    position: fixed;
    top: 50%;
    left: 16rem;
    transform: translateY(-50%);
    z-index: 45;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: pointer;
}

body.sidebar-collapsed #sidebar-toggle-btn {
    left: 0;
    transform: translateY(-50%) translateX(8px);
}

body.sidebar-collapsed #sidebar-toggle-btn #toggle-icon {
    transform: rotate(180deg);
}

#sidebar-toggle-btn:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

/* 快捷访问下拉菜单样式 */
#quick-access-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 600px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    overflow: hidden;
}

#quick-access-dropdown .dropdown-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    background-color: #fafafa;
}

#quick-access-dropdown .dropdown-header h3 {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

#quick-access-dropdown .dropdown-header #selected-count {
    background-color: #f0f0f5;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #6366f1;
    margin-left: 0.5rem;
    font-weight: 500;
}

#quick-access-dropdown .dropdown-header #close-dropdown {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: all 0.2s ease;
    color: #6b7280;
}

#quick-access-dropdown .dropdown-header #close-dropdown:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.feature-list-scroll {
    max-height: 450px;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 1rem;
    scroll-behavior: smooth;
}

.feature-list-scroll::-webkit-scrollbar {
    width: 3px;
}

.feature-list-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}

.feature-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 100px;
}

.feature-list-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

#quick-access-dropdown h4 {
    color: #6366f1;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: none;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
}

#quick-access-dropdown h4 i {
    margin-right: 0.375rem;
    font-size: 0.9375rem;
}

#quick-access-dropdown .mb-5 {
    margin-bottom: 1.25rem;
    position: relative;
}

#quick-access-dropdown .mb-5:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.05), transparent);
}

#quick-access-dropdown .grid.gap-1 {
    gap: 0.25rem;
}

.feature-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.625rem;
    border-radius: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
    margin-bottom: 0.125rem;
    position: relative;
    overflow: hidden;
}

.feature-checkbox-item:hover {
    background-color: rgba(99, 102, 241, 0.04);
}

.feature-checkbox-item:active {
    background-color: rgba(99, 102, 241, 0.08);
    transform: scale(0.98);
}

.feature-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.625rem;
    cursor: pointer;
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all 0.2s ease;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.feature-checkbox-item input[type="checkbox"]:checked {
    background-color: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.feature-checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.2s ease-in-out;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1.2);
    }
    100% {
        transform: rotate(45deg) scale(1);
    }
}

.feature-checkbox-item:hover input[type="checkbox"]:not(:checked) {
    border-color: #a5a6f6;
}

.feature-checkbox-item span {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 450;
    letter-spacing: -0.01em;
}

/* 标签样式 */
.beta-tag {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    background-color: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.new-tag {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    background-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(239, 68, 68, 0.25);
} 