/* ============================================
   公共美化增强样式 - 全站页面共享
   从 cases.html / index.html 抽离
   ============================================ */

/* ============ 导航栏选中项美化 ============ */
.header-con .navbar-nav .nav-item {
    overflow: visible;
}
.header-con .navbar-light .navbar-nav .nav-link {
    transition: color 0.25s ease;
}
.header-con .navbar-light .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}
.header-con .navbar-light .navbar-nav .active > a {
    color: #fff !important;
    font-weight: 700;
    position: relative;
}
.header-con .navbar-light .navbar-nav .active > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2.5px;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.header-con .navbar-light .navbar-nav .active > a:hover::after {
    width: 36px;
}
/* 移动端适配 */
@media (max-width: 991px) {
    .header-con .navbar-light .navbar-nav .active > a::after {
        bottom: 4px;
        left: auto;
        right: 0;
        transform: none;
        width: 3px;
        height: 22px;
    }
    .header-con .navbar-light .navbar-nav .active > a:hover::after {
        width: 3px;
    }
}

/* ============ 区块标题统一样式 ============ */
.generic-title2 h2,
.generic-title h2 {
    font-size: 36px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
}
.generic-title2 h2::after,
.generic-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #00a8ff 100%);
    border-radius: 2px;
}
.generic-title span,
.generic-title2 span {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #007bff;
}
.generic-title2 p {
    font-size: 15px;
    line-height: 28px;
    color: #666;
    max-width: 760px;
    margin: 0 auto;
}

/* ============ 通用卡片悬停效果 ============ */
.enhance-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease;
}
.enhance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.enhance-card .enhance-img-wrap {
    overflow: hidden;
}
.enhance-card .enhance-img-wrap img {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.enhance-card:hover .enhance-img-wrap img {
    transform: scale(1.06);
}

/* ============ 通用按钮样式 ============ */
.btn-gradient {
    background: linear-gradient(135deg, #007bff 0%, #00a8ff 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.35);
}
.btn-pill {
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
}

/* ============ 标签胶囊样式 ============ */
.tag-pill {
    border-radius: 50px !important;
    padding: 4px 14px !important;
    font-size: 12px !important;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.3) !important;
    color: #007bff !important;
    background: rgba(0, 123, 255, 0.05) !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
}
.tag-pill:hover {
    background: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
    transform: translateY(-1px);
}

/* ============ 空状态美化 ============ */
.empty-state {
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.08);
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}
.empty-state .empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff 0%, #00a8ff 100%);
    border-radius: 50%;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
}
.empty-state .empty-state-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.empty-state .empty-state-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
}

/* ============ 搜索框聚焦态 ============ */
.search-enhance input {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-enhance input:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12) !important;
    background-color: #fff !important;
}
.search-enhance .search-btn {
    transition: all 0.25s ease;
}
.search-enhance .search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.search-enhance .search-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 搜索区域分类标签统一美化 */
.domain-con .domains-price-con ul li {
    transition: all 0.25s ease;
}
.domain-con .domains-price-con ul li:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}
.domain-con .domains-price-con ul li a {
    transition: color 0.25s ease;
}
.domain-con .domains-price-con ul li:hover a {
    color: #007bff;
}
.domain-con .domains-price-con ul li.submit-form-btn,
.domain-con .domains-price-con ul li.active {
    background: #007bff !important;
    border-color: #007bff !important;
}
.domain-con .domains-price-con ul li.submit-form-btn a,
.domain-con .domains-price-con ul li.active a {
    color: #fff !important;
}

/* ============ 渐变背景区块 ============ */
.bg-gradient-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}
.bg-gradient-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
}

/* ============ 响应式适配 ============ */
@media (max-width: 991px) {
    .generic-title2 h2,
    .generic-title h2 {
        font-size: 28px;
    }
}
@media (max-width: 767px) {
    .generic-title2 h2,
    .generic-title h2 {
        font-size: 24px;
    }
}
