/* 右侧边栏样式 */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: -20px;
    padding-top: 0;
}

/* 右侧边栏特殊样式 - 减少顶部空白 */
.right-col .sidebar-container {
    margin-top: -25px;
}

/* 强制重置右侧边栏的第一个子元素 */
.right-col > *:first-child,
.sidebar-container > *:first-child {
    margin-top: 0 !important;
}

/* 广告位样式 */
.sidebar-ad {
    margin: 0px 0;
    padding: 0px;
    border-radius: 0px;
    margin-bottom: -5px;
}

.sidebar-ad img {
    max-width: 100%;
    border-radius: 6px;
    height: auto;
}

/* 热门股票样式 - 改为左侧文章风格 */
.hot-stocks-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 5px;
    margin-top: 0;
    overflow: hidden;
}

/* 当热门股票是第一个元素时，进一步减少顶部空白 */
.sidebar-container .hot-stocks-section:first-child {
    margin-top: -20px;
}

.hot-stocks-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    padding: 16px 20px 12px 35px;
    background: #fff;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.hot-stocks-title::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #1976d2;
    margin-right: 8px;
}

.hot-stocks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-stock-item {
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.hot-stock-item:last-child {
    border-bottom: none;
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.name-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.stock-name a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.4;
}

.stock-name a:hover {
    color: #1976d2;
    font-weight: 700;
}

.hotness-section {
    display: flex;
    align-items: center;
}

.hotness {
    color: #1976d2;
    font-size: 14px;
    font-weight: 600;
    background: rgba(25, 118, 210, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.level-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.level-badge.vip {
    background: #1976d2;
    color: white;
    box-shadow: 0 1px 3px rgba(25, 118, 210, 0.3);
}

.level-badge.svip {
    background: #dc143c;
    color: white;
    box-shadow: 0 1px 3px rgba(220, 20, 60, 0.3);
}

.stock-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 4px;
}

.lifecycle-section {
    display: flex;
    align-items: center;
}

.strategy-section {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.strategy-tags, .tracking-tags {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.strategy-tag-plain {
    color: #1976d2;
    font-size: 13px;
    font-weight: 500;
    background: rgba(25, 118, 210, 0.08);
    padding: 1px 3px;
    border-radius: 4px;
}

.tracking-tag-plain {
    color: #e65100;
    font-size: 13px;
    font-weight: 500;
    background: #fff3e0;
    padding: 1px 3px;
    border-radius: 4px;
}

.limitup-tag-plain {
    color: #dc143c;
    font-size: 13px;
    font-weight: 600;
    background: rgba(220, 20, 60, 0.08);
    padding: 1px 3px;
    border-radius: 4px;
}

.no-data {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 15px;
    background: #f8f9fa;
    margin: 16px;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .hot-stock-item {
        padding: 8px 12px;
    }
    
    .stock-name a {
        font-size: 14px;
    }
    
    .stock-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2px;
    }
    
    .lifecycle-section, .strategy-section {
        flex: 1;
    }
    
    .strategy-section {
        justify-content: flex-end;
    }
    
    .strategy-tags, .tracking-tags {
        gap: 2px;
    }
    
    .hot-stocks-section {
        border-radius: 6px;
        margin-bottom: 12px;
    }
    
    .hotness {
        margin-left: 0;
        margin-top: 4px;
    }
}
