/* Navigation Tabs */
.nav-tabs {
    border: none;
}

/* Alibaba Icons */
svg.icon {
    width: 21px;
    height: 21px;
    vertical-align: -0.29em;
}

.nav-tabs > li > a {
    border: none;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border: none;
}

/* 调整顶部间距，使整体内容向上移动 */
.nav-container header {
    margin-top: 5px !important;
}

/* 隐藏滚动条但保持功能正常使用 */
/* Webkit浏览器 (Chrome, Safari) */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Firefox */
html {
    scrollbar-width: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Body Styles */
body {
    height: 100%;
    width: 100%;
    font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
    color: black;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* 1920x1080以上尺寸禁止上下滑块 */
@media (min-width: 1920px) {
    body {
        overflow-y: hidden;
    }
}

.container {
    background-color: transparent;
    flex: 1;
    width: 100%;
    max-width: 75%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#zb {
    max-width: 100%;
    height: auto;
}

/* Form Controls */
.input-group {
    margin-bottom: 20px;
}

.form-control {
    color: black;
}

.form-control::placeholder {
    color: black;
}

.input-group-addon {
    color: black;
}

/* Search Buttons */
#search-btns {
    margin-bottom: 20px;
}

#search-btns .btn {
    margin: 5px;
    color: black;
}

/* Jumbotron and Table */
.jumbotron {
    background-color: transparent;
}

.table {
    background-color: transparent;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Footer */
#footer {
    background-color: transparent;
    color: black;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    border: none;
}

/* Search Box Styles */
.search-box {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0), rgba(250, 250, 255, 0));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 50px;
    border: 3px solid #4e6ef2;
    box-shadow: none;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    margin: 0 auto;
    max-width: 1450px;
    width: 100%;
    box-sizing: border-box;
}

.search-box:hover {
    border: 3px solid #4e6ef2;
    box-shadow: none;
}

/* Search Box Focus Effect */
.search-box:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: none;
    position: relative;
    transition: all 0.2s ease;
}

/* Focus Border Effect */
.search-box:focus-within::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    pointer-events: none;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Search Input Animation */
.search-box .form-control:focus {
    border-color: transparent;
    box-shadow: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Search Button Container */
#search-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 0 10px;
    gap: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Search Button Styles */
#search-btns .btn {
    margin: 0;
    padding: 14px 26px;
    border: 2px solid #333;
    border-radius: 0;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #000;
    background-color: #ffffff00;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    flex: 0 0 auto;
    min-width: 100px;
    text-align: center;
}

/* First Button Left Radius */
#search-btns .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Last Button Right Radius */
#search-btns .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Middle Buttons Remove Borders */
#search-btns .btn:not(:first-child):not(:last-child) {
    border-left: none;
}

/* All Middle Buttons (Except Kuaishou) Remove Left Border */
#search-btns .btn:not(:first-child):not(:last-child):not(#kuaishou) {
    border-left: none;
}

/* Kuaishou Button Special Handling */
#search-btns #kuaishou {
    border-left: none;
}

#search-btns .btn:hover {
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #4e6ef2;
    color: #fff;
    z-index: 1;
}

#search-btns .btn:active {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Button Glow Effect */
#search-btns .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transition: transform 0.6s;
}

#search-btns .btn:hover::before {
    transform: translateX(100%);
}

/* Different Button Colors */
#search-btns .btn-primary {
    border-color: #667eea;
}

#search-btns .btn-primary:hover {
    border-color: #5a6fd8;
}

#search-btns .btn-success {
    border-color: #56ab2f;
}

#search-btns .btn-success:hover {
    border-color: #469b1f;
}

#search-btns .btn-info {
    border-color: #2980b9;
}

#search-btns .btn-info:hover {
    border-color: #1970a9;
}

#search-btns .btn-warning {
    border-color: #f093fb;
}

#search-btns .btn-warning:hover {
    border-color: #e083eb;
}

#search-btns .btn-default {
    border-color: #4facfe;
}

#search-btns .btn-default:hover {
    border-color: #3f9cee;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .input-group-lg > .form-control, 
    .input-group-lg > .input-group-addon, 
    .input-group-lg > .input-group-btn > .btn {
        height: auto;
        padding: 10px;
        font-size: 16px;
    }
    
    .table {
        font-size: 18px;
    }
    
    #lianjie {
        padding: 5px;
        display: block;
        margin-bottom: 5px;
    }
    
    /* Mobile Button Styles */
    #search-btns {
        gap: 0;
        margin: 15px 0;
        padding: 0 15px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    #search-btns .btn {
        margin: 0;
        padding: 14px 20px;
        border: 2px solid #333;
        border-radius: 0;
        font-size: 18px;
        font-weight: 700;
        font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
        color: #000;
        background-color: #fff;
        flex: 1;
    }
    
    /* First Button Left Radius */
    #search-btns .btn:first-child {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }
    
    /* Last Button Right Radius */
    #search-btns .btn:last-child {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }
    
    /* Middle Buttons Remove Borders */
    #search-btns .btn:not(:first-child):not(:last-child) {
        border-left: none;
    }
    
    /* All Middle Buttons (Except Kuaishou) Remove Left Border */
    #search-btns .btn:not(:first-child):not(:last-child):not(#kuaishou) {
        border-left: none;
    }
    
    /* Kuaishou Button Special Handling */
    #search-btns #kuaishou {
        border-left: none;
    }
    
    #search-btns .btn:hover {
        background-color: #4e6ef2;
        color: #fff;
        z-index: 1;
    }
}