body {
            height: 100%;
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
        }
        .header {
            background-color:transparent;
            padding: 2px;
            text-align: center;
            background-color: rgba(255, 255, 255, 0.25);

        }
        .top-image {
            width: 100%;
            border-radius: 8px;
            height: auto;
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: white;
            border-radius: 15px;
            padding: 20px;
            margin: 20px;
            text-align: center;
            position: relative;
        }

        .close-modal {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            font-size: 20px;
            color: #333;
        }
        
        .sponsor-button {
            display: block;
            margin: 20px auto;
            padding: 10px 20px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .sponsor-button:hover {
            background-color: #0056b3;
        }
        .sidebar {
            width: 250px;
            height: 100%; /* 璁剧疆楂樺害 */
            position: fixed;
            z-index: 997;
            top: 0;
            left: -250px;
            background-color: white;
            overflow-x: hidden;
            transition: 0.3s;
            border: none;
        }
        .sidebar ul {
            list-style-type: none;
            font-size: 14px;
            padding: 0;
        }
        .sidebar li {
            cursor: pointer;
            font-size: 14px;
            padding: 5px;
        }
        .sidebar li:hover {
            background-color: #f1f1f1;
        }
        .open-status {
            margin-left: 5px;
            margin-bottom: 5px;
            font-size: 8px;
            color: #999;
        }
        .openbtn {
            border-radius: 2px;
            font-size: 20px;
            cursor: pointer;
            background-color: #42b983;
            color:  white;
            padding: 5px 10px;
            border: none;
        }

        .openbtn:hover {
            background-color: #42b983;
        }
        /*鎷栧姩*/
        #draggable {
            position: absolute;
            cursor: move;
            z-index: 9;
            background-color: Transparent;
            border: none;
            text-align: center;
        }
        .shuiping{ /*姘村钩甯冨眬*/
            display: inline-block;
            display: flex; /* 绌洪棿骞冲潎鍒嗛厤 justify-content: space-between; */
        }
        .chuizhi{ /*鍨傜洿甯冨眬*/
            display: block;
            float: none;
            display: flex;
            flex-direction: column;
        }
        .button {
            border: none;
            text-decoration:none;
            background-color: transparent;
        }
        .divallhtml {
            width: 100%;
            height: 100%;
            padding: 2px;
            display: flex; /* 浣跨敤 flexbox */
            flex-wrap: wrap; /* 鍏佽鎹㈣鎹 */
            justify-content: space-between; /* 绌洪棿鍧囧寑鍒嗗竷 */
            
        }

        @media (max-width: 768px) {
            .divapi {
                width: calc(50% - 20px); /* 鍦ㄥ皬灞忓箷涓婁袱涓竴琛 */
            }
        }

        @media (max-width: 480px) {
            .divapi {
                width: calc(100% - 20px); /* 鍦ㄦ瀬灏忓睆骞曚笂涓€涓竴琛 */
            }
        }
        .openapibutton {
            margin-left: 5px;
            margin-top: 4px;
            position: relative;
            font-family: inherit;
            font-size: 18px;
            border-radius: 5px;
            height: 20px;
            width: 30px;
            z-index: 1;
            color: white;
            cursor: pointer;
            overflow: hidden;
            border: none;
        }

        .openapibutton .text {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            font-size: 10px;
            line-height: 30px;
            border-radius: 5px;
            border: none;
            background: linear-gradient(
            rgba(255, 255, 255, 0.473),
            rgba(150, 150, 150, 0.25)
            );
            z-index: 1;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .openapibutton .blob {
            position: absolute;
            z-index: -1;
            border-radius: 5px;
            width: 12.5px;
            height: 30px;
            transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
        }

        .openapibutton .blob:nth-child(2) {
            left: 0em;
            top: 0;
            background: #ff930f;
        }

        .openapibutton .blob:nth-child(3) {
            left: 1.8px;
            top: 0;
            z-index: -1;
            background: #bf0fff;
        }

        .openapibutton .blob:nth-child(4) {
            left: 4px;
            top: -1px;
            background: #ff1b6b;
        }

        .openapibutton .blob:nth-child(5) {
            top: 1.6px;
            background: #0061ff;
        }
                                  
        .openapibutton:hover .blob:nth-child(2) {
            background: #0061ff;
        }

        .openapibutton:hover .blob:nth-child(3) {
            background: #ff1b6b;
        }

        .openapibutton:hover .blob:nth-child(4) {
            background: #bf0fff;
        }

        .openapibutton:hover .blob:nth-child(5) {
            background: #ff930f;
        }

        .openapibutton:hover .blob {
            transform: scale(1.3);
        }

        .openapibutton:active {
            border: 2px solid white;
        }
        .p{
            margin-left: 32px;
        }
        .active {
            display: block;
        }
        .fonttext{
            text-decoration: none;
            padding: 10px;
        }
        .tubiaoicon{
            padding: 10px;
        }
        .allgengduo{
            height: 100%;
            display: none;
        }
        .juzhong{
            text-align: center;
        }
        input {
            outline: none;
        }        
        input[type=search] {
          -webkit-appearance: textfield;
          -webkit-box-sizing: content-box;
          font-family: inherit;
          font-size: 100%;
        }
        input::-webkit-search-decoration,
        input::-webkit-search-cancel-button {
          display: none; 
        }        


input[type=search] {
  background: #ededed url() no-repeat 9px center;
  border: solid 1px #ccc;
  padding: 9px 10px 9px 32px;
  width: 55px;
  
  -webkit-border-radius: 10em;
  -moz-border-radius: 10em;
  border-radius: 10em;
  
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  transition: all .5s;
}
input[type=search]:focus {
  width: 150px;
  background-color: #fff;
  border-color: #66CC75;
  
  -webkit-box-shadow: 0 0 5px rgba(109,207,246,.5);
  -moz-box-shadow: 0 0 5px rgba(109,207,246,.5);
  box-shadow: 0 0 5px rgba(109,207,246,.5);
}


input:-moz-placeholder {
  color: #999;
}
input::-webkit-input-placeholder {
  color: #999;
}

        .closebtn {
            position: absolute;
            top: 0;
            right: 25px;
            font-size: 36px;
            text-decoration:none;
            color: gray;
        }
        .topheader {
            background-color: white;
            padding: 15px;
            position: fixed;
            top: 0;
            width: 100%;
            height: 70px;
            left: 0;
            font-size: 16px;
            z-index: 998; /* 纭繚杩欎釜鍊奸珮浜庡叾浠栧厓绱犵殑z-index鍊 */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        }
        #percentageCounter {
            position: fixed;
            left: 0;
            top: 0;
            height: 3px;
            z-index: 99999;
            background-image: linear-gradient(to right, #E3F2FD, #BBDEFB, #90CAF9, #64B5F6, #26A69A, #009688, #00796B, #388E3C, #2E7D32, #69F0AE);
        }
        .cbltubiao{
            margin-right:7px;
            margin-bottom:3px;
        }
        /* 弹窗 */
.btn-large,.load-all,.popup-btn,.popup-btn-o,.page-number {
    padding:0 15px;
    line-height:40px;
    font-size:14px;
    display:inline-block;
    border-radius:10px
}
.btn-gray:hover,.more:hover,.load-all:hover,.module-tab-item:hover,.module-blocklist a:hover,.video-info-aux .tag-link:hover,.page-number:hover {
    background:#eaedf1
}
.popup {
    box-shadow:0 .25rem .5rem rgba(0,0,0,.05),0 1.5rem 2.2rem rgba(0,0,0,.1)!important;
    padding:0 30px;
    background:#fff;
    width:400px;
    position:fixed;
    top:50%;
    left:50%;
    z-index:999999;
    transform:translateX(-50%) translateY(-50%);
    margin:0 auto;
    border-radius:18px
}
.popup::after {
    content:'';
    height:80px;
    width:100%;
    background:#eaedf1;
    position:absolute;
    top:0;
    left:0;
    z-index:-1;
    border-radius:18px 18px 0 0
}
.popup-header {
    line-height:40px;
    text-align:center
}
.popup-title {
    position:relative;
    font-size:18px;
    font-weight:900;
    display:inline-block
}
.popup-title::after {
    content:'';
    position:absolute;
    width:100%;
    height:30%;
    background:#fde6dd;
    border-radius:5px;
    left:0;
    bottom:5px;
    z-index:-1
}
.close-popup:hover {
    background:#fff
}
.close-popup i {
    transform:scale(.88);
    font-size:12px;
    color:#fff
}
.close-popup:hover i {
    color:#ff2a14
}
.popup-icon {
    width:100%;
    text-align:center;
    height:220px;
    margin:-60px 0 0
}
.popup-icon img {
    height:220px
}
.popup-main {
    padding-bottom:20px
}
.popup-main p {
    padding:12px 0 0
}
.popup-main p a {
    color:#ff2a14
}
.popup strong {
    color:#ff2a14
}
.popup-footer {
    padding:10px 0 30px;
    display: flex;
    justify-content: space-between;
}
.popup-footer p {
    margin-top:10px
}
.popup-btn {
    font-weight:700;
    border-radius:50px;
    cursor:pointer;
    min-width: 120px;
    text-align: center;
}
.popup-btn-close {
    background: #f1f1f1;
    color: #333;
}
.popup-btn-close:hover {
    background: #e0e0e0;
}
.popup-btn-dismiss {
    background: #ff2a14;
    color: #fff;
}
.popup-btn-dismiss:hover {
    background: #e02613;
}
.popup-btn-o {
    color:#ff2a14;
    font-weight:700;
    width:50%;
    margin:5px 5px;
    cursor:pointer
}
.popup-btn-o::after {
    border-color:#ff2a14;
    border-radius:50px
}
.popup-msg {
    position:fixed;
    width:280px;
    z-index:9999999;
    height:auto;
    padding:30px;
    top:50%;
    left:50%;
    margin:-50px 0 0 -140px;
    text-align:center;
    color:#fff;
    background-color:rgba(7,7,10,.92);
    border-radius:10px
}
.popup-tips::after {
    background:0 0
}

/* 修改卡片样式 */
.api-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  margin: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: calc(33.33% - 30px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.api-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.api-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.api-card:hover::before {
  opacity: 1;
}

.api-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #2c3e50;
  position: relative;
  z-index: 2;
}

.api-status {
  display: flex;
  gap: 8px;
  z-index: 2;
}

.api-stats {
  display: flex;
  align-items: center;
  color: #7f8c8d;
  font-size: 14px;
  margin: 10px 0;
  z-index: 2;
}

.stats-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  mask: url('data:image/svg+xml,<svg...>') no-repeat 50% 50%;
  -webkit-mask: url('data:image/svg+xml,<svg...>') no-repeat 50% 50%;
}

.api-desc {
  color: #34495e;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  z-index: 2;
}

.new-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .api-card {
    width: calc(50% - 30px);
  }
}

@media (max-width: 640px) {
  .api-card {
    width: calc(100% - 30px);
  }
}

/* 分页控件响应式样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    padding: 0 15px;
}

/* 基础按钮样式 */
.pagination button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    min-width: 80px;
    white-space: nowrap;
}

.pagination button:hover {
    background: #f5f5f5;
}

/* 输入框和下拉框样式 */
.pagination input,
.pagination select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 100px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .pagination {
        gap: 5px; /* 减小间距 */
    }
    
    .pagination button {
        padding: 6px 12px;
        min-width: 60px;
        font-size: 14px;
    }
    
    .pagination input,
    .pagination select {
        padding: 6px;
        width: 80px;
        font-size: 14px;
    }
    
    /* 在特小屏幕上隐藏某些元素 */
    @media screen and (max-width: 480px) {
        .pagination span {
            display: none; /* 隐藏页码显示 */
        }
        
        .pagination input {
            width: 60px; /* 进一步缩小输入框 */
        }
    }
}

/* API 标签样式优化 */
.api-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 4px;
    font-weight: 500;
}

/* 状态标签 */
.tag-status-normal {
    background-color: #e6f7e6;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.tag-status-maintenance {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.tag-status-disabled {
    background-color: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

/* 密钥标签 */
.tag-key-required {
    background-color: #f0f5ff;
    color: #2f54eb;
    border: 1px solid #adc6ff;
}

/* 热度标签 */
.tag-hot {
    background-color: #fff2e8;
    color: #fa541c;
    border: 1px solid #ffbb96;
}

.tag-super-hot {
    background-color: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

.tag-viral {
    background: linear-gradient(45deg, #ff4d4f, #ff7875);
    color: white;
    border: none;
}

/* 开源标签 */
.tag-opensource {
    background-color: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

/* 新API标签 */
.new-badge {
    background-color: #f50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 4px;
}
/* 热门卡片样式 */
.popular-card {
    background: rgba(255, 192, 203, 0.8) !important;
    border: 1px solid #ff69b4 !important;
    animation: pulse 2s infinite;
}

/* 火焰徽章样式 */
.fire-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    animation: flame 1s infinite alternate;
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 105, 180, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0);
    }
}

/* 火焰动画效果 */
@keyframes flame {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 调整卡片位置 */
.api-card {
    position: relative;
    /* 其他原有样式保持不变 */
}

.api-card-header {
    position: relative;
    /* 其他原有样式保持不变 */
}
/* 黑夜模式样式 */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .api-card {
    background: rgba(30, 30, 30, 0.8) !important;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .api-title,
.dark-mode .api-desc {
    color: #e0e0e0;
}

.dark-mode .sidebar {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode .sidebar li {
    color: #e0e0e0;
}

.dark-mode .sidebar li:hover {
    background-color: #2d2d2d;
}

.dark-mode .topheader {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode .popup {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode .popup::after {
    background-color: #2d2d2d;
}

.dark-mode input[type=search] {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode input[type=search]:focus {
    background-color: #2d2d2d;
    border-color: #66CC75;
}

/* 黑夜模式切换按钮 */
#dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4e7cf2;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

#dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode #dark-mode-toggle {
    background-color: #f5f5f5;
    color: #333;
}
/* 广告卡片增强样式 */
.ad-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(74, 144, 226, 0.2) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.1) !important;
}

.ad-ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    width: 100px;
    padding: 3px 0;
    background: linear-gradient(45deg, #4a90e2, #5bc0de);
    color: white;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-sponsored {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    color: white;
    border: none;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(74, 144, 226, 0.3);
}

.ad-disclaimer {
    font-size: 12px;
    color: #999;
}

/* 黑夜模式下的广告卡片 */
.dark-mode .ad-card {
    background: rgba(40, 40, 50, 0.95) !important;
    border: 1px solid rgba(74, 144, 226, 0.1) !important;
}

.dark-mode .ad-card:hover {
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.05) !important;
}

.dark-mode .ad-footer {
    border-top: 1px dashed rgba(74, 144, 226, 0.1);
}
    footer a:hover {
        color: #4CAF50 !important;
    }
    
    /* 响应式调整 */
    @media (max-width: 768px) {
        footer > div {
            grid-template-columns: 1fr 1fr;
        }
    }
    
    @media (max-width: 480px) {
        footer > div {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }