/* ============================================================
   site.css v4.0 — 情色网站大全 全站样式
   ============================================================ */

/* ---- 基础 ---- */
html, body {
    height: 100%;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    background: #1a1a1a;
    color: #ccc;
}
a { color: #fff; }
a:hover { color: #ff0; text-decoration: none; }
a:visited.visited { color: #ff0; }
img { vertical-align: middle; }

/* ---- 顶部彩色链接栏 ---- */
.top-links-bar {
    background: #000;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.top-links-bar::-webkit-scrollbar { display: none; }
.top-links-inner { display: inline-flex; }
.top-link {
    display: inline-block;
    padding: 6px 10px 5px;
    font-size: 17px;
    text-decoration: none !important;
    animation: navGlow 1s ease-out both;
    transition: text-shadow .3s, transform .2s;
}
.top-link:hover {
    text-shadow: 0 0 18px currentColor;
    transform: translateY(-1px);
}
@keyframes navGlow {
    0%   { opacity: 0; text-shadow: 0 0 0 transparent; }
    30%  { opacity: 1; text-shadow: 0 0 14px currentColor; }
    100% { opacity: 1; text-shadow: 0 0 0 transparent; }
}

/* ---- 卡片（分类块） ---- */
.card {
    background: #23262b;
    border: 1px solid #333;
    margin-bottom: .5rem;
}
.card-header {
    background: #2c2f35;
    border-bottom: 1px solid #3a3a3a;
    font-size: .9rem;
}
.card-header a { color: #ddd; }
.card-header a:hover { color: #ff0; }

/* ---- 网站条目 ---- */
.website {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    padding: 4px 0;
    margin: 1px 0;
    font-size: .88rem;
}
.website img, .icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 3px;
}

/* ---- 右侧固定分类导航 ---- */
#cat-nav {
    position: sticky;
    top: 110px;
}
#cat-nav .list-group-item {
    background: #2c2f35;
    border-color: #3a3a3a;
    color: #ccc;
    padding: .4rem .8rem;
    font-size: .85rem;
}
#cat-nav .list-group-item:hover {
    background: #383c44;
    color: #ff0;
}

/* ---- 响应式布局 ---- */
@media (max-width: 576px) {
    .fullwidth {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
}
.row {
    margin-left: -5px;
    margin-right: -5px;
}
[class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

/* ---- 历史访问悬浮条 ---- */
#stats {
    position: fixed;
    bottom: 0; left: 0;
    background: #111;
    border-top: 1px solid #333;
    width: 100%;
    height: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    z-index: 1050;
    -webkit-overflow-scrolling: touch;
}
#stats a {
    display: inline-block;
    color: #aaa !important;
    padding: 7px 10px;
    border-right: 1px solid #2a2a2a;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .8rem;
}
#stats a:hover { background: #222; color: #ff0 !important; }

/* ============================================================
   无广告高清专区 VIP 区域
   ============================================================ */
.vip-section {
    border: 2px solid #d4af37;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1600;
}
.vip-section-header {
    background: linear-gradient(90deg, #5a3e00, #c9960a, #5a3e00);
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .95rem;
    font-weight: 700;
    color: #fff8dc;
    letter-spacing: 1px;
}
.vip-badge {
    font-size: .72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
}
.unlocked-badge { background: rgba(0,0,0,.6); color: #00e676; }
.lock-badge     { background: rgba(0,0,0,.6); color: #ffd700; }
.lock-badge:hover { color: #fff; }

/* vip-body：所有内容的容器，必须 position:relative 供遮罩定位 */
.vip-body { position: relative; }

/* 高清专区网站列表 — 高度跟内容走，不强制拉高 */
.vip-sites {
    padding: 8px 10px 6px;
}

/* 占位行（无 vip_only 数据时） */
.vip-placeholder-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
}
.vip-placeholder-item {
    width: calc(16.66% - 6px);
    height: 26px;
    background: #2a2200;
    border-radius: 4px;
    min-width: 80px;
}

/* 未解锁：内容模糊，并保证最低高度让遮罩按钮能显示 */
.vip-body.locked .vip-sites {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: .5;
    min-height: 110px;
}

/* 遮罩层：覆盖整个 vip-body */
.vip-unlock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.72);
    z-index: 10;
}
.unlock-inner {
    text-align: center;
    padding: 0 16px;
}
.unlock-tip {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
}
.unlock-sub {
    color: #cca800;
    font-size: .82rem;
    margin: 0 0 14px;
}
.btn-unlock {
    display: inline-block;
    background: linear-gradient(135deg, #c9960a, #ffe066);
    color: #1a1a1a !important;
    font-weight: 700;
    padding: 9px 30px;
    border-radius: 25px;
    font-size: .95rem;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 12px rgba(201,150,10,.4);
}
.btn-unlock:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 20px rgba(201,150,10,.6);
    color: #1a1a1a !important;
}

/* 已解锁：正常显示 */
.vip-body.unlocked .vip-sites { filter: none; }
.vip-site-name { color: #bbb; }

/* 右侧导航 VIP 条目 — 与其他条目 padding 一致，不加 border-left */
.vip-nav-item {
    background: #2e2300 !important;
    color: #ffd700 !important;
}
.vip-nav-item:hover {
    background: #3d2f00 !important;
    color: #ffe066 !important;
}

/* ---- 面包屑 ---- */
.breadcrumb {
    background: transparent;
    padding: .4rem 0;
    margin-bottom: .5rem;
    font-size: .85rem;
}
.breadcrumb-item a { color: #aaa; }
.breadcrumb-item a:hover { color: #ff0; }
.breadcrumb-item.active { color: #888; }
.breadcrumb-item + .breadcrumb-item::before { color: #555; }

/* ---- 搜索框 ---- */
.search-wrap { max-width: 600px; margin: 0 auto 1rem; }
.search-wrap .form-control {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #eee;
}
.search-wrap .form-control:focus {
    background: #333;
    border-color: #d4af37;
    color: #fff;
    box-shadow: 0 0 0 .15rem rgba(212,175,55,.3);
}

/* ---- 详情页 ---- */
.site-thumb {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #333;
}
.site-info h1 { font-size: 1.3rem; color: #eee; }
.site-info .site-url { color: #888; font-size: .85rem; word-break: break-all; }
.site-desc { color: #bbb; font-size: .9rem; line-height: 1.7; }
.tag-list .badge { margin-right: 4px; background: #333; color: #ccc; font-weight: 400; }

/* ---- 分页 ---- */
.pagination .page-link {
    background: #2a2a2a;
    border-color: #444;
    color: #ccc;
}
.pagination .page-link:hover { background: #3a3a3a; color: #ff0; }
.pagination .page-item.active .page-link { background: #d4af37; border-color: #d4af37; color: #1a1a1a; }
.pagination .page-item.disabled .page-link { background: #1e1e1e; color: #555; }

/* ---- 提交表单 ---- */
.submit-form .form-control,
.submit-form .form-select {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #eee;
}
.submit-form .form-control:focus { border-color: #d4af37; box-shadow: none; }
.submit-form label { color: #bbb; font-size: .9rem; }

/* ---- 页脚 ---- */
.site-footer { padding: 0 0 40px; }
.footer-cat-card { border-color: #333 !important; }
.footer-links { color: #666; font-size: .85rem; }
.footer-links a { color: #888; }
.footer-links a:hover { color: #ccc; }

/* ---- 分享页 ---- */
.share-card {
    max-width: 520px;
    margin: 2rem auto;
    background: #23262b;
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}
.share-url-box {
    background: #111;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px 14px;
    word-break: break-all;
    font-size: .9rem;
    color: #0cf;
    cursor: pointer;
}
.share-status { font-size: .95rem; color: #bbb; }
.share-status .count { color: #ffd700; font-size: 1.4rem; font-weight: 700; }
