/**
 * 右侧悬浮导航栏样式（紧凑版）
 * Quick Links Sidebar
 */

/* 侧边栏容器 */
.quick-links-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
    background: #fff;
    box-shadow: -1px 0 6px rgba(0, 0, 0, 0.06);
    border-left: 1px solid #e5ecf4; /* theme-border-color */
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
}

.quick-links-sidebar::-webkit-scrollbar {
    width: 4px;
}

.quick-links-sidebar::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.quick-links-sidebar::-webkit-scrollbar-thumb {
    background: #098dcf; /* var(--bs-primary) - 主题主色 */
    border-radius: 2px;
}

/* Quick Links 标题栏 - 使用主题主色，与header一致 */
.sidebar-header {
    background: #098dcf; /* var(--bs-primary) - 主题主色 */
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Montserrat', sans-serif;
}

/* Key dates 区块 - 使用主题浅色背景 */
.sidebar-key-dates {
    background: #f0f6fa; /* theme-bg-light */
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e5ecf4; /* theme-border-color */
}

.sidebar-key-dates h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #141c25; /* theme-text-color-primary */
    margin: 0 0 0.5rem 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sidebar-date-item {
    margin-bottom: 0.5rem;
}

.sidebar-date-item:last-child {
    margin-bottom: 0;
}

.sidebar-date-item .date {
    font-weight: 600;
    color: #141c25; /* theme-text-color-primary */
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
    display: block;
}

.sidebar-date-item .description {
    color: rgb(82.63, 115.68, 152.87); /* theme-text-color-secondary */
    font-size: 0.65rem;
    line-height: 1.3;
    display: block;
}

/* 导航按钮区块 - 使用主题浅色背景 */
.sidebar-nav-buttons {
    background: #f0f6fa; /* theme-bg-light */
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e5ecf4; /* theme-border-color */
}

.sidebar-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.sidebar-nav-btn {
    background: #fff;
    border: 1px solid #e5ecf4; /* theme-border-color */
    padding: 0.4rem 0.35rem;
    text-align: center;
    text-decoration: none;
    color: #141c25; /* theme-text-color-primary */
    font-weight: 600;
    font-size: 0.65rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    font-family: 'Montserrat', sans-serif;
    border-radius: 3px;
    line-height: 1.2;
}

.sidebar-nav-btn:hover {
    background: #098dcf; /* var(--bs-primary) - 主题主色 */
    color: #fff;
    text-decoration: none;
    border-color: #098dcf;
}

.sidebar-nav-btn:active {
    opacity: 0.9;
}

/* Industry Highlights 区块 - 使用主题深色背景 */
.sidebar-highlights {
    background: #141c25; /* theme-bg-dark - 与网站深色背景一致 */
    padding: 0.6rem 0.75rem;
    border-bottom: none;
}

.sidebar-highlights h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sidebar-highlight-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    margin-bottom: 0.4rem;
    border-radius: 3px;
    transition: background 0.2s;
    min-height: 48px;
}

.sidebar-highlight-item:last-child {
    margin-bottom: 0;
}

.sidebar-highlight-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-highlight-item a {
    display: block;
    text-decoration: none;
    color: #fff;
}

.sidebar-highlight-item img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    margin-bottom: 0.25rem;
    display: block;
}

.sidebar-highlight-item .highlight-text {
    font-size: 0.65rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.sidebar-highlight-item.empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    padding: 0.6rem 0.4rem;
    min-height: 44px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .quick-links-sidebar {
        width: 180px;
    }
}

@media (max-width: 992px) {
    .quick-links-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .quick-links-sidebar {
        display: none;
    }
}
