/* Navigation Tabs */
.nav-tabs {
    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;
}

/* 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;
}

/* Body Styles */
body {
    width: 100%;
    font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
    color: black;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.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;
}

/* Jumbotron and Table */
.jumbotron {
    background-color: transparent;
}

.table {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    margin-bottom: 20px;
    font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
}

/* Website List Border */
.website-list {
    border: 2px solid #4e6ef2;
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Table hover effect with gradient color */
.website-list .row a:hover {
    background: linear-gradient(to right, #9b59b6, #ff69b4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Smaller font size for table links */
.website-list .row a {
    font-size: 15px;
    font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
}

/* Enlarge "日常常用网址" font size */
.website-list h3.text-center {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
}

/* 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: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

/* Search Box Focus Effect */
.search-box:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 3px rgba(59, 130, 246, 0.1);
    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 #000;
    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;
}

/* Remove left border for all middle buttons */
#search-btns .btn:not(:first-child) {
    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) {
    .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 {
        width: 100%;
        font-size: 14px;
        font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
    }
    
    #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 {
        padding: 10px 26px;
        font-size: 14px;
        background-color: #fff;
    }
    
    /* 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;
    }
}

/* Tools Header Styles */
.tools-header {
    margin-bottom: 30px;
}

.subtitle {
    margin-bottom: 15px;
}

/* Category Filter Styles */
.category-filter {
    margin-bottom: 25px;
    padding: 12px;
    background-color: transparent;
    border-radius: 8px;
    border: 2px solid #4e6ef2;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.filter-btn {
    padding: 6px 12px;
    background-color: transparent;
    border: 2px solid #4e6ef2;
    border-radius: 4px;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-family: "Alimama ShanHeiTi", "阿里妈妈数黑体", sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn:hover {
    border: 2px solid #9b59b6;
    background: linear-gradient(135deg, #9b59b6, #ff69b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.filter-btn.active {
    background-color: #4e6ef2;
    color: #fff;
    border-color: #4e6ef2;
    box-shadow: 0 2px 4px rgba(78, 110, 242, 0.3);
}

/* Mobile Filter Adjustments */
@media (max-width: 768px) {
    .category-filter {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
        border: 2px solid #4e6ef2;
        background-color: #fff;
        color: #4e6ef2;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .filter-btn:hover {
        background-color: #4e6ef2;
        color: #fff;
    }
    
    .filter-btn.active {
        background-color: #4e6ef2;
        color: #fff;
    }
}

/* 大屏幕自适应 */
@media (max-width: 1500px) {
    .container {
        max-width: 95%;
    }
}

/* 中屏幕自适应 */
@media (max-width: 1200px) {
    .container {
        max-width: 98%;
        padding: 0 15px;
    }
}

/* 平板设备自适应 */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* 移动设备自适应 */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
}

/* Background Layer */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/iHuNav/img/BG.svg');
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}
    .website-list {
      border: 2px solid #4e6ef2;
      border-radius: 10px;
      padding: 20px;
      background-color: rgba(255, 255, 255, 0.2);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      margin-bottom: 30px;
      width: 100%;
      max-width: 1800px;
      margin-left: auto;
      margin-right: auto;
    }
    
    /* Table hover effect with gradient color */
    .website-list .row a:hover {
      background: linear-gradient(to right, #9b59b6, #ff69b4);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    /* Smaller font size for table links */
    .website-list .row a {
      font-size: 15px;
      font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
    }

    /* Enlarge "日常常用网址" font size */
    .website-list h3.text-center {
      font-size: 36px;
      font-weight: bold;
      margin-bottom: 20px;
      font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
    }
    
    .website-list h3 {
      margin-bottom: 25px;
      color: #000;
      font-weight: bold;
      font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
    }
    
    .category-section {
      margin-bottom: 30px;
    }
    
    .category-section h4 {
      margin-bottom: 15px;
      padding-bottom: 8px;
      border-bottom: 2px solid #4e6ef2;
      color: #4e6ef2;
      font-weight: bold;
      font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
    }
    
    .category-section .row {
      margin-bottom: 10px;
    }
    
    .category-section .col-md-2, 
    .category-section .col-sm-4, 
    .category-section .col-xs-6 {
      margin-bottom: 10px;
    }
    
    .category-section a {
      display: block;
      padding: 8px 12px;
      color: #000;
      text-decoration: none;
      border-radius: 4px;
      transition: all 0.3s ease;
      background-color: rgba(255, 255, 255, 0.4);
      border: 2px solid #4e6ef2;
      font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
    }
    
    .category-section a:hover {
      background-color: transparent;
      border: 2px solid #9b59b6;
      color: transparent;
      text-decoration: none;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      background: linear-gradient(135deg, #9b59b6, #ff69b4);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    
    @media (max-width: 768px) {
      .website-list {
        padding: 0 10px;
      }
      
      .category-section h4 {
        font-size: 16px;
      }
      
      .category-section a {
        font-size: 14px;
        padding: 6px 10px;
        font-family: 'Alimama ShanHeiTi', '阿里妈妈数黑体', sans-serif;
      }
    }
