/*文章预览部分*/
.article-card { transition: transform 0.3s; }
.article-card:hover { transform: translateY(-5px); }
.hot-article { border-left: 4px solid #dc3545; }
.keyword-badge { margin-right: 5px; margin-bottom: 5px; }
.article-image { max-width: 100%; height: auto; }
/* 搜索按钮优化 */
.navbar-dark .btn-search {
    --bs-btn-hover-bg: rgba(255,255,255,0.15);
    --bs-btn-active-bg: rgba(255,255,255,0.25);
    border-color: #6c757d;
    transition: all 0.2s ease;
}
/* 输入框优化 */
.navbar-dark .form-control-sm {
    background-color: rgba(255,255,255,0.05);
    border-color: #495057;
    color: #e9ecef;}
.btn-custom {
        background: linear-gradient(145deg, #3498db, #2980b9);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 0.35rem 1rem;
        font-weight: 500;
        box-shadow: 3px 3px 6px rgba(0,0,0,0.2),
                    -3px -3px 6px rgba(255,255,255,0.1);
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3),
                -5px -5px 10px rgba(255,255,255,0.15);
    background: linear-gradient(145deg, #2980b9, #3498db);
}
.btn-custom:active {
    transform: translateY(0);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2),
                inset -2px -2px 5px rgba(255,255,255,0.1);
}
.btn-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    border-radius: 8px;
}
.navbar-brand:hover {
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
    transition: text-shadow 0.3s ease;
}
input::placeholder {
    color: rgba(255,255,255,0.6);
}
input:focus {
    outline: none;
    background: rgba(255,255,255,0.15) !important;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3) !important;
}
/* 广告基础样式 */
.ad-banner {
position: fixed;
width: 150px;
max-height: 220px;
background: #fff;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
padding: 10px;
border-radius: 8px;
z-index: 1000;
overflow-y: auto;
}
#left-banner { left: 10px; bottom: 20px; }
#right-banner { right: 10px; bottom: 20px; }
.ad-close {
position: absolute;
right: 5px;
top: 2px;
cursor: pointer;
font-size: 18px;
}
.ad-content {
padding-top: 12px;
text-align: center;
}
.ad-btn {
display: block;
background: #3498db;
color: white;
padding: 8px 12px;
border-radius: 4px;
text-decoration: none;
margin-top: 10px;
font-size: 0.9rem;
}

/* 电脑端优化 */
@media (min-width: 992px) {
.ad-banner {
  width: 18vw;
  max-width: 200px;
  min-width: 160px;
}
}

/* 移动端适配 */
@media (max-width: 768px) {
.ad-banner {
  width: 45vw;
  max-width: 180px;
  padding: 8px;
}
.ad-content p {
  font-size: 0.9rem;
  margin: 5px 0;
}
.ad-btn {
  padding: 6px 10px;
  font-size: 0.8rem;
}
}