@charset "utf-8";
/*!
 * 爱玩导航 AiWan for Z-BlogPHP
 * 前端样式：按 OneNav 设计语言 1:1 还原
 */

/* ===================== 设计令牌 ===================== */
:root {
    --theme-color: #f1404b;
    --theme-color-rgb: 241, 64, 75;
    --theme-color-bg: rgba(var(--theme-color-rgb), .1);
    --hover-color: #d12768;
    --focus-color: var(--theme-color);
    --main-color: #484b4f;
    --main-shadow: rgba(0, 0, 0, .1);
    --main-bg-color: #fff;
    --main-radius: 12px;
    --main-aside-basis-width: 218px;
    --main-nav-hight: 80px;
    --main-max-width: 1260px;
    --home-max-width: 1900px;
    --main-blur-bg-color: rgba(245, 245, 245, .75);
    --main-blur-bg-color2: rgba(245, 245, 245, .85);
    --muted-color: #93959a;
    --muted-color2: #66686b;
    --muted-color3: #a5a8aa;
    --muted-bg-color: #e6e8ea;
    --muted-bg-color-l: #f1f2f4;
    --muted-shadow: rgba(116, 116, 116, .1);
    --body-bg-rgb: 242, 244, 247;
    --body-bg-color: rgb(var(--body-bg-rgb));
    --home-card-padding: 10px;
    --input-bg-color: rgba(var(--body-bg-rgb), .75);
    --border-color: rgba(116, 116, 116, .1);
    --theme-border-radius: var(--main-radius);
    --theme-border-radius-lg: calc(var(--main-radius) - 2px);
    --theme-border-radius-md: calc(var(--main-radius) - 4px);
    --theme-border-radius-sm: calc(var(--main-radius) - 6px);
    --aw-cols: 6;
    --aw-gap: 10px;
}

.io-black-mode {
    --main-color: #b4b8bf;
    --main-bg-color: #2d2e2f;
    --body-bg-rgb: 27, 29, 31;
    --main-blur-bg-color: rgba(46, 46, 46, .65);
    --main-blur-bg-color2: rgba(46, 46, 46, .75);
    --muted-color: #73757a;
    --muted-color2: #a6a8ab;
    --muted-color3: #5f6164;
    --muted-bg-color: #24262a;
    --muted-bg-color-l: #1b1c1e;
    --main-shadow: rgba(0, 0, 0, .4);
    --border-color: rgba(255, 255, 255, .08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    padding-top: var(--main-nav-hight);
    min-height: 100vh;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--main-color);
    background-color: var(--body-bg-color);
    transition: background-color .3s;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--main-color); text-decoration: none; transition: color .3s, background-color .3s; }
a:hover { color: var(--theme-color); }
img { border: 0; vertical-align: middle; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--theme-color); color: #fff; }

.text-hide { text-indent: -9999px; overflow: hidden; white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-muted { color: var(--muted-color); }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.flex-fill { flex: 1 1 auto; min-width: 0; }
.align-items-center { align-items: center; }
.m-0 { margin: 0; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mr-1 { margin-right: .25rem; }
.mr-2 { margin-right: .5rem; }
.ml-auto { margin-left: auto; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.line1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.switch-container {
    width: 100%;
    max-width: var(--main-max-width);
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}
.container-wide { max-width: var(--home-max-width); }

/* ===================== 顶部导航 ===================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--main-nav-hight);
    padding: 0 15px;
}
.header-nav {
    height: 100%;
    background: var(--main-blur-bg-color);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: var(--main-radius);
    transition: background-color .3s, box-shadow .3s;
}
.main-header.is-scrolled .header-nav {
    background: var(--main-blur-bg-color2);
    box-shadow: 0 6px 24px var(--muted-shadow);
}
.nav-top {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 4px;
}
.navbar-logo { display: flex; align-items: center; flex: none; margin-right: 1rem; }
.navbar-logo a { display: flex; align-items: center; }
.navbar-logo img { height: 36px; width: auto; display: block; }
.navbar-logo .logo-text { font-size: 20px; font-weight: 700; letter-spacing: .5px; color: var(--main-color); }

.navbar-menu { display: flex; align-items: center; min-width: 0; }
.navbar-header { display: flex; align-items: center; gap: 2px; }
.navbar-header > li { position: relative; }
.navbar-header > li > a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 10px;
    font-size: 15px;
    white-space: nowrap;
}
.navbar-header > li > a .aw-ico { width: 17px; height: 17px; margin-right: 6px; opacity: .75; }
.navbar-header > li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    border-radius: 4px;
    background: var(--focus-color);
    opacity: 0;
    transition: .3s;
}
.navbar-header > li:hover::after,
.navbar-header > li.is-active::after { opacity: 1; }
.navbar-header > li:hover > a,
.navbar-header > li.is-active > a { color: var(--theme-color); }

.nav-fold { position: relative; }
.nav-fold > a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; }
.nav-fold > a .aw-ico { width: 18px; height: 18px; }
.nav-fold-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 132px;
    padding: 6px;
    background: var(--main-bg-color);
    border-radius: var(--theme-border-radius-md);
    box-shadow: 0 12px 30px var(--main-shadow);
    opacity: 0;
    visibility: hidden;
    transition: .24s;
}
.nav-fold:hover .nav-fold-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-fold-menu a { display: block; padding: 8px 12px; font-size: 14px; border-radius: 8px; white-space: nowrap; }
.nav-fold-menu a:hover { background: var(--muted-bg-color-l); }

.header-tools { display: flex; align-items: center; margin-left: auto; flex: none; }
.header-icon-btn > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 2px;
    border-radius: 50%;
    transition: background-color .3s;
}
.header-icon-btn > a:hover { background: var(--muted-bg-color-l); }
.header-icon-btn .aw-ico { width: 19px; height: 19px; }

.menu-btn {
    display: none;
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-left: 4px;
}
.menu-btn span {
    position: absolute;
    left: 8px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--main-color);
    transition: all .36s cubic-bezier(.215, .61, .355, 1);
}
.menu-btn span:nth-child(1) { top: 12px; }
.menu-btn span:nth-child(2) { top: 17px; }
.menu-btn span:nth-child(3) { top: 22px; }
.is-mobile .menu-btn span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.is-mobile .menu-btn span:nth-child(2) { opacity: 0; }
.is-mobile .menu-btn span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: calc(var(--main-nav-hight) + 8px);
    left: 15px;
    right: 15px;
    z-index: 99;
    padding: 16px;
    background: var(--main-blur-bg-color2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: var(--main-radius);
    box-shadow: 0 20px 40px var(--main-shadow);
    display: none;
}
.mobile-nav.is-open { display: block; animation: awFadeDown .28s ease; }
@keyframes awFadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mobile-nav ul a { display: block; padding: 10px 12px; font-size: 14px; border-radius: 8px; background: var(--muted-bg-color-l); }
.mobile-nav ul a:hover { background: var(--theme-color-bg); color: var(--theme-color); }

/* ===================== 首页大搜索 ===================== */
.header-banner {
    position: relative;
    margin-top: calc(0px - var(--main-nav-hight));
    padding-top: var(--main-nav-hight);
    padding-bottom: 26px;
    margin-bottom: 1.5rem;
    background-color: #5a5f66;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.header-banner.no-image { background-image: linear-gradient(135deg, #f1404b 0%, #b52b52 55%, #4b2b6b 100%) !important; }
.header-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .36) 100%);
    pointer-events: none;
}
.header-banner .search-container { position: relative; z-index: 2; }

.big-search {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    min-height: var(--big-search-height);
    color: #fff;
    text-align: center;
}
.big-search-title { font-size: 26px; font-weight: 600; margin: 0 0 8px; text-shadow: 0 0 15px rgba(35, 37, 40, .6); }
.big-search-sub { font-size: 14px; opacity: .88; margin-bottom: 22px; text-shadow: 0 0 15px rgba(35, 37, 40, .6); }

.search-list-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.search-list-menu::-webkit-scrollbar { display: none; }
.search-menu {
    flex: none;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    opacity: .82;
    transition: .24s;
    white-space: nowrap;
}
.search-menu:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.search-menu.active { background: rgba(255, 255, 255, .22); opacity: 1; font-weight: 600; }

.search-form-big {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    padding: 0 6px 0 22px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.search-form-big input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: #333;
}
.search-form-big input[type="text"]::placeholder { color: #9aa0a6; }
.search-submit-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 42px;
    border: 0;
    border-radius: 24px;
    background: var(--theme-color);
    color: #fff;
    transition: .3s;
}
.search-submit-btn:hover { background: var(--hover-color); }
.search-submit-btn .aw-ico { width: 20px; height: 20px; }

.search-list-group { margin-top: 14px; min-height: 30px; }
.search-group { display: none; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.search-group.active { display: flex; }
.search-term {
    padding: 5px 13px;
    font-size: 13px;
    color: #fff;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
    transition: .24s;
}
.search-term:hover { background: rgba(255, 255, 255, .3); }

/* ===================== 内容区通用 ===================== */
.aw-main { padding-bottom: 1rem; }
.content-card {
    background: var(--main-bg-color);
    padding: 12px;
    border-radius: var(--main-radius);
    transition: background-color .3s;
}
.content-card + .content-card { margin-top: 1.25rem; }

.content-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}
.content-head .tab-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
    margin: 0;
    flex: none;
}
.content-head .tab-title .aw-ico { width: 19px; height: 19px; margin-right: 6px; color: var(--theme-color); }
.content-head .tab-count {
    font-size: 12px;
    color: var(--muted-color);
    background: var(--muted-bg-color-l);
    border-radius: 10px;
    padding: 1px 8px;
}
.slider-tab {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 1 auto;
    min-width: 0;
}
.slider-tab::-webkit-scrollbar { display: none; }
.slider-tab li { flex: none; }
.slider-tab li a {
    display: block;
    padding: 4px 11px;
    font-size: 13px;
    color: var(--muted-color2);
    border-radius: 14px;
    white-space: nowrap;
}
.slider-tab li a:hover { color: var(--theme-color); background: var(--theme-color-bg); }
.slider-tab li.active a { color: var(--theme-color); background: var(--theme-color-bg); font-weight: 600; }
.tab-to-more { flex: none; }
.tab-to-more a { font-size: 13px; color: var(--muted-color); display: inline-flex; align-items: center; gap: 2px; }
.tab-to-more a:hover { color: var(--theme-color); }
.tab-to-more .aw-ico { width: 14px; height: 14px; }

/* 卡片网格 */
.aw-grid {
    display: grid;
    grid-template-columns: repeat(var(--aw-cols), minmax(0, 1fr));
    gap: var(--aw-gap);
}
.aw-grid.narrow { grid-template-columns: repeat(var(--aw-cols-narrow, 4), minmax(0, 1fr)); }

/* 站点卡片 */
.aw-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px;
    border-radius: var(--theme-border-radius-md);
    transition: background-color .24s, transform .24s;
}
.aw-item:hover { background: var(--muted-bg-color-l); }
.aw-item .item-media {
    position: relative;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--muted-bg-color-l);
}
.io-black-mode .aw-item .item-media { background: #33363a; }
.aw-item .item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.aw-item:hover .item-media img { transform: scale(1.08); }
.aw-item .item-fallback,
.site-favicon .item-fallback,
.site-img .item-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-color);
    background: var(--muted-bg-color-l);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.io-black-mode .aw-item .item-fallback { background: #33363a; }
.aw-item .item-body { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.aw-item .item-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--main-color);
    margin: 0 0 2px;
}
.aw-item .item-title b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-item .item-title .item-link {
    min-width: 0;
    overflow: hidden;
    color: var(--main-color);
    text-decoration: none;
}
.aw-item .item-title .item-link:hover { color: var(--theme-color); }
.aw-item .item-title .item-link b { display: inline; }
.aw-item .item-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.badge-title {
    flex: none;
    display: inline-block;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 500;
    line-height: 15px;
    border-radius: 3px;
    color: #fff;
    background: #7c5ce0;
    transform: scale(.94);
}
.badge-title.vc-j-green { background: #22a06b; }
.badge-title.vc-j-blue { background: #2f7ff0; }
.aw-item .togo {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) scale(.9);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--muted-color);
    background: var(--main-bg-color);
    box-shadow: 0 2px 8px var(--muted-shadow);
    opacity: 0;
    transition: .24s;
}
.aw-item:hover .togo { opacity: 1; transform: translateY(-50%) scale(1); }
.aw-item .togo:hover { color: #fff; background: var(--theme-color); }
.aw-item .togo .aw-ico { width: 14px; height: 14px; }
.aw-item.is-plain .item-desc { display: none; }
.aw-item.is-plain { align-items: center; }

/* 卡片 hover 站点缩略图预览浮层 */
.aw-item-preview {
    position: fixed;
    z-index: 9999;
    width: 400px;
    height: 260px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
}
.io-black-mode .aw-item-preview { background: #2a2c30; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.aw-item-preview.is-show { opacity: 1; transform: translateY(0) scale(1); }
.aw-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 8px;
    background: #f2f4f7;
}
.io-black-mode .aw-item-preview img { background: #1f2124; }
.aw-item-preview.is-error { display: none; }

/* 紧凑列表行（详情页相关站点等） */
.aw-rowlist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--aw-gap); }

/* ===================== 分类页头 ===================== */
.taxonomy-head { position: relative; margin-bottom: 15px; }
.taxonomy-head-body {
    position: relative;
    border-radius: var(--main-radius);
    overflow: hidden;
    background: #4b5057;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}
.taxonomy-head-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(26px);
    transform: scale(1.06);
}
.taxonomy-head-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 60%, transparent 100%);
}
.taxonomy-head-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 26px 24px;
    color: #fff;
    text-align: center;
}
.taxonomy-head-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.taxonomy-head-desc { font-size: 13px; opacity: .82; max-width: 720px; margin: 0 auto; }
.taxonomy-head-count {
    display: inline-block;
    font-size: 12px;
    padding: 1px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .22);
    margin-bottom: 8px;
}

/* 分类筛选条 */
.cat-selects { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0 10px; }
.cat-selects .list-select-title { font-size: 13px; color: var(--muted-color); margin-right: 4px; flex: none; }
.cat-selects a {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 14px;
    background: var(--muted-bg-color-l);
    color: var(--muted-color2);
}
.cat-selects a:hover { color: var(--theme-color); }
.cat-selects a.active { color: #fff; background: var(--theme-color); }

/* ===================== 文章 / 站点详情 ===================== */
.site-content { display: flex; gap: 20px; align-items: flex-start; }
.site-body { min-width: 0; flex: 1 1 auto; }

.panel {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    padding: 20px;
}
.site-name-box { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.site-name-box .site-favicon {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--muted-bg-color-l);
    box-shadow: 0 6px 18px var(--muted-shadow);
}
.site-name-box .site-favicon img { width: 100%; height: 100%; object-fit: cover; }
.site-name { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.site-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted-color); }

.site-info-table { margin: 4px 0 16px; border-collapse: collapse; width: 100%; }
.site-info-table .table-row { display: flex; padding: 8px 0; border-bottom: 1px dashed var(--border-color); font-size: 13px; }
.site-info-table .table-row:last-child { border-bottom: 0; }
.site-info-table .table-title { flex: none; width: 84px; color: var(--muted-color); }
.site-info-table .table-value { flex: 1 1 auto; min-width: 0; word-break: break-all; }

.site-go { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 20px;
    font-size: 14px;
    background: var(--muted-bg-color-l);
    color: var(--main-color);
    transition: .3s;
}
.btn .aw-ico { width: 16px; height: 16px; }
.btn-theme { background: var(--theme-color); color: #fff; }
.btn-theme:hover { background: var(--hover-color); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--border-color); }
.btn-ghost:hover { border-color: var(--theme-color); color: var(--theme-color); }

.sites-preview { flex: none; width: 44%; max-width: 520px; }
.preview-body {
    position: relative;
    border-radius: var(--main-radius);
    overflow: hidden;
    background: var(--main-bg-color);
    box-shadow: 0 10px 30px var(--muted-shadow);
    border: 1px solid var(--border-color);
}
.preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--main-bg-color);
    border-bottom: 1px solid var(--border-color);
}
.preview-fav {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--muted-bg-color-l);
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-fav img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 无图标时用首字母兜底（无需模板分支） */
.preview-fav, .preview-placeholder .site-img { position: relative; }
.preview-fav::before, .preview-placeholder .site-img::before {
    content: attr(data-i);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
}
.preview-placeholder .site-img::before { font-size: 20px; }
.preview-fav img, .preview-placeholder .site-img img { position: relative; z-index: 1; }
.preview-host {
    min-width: 0;
    font-size: 12px;
    color: var(--muted-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 截图预览（默认） */
.preview-shot {
    position: relative;
    display: block;
    padding-top: 65.7%;
    overflow: hidden;
    background: #eceef2;
}
.preview-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .5s ease;
}
.preview-shot:hover img { transform: scale(1.035); }
.preview-shot .preview-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #eef1f5, #e3e7ed);
    color: var(--muted-color);
}
.preview-shot.is-empty .preview-fallback { display: flex; }
.preview-shot.is-empty img { display: none; }
.preview-shot .preview-fallback b {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff;
    color: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
.preview-shot .preview-fallback em { font-style: normal; font-size: 12px; }
.preview-open {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--theme-color);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
    transition: .25s;
}
.preview-shot:hover .preview-open { background: var(--theme-color); color: #fff; }

/* iframe 预览（可选模式） */
.preview-frame { position: relative; aspect-ratio: 16 / 11; min-height: 280px; }
.preview-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
    color: var(--muted-color);
}
.preview-placeholder .site-img { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 20px var(--muted-shadow); }
.preview-placeholder .site-img img { width: 100%; height: 100%; object-fit: cover; }

/* 权重徽标 */
.site-weights { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sites-weight {
    display: inline-flex;
    align-items: center;
    height: 20px;
    border-radius: 5px;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    font-weight: 600;
}
.sites-weight i {
    font-style: normal;
    padding: 0 6px;
    font-size: 10px;
    background: rgba(0, 0, 0, .18);
}
.sites-weight b { padding: 0 7px; font-size: 11px; font-weight: 700; }
.sw-bd { background: #2b34e6; }
.sw-bdm { background: #1f7ee6; }
.sw-haosou { background: #00a44a; }
.sw-sm { background: #f08200; }
.sw-tt { background: #f04142; }

/* 自动获取的权重徽章（图片模式） */
.sites-weight.sw-auto {
    padding: 0;
    background: transparent;
    overflow: visible;
}
.sites-weight.sw-auto img {
    height: 20px;
    width: auto;
    display: block;
    border-radius: 5px;
}

/* 卡片上的权重角标（可选） */
.item-weight {
    display: inline-flex;
    align-items: center;
    height: 16px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 4px;
    background: var(--theme-color-bg);
    color: var(--theme-color);
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.terms-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.terms-list a {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--muted-bg-color-l);
    color: var(--muted-color2);
}
.terms-list a:hover { background: var(--theme-color-bg); color: var(--theme-color); }

/* 正文排版 */
.panel-body { font-size: 15px; line-height: 1.85; word-break: break-word; }
.panel-body p { margin: 0 0 1em; }
.panel-body img { max-width: 100%; height: auto; border-radius: var(--theme-border-radius-sm); }
.panel-body h2, .panel-body h3, .panel-body h4 { margin: 1.4em 0 .6em; }
.panel-body h2 { font-size: 20px; }
.panel-body h3 { font-size: 18px; }
.panel-body h4 { font-size: 16px; }
.panel-body h2::before, .panel-body h3::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: .82em;
    margin-right: 6px;
    border-radius: 2px;
    background: var(--theme-color);
    vertical-align: -.06em;
}
.panel-body a { color: var(--theme-color); }
.panel-body ul, .panel-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.panel-body ul { list-style: disc; }
.panel-body ol { list-style: decimal; }
.panel-body li { margin-bottom: .35em; }
.panel-body blockquote {
    margin: 1em 0;
    padding: 12px 16px;
    border-left: 3px solid var(--theme-color);
    background: var(--muted-bg-color-l);
    border-radius: 0 8px 8px 0;
    color: var(--muted-color2);
}
.panel-body pre {
    overflow: auto;
    padding: 14px 16px;
    border-radius: var(--theme-border-radius-sm);
    background: #26282b;
    color: #e6e8ea;
    font-size: 13px;
    line-height: 1.6;
}
.panel-body code { font-family: Menlo, Consolas, monospace; font-size: .92em; }
.panel-body :not(pre) > code { padding: 1px 5px; border-radius: 4px; background: var(--muted-bg-color-l); color: var(--theme-color); }
.panel-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.panel-body table th, .panel-body table td { padding: 8px 12px; border: 1px solid var(--border-color); }
.panel-body table th { background: var(--muted-bg-color-l); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-color); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted-color); }
.breadcrumb a:hover { color: var(--theme-color); }
.breadcrumb .sep { opacity: .5; }

/* 相关区块标题 */
.section-label { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin: 1.6rem 0 1rem; }
.section-label::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--theme-color); }

/* ===================== 分页 ===================== */
.pagebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 1.6rem 0 .4rem; }
.pagebar a, .pagebar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: var(--theme-border-radius-sm);
    background: var(--main-bg-color);
    color: var(--muted-color2);
}
.pagebar a:hover { color: var(--theme-color); }
.pagebar span.now-page { color: #fff; background: var(--theme-color); }
.pagebar span.disabled { opacity: .45; }

/* ===================== 评论 ===================== */
.comments { margin-top: 2rem; }
.comments-title { font-size: 18px; font-weight: 600; margin-bottom: 1rem; }
.comment-list > li { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.comment-list > li:last-child { border-bottom: 0; }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-head img { width: 32px; height: 32px; border-radius: 50%; }
.comment-name { font-size: 13px; font-weight: 600; }
.comment-time { font-size: 12px; color: var(--muted-color); margin-left: auto; }
.comment-body { font-size: 14px; line-height: 1.7; padding-left: 42px; }
.comment-body .comment-reply { font-size: 12px; color: var(--theme-color); margin-left: 8px; }
.comment-children { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--border-color); }
.comment-form { margin-top: 1.2rem; }
.comment-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--border-color);
    border-radius: var(--theme-border-radius-sm);
    background: var(--input-bg-color);
    outline: 0;
    resize: vertical;
    transition: border-color .3s;
}
.comment-form textarea:focus { border-color: var(--theme-color); }
.comment-form .form-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.comment-form .form-row input {
    flex: 1 1 180px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--theme-border-radius-sm);
    background: var(--input-bg-color);
    outline: 0;
}
.comment-form .form-row input:focus { border-color: var(--theme-color); }
.comment-form .com-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.nothing-box { padding: 60px 20px; text-align: center; color: var(--muted-color); }
.nothing-box .nothing-ico { font-size: 46px; opacity: .35; margin-bottom: 10px; }

/* ===================== 页脚 ===================== */
.main-footer { margin-top: 2rem; padding-bottom: 1rem; }
.footer-container {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    padding: 0 24px;
}
.footer { display: flex; flex-wrap: wrap; gap: 20px 32px; padding: 34px 0 0; }
.footer .col-brand { flex: 1 1 260px; min-width: 240px; padding-right: 8px; }
.footer .col-links { flex: 2 1 320px; min-width: 260px; }
.footer .col-extra { flex: 1 1 180px; min-width: 160px; }
.footer-logo img { height: 40px; width: auto; }
.footer-logo .logo-text { font-size: 20px; font-weight: 700; }
.footer-desc { font-size: 13px; line-height: 1.8; color: var(--muted-color); margin-top: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin: 0 0 1rem; }
.footer-links a { color: var(--muted-color2); }
.footer-links a:hover { color: var(--theme-color); }
.friend-link { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.friend-link a { color: var(--muted-color); }
.friend-link a:hover { color: var(--theme-color); }
.footer-title { font-size: 13px; font-weight: 600; margin-bottom: .5rem; color: var(--main-color); }
.footer-copyright {
    width: 100%;
    margin: 22px 0 0;
    padding: 14px 0 18px;
    font-size: 12px;
    color: var(--muted-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.footer-copyright a { color: var(--muted-color); }
.footer-copyright a:hover { color: var(--theme-color); }

/* ===================== 悬浮工具 ===================== */
.tools-right { position: fixed; right: 20px; bottom: 110px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.btn-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main-bg-color);
    color: var(--muted-color2);
    box-shadow: 0 6px 20px var(--muted-shadow);
    transition: .3s;
}
.btn-tools:hover { color: var(--theme-color); transform: translateY(-2px); }
.btn-tools .aw-ico { width: 18px; height: 18px; }
.btn-tools.is-hidden { display: none; }

/* ===================== 搜索页 / 404 ===================== */
.search-head { margin-bottom: 1rem; }
.search-head-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.search-head-title em { font-style: normal; color: var(--theme-color); }
.search-inline { display: flex; gap: 8px; margin-top: 12px; }
.search-inline input {
    flex: 1 1 auto;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 21px;
    background: var(--input-bg-color);
    outline: 0;
}
.search-inline input:focus { border-color: var(--theme-color); }
.error-page { padding: 70px 20px; text-align: center; }
.error-code { margin: 0; font-size: 82px; font-weight: 800; line-height: 1; color: var(--theme-color); letter-spacing: -2px; }
.error-text { font-size: 15px; color: var(--muted-color); margin: 14px 0 24px; }

/* ===================== 响应式 ===================== */
@media (max-width: 1400px) {
    :root { --aw-cols: 5; --aw-cols-narrow: 4; }
}
@media (max-width: 1200px) {
    :root { --aw-cols: 4; --aw-cols-narrow: 3; }
    .sites-preview { width: 40%; }
}
@media (max-width: 991px) {
    :root { --aw-cols: 3; --aw-cols-narrow: 2; --main-nav-hight: 64px; }
    .navbar-header { display: none; }
    .menu-btn { display: block; }
    .navbar-logo img { height: 30px; }
    .big-search { min-height: 260px; }
    .big-search-title { font-size: 21px; }
    .aw-rowlist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer { gap: 16px 24px; }
    .footer .col-brand,
    .footer .col-links,
    .footer .col-extra { flex: 1 1 100%; min-width: 100%; padding: 0; }
    .site-content { flex-direction: column; }
    .site-body,
    .sites-preview { width: 100%; max-width: none; flex: 0 0 auto; }
}
@media (max-width: 767px) {
    :root { --aw-cols: 2; --aw-cols-narrow: 2; }
    body { font-size: 13px; }
    .switch-container { padding-left: 10px; padding-right: 10px; }
    .main-header { padding: 0 10px; }
    .header-banner { padding-left: 0 !important; }
    .big-search { min-height: 220px; }
    .big-search-title { font-size: 18px; }
    .big-search-sub { font-size: 12px; margin-bottom: 16px; }
    .search-form-big { height: 46px; padding-left: 16px; }
    .search-form-big input[type="text"] { font-size: 14px; }
    .search-submit-btn { width: 38px; height: 36px; }
    .content-card { padding: 10px; }
    .content-head .tab-title { font-size: 15px; }
    .slider-tab li a { padding: 3px 9px; font-size: 12px; }
    .tab-to-more { display: none; }
    .aw-item { padding: 7px; gap: 8px; }
    .aw-item .item-media { width: 34px; height: 34px; }
    .aw-item .item-title { font-size: 13px; }
    .aw-item .item-desc { font-size: 11px; }
    .aw-item .togo { display: none; }
    .aw-rowlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel { padding: 14px; }
    .site-name { font-size: 19px; }
    .footer-container { padding: 0 16px; }
    .footer { padding-top: 24px; gap: 14px 0; }
    .tools-right { right: 12px; bottom: 80px; }
    .btn-tools { width: 36px; height: 36px; }
}
@media (max-width: 400px) {
    :root { --aw-cols: 1; }
    .aw-grid { --aw-cols: 1; }
}

/* 打印 */
@media print {
    .main-header, .tools-right, .main-footer, .header-banner { display: none !important; }
    body { padding-top: 0; background: #fff; }
}

/* ===================== 紧凑列表（备用列表模板） ===================== */
.aw-compact > li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    border-bottom: 1px solid var(--border-color);
}
.aw-compact > li:last-child { border-bottom: 0; }
.aw-compact .c-media {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--muted-bg-color-l);
}
.aw-compact .c-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aw-compact .c-body { min-width: 0; flex: 1 1 auto; }
.aw-compact .c-title { font-size: 14px; font-weight: 600; }
.aw-compact .c-desc {
    font-size: 12px;
    color: var(--muted-color);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aw-compact .c-host { flex: none; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== 图标与状态 ===================== */
.aw-ico {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    overflow: visible;
}
.aw-ico-sun { display: none; }
.io-black-mode .aw-ico-moon { display: none; }
.io-black-mode .aw-ico-sun { display: inline-block; }
.item-media.no-img .item-fallback { display: flex !important; }
