/* 深色科技风格 - Dark Tech Theme for OneNav baisu */
/* 基于网址之家 urlzj.com 风格改造 */

@charset "utf-8";
* {
    padding: 0;
    margin: 0;
    font-family: "microsoft yahei", Arial, "PingFang SC", SimHei, SimSun;
    box-sizing: border-box;
    font-size: 14px;
}

i.fa {
    line-height: inherit;
}

/* 优设标题黑 */
@font-face {
    font-family: youshe;
    src: url('../fonts/youshe.ttf');
}

input:focus,
button:focus {
    outline: none;
}

textarea:focus {
    outline: none;
}

/* ==================== 深色科技风格主样式 ==================== */

/* 深色渐变背景 - 深邃藏蓝到浅灰 */
body {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 40%, #415a77 80%, #778da9 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 星点光效背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3) 1px, transparent 1px),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,0.25) 1px, transparent 1px),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.15) 1px, transparent 1px),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(1.5px 1.5px at 15% 70%, rgba(255,255,255,0.25) 1px, transparent 1px),
        radial-gradient(1.5px 1.5px at 45% 10%, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(1.5px 1.5px at 75% 55%, rgba(255,255,255,0.3) 1px, transparent 1px),
        radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.18) 1px, transparent 1px),
        radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.22) 1px, transparent 1px),
        radial-gradient(1px 1px at 5% 85%, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(1px 1px at 60% 95%, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}

/* 光晕效果 */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 200, 150, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 150, 200, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

img {
    border: none;
}

li {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

.cl {
    clear: both;
}

.kongs,
.kongs:hover {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ==================== 左侧分类栏 ==================== */
header {
    width: 260px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 9;
    border-radius: 0 16px 16px 0;
    margin: 15px 0;
    overflow: hidden;
}

header .logo {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .logo a {
    display: block;
    width: 100%;
    letter-spacing: 2px;
    line-height: 60px;
    font-family: youshe;
    font-size: 36px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 200, 150, 0.5);
}

header .typelist {
    width: 100%;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 10px 0;
}

header .typelist::-webkit-scrollbar {
    width: 4px;
}

header .typelist::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

header .typelist::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 150, 0.3);
    border-radius: 4px;
}

header .typelist p {
    display: block;
    width: 100%;
}

header .typelist p a {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    line-height: 42px;
    transition: all 0.3s ease;
    padding: 0 20px;
    border-radius: 0;
}

header .typelist p a:hover,
header .typelist p.active a {
    color: #00c896;
    background: rgba(0, 200, 150, 0.1);
    border-left: 3px solid #00c896;
}

header .typelist p i {
    display: block;
    margin-right: 10px;
    font-size: 16px;
    width: 30px;
    line-height: 42px;
    text-align: center;
}

header .typelist p.login {
    display: none;
}

/* 收起按钮 */
header .collapse-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

header .collapse-btn:hover {
    color: #00c896;
    background: rgba(0, 200, 150, 0.1);
}

/* ==================== 顶部导航栏 ==================== */
nav.main-top {
    width: calc(100% - 290px);
    margin: 15px 15px 15px 275px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ==================== 搜索区 ==================== */
nav.main-top .search {
    display: flex;
    justify-content: flex-start;
    position: relative;
    align-items: center;
    flex: 1;
}

nav.main-top .search input {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0 20px 0 45px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

nav.main-top .search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

nav.main-top .search input:focus {
    border-color: #00c896;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(0, 200, 150, 0.2);
}

nav.main-top .search button {
    width: 120px;
    height: 44px;
    text-align: center;
    border: none;
    background: linear-gradient(135deg, #00c896 0%, #00a67d 100%);
    cursor: pointer;
    color: white;
    border-radius: 22px;
    transition: all 0.3s ease;
    margin-left: 15px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.3);
}

nav.main-top .search button:hover {
    background: linear-gradient(135deg, #00e0a6 0%, #00c896 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 150, 0.4);
}

/* 搜索引擎切换 */
.search-engines {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.search-engines .engine-btn {
    padding: 6px 14px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-engines .engine-btn:hover,
.search-engines .engine-btn.active {
    background: rgba(0, 200, 150, 0.15);
    color: #00c896;
    border-color: rgba(0, 200, 150, 0.3);
}

nav .main-top-r {
    padding-right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav .main-top-r span,
nav .main-top-r a {
    display: block;
    line-height: 1;
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 10px;
}

nav .main-top-r span i,
nav .main-top-r a i {
    display: block;
    font-size: 20px;
}

nav .main-top-r span:hover,
nav .main-top-r a:hover {
    color: #00c896;
    background: rgba(0, 200, 150, 0.1);
}

/* ==================== 通知栏 ==================== */
.notice-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 85px 15px 15px 275px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.notice-bar .notice-icon {
    font-size: 18px;
}

.notice-bar .notice-text {
    color: #333;
    font-size: 14px;
    flex: 1;
}

.notice-bar .notice-close {
    cursor: pointer;
    color: #999;
    padding: 5px;
    transition: color 0.3s;
}

.notice-bar .notice-close:hover {
    color: #333;
}

/* ==================== 广告栏 ==================== */
.ad-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 15px 15px 275px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ad-bar .ad-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-bar .ad-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.ad-bar .ad-text h4 {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.ad-bar .ad-text p {
    color: #666;
    font-size: 12px;
}

.ad-bar .ad-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
}

.ad-bar .ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.4);
}

/* ==================== 主内容区 ==================== */
.main {
    width: calc(100% - 290px);
    margin-left: 275px;
    padding: 15px;
    position: relative;
    z-index: 1;
}

.site-main {
    width: 100%;
    padding: 0;
}

/* 分类标题 */
.site-main .site-type {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    line-height: 40px;
    padding: 20px 20px 10px;
    margin: 0;
    position: relative;
}

.site-main .site-type::before {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 200, 150, 0.5), transparent);
}

.site-main .site-type.hidden {
    display: none;
}

.site-main .site-type i {
    display: block;
    margin-right: 10px;
    color: #00c896;
}

.site-main .site-type span {
    display: block;
    margin-left: 10px;
    background: linear-gradient(135deg, #00c896 0%, #00a67d 100%);
    width: 26px;
    height: 26px;
    text-align: center;
    line-height: 26px;
    color: white;
    margin-top: 0;
    border-radius: 100%;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.3);
}

.site-main .site-type span i {
    margin-right: 0;
    display: block;
}

/* 标签切换 */
.category-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    overflow-x: auto;
}

.category-tabs .tab-btn {
    padding: 6px 16px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.category-tabs .tab-btn:hover,
.category-tabs .tab-btn.active {
    background: rgba(0, 200, 150, 0.15);
    color: #00c896;
    border-color: rgba(0, 200, 150, 0.3);
}

/* 链接列表 */
.site-main .site-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px 20px;
}

.site-main .site-list .list {
    width: calc(16.66% - 15px);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0;
    position: relative;
}

.site-main .site-list .list.hidden {
    display: none;
}

.site-main .site-list .list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 10px;
    text-align: center;
}

.site-main .site-list .list p.name {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 5px;
}

.site-main .site-list .list p.name img {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.site-main .site-list .list:hover {
    background: rgba(0, 200, 150, 0.1);
    border-color: rgba(0, 200, 150, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 200, 150, 0.15);
}

.site-main .site-list span.private {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* 查看更多 */
.view-more {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s;
}

.view-more:hover {
    color: #00c896;
}

/* ==================== 底部 ==================== */
.footer {
    height: 60px;
}

footer {
    width: calc(100% - 290px);
    margin-left: 275px;
    padding: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    position: relative;
    z-index: 1;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
}

footer a:hover {
    color: #00c896;
}

.header {
    display: none;
}

.tool-bars {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.tool-bars p {
    display: block;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00c896 0%, #00a67d 100%);
    color: white;
    text-align: center;
    line-height: 45px;
    border-radius: 12px;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 200, 150, 0.3);
    transition: all 0.3s ease;
}

.tool-bars p:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 200, 150, 0.4);
}

.tool-bars p i {
    display: block;
    line-height: 45px;
    font-size: 18px;
}

.tool-bars p.scroll_top {
    display: none;
}

/* 为空 */
#holmes-placeholder {
    width: 100%;
    text-align: left;
}

/* ==================== 响应式排版 ==================== */
@media only screen and (max-width: 1440px) {
    .site-main .site-list .list {
        width: calc(20% - 15px);
    }
}

@media only screen and (max-width: 1200px) {
    footer {
        margin-left: 0;
        width: 100%;
    }
    
    header {
        width: 65%;
        left: -100%;
        transition: all 0.3s ease;
        margin: 0;
        border-radius: 0;
    }
    
    header.show {
        left: 0;
    }
    
    header .logo a {
        line-height: 60px;
        font-size: 36px;
        padding-left: 8%;
    }
    
    header .typelist p a {
        padding-left: 8%;
    }
    
    header .typelist p.login {
        display: block;
    }
    
    nav.main-top {
        width: 100%;
        margin: 15px;
        padding: 15px 20px;
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.08);
    }
    
    nav .main-top-r {
        display: none;
    }
    
    nav.main-top .search {
        flex-wrap: wrap;
        padding: 0;
    }
    
    nav.main-top .search input {
        width: 100%;
        max-width: none;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    nav.main-top .search button {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .search-engines {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .notice-bar,
    .ad-bar {
        margin: 15px;
    }
    
    .main {
        width: 100%;
        margin-left: 0;
        padding: 10px;
    }
    
    .site-main {
        padding: 0;
    }
    
    .site-main .site-list {
        width: 100%;
        gap: 10px;
    }
    
    .site-main .site-list .list {
        width: calc(50% - 10px);
        margin-bottom: 0;
    }
    
    .site-main .site-list .list p.name {
        font-size: 12px;
    }
    
    .header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        padding: 0 4%;
        border-radius: 16px;
        margin-bottom: 10px;
    }
    
    .header .logo a {
        display: block;
        width: 100%;
        letter-spacing: 2px;
        line-height: 60px;
        font-family: youshe;
        font-size: 32px;
        color: #fff;
    }
    
    .header .nav-bar {
        line-height: 60px;
        padding: 0 4%;
        color: #fff;
        cursor: pointer;
    }
    
    .header .nav-bar i {
        display: block;
        line-height: 60px;
        font-size: 24px;
    }
    
    .tool-bars {
        bottom: 15px;
        right: 15px;
    }
    
    .tool-bars p {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    .tool-bars p i {
        line-height: 40px;
        font-size: 16px;
    }
}

/* 移动端适配 */
@media only screen and (max-width: 768px) {
    .site-main .site-list .list {
        width: calc(50% - 8px);
    }
    
    .notice-bar,
    .ad-bar {
        margin: 10px;
        padding: 10px 15px;
    }
    
    .ad-bar .ad-text h4 {
        font-size: 13px;
    }
    
    .ad-bar .ad-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ==================== 增强移动端适配 ==================== */

/* 平板设备 (768px - 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    header {
        width: 200px;
    }
    
    nav.main-top {
        width: calc(100% - 230px);
        margin-left: 215px;
    }
    
    .main {
        margin-left: 215px;
        width: calc(100% - 230px);
    }
}

/* 手机设备 (<768px) */
@media only screen and (max-width: 768px) {
    /* 隐藏PC端顶部导航 */
    nav.main-top {
        display: none;
    }
    
    /* 显示移动端头部 */
    .header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: rgba(13, 27, 42, 0.95);
        backdrop-filter: blur(20px);
        z-index: 1001;
        padding: 0 15px;
        align-items: center;
        justify-content: space-between;
    }
    
    .header .logo {
        flex: 1;
    }
    
    .header .logo img {
        height: 35px !important;
    }
    
    .header .nav-bar {
        font-size: 24px;
        color: rgba(255,255,255,0.8);
        cursor: pointer;
        padding: 10px;
    }
    
    /* 侧边栏在移动端全屏覆盖 */
    header {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 1002;
        transition: left 0.3s ease;
    }
    
    header.show {
        left: 0;
    }
    
    header.collapsed {
        left: -260px;
    }
    
    /* 收起按钮 */
    header .collapse-btn {
        display: none;
    }
    
    /* 主内容区 */
    .main {
        margin: 60px 10px 10px 10px !important;
        width: calc(100% - 20px) !important;
        padding-top: 10px;
    }
    
    /* 通知栏 */
    .notice-bar {
        margin: 60px 10px 0 10px !important;
    }
    
    /* 广告栏 */
    .ad-bar {
        margin: 10px 10px 0 10px !important;
    }
    
    /* 分类标题 */
    .site-type {
        font-size: 16px;
        padding: 10px;
    }
    
    /* 链接卡片 */
    .site-main .site-list .list {
        width: calc(50% - 6px) !important;
        margin: 3px !important;
    }
    
    .site-main .site-list .list a {
        padding: 12px 8px !important;
    }
    
    .site-main .site-list .list .name {
        font-size: 12px !important;
    }
    
    .site-main .site-list .list img {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* 底部 */
    footer {
        margin-left: 10px !important;
        width: calc(100% - 20px) !important;
        font-size: 11px;
        padding: 15px 5px;
    }
    
    /* 工具栏 */
    .tool-bars {
        right: 10px !important;
        bottom: 60px !important;
    }
    
    .tool-bars p {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 16px !important;
    }
    
    /* 搜索引擎选择器 */
    .search-engines {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .search-engines .engine-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}

/* 小屏手机 (<480px) */
@media only screen and (max-width: 480px) {
    .site-main .site-list .list {
        width: calc(50% - 4px) !important;
    }
    
    .site-main .site-list .list a {
        padding: 10px 5px !important;
    }
    
    .site-main .site-list .list .name {
        font-size: 11px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .notice-bar {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    .notice-bar .notice-icon,
    .notice-bar .notice-text {
        font-size: 12px;
    }
    
    .ad-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .ad-bar .ad-btn {
        width: 100%;
    }
}
