/* ================================================================
   蛙蛙导航 - 主样式文件
   整合自: style.css + wawa-style.css + 内联样式
   最后更新: 2026-08-25
   ================================================================ */

/* ========== 第一部分：基础重置与全局样式 ========== */

/* --- 元素重置 --- */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* --- CSS全局变量（合并两处:root定义，取最终值） --- */
:root {
    --simple-color: #22c55e;
    --simple-hover: #16a34a;
    --simple-body-bg-color: #ffffff;
    --simple-card-bg-color: #ffffff;
    --simple-card-white-bg-color: #ffffff;
    --simple-card-grey-bg-color: #f1f2f3;
    --simple-transparent-bg-color: #684df412;
    --simple-header-height: 55px;
    --simple-footer-height: 50px;
    --simple-black-color: #000000;
    --simple-grey-color: #616a76;
    --simple-white-color: #ffffff;
    --simple-main-max-width: 1400px;
    --simple-border-radius-s: 4px;
    --simple-border-radius-m: 8px;
    --simple-border-radius-l: 10px;
    --simple-border-radius-xl: 10px;
}

/* --- 盒模型与元素重置 --- */
*,
::after,
::before {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p, form, button, input {
    margin: 0;
    padding: 0;
}

a, a:hover, a:active {
    outline: none;
    text-decoration: none;
}

a:hover { color: var(--simple-hover); }
a { color: var(--simple-color); }

img {
    vertical-align: middle;
    border: none;
}

input, input:focus {
    outline: none;
    border: 0;
}

button {
    background: unset;
    border: 0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

button:focus-visible, button:focus {
    outline: 0;
}

ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

li { list-style: none; }

/* --- 公共工具类 --- */
.d-flex { display: flex; }
.d-block { display: block; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-initial { display: initial; }

.m-1 { margin: 5px; } .m-2 { margin: 10px; } .m-3 { margin: 15px; } .m-4 { margin: 20px; }
.mt-1 { margin-top: 5px; } .mt-2 { margin-top: 10px; } .mt-3 { margin-top: 15px; } .mt-4 { margin-top: 20px; }
.mr-1 { margin-right: 5px; } .mr-2 { margin-right: 10px; } .mr-3 { margin-right: 15px; } .mr-4 { margin-right: 20px; }
.mb-1 { margin-bottom: 5px; } .mb-2 { margin-bottom: 10px; } .mb-3 { margin-bottom: 15px; } .mb-4 { margin-bottom: 20px; }
.ml-1 { margin-left: 5px; } .ml-2 { margin-left: 10px; } .ml-3 { margin-left: 15px; } .ml-4 { margin-left: 20px; }

.p-1 { padding: 5px; } .p-2 { padding: 10px; } .p-3 { padding: 15px; } .p-4 { padding: 20px; }
.pt-1 { padding-top: 5px; } .pt-2 { padding-top: 10px; } .pt-3 { padding-top: 15px; } .pt-4 { padding-top: 20px; }
.pr-1 { padding-right: 5px; } .pr-2 { padding-right: 10px; } .pr-3 { padding-right: 15px; } .pr-4 { padding-right: 20px; }
.pb-1 { padding-bottom: 5px; } .pb-2 { padding-bottom: 10px; } .pb-3 { padding-bottom: 15px; } .pb-4 { padding-bottom: 20px; }
.pl-1 { padding-left: 5px; } .pl-2 { padding-left: 10px; } .pl-3 { padding-left: 15px; } .pl-4 { padding-left: 20px; }

.p-relative { position: relative; }
.p-absolute { position: absolute; }
.p-sticky { position: sticky; }
.align-items-center { align-items: center; }
.flex-direction-column { flex-direction: column; }
.text-align-center { text-align: center; }
.justify-content-center { justify-content: center; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.clearfix::after { clear: both; display: block; content: ""; }
.clear { clear: both; }
.f-left { float: left; }
.f-right { float: right; }
.hide-mobile { } /* 手机端隐藏，见响应式部分 */

/* --- 滚动条样式 --- */
::-webkit-scrollbar-thumb { -webkit-border-radius: 4px; border-radius: 4px; background-color: rgba(130, 130, 130, .5); }
::-webkit-scrollbar-thumb:hover { background-color: #fd4c4c; }
::-webkit-scrollbar { width: 7px; height: 5px; }
::-webkit-scrollbar-thumb:active { background-color: #fd4c4c; }
::-webkit-scrollbar-corner { border-radius: 0 0 8px 0; background: rgba(0, 0, 0, 0); }
::-webkit-scrollbar-button { width: 2px; height: 2px; background-color: rgba(0, 0, 0, 0); }

/* --- body最终样式（合并style.css与wawa-style.css） --- */
body {
    overflow: auto;
    width: 100%;
    height: 100%;
    background: #f4f5f7;
    color: #333;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#main {
    min-height: auto;
}


/* ========== 第二部分：顶栏与导航 ========== */

/* --- 固定顶栏 --- */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    transition: box-shadow 0.3s ease;
}

.top-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* --- 顶栏内容容器 --- */
.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* --- Logo --- */
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.header-logo img {
    height: 36px;
    width: auto;
}

.logo-dark { display: none; }

/* --- 导航菜单 --- */
.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-item {
    position: relative;
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-item:hover { color: #22c55e; }
.nav-item.active { color: #22c55e; }

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #22c55e;
    border-radius: 1px;
}

/* --- 顶栏按钮组 --- */
.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* --- 顶栏公告轮播 --- */
.header-notice {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 36px;
    width: 280px;
    flex-shrink: 0;
    margin-right: 0;
    overflow: hidden;
    position: relative;
}

.notice-viewport {
    width: 100%;
    height: 36px;
    overflow: hidden;
    position: relative;
    text-align: right;
}

.notice-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.notice-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    color: #666;
    line-height: 36px;
    transform: translateX(100%);
    transition: transform 4s ease-in-out;
}

.notice-item.notice-active {
    transform: translateX(0);
}

.notice-item.notice-exit {
    transform: translateX(-100%);
}

.notice-item.notice-no-transition {
    transition: none !important;
}

.notice-highlight {
    color: #22c55e;
    font-weight: 500;
}

.header-btn {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background-color: #e8f5e9;
    color: #22c55e;
}

/* --- 投稿按钮 --- */
.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #22c55e;
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px !important;
    font-size: 13px;
    text-decoration: none;
}

.submit-btn:hover {
    background-color: #16a34a;
    color: #fff;
}

.submit-btn svg {
    width: 16px;
    height: 16px;
}

/* --- 主题切换按钮 --- */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px !important;
    border: none;
    background-color: #f3f4f6;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: #e5e7eb;
    color: #22c55e;
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.theme-toggle-btn .icon-moon { display: none; }
.theme-toggle-btn .icon-sun { display: block; }


/* ========== 第三部分：搜索框 ========== */

/* --- 搜索图标 --- */
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.search-icon svg { width: 100%; height: 100%; fill: #616a76; }
.search-btn-icon { width: 20px; height: 20px; fill: #fff; }

/* --- 搜索容器 --- */
.simple-search {
    width: 100%;
    max-width: 1400px;
    margin: 15px auto 30px;
    padding-top: 100px;
}

.bookmark .simple-search {
    padding-top: 100px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
    background: unset;
}

.search-wrap {
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
}

/* --- 搜索表单 --- */
.simple-search form {
    position: relative;
    box-shadow: 0 6px 6px 0px rgba(0, 0, 0, .05);
    border-radius: 14px;
}

.simple-search input {
    height: 50px;
    width: 100%;
    padding: 5px 45px 5px 15px;
    border-radius: 14px;
    background-color: var(--simple-card-bg-color);
    border: 2px solid var(--simple-color);
    font-size: 16px;
}

.simple-search input::placeholder { color: var(--simple-grey-color); }

.simple-search input:focus {
    border-color: var(--simple-color);
    outline: none;
}

.simple-search button {
    position: absolute;
    height: 42px;
    width: 42px;
    top: 50%;
    right: 4px;
    color: #FFF;
    background-color: var(--simple-color);
    transform: translate(0, -50%);
    border-radius: 12px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* --- 清除按钮（默认隐藏，输入内容后由 JS 控制显示） --- */
.simple-search .delete {
    display: none;
    position: absolute;
    top: 50%;
    right: 52px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z' fill='%23999'/%3E%3C/svg%3E");
    background-size: 100%;
    background-repeat: no-repeat;
}

/* --- 搜索建议词下拉（默认隐藏，输入时由 JS 控制显示） --- */
#Sugword {
    display: none;
    position: absolute;
    background-color: #fff;
    width: 100%;
    left: 0;
    top: 100%;
    padding: 6px 0;
    border: 2px solid var(--simple-color);
    border-top: none;
    border-radius: 0 0 14px 14px;
    list-style: none;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 6px 6px 0px rgba(0, 0, 0, .05);
}

#Sugword li {
    padding: 8px 15px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
}

#Sugword li:hover,
#Sugword li.choose {
    background-color: #f2f2f2;
}

/* --- 常用搜索词组 --- */
.search-group { display: none; }
.search-group li {
    padding: 10px 10px 15px;
    color: var(--simple-grey-color);
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    font-size: 18px;
}

.active-search-item {
    position: relative;
    color: var(--simple-color);
    font-weight: 600;
}

.active-search-item:before {
    content: '';
    border-width: 0px 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent var(--simple-color);
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -8px;
}

.active-search-group {
    display: flex;
    overflow: auto;
    white-space: nowrap;
    margin-bottom: 0;
}

.active-search-group::-webkit-scrollbar { height: 0px; }

/* --- 提示工具 --- */
.simple-tooltip {
    position: absolute;
    max-width: 180px;
    background-color: #000000;
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    z-index: 1000;
    display: none;
    text-align: justify;
    line-height: 1.5;
    padding: 8px;
}

.simple-tooltip img {
    border-radius: 4px;
    display: block;
}

.simple-tooltip::after {
    content: '';
    position: absolute;
    border-width: 5px;
    border-style: solid;
}

.simple-tooltip.top::after {
    border-color: #000000 transparent transparent transparent;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.simple-tooltip.bottom::after {
    border-color: transparent transparent #000000 transparent;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.simple-tooltip.left::after {
    border-color: transparent transparent transparent #000000;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.simple-tooltip.right::after {
    border-color: transparent #000000 transparent transparent;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
}


/* ========== 第四部分：卡片与分类布局 ========== */

/* --- 主内容容器 --- */
.main-content {
    position: relative;
    display: block;
    padding: 0 20px;
    background: transparent;
    box-shadow: none;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    border-radius: 0;
}

/* --- dh-content 内容区 --- */
.dh-content {
    margin: 0 auto;
    padding: 25px 0 15px;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    margin-top: 20px;
}

/* --- 分类模块 --- */
.content-item {
    margin-bottom: 20px;
}

.content-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 16px;
}

.content-item-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.content-item-head h1,
.content-item-head h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #383838;
    font-weight: 600;
    font-size: 18px;
}

.content-item-head h1 i,
.content-item-head h4 i {
    margin: 0;
    font-size: 22px;
    vertical-align: unset;
}

.content-item-head span a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #999;
    font-size: 18px;
    transition: all .25s ease;
}

.content-item-head span a:hover {
    background: #1677ff;
    color: #fff;
}

/* --- 分类图标 --- */
.content-item-head-left .icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.content-item-head-left .icon.cate-icon {
    color: #4CAF50;
    fill: currentColor;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

/* --- 子分类标签栏 --- */
.content-item-box {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.content-item-box::-webkit-scrollbar {
    display: none;
}

/* 普通标签：透明，无边框无底色 */
.content-item-box a,
.content-item-box a.content-item-link {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 6px 2px;
    border-radius: 0;
    background: transparent;
    color: #6e6e6e;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: none;
    position: relative;
}

.content-item-box a:hover {
    color: #222;
    background: transparent;
}

/* 激活标签：文字加粗，底部细装饰线 */
.content-item-box a.active,
.content-item-box a.on,
.content-item-box a.content-item-link.active,
.content-item-box a.content-item-link.on {
    background: #bd2b2b00 !important;
    color: #242424 !important;
    font-weight: 700;
}

.content-item-box a.active::after,
.content-item-box a.on::after,
.content-item-box a.content-item-link.active::after,
.content-item-box a.content-item-link.on::after {
    content: "";
    position: absolute;
    left: 43%;
    top: 15px;
    bottom: 0;
    width: 60%;
    height: 13px;
    transform: skewX(-15deg);
    background: linear-gradient(to right, transparent 0%, #29379830 100%);
}

/* 子分类选中角标 -> 浅绿色渐变 */
.content-item-box a.on::after,
.content-item-box a.content-item-link.on::after,
.content-item-box a.active::after,
.content-item-box a.content-item-link.active::after {
    background: linear-gradient(to right, transparent 0%, rgba(76, 175, 80, 0.35) 100%) !important;
}

/* 子分类选中状态文字改绿色 */
.content-item-box a.content-item-link.on,
.content-item-box a.content-item-link.active {
    color: #4CAF50 !important;
}

/* --- 网址卡片网格 --- */
.content-item-urls {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin: 0;
    background: transparent;
    border-radius: 0;
}

.content-item-urls .content-urls-item {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.content-item-urls .content-urls-item:hover {
    z-index: 10;
}

/* --- 单个网址卡片 --- */
.content-item-urls .content-urls-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-item-urls .content-urls-card:hover {
    transform: translateY(-3px);
    border-color: #dde4eb;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* --- 卡片body --- */
.content-urls-card .content-urls-body {
    position: relative;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    transform: none;
    transition: none;
}

.content-urls-card .content-urls-body:hover {
    transform: none;
}

.content-urls-card .content-url-flex {
    display: block;
    text-decoration: none;
}

.content-urls-card .content-card-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
}

/* --- 卡片图标 --- */
.content-urls-card .content-url-img {
    overflow: hidden;
    margin: 0;
    width: 26px;
    height: 26px;
    border-radius: 100px;
    background: #f5f5f5;
    flex: none;
    transition: transform 0.25s ease;
}

.content-urls-card .content-url-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    vertical-align: unset;
    opacity: 1;
    transition: opacity 0.3s;
}

.content-urls-card .content-url-img img.loaded {
    opacity: 1;
}

/* --- 卡片文字信息 --- */
.content-urls-card .content-url-info {
    flex: 1;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.content-urls-card .content-url-info strong {
    display: block;
    overflow: hidden;
    color: #383838;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.content-urls-card .content-url-info p {
    display: block;
    overflow: hidden;
    margin: 0;
    color: #999;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* --- 直达按钮（悬停时显示） --- */
.content-urls-card .content-url-togo {
    position: absolute;
    top: 30%;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(0px, 50%) rotate(30deg);
}

.content-urls-card .content-url-togo i {
    line-height: 1;
}

.content-urls-card:hover .content-url-togo {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(0px, -50%) rotate(30deg);
}

/* === collect-card 子分类（JS动态使用） === */
.collect-card {
    width: 100%;
    background-color: transparent;
    border-radius: var(--simple-border-radius-xl);
}

.collect-card-header {
    display: flex;
    align-items: center;
}

.collect-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.term-separator {
    margin: 0 5px 0 15px;
    height: 10px;
    width: 2.5px;
    border-radius: 2px;
    background-color: var(--simple-color);
}

.term-tab {
    display: flex;
    flex: 1;
    overflow-x: overlay;
    overflow-y: hidden;
    height: 28px;
    align-items: center;
}

.term-tab::-webkit-scrollbar {
    height: 0;
}

.term-tab-wrapper {
    display: flex;
    align-items: center;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin-left: 12px;
    position: relative;
    overflow: visible;
    border: none;
}

.term-tab-wrapper::before { display: none; }
.term-tab-wrapper.active-tab::before,
.term-tab-wrapper:has(.term-active)::before { display: none; }

.recommend-left .term-tab-wrapper {
    margin-left: 0;
}

.term-tab-item {
    flex-shrink: 0;
}

.term-tab-item a {
    display: block;
    font-size: 15px;
    line-height: 1;
    padding: 6px 14px;
    color: #9ca3af;
    border-radius: 20px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.term-tab-item a:hover {
    color: #22c55e;
}

.term-active {
    color: #22c55e !important;
    background-color: rgba(34, 197, 94, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600 !important;
}

.term-active:after { display: none; }

.collect-card-content { width: 100%; }
.collect-card-tab { display: none; flex-wrap: wrap; }
.tab-active { display: flex; }

/* === site-def 网址风格（JS动态使用） === */
.site-def-card-item {
    width: 16.6666%;
}

.site-def-url-body {
    color: var(--simple-black-color);
    border: 1px solid #e0e0e0;
    border-radius: var(--simple-border-radius-l);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    transition: border-color 0.2s ease;
    background-color: #ffffff;
}

.site-def-card-item:hover .site-def-url-body {
    border-color: #4CAF50;
}

.site-def-card-item:hover .site-def-go a {
    color: var(--simple-color);
}

.site-def-url-img {
    display: flex;
    height: 40px;
    width: 40px;
    margin: 0 8px 0 3px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.site-def-url-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-def-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 0 8px 0 6px;
    z-index: 2;
    line-height: 1;
}

.site-def-url-card {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: var(--simple-border-radius-l);
}

.site-def-url-info {
    flex: 1;
    width: 0;
    position: relative;
    z-index: 1;
}

.site-def-url-title {
    font-size: 16px;
    color: var(--simple-black-color);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.site-def-url-desc p {
    font-size: 13px;
    color: var(--simple-grey-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-def-tool { display: none; }
.site-def-go a { color: var(--simple-card-grey-bg-color); }

.simple-site {
    margin-bottom: 6px !important;
}

/* === 简约网格视图（JS动态使用） === */
.simple-grid-view {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 4px;
    box-sizing: border-box;
}

.simple-grid-item {
    width: calc(16.5% - 4px);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

.simple-grid-item:hover {
    background-color: #ffffff;
    border-color: #4CAF50;
}

.simple-grid-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.simple-grid-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simple-grid-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.simple-grid-arrow { display: none; }

/* 热门角标 */
.hot-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 0 8px 0 6px;
    z-index: 2;
    line-height: 1;
}

/* === 站长推荐左右布局（JS动态使用） === */
.main-recommend-container {
    display: flex;
    gap: 12px;
    width: 100%;
}

.recommend-left {
    flex: 1;
    min-width: 0;
}

.recommend-right {
    width: 280px;
    flex-shrink: 0;
}

.recommend-tabs {
    display: flex;
    gap: 8px;
}

.recommend-tab {
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recommend-tab:hover {
    background-color: #f0f0f0;
}

.recommend-tab.active {
    background-color: #4CAF50;
    color: white;
}

.edit-btn {
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    color: #4CAF50;
    background-color: #f0f0f0;
}

/* === 捐赠排名卡片（JS动态使用） === */
.donate-ranking-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.donate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.donate-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.donate-support {
    font-size: 12px;
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.donate-support:hover {
    background-color: rgba(76, 175, 80, 0.2);
}

.donate-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.donate-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.donate-item:hover {
    background-color: #fafafa;
}

.donate-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    color: #999;
    background-color: #f5f5f5;
}

.donate-rank.rank-1 { background-color: #FFD700; color: #8B4513; }
.donate-rank.rank-2 { background-color: #C0C0C0; color: #555; }
.donate-rank.rank-3 { background-color: #CD7F32; color: #fff; }
.donate-rank.rank-4 { background-color: #e0e0e0; color: #666; }
.donate-rank.rank-5 { background-color: #f0f0f0; color: #999; }

.donate-name {
    flex: 1;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donate-amount {
    font-size: 14px;
    font-weight: bold;
    color: #ff4444;
}

/* === 随机站点列表（JS动态使用） === */
.random-site-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: none;
    overflow-y: visible;
}

.random-site-item {
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.random-site-item:hover {
    background-color: #f5f5f5;
}

.random-site-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.random-site-item span {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* === 卡片搜索按钮（JS动态使用） === */
.site-card-search {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-card-search-trigger {
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.site-def-card-item:hover .site-card-search-trigger {
    width: 28px;
    height: 28px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.site-card-search-trigger i {
    display: none;
    color: #fff;
    font-size: 14px;
}

.site-def-card-item:hover .site-card-search-trigger i {
    display: block;
}

.site-card-search-input {
    width: 0;
    padding: 0;
    border: none;
    background-color: #fff;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: none;
}

.site-card-search.active .site-card-search-input {
    width: 120px;
    padding: 6px 10px;
    border: 1px solid #4CAF50;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-card-search.active .site-card-search-trigger {
    width: 28px;
    height: 28px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    border-radius: 50%;
}

.site-card-search.active .site-card-search-trigger i {
    display: block;
}

.site-card-search-trigger:hover {
    transform: scale(1.1);
}

.site-card-search-icon {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* === 在线人数徽标（JS动态使用） === */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    background: #f0f1f3;
    background-color: rgb(250 255 251 / 85%);
    backdrop-filter: blur(6px);
    border: 1px solid rgb(184 255 209 / 42%);
    border-radius: 40px;
    font-size: 14px;
    color: #1f2a3a;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

.green-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #11dd52;
    animation: breathe 2s infinite ease-in-out;
}

@keyframes breathe {
    0% { opacity: 0.6; transform: scale(0.9); box-shadow: 0 0 0 0 rgba(54, 209, 103, 0.3); }
    50% { opacity: 1; transform: scale(1.05); box-shadow: 0 0 12px 6px rgba(54, 209, 103, 0.45); }
    100% { opacity: 0.6; transform: scale(0.9); box-shadow: 0 0 0 0 rgba(54, 209, 103, 0.3); }
}

#online-count {
    font-weight: bold;
    color: #e10000;
}


/* ========== 第五部分：友情链接与底栏 ========== */

/* --- 友情链接区 --- */
.footer-links-section {
    margin: 0 auto 20px;
    width: 100%;
    max-width: 1400px;
    padding: 15px 0 5px;
    box-sizing: border-box;
    font-size: 14px;
    color: #666;
}

.footer-links-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-links-list {
    margin-bottom: 15px;
}

.footer-link-item {
    color: #888 !important;
    text-decoration: none;
    margin: 0 15px 8px 0;
    font-size: 12px;
    display: inline-block;
}

.footer-link-item:link,
.footer-link-item:visited {
    color: #999 !important;
}

.footer-link-item:hover {
    color: #4CAF50 !important;
}

/* --- 申请友链按钮（从 index.html 内联样式迁移） --- */
.apply-link {
    font-size: 12px;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-decoration: none;
    color: #666;
    cursor: pointer;
}

/* --- SVG 精灵图（symbol 定义，页面不可见） --- */
.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- 底栏 --- */
.simple-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.simple-footer-content {
    padding: 20px 0;
}

.simple-footer-content-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-footer-name {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-logo-dark {
    display: none;
}

.simple-footer-follow {
    display: flex;
    align-items: center;
}

.simple-footer-follow-icon {
    display: flex;
    gap: 12px;
}

.follow-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.follow-icon:hover {
    background-color: #22c55e;
    color: #fff;
}

.follow-icon i {
    font-size: 18px;
}

.follow-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.simple-footer-bottom {
    padding: 15px 0;
    background-color: #ffffff;
    border-top: 1px dashed #eee;
    font-size: 12px;
    color: #666;
}

.simple-footer-bottom-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-name {
    color: #22c55e;
    text-decoration: none;
}

.footer-beian {
    color: #999;
    text-decoration: none;
}

.simple-footer-link {
    display: flex;
    align-items: center;
    gap: 0;
}

.simple-footer-link a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 6px;
}

.simple-footer-link a + a::before {
    content: "/";
    color: #999;
    margin-right: 6px;
}

.simple-footer-link a:hover {
    color: #22c55e;
}


/* ========== 第六部分：响应式适配 ========== */

/* --- dh-content 大屏适配 --- */
@media (min-width: 1920px) {
    .dh-content { max-width: 100%; }
}
@media (max-width: 1919.98px) {
    .dh-content { max-width: 100%; }
}
@media (max-width: 1599.98px) {
    .dh-content { max-width: 100%; }
}
@media (max-width: 1399.98px) {
    .dh-content { max-width: 100%; }
    .content-item-urls {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 1199.98px) {
    .dh-content { max-width: 100%; }
    .content-item-urls {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 991.98px) {
    .dh-content { max-width: 100%; margin: 0 auto 0; }
    .content-item-urls {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 10px;
    }
    .content-urls-card .content-card-body {
        padding: 10px 12px;
        gap: 8px;
    }
    .content-urls-card .content-url-img {
        width: 24px;
        height: 24px;
    }
    .content-urls-card .content-url-info strong {
        font-size: 13px;
    }
    .content-urls-card .content-url-info p {
        font-size: 10px;
        display: none;
    }
    .content-item-urls .content-urls-card {
        border-radius: 6px;
    }
}

/* --- 手机端 (≤767px) --- */
@media (max-width: 767px) {
    /* 顶栏 */
    .header-nav { display: none; }
    .header-content { padding: 0 16px; }
    .simple-footer-content-wrap,
    .simple-footer-bottom-wrap { padding: 0 16px; }
    .dh-content { max-width: 720px; padding: 8px 0; }

    /* 搜索 */
    .hide-mobile { display: none; }
    .bookmark .simple-search { padding-top: 64px; margin-bottom: 10px; }
    .search-group li { font-size: 16px; padding: 8px 10px 15px; }

    /* 公告 */
    .header-notice { display: none; }

    /* 内容卡片 */
    .content-item-urls {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px 0;
    }
    .content-item-head {
        flex-wrap: wrap;
        gap: 10px;
    }
    .content-item-head-left {
        width: 100%;
        gap: 0px;
    }
    .content-item-head h1,
    .content-item-head h4 {
        font-size: 16px;
        min-width: 96px;
    }
    .content-item-box {
        gap: 0;
    }
    .content-item-box a.active::after,
    .content-item-box a.on::after,
    .content-item-box a.content-item-link.active::after,
    .content-item-box a.content-item-link.on::after {
        left: 18px;
        top: 13px;
    }
    .content-item-box a,
    .content-item-box a.content-item-link {
        padding: 5px 12px;
        font-size: 13px;
    }
    .content-urls-card .content-card-body {
        gap: 8px;
        padding: 7px 10px;
    }
    .content-urls-card .content-url-img {
        width: 24px;
        height: 24px;
    }
    .content-urls-card .content-url-info strong {
        font-size: 13px;
    }
    .content-urls-card .content-url-info p {
        font-size: 10px;
        display: none;
    }
    .content-urls-card .content-url-togo {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translate(13px, -50%) rotate(45deg);
    }
    .content-item-urls .content-urls-card {
        border-radius: 6px;
    }

    /* 网址风格 */
    .site-def-card-item,
    .site-two-card-item,
    .site-thr-card-item,
    .software-one-card-item {
        width: 33.3333%;
    }
    .site-def-url-body {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    .site-def-url-desc { display: none; }
    .site-def-url-img {
        height: 32px;
        width: 32px;
        margin: 0 6px 0 2px;
    }
    .site-def-url-img img {
        width: 32px !important;
        height: 32px !important;
    }
    .site-def-url-title {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }

    /* 简约网格 */
    .simple-grid-item {
        width: calc(33.333% - 4px) !important;
    }
    .simple-grid-arrow { display: none; }

    /* 推荐 */
    .main-recommend-container {
        flex-direction: column;
    }
    .recommend-right {
        width: 100%;
        display: none;
    }

    /* 卡片搜索 */
    .site-card-search.active .site-card-search-input {
        width: 100px;
        padding: 5px 8px;
        font-size: 12px;
    }
    .site-def-card-item:hover .site-card-search-trigger,
    .site-card-search.active .site-card-search-trigger {
        width: 24px;
        height: 24px;
    }
    .site-card-search-trigger i,
    .site-card-search-icon {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }

    /* 返回顶部按钮 */
    .float-toolbar { bottom: 20px; }

    /* 子分类 */
    .collect-card-header .term-tab-item a {
        font-size: 14px !important;
        padding: 5px 12px !important;
    }
}

/* --- 超小屏 (≤480px) --- */
@media (max-width: 480px) {
    .content-item-urls {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 2px 0;
    }
    .content-urls-card .content-card-body {
        padding: 5px 5px;
        gap: 6px;
    }
    .content-item-urls .content-urls-card {
        border-radius: 6px;
    }
    .content-urls-card .content-url-img {
        width: 24px;
        height: 24px;
    }
    .content-urls-card .content-url-info strong {
        font-size: 12px;
    }
    .content-urls-card .content-url-info p {
        font-size: 10px;
        display: none;
    }
    .simple-grid-item {
        width: calc(50% - 3px);
    }
}


/* ========== 第七部分：自定义覆盖样式 ========== */

/* --- 分类图标与标题间距优化 --- */
.content-item-head h1,
.content-item-head h4 {
    gap: 3px !important;
}

.content-item-head .cate-icon {
    margin-right: 2px !important;
}

.content-item-head-left {
    gap: 8px !important;
}

.content-item-box {
    gap: 6px !important;
    padding: 2px 0 !important;
}

.content-item-box a,
.content-item-box a.content-item-link {
    padding: 4px 2px !important;
}

/* --- 卡片布局覆盖（无边框/圆形图标/hover上浮） --- */
.content-urls-card {
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    overflow: hidden !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}

.content-urls-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
    border-color: transparent !important;
}

.content-urls-card .content-card-body {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 10px 5px !important;
    border: none !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    transition: background-color 0.2s ease !important;
}

.content-urls-card:hover .content-card-body {
    background-color: #ffffff !important;
}

/* 图标 40px 圆形 */
.content-urls-card .content-url-img {
    width: 40px !important;
    height: 40px !important;
    margin: 0 8px 0 3px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.content-urls-card .content-url-img img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    vertical-align: unset !important;
}

/* 文字信息容器 */
.content-urls-card .content-url-info {
    flex: 1 !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 标题 15px 加粗 */
.content-urls-card .content-url-info strong {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    color: #000 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

/* 简介 12px 灰色 */
.content-urls-card .content-url-info p {
    font-size: 12px !important;
    margin: 0 !important;
    color: #878787 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.5 !important;
}

/* --- collect-card 子分类覆盖 --- */
.collect-card-header .term-tab-wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 12px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.collect-card-header .term-tab-wrapper::before {
    display: none !important;
}

.collect-card-header .term-tab-item a {
    display: inline-block !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    padding: 6px 16px !important;
    color: #9ca3af !important;
    border-radius: 20px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    z-index: 1 !important;
    font-weight: 500 !important;
    background: transparent !important;
}

.collect-card-header .term-tab-item a:hover {
    color: #22c55e !important;
}

.collect-card-header .term-tab-item a.term-active {
    color: #22c55e !important;
    background-color: rgba(34, 197, 94, 0.12) !important;
    font-weight: 600 !important;
}

/* --- site-def 卡片覆盖 --- */
.simple-site.site-def-card-item {
    margin-bottom: 6px !important;
}

.simple-site.site-def-card-item .site-def-url-body {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.simple-site.site-def-card-item:hover .site-def-url-body {
    border-color: #22c55e !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1) !important;
}

.simple-site.site-def-card-item .site-def-url-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
}

.simple-site.site-def-card-item .site-def-url-desc p {
    font-size: 12px !important;
    margin-bottom: 0 !important;
}

.simple-site.site-def-card-item .site-def-url-img {
    height: 38px;
    width: 38px;
}

.simple-site.site-def-card-item .site-def-url-img img {
    width: 38px !important;
    height: 38px !important;
}

/* --- 简约网格覆盖 --- */
.simple-grid-item {
    padding: 8px 10px !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease !important;
}

.simple-grid-item:hover {
    border-color: #22c55e !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1) !important;
}

.simple-grid-item .simple-grid-name {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* --- 手机端 site-def 覆盖 --- */
@media (max-width: 767px) {
    .site-def-card-item,
    .site-two-card-item,
    .site-thr-card-item,
    .software-one-card-item {
        width: 33.3333% !important;
    }

    .simple-site.site-def-card-item {
        margin-bottom: 4px !important;
    }

    .simple-site.site-def-card-item .site-def-url-body {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .simple-site.site-def-card-item .site-def-url-desc {
        display: none !important;
    }

    .simple-site.site-def-card-item .site-def-url-img {
        height: 32px;
        width: 32px;
        margin-right: 6px;
    }

    .simple-site.site-def-card-item .site-def-url-img img {
        width: 32px !important;
        height: 32px !important;
    }

    .simple-site.site-def-card-item .site-def-url-title {
        font-size: 13px !important;
        margin-bottom: 0 !important;
        font-weight: 500 !important;
    }

    .simple-grid-item {
        width: calc(33.333% - 4px) !important;
    }
}

/* --- 手机端 content-urls-card 覆盖 --- */
@media (max-width: 767.98px) {
    .content-urls-card .content-url-img {
        width: 24px !important;
        height: 24px !important;
        margin: 0 5px 0 1px !important;
        flex: 0 0 24px !important;
    }

    .content-urls-card .content-url-img img {
        width: 24px !important;
        height: 24px !important;
    }

    .content-urls-card .content-url-info strong {
        font-size: 12px !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }

    .content-urls-card .content-url-info p {
        display: none !important;
    }

    .content-urls-card .content-card-body {
        padding: 7px 5px !important;
    }
}


/* ========== 第八部分：弹窗组件 ========== */

/* === 加载动画 === */
#loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-image {
    width: 100px;
    height: 100px;
}

/* === 省钱助手/App弹窗（合并两处内联样式，去重） === */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-mask.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
}

.modal-wrap {
    position: relative;
    width: min(92vw, 360px);
    transform: scale(0.9);
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.modal-mask.show .modal-wrap {
    transform: scale(1);
}

.app-icon {
    position: absolute;
    left: 50%;
    top: -48px;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: #fff;
    flex-shrink: 0;
}

.play-inner {
    width: 90px;
    height: 90px;
}

.play-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 18px;
    display: block;
}

.modal-box {
    background: linear-gradient(120deg, #e8f5e9, #fff9e7);
    border-radius: 20px;
    padding: 60px 20px 24px 20px;
}

.modal-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #303030;
    margin-bottom: 6px;
}

.modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 26px;
}

.modal-subtitle-sq {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 16px;
}

/* 弹窗卡片项 */
.card-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.card-item a {
    color: #fff;
    text-decoration: none;
}

.card-item-sq {
    background: #ffffff;
    width: 200px;
    margin: 0 auto;
    border-radius: 20px;
    margin-bottom: 14px;
    text-align: center;
    padding: 8px;
}

.card-item-sq img {
    width: 180px;
    border-radius: 20px;
}

.card-left {
    display: flex;
    gap: 10px;
}

.icon-tag-android, .icon-tag-ios {
    color: #0f9930;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.icon-tag-db-android {
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.icon-tag-QQ-android {
    color: #6e7283;
    font-size: 16px;
    flex-shrink: 0;
}

.card-text h4 {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-top: 3px;
}

.card-desc {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

.step-list {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
}

.download-btn,
.download-btn2 {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
    height: 36px;
    flex-shrink: 0;
}

.download-btn a,
.download-btn2 a {
    display: block;
    width: 100%;
}

.card-disabled {
    background: #ffffff;
}

.tag-soon {
    background: #ffd84c;
    color: #544200;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: 6px;
    flex-shrink: 0;
}

.modal-bottom-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.detail-btn {
    background: #fff;
    color: #4CAF50;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
}

.detail-btn a {
    color: #4CAF50;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.close-btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
}

.footer-tip {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #777;
}

.footer-tip a {
    color: #4CAF50;
    text-decoration: none;
}

/* ========== 第九部分：浮动按钮 ========== */

/* --- 返回顶部工具栏 --- */
.float-toolbar {
    position: fixed;
    right: 12px;
    bottom: 80px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 9999;
}

.float-btn {
    width: 40px;
    height: 40px;
    background: rgba(200, 200, 200, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.float-btn:hover {
    background: rgba(200, 200, 200, 0.7);
}

.float-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* --- 收藏提示按钮 --- */
.ai-btn {
    position: fixed;
    bottom: 124px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #666666;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-btn:hover {
    background-color: #f5f5f5;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ai-btn:active {
    transform: translateY(0);
}

/* --- 浮动按钮响应式 --- */
@media (max-width: 767px) {
    .float-toolbar {
        bottom: 20px;
        right: 10px;
    }
}

/* --- 收藏提示响应式 --- */
@media (max-width: 768px) {
    #bookmark-tip {
        display: none !important;
    }
}


/* ========== 第十部分：暗夜模式 ========== */

/* --- 暗色模式变量 --- */
body.dark-theme {
    --dark-bg: #121212;
    --dark-bg-secondary: #1a1a1a;
    --dark-bg-card: #242424;
    --dark-text: #e4e4e7;
    --dark-text-secondary: #a1a1aa;
    --dark-border: #333333;
    background-color: #121212;
    color: #e4e4e7;
}

/* --- 顶栏暗色 --- */
body.dark-theme .top-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333333;
}

body.dark-theme .top-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-theme .logo-light { display: none; }
body.dark-theme .logo-dark { display: block; }

body.dark-theme .nav-item { color: #a1a1aa; }
body.dark-theme .nav-item:hover,
body.dark-theme .nav-item.active { color: #22c55e; }

/* --- 主题切换按钮暗色 --- */
body.dark-theme .theme-toggle-btn {
    background-color: #374151;
    color: #e5e7eb;
}

body.dark-theme .theme-toggle-btn:hover {
    background-color: #4b5563;
    color: #fbbf24;
}

body.dark-theme .theme-toggle-btn .icon-sun { display: none; }
body.dark-theme .theme-toggle-btn .icon-moon { display: block; }

/* --- 搜索框暗色 --- */
body.dark-theme .simple-search input {
    background-color: #1a1a1a;
    border-color: #333333;
    color: #e4e4e7;
}

body.dark-theme .simple-search input::placeholder {
    color: #666666;
}

body.dark-theme .simple-search button {
    background-color: #22c55e;
}

body.dark-theme .active-search-item { color: #22c55e; }
body.dark-theme .active-search-item:before { border-color: transparent transparent #22c55e; }
body.dark-theme .search-group li { color: #a1a1aa; }

/* --- 分类标签暗色 --- */
body.dark-theme .term-tab-wrapper {
    background-color: transparent;
    border-color: transparent;
}

body.dark-theme .term-tab-item a { color: #71717a; }
body.dark-theme .term-tab-item a:hover { color: #22c55e; }

body.dark-theme .term-active {
    color: #22c55e !important;
    background-color: rgba(34, 197, 94, 0.15);
}

body.dark-theme .term-tab-wrapper::before { display: none; }

/* --- 卡片暗色 --- */
body.dark-theme .collect-card { background-color: transparent; }
body.dark-theme .collect-card-header { border-bottom: 1px solid #333333; }

body.dark-theme .simple-grid-item {
    background-color: #1a1a1a;
    border-color: #333333;
}

body.dark-theme .simple-grid-item:hover {
    background-color: #242424;
}

body.dark-theme .simple-grid-name { color: #e4e4e7; }

body.dark-theme .site-def-url-body {
    background-color: #1a1a1a;
    border-color: #333333;
}

body.dark-theme .site-def-url-title { color: #e4e4e7; }
body.dark-theme .site-def-url-desc p { color: #a1a1aa; }

/* --- 友情链接暗色 --- */
body.dark-theme .footer-links-title {
    color: #e4e4e7;
    border-bottom-color: #333333;
}

/* --- 投稿按钮暗色 --- */
body.dark-theme .submit-btn {
    background-color: #22c55e;
}

body.dark-theme .notice-item { color: #a1a1aa; }
body.dark-theme .notice-highlight { color: #22c55e; }

/* --- 搜索建议暗色 --- */
body.dark-theme #Sugword {
    background-color: #1a1a1a;
    border-color: #333333;
}

body.dark-theme #Sugword li { color: #e4e4e7; }
body.dark-theme #Sugword li:hover,
body.dark-theme #Sugword li.choose {
    background-color: #242424;
}

/* --- 底栏暗色 --- */
body.dark-theme .simple-footer {
    background-color: #1a1a1a;
    border-top-color: #333;
}

body.dark-theme .simple-footer-name { color: #e4e4e7; }
body.dark-theme .footer-logo-light { display: none; }
body.dark-theme .footer-logo-dark { display: block; }

body.dark-theme .simple-footer-bottom {
    background-color: #242424;
    border-top-color: #333;
    color: #a1a1aa;
}

body.dark-theme .follow-icon {
    background-color: #333;
    color: #a1a1aa;
}

body.dark-theme .simple-footer-link a { color: #a1a1aa; }

body.dark-theme .footer-tools-item {
    background-color: #333;
    color: #a1a1aa;
}

body.dark-theme .footer-tools-item:hover {
    background-color: #22c55e;
    color: #fff;
}

/* --- 浮动按钮暗色 --- */
body.dark-theme .float-btn {
    background: rgba(80, 80, 80, 0.5);
}

body.dark-theme .float-btn:hover {
    background: rgba(80, 80, 80, 0.7);
}

body.dark-theme .float-btn svg {
    color: #fff;
}

/* --- collect-card 子分类暗色覆盖 --- */
body.dark-theme .collect-card-header .term-tab-item a { color: #71717a !important; }
body.dark-theme .collect-card-header .term-tab-item a:hover { color: #22c55e !important; }
body.dark-theme .collect-card-header .term-tab-item a.term-active {
    color: #22c55e !important;
    background-color: rgba(34, 197, 94, 0.15) !important;
}

/* --- site-def 卡片暗色覆盖 --- */
body.dark-theme .simple-site.site-def-card-item .site-def-url-body {
    background-color: #1a1a1a !important;
    border-color: #333333 !important;
}

body.dark-theme .simple-site.site-def-card-item:hover .site-def-url-body {
    border-color: #22c55e !important;
}

body.dark-theme .simple-grid-item {
    background-color: #1a1a1a !important;
    border-color: #333333 !important;
}

body.dark-theme .simple-grid-item:hover {
    border-color: #22c55e !important;
}

/* --- content-urls-card 暗色覆盖 --- */
body.dark-theme .content-urls-card .content-card-body {
    background-color: #1a1a1a !important;
}

body.dark-theme .content-urls-card:hover .content-card-body {
    background-color: #1a1a1a !important;
}

body.dark-theme .content-urls-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .content-urls-card .content-url-info strong {
    color: #e4e4e7 !important;
}
/* 推荐站点标题红色：普通/暗色模式下均需 !important 覆盖 strong 的 #000/#e4e4e7 */
.content-urls-card .content-url-info strong.title-recommend {
    color: #e74c3c !important;
    font-weight: 700;
}
body.dark-theme .content-urls-card .content-url-info strong.title-recommend {
    color: #ff7a7a !important;
    font-weight: 700;
}

body.dark-theme .content-urls-card .content-url-info p {
    color: #a1a1aa !important;
}

/* --- 分类标题和子分类暗色 --- */
body.dark-theme .content-item-head h1,
body.dark-theme .content-item-head h4 {
    color: #ffffff !important;
}

body.dark-theme .content-item-box a {
    color: #ffffff !important;
}

body.dark-theme .content-item-box a:hover {
    color: #ffffff !important;
}

body.dark-theme .content-item-box a.content-item-link.on {
    color: #ffffff !important;
}

/* --- dh-content 暗色（移除暗色背景，与整体暗夜背景一致） --- */
body.dark-theme .dh-content {
    background: transparent;
}

/* ================================================================
   第十一部分：关于页面样式
   ================================================================ */

/* --- 关于页面主容器 --- */
.about-page {
    padding: 100px 0 60px;
    min-height: calc(100vh - 200px);
    background-color: #f4f5f7;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 每个区块 --- */
.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 0;
}

/* --- 区块标题 --- */
.about-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-title-hash {
    color: #22c55e;
    font-weight: 700;
    font-size: 26px;
}

/* --- 内容文字 --- */
.about-content {
    font-size: 14px;
    line-height: 1.8;
    color: #4a4a60;
}

.about-content p {
    margin-bottom: 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: #1a1a2e;
    font-weight: 600;
}

.about-content a {
    color: #22c55e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-content a:hover {
    color: #16a34a;
    text-decoration: underline;
}

/* --- 列表样式 --- */
.about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.about-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 13px;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

/* --- 友情链接卡片 --- */
.about-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.about-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    text-decoration: none;
    color: #1a1a2e !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
}

.about-link-item:hover {
    border-color: #1a1a2e;
    color: #1a1a2e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-link-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* --- 响应式：平板 --- */
@media (max-width: 768px) {
    .about-page {
        padding: 80px 0 40px;
    }

    .about-container {
        padding: 0 12px;
    }

    .about-title {
        font-size: 18px;
    }

    .about-title-hash {
        font-size: 22px;
    }

    .about-content {
        font-size: 13px;
    }

    .about-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 响应式：手机 --- */
@media (max-width: 480px) {
    .about-page {
        padding: 80px 0 30px;
    }

    .about-container {
        padding: 0 20px;
    }

    .about-title {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .about-title-hash {
        font-size: 20px;
    }

    .about-content {
        font-size: 13px;
        line-height: 1.75;
    }

    .about-section {
        margin-bottom: 32px;
    }

    .about-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .about-link-item {
        padding: 8px 12px;
        font-size: 12px;
        gap: 8px;
    }

    .about-link-item img {
        width: 18px;
        height: 18px;
    }
}

/* --- 暗夜模式：关于页面 --- */
body.dark-theme .about-page {
    background-color: #1a1a1a;
}

body.dark-theme .about-container {
    background: transparent;
}

body.dark-theme .about-title {
    color: #ffffff;
}

body.dark-theme .about-content {
    color: #b0b0b0;
}

body.dark-theme .about-content strong {
    color: #e0e0e0;
}

body.dark-theme .about-content a {
    color: #22c55e;
}

body.dark-theme .about-list li::before {
    background: #22c55e;
}

body.dark-theme .about-link-item {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0 !important;
}

body.dark-theme .about-link-item:hover {
    border-color: #ffffff;
    color: #ffffff !important;
}

/* ============================================
   手机端搜索框下方推广图（2 张，点击跳转）
   仅手机端显示，桌面隐藏
   ============================================ */
.mobile-banners {
    display: none;
}
@media (max-width: 768px) {
    .mobile-banners {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        max-width: 800px;
        margin: 18px auto 0;
    }
    .mobile-banner {
        display: block;
        border-radius: 10px;
        overflow: hidden;
        background: #f2f2f2;
    }
    body.dark-theme .mobile-banner {
        background: #2a2a2a;
    }
    .mobile-banner img {
        width: 100%;
        height: auto;
        display: block;
    }
}
