/* iframe 填满 */
#mainFrame{
    width:100%;
    height:calc(100dvh - 60px);
    border:none;
}
@media (prefers-color-scheme: light) {
    html{
    --bg-color1:#e9eef9;
    --bg-color2:#e9eef9;
    --bg-color3:#fff;
    --bg-color4:#fff;
    --bg-color5:#E0E7F5;
    --bg-color6:#e8eefa;
    --bg-color7:#fff;
    --bg-color8:#C0F2DA;
    --bg-color9:#ffffff;
    --bg-color10:#f5f8ff;

    --text-color1: #FFFFFFCC;
    --text-color2: #849448;
    --text-color3: #000000B2;
    --text-color4: #333;
    --text-color5: #6C7892;
    --text-color6: #888888;
    --text-color7: #000000CC;
    --text-color8: #00000099;

    --text-color9: #333333;
    --text-color10: #000000E5;
    --text-color11: #00000066;
    --text-color12: #666;
    --text-color13: #666;
    }
    
    }
    /*dark : 深色*/
@media (prefers-color-scheme: dark) { 
    html {
        --bg-color1:#202023;
    --bg-color2:#282f4a;
    --bg-color3:#171B2A;
    --bg-color4:#2e313c;
    --bg-color5:#464B5C;
    --bg-color6:#3a3e4a;
    --bg-color7:#2e313c;
    --bg-color8:#2E313C;
    --bg-color9:#2e313c;
    --bg-color10:#323644;

    --text-color:#FFFFFFCC;
    --text-color2:#CED8AB;
    --text-color3:#FFFFFFCC;
    --text-color4:#FFFFFF;
    --text-color5:#B8C3EE;
    --text-color6:#FFFFFF80;

    --text-color8:#FFFFFF99;

    --text-color9:#FFFFFFCC;
    --text-color10:#FFFFFFE5;
    --text-color11:  #FFFFFF66;
    --text-color12: #FFFFFFB2;
    --text-color13: #FFFFFFCC;
    }
}



.zone-item .zone-text-wrap p {
    font-size: 14px;
}
.zone-item-btn-wrap {
    padding: 0 8px;
}
.zone-item-btn {
    width: 100%;
    border-radius: 4px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    background: linear-gradient(270deg, #DFB454 0%, #FC8D0A 100%);
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad3-item {
    width: 202px;
    margin-right: 4px;
    background-color: var(--bg-color6);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 8px;
    display: block;
    position: relative;
}
.ad3-item-img {
    width: 202px;
    height: 220px;
}
.ad3-item-a {
    position: absolute;
    top: 190px;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    padding: 0 2px;
    width: 100%;
}

.like-wrap, .add-wrap {
    width: 50%;
    height: 24px;
    font-size: 14px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}
.like-wrap {
    background: url(/img_ads/g-left.svg) center / 100% 100% no-repeat;
}
.add-wrap{
    background: url(/img_ads/g-right.svg) center/100% 100% no-repeat;
}
.zone-text-wrap {
    padding: 4px 16px 8px 16px;
}
.zone-item .zone-text-wrap p {
    font-size: 14px;
}

.zone-text-wrap .zone1-item-name-wrap span {
    font-size: 20px;
    text-align: left;
}
.zone1-item-name {
    font-weight: 700;
    color: #F3533B;
}

.zone1-item-color1 {
    color: #8996C7;
}

.zone1-item-color2 {
    color: var(--text-color8);
}


    .nav-container_img {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      margin: 0 auto;
      padding: 5px 0;

    }
    .nav-item_img {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 5px 0;
      text-align: center;
      width: 20%;
      margin: 5px 0;
    }
    
    .nav-link_img {
      text-decoration: none;
      /*color: #333;*/
      transition: all 0.3s ease;
    }
    
    .nav-link_img:hover {
      transform: translateY(-3px);
      opacity: 0.8;

    }
    
    .nav-icon_img {
      width: 80px;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .nav-icon_img img {
      max-width: 100%;
      max-height: 100%;
      border-radius: 12px;
      object-fit: contain;
    }
    
    .nav-text_img {
      width: 80px;
      height: 25px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      margin-top: 5px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    

    @media (max-width:450px) {
      .nav-icon_img {
          width: 65px;
          height: 65px;
      }

      .nav-text_img {
          width: 65px;
          height: 20px;
      }

    }
    




.navbar_text {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 栏目之间的间隔 */
    padding-top: 6px;
    padding-bottom: 6px;
}

.nav-item_text {
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    border-radius: 3px;
    flex: 1 0 calc(19% - 6px + 6px/5); /* 5个栏目 */
    min-width: 0; /* 允许内容收缩 */
    transition: background-color 0.3s;
}

.nav-item_text:hover {
    background-color: #3a3a44;
    color: white;
}




.navbar_vip {
    display: flex;
    flex-wrap: wrap;
    background-color: #25252b;
    color: white;
    padding: 5px 5px 0px 5px;
    border-bottom: 1px #fd006f solid;
}

.home_vip {
    width: 50px;
    padding: 5px 5px 0px 5px;
    text-align: center;
    background-color: #fd006f;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}

.nav-items_vip {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
}

.nav-item_vip {
    color: white;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    flex-grow: 1;
    width: calc(20%); /* 默认5个栏目 */
}

.nav-item_vip:hover {
    background-color: #fd006f;
    border-radius: 2px;
    color: white;
}


/* 小屏幕样式 (例如手机) */
@media (max-width: 450px) {
    .home_vip {
        width: 40px;
    }
    .nav-item_vip {
        padding: 3px;
        width: calc(18%); /* 默认5个栏目 */
    }
}



.navbar_free {
    display: flex;
    flex-wrap: wrap;
    background-color: #25252b;
    color: white;
    padding: 3px 3px 0px 3px;
    border-bottom: 1px #fd006f solid;
}

.home_free {
    width: 50px;
    padding: 3px 3px 0px 3px;
    text-align: center;
    background-color: #fd006f;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}

.nav-items_free {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
}

.nav-item_free {
    color: white;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    flex-grow: 1;
    min-width: calc(18%); /* 默认5个栏目 */

}

.nav-item_free:hover {
    background-color: #fd006f;
    border-radius: 2px;
    color: white;
}
/* 小屏幕样式 (例如手机) */
@media (max-width: 450px) {
    .home_free {
        width: 40px;
    }
    .nav-item_free {
        padding: 3px;
        width: calc(18%); /* 默认5个栏目 */
    }
}





/* 右下角广告 */
.ad-container {
    position: fixed;
    right: 20px;
    bottom: 200px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 30px;
    z-index: 1000;
}

.ad-item {
    position: relative;
    width: 85px;  /* 默认大屏幕尺寸 */
    height: 85px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    background-color: #ff6b81;
}

/* 中等屏幕样式 (例如平板) */
@media (max-width: 992px) {
    .ad-container {
        gap: 15px;  /* 缩小间距 */
    }
    
    .ad-item {
        width: 65px;
        height: 65px;
    }
    
    .close-btn {
        top: -6px;
        right: -6px;
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

/* 小屏幕样式 (例如手机) */
@media (max-width: 768px) {
    .ad-container {
        right: 5px;
        bottom: 150px;
    }
}


/* 底部固定导航栏 - 简单flex居中版本 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    border-top: 1px solid #eee;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    padding: 3px 3px;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 30px;
    text-align: center;
}

.bottom-nav .nav-item:active {
    background: #f5f5f5;
    transform: scale(0.95);
}

.bottom-nav .nav-item.active {
    color: #ff5e3a;
    background: #424242;
}

.bottom-nav .nav-text {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.content {
    padding: 30px 5px 30px;
}




        
        /* 顶部容器 - 第二行布局 */
        .top-container {
            width: 100%;
            max-width: 520px;
        }
        
        /* 顶部栏样式 */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 40px;
            padding: 0 3px;
            background-color: white;
            border-bottom: 1px solid #f0f0f0;
            position: static;
        }
        /* 顶部导航栏样式 */
        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: transparent;
            padding: 5px 3px;
            border-top: 1px solid #eaeaea;
            position: static;
        }
        
        .nav-scroll-container {
            flex: 1;
            overflow-x: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
        }
        
        .nav-scroll-container::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Edge */
        }
        
        .top-nav-items {
            display: flex;
            list-style: none;
            gap: 0;
            white-space: nowrap;
            padding: 0 5px;
        }
        
        .top-nav-item {
            font-size: 16px;
            /*color: #333;*/
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 4px;
            border-radius: 6px;
            flex-shrink: 0;
            position: relative;
        }
        
        .top-nav-item:active {
            background-color: rgba(24, 144, 255, 0.08);
        }
        
        .top-nav-item.active {
            font-size: 20px;
            font-weight: bold;
            color: #FFFFFF;
        }
        
        .more-btn {
            cursor: pointer;
            font-size: 20px;
            color: #666;
            padding: 8px;
            border-radius: 6px;
            transition: all 0.3s;
            background-color: rgba(0, 0, 0, 0.03);
            display: flex;
            align-items: center;
            justify-content: center;
            width:30px;
            height: 30px;
            margin-left: 10px;
            flex-shrink: 0;
        }
        
        .more-btn:active {
            background-color: rgba(0, 0, 0, 0.08);
        }

        
    
        /* 底部弹出菜单样式 */
        .bottom-menu {
            position: fixed;
            bottom: -100%;
            left: 0;
            width: 98%;
            max-width: 520px;
            background-color: white;
            box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
            transition: bottom 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
            z-index: 1000;
            padding: 20px 0 30px;
            border-radius: 20px 20px 0 0;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .bottom-menu.active {
            bottom: 55px;
        }
        
        .menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px 15px;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 20px;
        }
        
        .menu-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        
        
        .channels-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            padding: 0 20px;
        }
        
.channel-item {
    position: relative;
    text-align: center;
    padding: 10px 5px;
    background-color: #616161;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #333;
    overflow: hidden; /* 关键：隐藏超出的部分 */
}

.channel-item.vip::before {
    content: "V";
    position: absolute;
    background: linear-gradient(135deg, #fd006f, #ff4d94);
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    top: -18px;
    left: -18px;
    height: 40px;
    width: 40px;
    line-height: 60px;
    transform: rotate(-45deg);
    z-index: 1;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
        
        .channel-item:active {
            background-color: #e6f7ff;
            transform: scale(0.98);
        }
        
        /* 遮罩层 */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }
        
        .overlay.active {
            display: block;
        }
        
        /* 移动端适配也需要相应调整 */
        @media (max-width: 540px) {
            .menu-search input {
                height: 36px;
                font-size: 16px;
                padding: 0 40px 0 12px; /* 修改这里：右侧内边距从90px改为40px */
            }
            
            .ewave-search-dropdown {
                width: 50px;
                right: 40px; /* 修改这里：从45px改为40px */
            }
            
            .menu-search button {
                width: 40px; /* 修改这里：从45px改为40px */
                height: 36px;
            }
        }
        
        @media (max-width: 375px) {
            .menu-search input {
                height: 32px;
                padding: 0 35px 0 10px; /* 修改这里：右侧内边距从80px改为35px */
                font-size: 12px;
            }
            
            .ewave-search-dropdown {
                width: 45px;
                right: 35px; /* 修改这里：从40px改为35px */
                font-size: 12px;
            }
            
            .menu-search button {
                width: 35px; /* 修改这里：从40px改为35px */
                height: 32px;
            }
        }


