/* YiceGo Dark Mode
   Clean, high-contrast dark theme */

/* ==================== Variables ==================== */
:root {
    --yg-bg: #1a1a2e;
    --yg-card-bg: #222240;
    --yg-text: #e8ecf1;
    --yg-text-secondary: #a0a8b8;
    --yg-border: rgba(255, 255, 255, .08);
    --yg-shadow: 0 2px 12px rgba(0, 0, 0, .3);
    --yg-shadow-hover: 0 4px 20px rgba(0, 0, 0, .4);
    --yg-input-bg: rgba(255, 255, 255, .06);
}

body {
    background-color: #1a1a2e;
    color: #e8ecf1;
}

/* ==================== Header ==================== */
.yicego-header {
    background: rgba(26, 26, 46, .95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
}

/* Logo */
.header-logo .logo-text {
    background: linear-gradient(135deg, #7c93ee, #a78bfa) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Nav links - HIGH VISIBILITY */
.header-nav a,
.header-nav .nav-item,
.yicego-header .header-nav a,
.yicego-header .header-nav .nav-item,
.header-nav .has-submenu > a {
    color: #e0e4eb !important;
}

.header-nav a:hover,
.header-nav .nav-item:hover,
.yicego-header .header-nav a:hover,
.header-nav .has-submenu > a:hover {
    color: var(--yg-primary) !important;
    background: rgba(255, 255, 255, .06) !important;
}

/* Submenu */
.header-nav .submenu {
    background: #222240 !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5) !important;
}

.header-nav .submenu a {
    color: #c0c6d4 !important;
}

.header-nav .submenu a:hover {
    color: var(--yg-primary) !important;
    background: rgba(255, 255, 255, .06) !important;
}

/* Search */
.header-search input,
.header-search .search-input {
    background: rgba(255, 255, 255, .06) !important;
    border-color: rgba(255, 255, 255, .08) !important;
    color: #e8ecf1 !important;
}

.header-search input:focus,
.header-search .search-input:focus {
    border-color: var(--yg-primary) !important;
    background: rgba(255, 255, 255, .08) !important;
}

.header-search .search-icon {
    color: #a0a8b8 !important;
}

/* Dark toggle */
.dark-toggle {
    background: rgba(255, 255, 255, .06) !important;
    color: #c0c6d4 !important;
}

/* Hamburger */
.header-hamburger span {
    background: #e0e4eb !important;
}

/* User dropdown */
.header-user .user-dropdown {
    background: #222240 !important;
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5) !important;
}

.header-user .user-dropdown a {
    color: #c0c6d4 !important;
}

.header-user .user-dropdown a:hover {
    background: rgba(255, 255, 255, .06) !important;
    color: var(--yg-primary) !important;
}

/* ==================== Cards & Containers ==================== */
.post-item,
.aside-box,
.single-post,
.yicego-comment-form,
.comment-item,
.yicego-notice,
.yicego-collapse,
.yicego-download,
.yicego-pwdshow,
.post-page-card,
.author-header,
.search-header,
.archive-header,
.archive-page-header,
.user-center-profile,
.user-center-edit,
.user-center-links,
.user-center-guest,
.full-page-article {
    background: var(--yg-card-bg) !important;
    border-color: var(--yg-border) !important;
}

.post-item:hover {
    box-shadow: var(--yg-shadow-hover) !important;
}

.post-item.grid-card {
    border: 1px solid rgba(255, 255, 255, .06) !important;
}

.post-item.grid-card:hover {
    border-color: rgba(255, 255, 255, .12) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .4) !important;
}

/* ==================== Text Colors ==================== */
.post-item .post-title a,
.post-item .post-info h2 a,
.post-item.grid-card .post-info h2 a,
.widget-title,
.single-post .post-title,
.aside-box a,
.archive-page-title,
.section-title,
.user-center-name,
.full-page-title,
.toc-title,
.footer-col-title {
    color: #e8ecf1;
}

.post-item .post-title a:hover,
.post-item .post-info h2 a:hover,
.post-item.grid-card .post-info h2 a:hover {
    color: var(--yg-primary);
}

.post-excerpt,
.post-meta,
.post-meta span,
.post-meta-item,
.post-meta-item i,
.user-center-email,
.stat-label {
    color: #a0a8b8;
}

.single-post .post-header .post-meta {
    border-top-color: var(--yg-border);
}

.single-post .post-header .post-meta .post-meta-item a {
    color: #a0a8b8;
}

.single-post .post-header .post-meta .post-meta-item a:hover {
    color: var(--yg-primary);
}

/* Category tag */
.post-cat-tag {
    background: rgba(102, 126, 234, .15) !important;
    color: var(--yg-primary) !important;
}

.post-cat-tag:hover {
    background: var(--yg-gradient) !important;
    color: #fff !important;
}

/* ==================== Content Area ==================== */
.content-warp {
    color: #ccd0da !important;
}

/* Override inline color styles from pasted content (e.g. WeChat articles) */
.content-warp [style*="color"],
.content-warp p,
.content-warp span,
.content-warp li,
.content-warp td,
.content-warp th,
.content-warp div,
.content-warp section,
.content-warp strong,
.content-warp em,
.content-warp b,
.content-warp i:not(.iconfont) {
    color: #ccd0da !important;
}

.content-warp a {
    color: var(--yg-primary) !important;
}

.content-warp h1, .content-warp h2, .content-warp h3,
.content-warp h4, .content-warp h5, .content-warp h6 {
    color: #f0f2f8 !important;
}

/* Override inline border-bottom colors on headings */
.content-warp h1[style], .content-warp h2[style], .content-warp h3[style],
.content-warp h4[style], .content-warp h5[style], .content-warp h6[style] {
    border-bottom-color: var(--yg-border) !important;
}

.content-warp blockquote {
    background: rgba(102, 126, 234, .06) !important;
    border-left-color: var(--yg-primary) !important;
    color: #a0a8b8 !important;
}

.content-warp blockquote p,
.content-warp blockquote span {
    color: #a0a8b8 !important;
}

.content-warp pre,
.content-warp code {
    background: #16162e !important;
    color: #e8ecf1 !important;
}

.content-warp pre {
    border-color: rgba(255, 255, 255, .06) !important;
}

.content-warp table th {
    background: rgba(102, 126, 234, .12) !important;
    color: #e8ecf1 !important;
}

.content-warp table td {
    border-color: var(--yg-border) !important;
    color: #ccd0da !important;
}

/* Override inline background colors from pasted content */
.content-warp [style*="background"] {
    background-color: transparent !important;
}

.content-warp table tr:nth-child(even) {
    background: rgba(255, 255, 255, .02);
}

.content-warp img {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .3) !important;
}

.content-warp img:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .45) !important;
}

.content-warp hr {
    background: linear-gradient(to right, transparent, var(--yg-border), transparent);
}

.content-warp a {
    border-bottom-color: rgba(102, 126, 234, .2);
}

/* ==================== Forms ==================== */
input, textarea, select {
    background: var(--yg-input-bg) !important;
    border-color: var(--yg-border) !important;
    color: #e8ecf1 !important;
}

input::placeholder, textarea::placeholder {
    color: #606878 !important;
}

/* ==================== Sidebar ==================== */
.aside-box {
    background: var(--yg-card-bg) !important;
    border: 1px solid var(--yg-border) !important;
}

.widget-title::before {
    background: var(--yg-gradient) !important;
}

.widget-title::after {
    background: var(--yg-gradient) !important;
}

.widget-title {
    border-bottom-color: var(--yg-border) !important;
}

/* ==================== Hero Swiper ==================== */
.hero-swiper-inner {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

/* ==================== Card List ==================== */
.card-item {
    background: var(--yg-card-bg) !important;
    border: 1px solid var(--yg-border) !important;
}

.card-item:hover {
    box-shadow: var(--yg-shadow-hover) !important;
}

.card-title { color: #e8ecf1; }
.card-desc { color: #a0a8b8; }

/* ==================== Section Header ==================== */
.section-title { color: #e8ecf1; }

/* ==================== Tab Nav ==================== */
.tab-nav {
    background: rgba(255, 255, 255, .04) !important;
    border-color: var(--yg-border) !important;
    box-shadow: var(--yg-shadow) !important;
}

.tab-nav-item,
.tab-btn {
    color: #a0a8b8;
}

.tab-nav-item.active,
.tab-btn.active {
    color: #fff;
}

.tab-nav-item:hover,
.tab-btn:hover {
    color: var(--yg-primary);
}

/* ==================== Toast ==================== */
.yicego-toast {
    background: #222240 !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    color: #e8ecf1 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

/* ==================== ToC ==================== */
.post-directory {
    background: var(--yg-card-bg) !important;
    border-color: var(--yg-border) !important;
}

.toc-list a { color: #a0a8b8; }
.toc-list a:hover,
.toc-item.active a { color: var(--yg-primary); }

/* ==================== Share ==================== */
.share-dialog-overlay { background: rgba(0, 0, 0, .6); }
.share-dialog {
    background: #222240 !important;
    border-color: var(--yg-border) !important;
}

.share-dialog-title { color: #e8ecf1; }
.share-dialog-post-title { color: #a0a8b8; }
.share-link { background: rgba(255, 255, 255, .04); color: #c0c6d4; }
.share-link:hover { background: rgba(255, 255, 255, .08); color: var(--yg-primary); }

/* ==================== Notice ==================== */
.yicego-site-notice {
    background: rgba(34, 34, 64, .95) !important;
    border-color: rgba(255, 255, 255, .06) !important;
    color: #c0c6d4;
}

/* ==================== Loading ==================== */
.loading-overlay { background: rgba(26, 26, 46, .98); }

/* ==================== Tags ==================== */
.post-tags .tag-item,
.tagcloud a,
.tag-cloud a {
    background: rgba(255, 255, 255, .04) !important;
    color: #c0c6d4 !important;
    border-color: var(--yg-border) !important;
}

.post-tags .tag-item:hover,
.tagcloud a:hover,
.tag-cloud a:hover {
    background: rgba(102, 126, 234, .12) !important;
    color: var(--yg-primary) !important;
    border-color: transparent !important;
}

/* ==================== Action Buttons ==================== */
.post-action-btn, .like-btn, .share-btn {
    background: rgba(255, 255, 255, .04);
    color: #c0c6d4;
    border-color: var(--yg-border);
}

.post-action-btn:hover, .like-btn:hover, .share-btn:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--yg-primary);
}

.like-btn.liked { color: #ef4444; }

/* ==================== Go-Top ==================== */
.go-top, .back-to-top {
    background: var(--yg-card-bg) !important;
    border: 1px solid var(--yg-border) !important;
    color: #c0c6d4 !important;
}

.go-top:hover, .back-to-top:hover {
    background: var(--yg-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ==================== Login Modal ==================== */
.yicego-login-modal { background: rgba(0, 0, 0, .6); }
.login-modal-inner {
    background: #222240 !important;
    border-color: var(--yg-border) !important;
}

.login-modal-title { color: #e8ecf1; }
.login-tab { color: #a0a8b8; }
.login-tab.active { color: var(--yg-primary); }

/* ==================== Mobile Nav ==================== */
.phone-nav {
    background: rgba(26, 26, 46, .98) !important;
    border-color: var(--yg-border) !important;
}

.phone-nav-item { color: #a0a8b8; }
.phone-nav-item:hover, .phone-nav-item.active { color: var(--yg-primary); }

.mobile-nav-overlay {
    background: rgba(0, 0, 0, .6) !important;
}

.mobile-nav {
    background: var(--yg-card-bg) !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .4);
}

.mobile-nav-header {
    border-color: var(--yg-border) !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, .12), rgba(118, 75, 162, .1)) !important;
}
.mobile-nav-username { color: #e0e4eb; }
.mobile-nav-avatar img { border-color: var(--yg-primary); }
.mobile-nav-close { color: #a0a8b8; }
.mobile-nav-close:hover { background: rgba(255, 255, 255, .08); color: #e0e4eb; }
.mobile-nav-icon { color: #a0a8b8; }
.mobile-nav-item { color: #e0e4eb; }
.mobile-nav-item:hover, a.mobile-nav-item:hover { background: rgba(102, 126, 234, .12); color: var(--yg-primary); }
a.mobile-nav-item:hover .mobile-nav-icon { color: var(--yg-primary); }
.mobile-nav-item.has-children > a { color: #e0e4eb; }
.mobile-nav-item.has-children > a:hover { color: var(--yg-primary); }
.mobile-nav-item.has-children > a:hover .mobile-nav-icon { color: var(--yg-primary); }
.mobile-nav .submenu-arrow { color: #a0a8b8; }
.mobile-sub-link { color: #a0a8b8; }
.mobile-sub-link:hover { color: var(--yg-primary); }
.mobile-nav-footer { border-color: var(--yg-border) !important; }
.mobile-nav-user-link { color: #a0a8b8; }
.mobile-nav-user-link:hover { background: rgba(102, 126, 234, .12); color: var(--yg-primary); }
.mobile-nav-user-link.mobile-nav-logout { color: #e74c3c; }
.mobile-nav-user-link.mobile-nav-logout:hover { background: rgba(231, 76, 60, .12); }
.mobile-dark-toggle { color: #a0a8b8; background: rgba(255, 255, 255, .06); }
.mobile-dark-toggle:hover { background: var(--yg-primary); color: #fff; }

/* ==================== Archive / Search / Author ==================== */
.archive-header, .search-header, .author-header {
    background: var(--yg-card-bg) !important;
}

.archive-header h1, .search-header h1, .author-header .author-name { color: #f0f2f8; }
.archive-header .archive-desc, .search-header .search-desc, .author-header .author-bio { color: #a0a8b8; }

/* Archive Timeline */
.timeline-year-title { color: #f0f2f8; }
.timeline-year-dot { background: var(--yg-primary); }
.timeline-month-title { color: #c0c6d4; }
.timeline-month-count { color: #a0a8b8; }
.timeline-post-item { border-color: var(--yg-border); }
.timeline-post-day { color: #a0a8b8; }
.timeline-post-link { color: #c0c6d4; }
.timeline-post-link:hover { color: var(--yg-primary); }

/* ==================== 404 ==================== */
.page-404 { color: #e8ecf1; }
.error-404-title { color: var(--yg-primary); }
.error-404-desc { color: #a0a8b8; }

/* ==================== User Center ==================== */
.user-center-name { color: #f0f2f8; }
.user-center-email { color: #a0a8b8; }
.stat-value { color: #e8ecf1; }
.stat-label { color: #606878; }

/* ==================== Pagination ==================== */
.yicego-pagination a,
.yicego-pagination span {
    color: #c0c6d4 !important;
    background: var(--yg-card-bg) !important;
    border-color: var(--yg-border) !important;
}

.yicego-pagination a:hover {
    border-color: var(--yg-primary) !important;
    color: var(--yg-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3) !important;
}

.yicego-pagination .current,
.yicego-pagination span.current {
    background: var(--yg-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, .2) !important;
}

.yicego-pagination .dots {
    background: none !important;
    border: none !important;
}

.load-more-btn,
.yicego-load-more-btn {
    background: rgba(255, 255, 255, .04);
    color: #c0c6d4;
    border: 1px solid var(--yg-border);
}

.load-more-btn:hover,
.yicego-load-more-btn:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--yg-primary);
}

.yicego-list-end {
    color: #606878;
}

.yicego-search-highlight {
    background: rgba(102, 126, 234, .2);
    color: #7c93ee;
}

/* ==================== Footer ==================== */
.site-footer {
    background: #16162e !important;
    border-top-color: var(--yg-border) !important;
}

.footer-desc { color: #a0a8b8 !important; }
.footer-copyright, .footer-info { color: #606878; }
.footer-info a { color: #a0a8b8; }
.footer-info a:hover { color: var(--yg-primary); }

.footer-nav-link { color: #a0a8b8 !important; }
.footer-nav-link:hover { color: var(--yg-primary) !important; }

.footer-friend-links a { color: #a0a8b8; }
.footer-friend-links a:hover { color: var(--yg-primary); }
.footer-friend-links .friend-links-label { color: #606878; }

/* ==================== Shortcodes ==================== */
.yicego-notice { border-color: var(--yg-border); }
.yicego-notice-info, .yicego-notice.info { background: rgba(102, 126, 234, .08); }
.yicego-notice-success, .yicego-notice.success { background: rgba(16, 185, 129, .08); }
.yicego-notice-warning, .yicego-notice.warning { background: rgba(245, 158, 11, .08); }
.yicego-notice-danger, .yicego-notice.danger { background: rgba(239, 68, 68, .08); }

.yicego-collapse-header, .yicego-collapse .collapse-header {
    background: rgba(255, 255, 255, .03);
    color: #c0c6d4;
}

.yicego-collapse-body, .yicego-collapse .collapse-body {
    border-color: var(--yg-border);
    color: #a0a8b8;
}

.yicego-tabs-nav { border-color: var(--yg-border); }
.yicego-tab-btn { color: #a0a8b8; }
.yicego-tab-btn.active { color: var(--yg-primary); }

.yicego-download {
    background: var(--yg-card-bg) !important;
    border-color: var(--yg-border) !important;
}

.yicego-download-title, .yicego-download .download-name { color: #e8ecf1; }

.yicego-highlight {
    background: rgba(102, 126, 234, .06);
    border-left-color: var(--yg-primary);
    color: #c0c6d4;
}

.yicego-pwdshow {
    background: var(--yg-card-bg) !important;
    border-color: var(--yg-border) !important;
}

/* ==================== Comments ==================== */
.comment-item { border-color: var(--yg-border) !important; }
.comment-author { color: #e8ecf1; }
.comment-date { color: #606878; }
.comment-content, .comment-text { color: #c0c6d4; }
.reply-btn, .comment-reply-link { color: #a0a8b8; }
.reply-btn:hover, .comment-reply-link:hover { color: var(--yg-primary); }
.admin-badge { background: rgba(102, 126, 234, .12); color: var(--yg-primary); }

/* ==================== Breadcrumb ==================== */
.breadcrumb a { color: #a0a8b8; }
.breadcrumb a:hover { color: var(--yg-primary); }
.breadcrumb .breadcrumb-separator { color: #606878; }
.breadcrumb .breadcrumb-item.current { color: #808898; }

/* ==================== Single Post Card ==================== */
.single-post-card {
    background: var(--yg-card-bg) !important;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar-track { background: #16162e; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .18); }

/* ==================== Selection ==================== */
::selection { background: rgba(102, 126, 234, .3); color: #fff; }

/* ==================== Buttons ==================== */
.yicego-btn-outline {
    border-color: var(--yg-border);
    color: #c0c6d4;
}

.yicego-btn-outline:hover {
    border-color: var(--yg-primary);
    color: var(--yg-primary);
}

/* ==================== Widgets ==================== */
.site-stats-item { background: rgba(255, 255, 255, .02); border-color: var(--yg-border); }
.site-stats-value { color: #e8ecf1; }
.site-stats-label { color: #a0a8b8; }
.widget-user-info { color: #e8ecf1; }
.widget-user-bio { color: #a0a8b8; }

/* ==================== Copyright ==================== */
.post-copyright {
    background: rgba(102, 126, 234, .04);
    border-color: var(--yg-border);
    border-left-color: var(--yg-primary);
    color: #c0c6d4;
}

.post-copyright .copyright-title {
    color: #e8ecf1;
}

.post-copyright .copyright-title i {
    color: var(--yg-primary);
}

.post-copyright a { color: var(--yg-primary); }

/* ==================== Read Progress ==================== */
.read-progress-bar { background: var(--yg-gradient) !important; }

/* ==================== Lightbox ==================== */
.yicego-lightbox { background: rgba(0, 0, 0, .92); }
.lightbox-close { color: #e8ecf1; }

/* ==================== Password Form ==================== */
.yicego-password-form input { background: var(--yg-input-bg) !important; }

/* ==================== Copy Code ==================== */
.copy-code-btn {
    background: rgba(255, 255, 255, .06) !important;
    color: #a0a8b8 !important;
    border-color: var(--yg-border) !important;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, .1) !important;
    color: var(--yg-primary) !important;
}

/* ==================== Related Articles ==================== */
.yicego-related-articles {
    background: var(--yg-card-bg);
}

.yicego-related-articles-title {
    color: #e8ecf1;
    border-bottom-color: var(--yg-border);
}

.related-item {
    background: rgba(255, 255, 255, .02);
    border-color: var(--yg-border) !important;
}

.related-item:hover {
    box-shadow: var(--yg-shadow-hover);
    border-color: rgba(255, 255, 255, .12) !important;
}

.related-item .related-thumb::after {
    background: linear-gradient(to top, rgba(0, 0, 0, .2), transparent);
}

.related-item-title { color: #c0c6d4; }
.related-item .related-title a { color: #c0c6d4; }
.related-item .related-title a:hover { color: var(--yg-primary); }
.related-item .related-date { color: #606878; }

/* ==================== Login/Register Modal (yicego-modal) ==================== */
.yicego-modal-overlay {
    background: rgba(0, 0, 0, .6);
}

.yicego-modal {
    background: var(--yg-card-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.yicego-modal-tab {
    color: #a0a8b8;
}

.yicego-modal-tab.active {
    color: var(--yg-primary);
    border-bottom-color: var(--yg-primary);
}

.yicego-modal-close {
    color: #a0a8b8;
}

.yicego-modal-close:hover {
    background: rgba(255, 255, 255, .06);
    color: #e8ecf1;
}

.yicego-modal-body .yicego-form-input {
    background: var(--yg-input-bg);
    border-color: var(--yg-border);
    color: #e8ecf1;
}

.yicego-modal-body .yicego-form-input:focus {
    border-color: var(--yg-primary);
    background: rgba(255, 255, 255, .08);
}

.yicego-captcha-img {
    border-color: var(--yg-border);
}

.yicego-checkbox {
    color: #a0a8b8;
}

/* user-modal variant */
.user-modal-overlay {
    background: rgba(0, 0, 0, .6);
}

.user-modal {
    background: var(--yg-card-bg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}

.user-modal h2 { color: #e8ecf1; }

.user-modal .modal-tab {
    color: #a0a8b8;
}

.user-modal .modal-tab.active {
    color: var(--yg-primary);
    border-bottom-color: var(--yg-primary);
}

.user-modal .modal-tabs {
    border-bottom-color: var(--yg-border);
}

.user-modal .form-group input {
    background: var(--yg-input-bg);
    border-color: var(--yg-border);
    color: #e8ecf1;
}

.user-modal .form-group input:focus {
    border-color: var(--yg-primary);
    background: rgba(255, 255, 255, .08);
}

/* ==================== Stat Cards ==================== */
.stat-card {
    background: rgba(255, 255, 255, .03);
    border-color: var(--yg-border);
}

.stat-card:hover {
    background: rgba(102, 126, 234, .06);
}

.stat-value {
    color: var(--yg-primary);
}

/* ==================== User Info Widget ==================== */
.user-info-card .user-name { color: #e8ecf1; }
.user-info-card .user-desc { color: #a0a8b8; }

.user-info-card .social-links a {
    background: rgba(255, 255, 255, .04);
    color: #a0a8b8;
}

.user-info-card .social-links a:hover {
    background: var(--yg-gradient);
    color: #fff;
}

.user-info-card .user-stats {
    border-top-color: var(--yg-border);
}

.user-info-card .user-stat .count { color: var(--yg-primary); }
.user-info-card .user-stat .label { color: #a0a8b8; }

/* ==================== Archive Page (Timeline) ==================== */
.archive-page-desc { color: #a0a8b8; }
.archive-page-desc strong { color: var(--yg-primary); }
.archive-stat-label { color: #a0a8b8; }
.archive-stat-num { color: var(--yg-primary); }
.archive-empty { color: #a0a8b8; }

.timeline-year-dot {
    border-color: #222240;
}

.timeline-post-item {
    border-bottom-color: rgba(255, 255, 255, .04);
}

.timeline-post-dot {
    background: #606878;
}

/* ==================== User Center ==================== */
.user-center-stats {
    border-top-color: var(--yg-border);
}

.user-center-stat-num { color: var(--yg-primary); }
.user-center-stat-label { color: #a0a8b8; }

.user-center-card-title {
    color: #e8ecf1;
    border-bottom-color: rgba(102, 126, 234, .15);
}

.user-center-link-item {
    color: #c0c6d4;
}

.user-center-link-item:hover {
    background: rgba(102, 126, 234, .06);
    color: var(--yg-primary);
}

.user-center-logout {
    color: #ef4444;
}

.user-center-logout:hover {
    background: rgba(239, 68, 68, .06);
    color: #ef4444;
}

.user-center-guest h2 { color: #e8ecf1; }
.user-center-guest p { color: #a0a8b8; }

/* ==================== Form Components ==================== */
.yicego-form-label {
    color: #c0c6d4;
}

.yicego-form-input {
    background: var(--yg-input-bg);
    border-color: var(--yg-border);
    color: #e8ecf1;
}

.yicego-form-input:focus {
    border-color: var(--yg-primary);
}

/* ==================== Footer Enhanced ==================== */
.yicego-footer {
    background: #16162e !important;
}

.footer-wave .wave-path {
    fill: #16162e;
}

.footer-nav {
    border-top-color: var(--yg-border);
    border-bottom-color: var(--yg-border);
}

.footer-disclaimer {
    color: #606878;
}

.footer-legal a {
    color: #a0a8b8;
}

.footer-legal a:hover {
    color: var(--yg-primary);
}

.footer-info {
    border-top-color: var(--yg-border);
}

.footer-info-inner {
    color: #606878;
}

.footer-info-inner a {
    color: #a0a8b8;
}

.footer-info-inner a:hover {
    color: var(--yg-primary);
}

.footer-icp a,
.footer-police a {
    color: #a0a8b8;
}

.footer-icp a:hover,
.footer-police a:hover {
    color: var(--yg-primary);
}

.police-icon {
    filter: brightness(.7);
}

.footer-divider {
    color: #606878;
}

/* ==================== YiceGo Card ==================== */
.yicego-card {
    background: var(--yg-card-bg);
    border: 1px solid var(--yg-border);
}

/* ==================== PWD Mask ==================== */
.yicego-pwdshow .pwd-mask {
    background: rgba(26, 26, 46, .9);
}

.yicego-pwdshow .pwd-icon {
    color: #a0a8b8;
}

.yicego-pwdshow .pwd-text {
    color: #a0a8b8;
}

/* ==================== Search Page ==================== */
.yicego-search-input {
    background: var(--yg-input-bg);
    border-color: var(--yg-border);
    color: #e8ecf1;
}

.yicego-search-input:focus {
    border-color: var(--yg-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, .08);
}

.yicego-search-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.yicego-search-count { color: #a0a8b8; }
.yicego-no-result {
    background: var(--yg-card-bg);
}

.yicego-no-result-text { color: #e8ecf1; }
.yicego-no-result-tips { color: #a0a8b8; }
.yicego-no-result-tips a { color: var(--yg-primary); }

.yicego-no-content {
    background: var(--yg-card-bg);
    color: #a0a8b8;
}

.search-results-count { color: #a0a8b8; }

.search-page-form input {
    background: var(--yg-input-bg);
    border-color: var(--yg-border);
    color: #e8ecf1;
}

/* ==================== Widget Search ==================== */
.widget-search input {
    background: var(--yg-input-bg);
    border-color: var(--yg-border);
    color: #e8ecf1;
}

.widget-search input:focus,
.sidebar-search-input:focus {
    border-color: var(--yg-primary);
}

.sidebar-search-header {
    color: #e0e4eb;
}

.sidebar-search-header svg {
    color: #7c93ee;
}

.sidebar-search-input {
    background: var(--yg-input-bg) !important;
    border-color: var(--yg-border) !important;
    color: #e8ecf1 !important;
}

.sidebar-search-input:focus {
    background: rgba(255, 255, 255, .06) !important;
}

.sidebar-search-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.sidebar-search-btn:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}

/* ==================== Comment Area ==================== */
.comment-area {
    background: var(--yg-card-bg);
}

/* Comment reply hint */
.comment-form .reply-hint {
    background: rgba(102, 126, 234, .08);
    color: #a0a8b8;
}

/* Comment pagination */
.comment-pagination a,
.comment-pagination span {
    color: #c0c6d4;
    background: var(--yg-card-bg);
    border-color: var(--yg-border);
}

.comment-pagination a:hover {
    border-color: var(--yg-primary);
    color: var(--yg-primary);
}

.comment-pagination span.current {
    background: var(--yg-gradient);
    color: #fff;
    border-color: transparent;
}

/* Need login tip */
.need-login-tip {
    color: #a0a8b8;
}

.need-login-tip a {
    color: var(--yg-primary);
}

.comment-area .comment-title {
    border-bottom-color: var(--yg-border);
    color: #e8ecf1;
}

.comment-form input,
.comment-form textarea {
    background: var(--yg-input-bg);
    border-color: var(--yg-border);
    color: #e8ecf1;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--yg-primary);
    background: rgba(255, 255, 255, .06);
}

.comment-item .comment-reply-link {
    border-color: var(--yg-border);
    color: #a0a8b8;
}

.comment-item .comment-reply-link:hover {
    border-color: var(--yg-primary);
    color: var(--yg-primary);
}

.comment-list .children {
    border-left-color: var(--yg-border);
}

/* ==================== Post Tags ==================== */
.post-tags {
    border-top-color: var(--yg-border);
}

.post-tags > i {
    color: #606878;
}

.post-tags .post-tag {
    background: rgba(255, 255, 255, .04);
    color: #c0c6d4;
    border-color: transparent;
}

.post-tags .post-tag:hover {
    background: var(--yg-gradient);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

/* ==================== Tag Cloud Widget ==================== */
.tag-cloud a {
    background: rgba(255, 255, 255, .04);
    color: #a0a8b8;
}

.tag-cloud a:hover {
    background: var(--yg-gradient);
    color: #fff;
}

.yg-tag-count {
    background: rgba(102, 126, 234, .2);
    color: #7c93ee;
}

.tag-cloud a:hover .yg-tag-count {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* ==================== Recent Posts Widget ==================== */
.widget-recent-posts .recent-item {
    border-bottom-color: var(--yg-border);
}

.widget-recent-posts .recent-item-title {
    color: #e0e4eb;
}

.widget-recent-posts .recent-item:hover .recent-item-title {
    color: var(--yg-primary);
}

.widget-recent-posts .recent-item-date,
.widget-recent-posts .recent-item-views {
    color: #606878;
}

/* ==================== Post Meta Badges ==================== */
.post-item .post-meta span,
.post-item .post-meta a {
    background: rgba(255, 255, 255, .04);
    color: #a0a8b8;
}

.post-item .post-meta a:hover {
    background: rgba(102, 126, 234, .08);
    color: var(--yg-primary);
}

/* ==================== Go-Top Button ==================== */
.go-top-btn {
    background: var(--yg-card-bg);
    border-color: var(--yg-border);
    color: #c0c6d4;
}

.go-top-btn:hover {
    background: var(--yg-gradient);
    color: #fff;
    border-color: transparent;
}

/* ==================== Loading Overlay ==================== */
.yicego-loading-overlay {
    background: #1a1a2e;
}

.loading-spinner {
    border-color: var(--yg-border);
    border-top-color: var(--yg-primary);
}

/* ==================== Mobile Bottom Nav ==================== */
.mobile-bottom-nav {
    background: rgba(26, 26, 46, .98);
    border-top-color: var(--yg-border);
}

.mobile-bottom-nav .nav-items a {
    color: #a0a8b8;
}

.mobile-bottom-nav .nav-items a.active,
.mobile-bottom-nav .nav-items a:hover {
    color: var(--yg-primary);
}

/* ==================== Share Dialog Close ==================== */
.share-dialog-close {
    color: #a0a8b8;
}

.share-dialog-close:hover {
    background: rgba(255, 255, 255, .06);
}

/* ==================== Notice Box Dark Text ==================== */
.yicego-notice.info { color: #7c93ee; }
.yicego-notice.success { color: #34d399; }
.yicego-notice.warning { color: #fbbf24; }
.yicego-notice.danger { color: #f87171; }

/* ==================== Calendar Widget ==================== */
.widget-calendar th { color: #a0a8b8; }
.widget-calendar td { color: #c0c6d4; }
.widget-calendar td a { color: var(--yg-primary); }

/* ==================== Full Page ==================== */
.full-page-meta { color: #a0a8b8; }
.full-page-content { color: #ccd0da; }

/* ==================== Author Page ==================== */
.yicego-author-header {
    background: var(--yg-card-bg);
}

.yicego-author-name { color: #e8ecf1; }
.yicego-author-description { color: #a0a8b8; }
.yicego-author-stat-count { color: var(--yg-primary); }
.yicego-author-stat-label { color: #a0a8b8; }
.yicego-author-post-list-title { color: #e8ecf1; border-bottom-color: var(--yg-border); }

/* ==================== Archive Header ==================== */
.yicego-archive-header {
    background: var(--yg-card-bg);
}

.yicego-archive-header::before {
    opacity: .8;
}

.yicego-archive-title {
    background: linear-gradient(135deg, #7c93ee, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yicego-archive-description { color: #a0a8b8; }

.yicego-archive-count {
    background: rgba(255, 255, 255, .04);
    color: #a0a8b8;
}

/* ==================== Search Header ==================== */
.yicego-search-title { color: #e8ecf1; }

/* ==================== 404 Page ==================== */
.yicego-404-content { color: #e8ecf1; }
.yicego-404-desc { color: #a0a8b8; }

/* ==================== Post Actions ==================== */
.post-actions .action-btn,
.post-actions .post-action-btn {
    background: var(--yg-card-bg);
    border-color: var(--yg-border);
    color: #c0c6d4;
}

.post-actions .action-btn:hover,
.post-actions .post-action-btn:hover {
    color: var(--yg-primary);
    border-color: var(--yg-primary);
}

/* ==================== Skeleton Loading ==================== */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, .02) 25%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .02) 75%);
}

/* ==================== Footer Widgets ==================== */
.footer-widget .footer-widget-title { color: #e8ecf1; }
.footer-widget ul li a { color: #a0a8b8; }
.footer-widget ul li a:hover { color: var(--yg-primary); }

.footer-post-list a,
.footer-cat-list a {
    color: #a0a8b8;
}

.footer-post-list a:hover,
.footer-cat-list a:hover {
    color: var(--yg-primary);
}

.footer-cat-count {
    background: rgba(102, 126, 234, .1);
    color: var(--yg-primary);
}

.footer-col-title::after {
    background: var(--yg-gradient);
}

/* ==================== Mobile Search ==================== */
.mobile-search-form {
    background: var(--yg-card-bg) !important;
    border-color: var(--yg-border) !important;
}

.mobile-search-form:focus-within {
    border-color: var(--yg-primary) !important;
}

.mobile-search-input {
    color: #e8ecf1 !important;
}

.mobile-search-input::placeholder {
    color: #606878 !important;
}

/* ==================== Customer Service Float ==================== */
.yicego-cs-panel {
    background: var(--yg-card-bg);
    border-color: var(--yg-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

.yicego-cs-header {
    color: #e8ecf1;
    border-bottom-color: var(--yg-border);
}

.yicego-cs-item {
    color: #c0c6d4;
}

.yicego-cs-item:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--yg-primary);
}

.yicego-cs-qr-popup {
    background: var(--yg-card-bg);
    border-color: var(--yg-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

/* ==================== Category Columns ==================== */
.cat-column {
    background: var(--yg-card-bg) !important;
    border-color: var(--yg-border) !important;
}
.cat-column-header {
    border-bottom-color: var(--yg-border) !important;
}
.cat-column-title { color: #e8ecf1; }
.cat-column-desc { color: #a0a8b8; }
.cat-column-more { color: #a0a8b8; }
.cat-column-more:hover { color: var(--yg-primary); }
.cat-column-item { border-bottom-color: rgba(255,255,255,.04) !important; }
.cat-column-item:hover { background: rgba(255,255,255,.03); }
.cat-column-item-title { color: #e0e4eb; }
.cat-column-item:hover .cat-column-item-title { color: var(--yg-primary); }
.cat-column-meta { color: #a0a8b8; }

/* ==================== Apple OS Wide UI Refresh - Dark ==================== */
:root {
    --yg-primary: #60a5fa;
    --yg-primary-end: #22d3ee;
    --yg-gradient: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    --yg-bg: #0f172a;
    --yg-card-bg: rgba(15, 23, 42, .72);
    --yg-text: #f8fafc;
    --yg-text-secondary: #94a3b8;
    --yg-border: rgba(255, 255, 255, .1);
    --yg-shadow: 0 18px 54px rgba(0, 0, 0, .34);
    --yg-shadow-hover: 0 22px 64px rgba(30, 64, 175, .32);
    --yg-glass-bg: rgba(15, 23, 42, .68);
    --yg-glass-border: rgba(255, 255, 255, .12);
    --yg-inner-border: rgba(255, 255, 255, .08);
}

html,
body {
    background: linear-gradient(180deg, #111827 0%, #0f172a 46%, #111827 100%) !important;
}

.yicego-header {
    background: rgba(15, 23, 42, .72) !important;
    border-bottom-color: rgba(255, 255, 255, .1) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 12px 36px rgba(0, 0, 0, .28) !important;
}

.header-nav a:hover,
.header-nav a.active,
.header-nav .nav-item.active,
.header-nav .has-submenu:hover > a {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, .08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 26px rgba(0, 0, 0, .2) !important;
}

.yicego-site-notice,
.post-item,
.cat-column,
.aside-box,
.single-post-card,
.content-warp,
.comment-area,
.yicego-related-articles,
.yicego-archive-header,
.yicego-search-header,
.yicego-search-form-warp,
.yicego-author-header,
.yicego-card,
.full-page-article,
.user-center-profile,
.user-center-edit,
.user-center-links,
.user-center-guest,
.yicego-no-content,
.yicego-no-result,
.yicego-404-content,
.related-item {
    background: rgba(15, 23, 42, .68) !important;
    border-color: rgba(255, 255, 255, .11) !important;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.tab-nav,
.sidebar-search-wrap,
.widget-search,
.yicego-search-form,
.yicego-archive-count,
.yicego-search-count,
.timeline-month-count,
.user-center-stat,
.user-center-link-item {
    background: rgba(255, 255, 255, .06) !important;
    border-color: rgba(255, 255, 255, .1) !important;
}

.tab-nav .tab-btn:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, .08) !important;
}

.tab-nav .tab-btn.active {
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%) !important;
}

.post-item .post-title a,
.cat-column-title,
.cat-column-item-title,
.single-post .post-header .post-title,
.content-warp h1,
.content-warp h2,
.content-warp h3,
.content-warp h4,
.content-warp h5,
.content-warp h6,
.yicego-archive-title,
.yicego-search-title,
.yicego-author-name,
.archive-page-title,
.full-page-title,
.yicego-404-title,
.widget-title,
.sidebar-search-header,
.post-directory .toc-title,
.user-center-name,
.user-center-card-title {
    color: #f8fafc !important;
    -webkit-text-fill-color: currentColor !important;
}

.post-item .post-excerpt,
.content-warp p,
.yicego-archive-description,
.yicego-author-description,
.full-page-meta,
.user-center-email,
.yicego-404-message,
.post-item .post-meta span,
.post-item .post-meta a {
    color: #94a3b8 !important;
}

.sidebar-search-input,
.widget-search input,
.yicego-search-input,
.yicego-form-input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, .06) !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

.content-warp table th,
.content-warp table td,
.content-warp blockquote,
.content-warp pre {
    border-color: rgba(255, 255, 255, .1) !important;
}

.site-stats-grid,
.widget-site-statistics,
.yg-stats-grid,
.yg-user-stats,
.user-info-card .user-stats,
.site-runtime,
.site-uptime {
    display: none !important;
}

/* ==================== Footer Pro Polish - Dark ==================== */
.site-footer.yicego-footer {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .78) 100%) !important;
    border-top-color: rgba(255, 255, 255, .08) !important;
    color: #cbd5e1 !important;
}

.footer-grid-modern {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .64)) !important;
    border-color: rgba(255, 255, 255, .11) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.footer-col-title {
    color: #f8fafc !important;
}

.footer-col-title::before {
    background: linear-gradient(180deg, #60a5fa, #22d3ee) !important;
    box-shadow: 0 0 16px rgba(96, 165, 250, .2) !important;
}

.footer-col-title::after {
    display: none !important;
}

.footer-brand-title {
    background: linear-gradient(135deg, #93c5fd 0%, #67e8f9 72%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.footer-brand-desc,
.footer-disclaimer,
.footer-friend-empty {
    color: #94a3b8 !important;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, .06) !important;
    border-color: rgba(255, 255, 255, .1) !important;
    border-left-color: rgba(96, 165, 250, .42) !important;
}

.footer-nav-list a,
.footer-cat-list a {
    color: #cbd5e1 !important;
    background: transparent !important;
}

.footer-nav-list a:hover,
.footer-cat-list a:hover {
    color: #93c5fd !important;
    background: rgba(255, 255, 255, .07) !important;
}

.footer-cat-count {
    color: #93c5fd !important;
    background: rgba(96, 165, 250, .12) !important;
    border-color: rgba(96, 165, 250, .18) !important;
}

.friend-apply-btn {
    color: #93c5fd !important;
    background: rgba(96, 165, 250, .1) !important;
    border-color: rgba(96, 165, 250, .22) !important;
}

.friend-apply-btn:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6, #22d3ee) !important;
    box-shadow: 0 8px 18px rgba(59, 130, 246, .25) !important;
}

.footer-friend-grid a {
    color: #cbd5e1 !important;
    background: rgba(255, 255, 255, .06) !important;
    border-color: rgba(255, 255, 255, .1) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

.footer-friend-grid a:hover {
    color: #93c5fd !important;
    background: rgba(96, 165, 250, .12) !important;
    border-color: rgba(96, 165, 250, .24) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.footer-bottom {
    background: rgba(15, 23, 42, .58) !important;
    border-color: rgba(255, 255, 255, .1) !important;
    box-shadow: 0 16px 46px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.footer-bottom .footer-copyright,
.footer-bottom .footer-divider,
.footer-legal .footer-divider {
    color: #94a3b8 !important;
}

.footer-bottom .footer-copyright a,
.footer-bottom .footer-icp,
.footer-bottom .footer-police,
.footer-legal a {
    color: #cbd5e1 !important;
}

.footer-bottom .footer-copyright a:hover,
.footer-legal a:hover {
    color: #93c5fd !important;
}

.footer-legal a {
    background: rgba(255, 255, 255, .06) !important;
}

/* Compact footer final override - dark */
.footer-col-nav,
.footer-col-cat {
    display: none !important;
}

.footer-grid-modern {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .8), rgba(15, 23, 42, .62)) !important;
    border-color: rgba(255, 255, 255, .1) !important;
}

.footer-bottom {
    background: rgba(15, 23, 42, .54) !important;
    border-color: rgba(255, 255, 255, .1) !important;
}

/* ============================================================
   ZeroToOne Glass Refresh — Dark (2026-05-02)
   匹配前/后台紫色玻璃迭代的暗色映射
   ============================================================ */
html.dark,
body.dark,
[data-theme="dark"] {
    --yg-primary: #a78bfa;
    --yg-primary-soft: #c4b5fd;
    --yg-primary-deep: #7c3aed;
    --yg-primary-end: #818cf8;
    --yg-gradient: linear-gradient(135deg, #a78bfa 0%, #818cf8 60%, #6366f1 100%);
    --yg-gradient-soft: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --yg-gradient-banner: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #7c3aed 100%);

    --yg-bg: #0b0d18;
    --yg-bg-soft: #11142a;
    --yg-page-tint:
        radial-gradient(900px 400px at 0% -10%, rgba(124, 58, 237, .22) 0%, transparent 60%),
        radial-gradient(700px 350px at 100% 0%, rgba(99, 102, 241, .18) 0%, transparent 55%),
        linear-gradient(180deg, #0b0d18 0%, #0e1124 70%, #0a0c18 100%);

    --yg-card-bg: rgba(20, 24, 46, .72);
    --yg-glass-bg: rgba(20, 24, 46, .65);
    --yg-glass-border: rgba(167, 139, 250, .15);
    --yg-inner-border: rgba(167, 139, 250, .1);
    --yg-border: rgba(167, 139, 250, .14);

    --yg-text: #e2e8f0;
    --yg-text-secondary: #94a3b8;
    --yg-text-muted: #64748b;

    --yg-shadow: 0 18px 48px rgba(0, 0, 0, .5);
    --yg-shadow-hover: 0 22px 60px rgba(124, 58, 237, .35);
    --yg-shadow-card: 0 8px 28px rgba(0, 0, 0, .35);
}

html.dark,
body.dark,
[data-theme="dark"] body,
.dark body {
    background: var(--yg-page-tint);
    color: var(--yg-text);
}

/* 顶栏 */
.dark .yicego-header,
[data-theme="dark"] .yicego-header {
    background: rgba(15, 18, 35, .72);
    border-bottom-color: rgba(167, 139, 250, .15);
    box-shadow: 0 1px 0 rgba(167, 139, 250, .08) inset, 0 6px 24px rgba(0, 0, 0, .35);
}
.dark .header-nav > li > a,
.dark .header-nav a {
    color: var(--yg-text-secondary);
}
.dark .header-nav > li > a:hover,
.dark .header-nav > li.current-menu-item > a,
.dark .header-nav > li.current_page_item > a {
    background: rgba(167, 139, 250, .12);
    color: var(--yg-primary-soft);
}
.dark .header-right .dark-toggle,
.dark .header-right .login-trigger,
.dark .header-right .user-avatar {
    background: rgba(20, 24, 46, .8);
    border-color: rgba(167, 139, 250, .2);
    color: var(--yg-text-secondary);
}
.dark .header-right .dark-toggle:hover,
.dark .header-right .login-trigger:hover,
.dark .header-right .user-avatar:hover {
    color: var(--yg-primary-soft);
    border-color: rgba(167, 139, 250, .45);
    box-shadow: 0 8px 22px rgba(124, 58, 237, .3);
}

/* 通用卡片 */
.dark .aside-box,
.dark .post-item,
.dark .post-list .post-item,
.dark .yicego-archive-header,
.dark .yicego-search-header,
.dark .yicego-author-header,
.dark .yicego-404-container,
.dark .full-page-article,
.dark .single-post-card,
.dark .home-card-section,
.dark .home-cat-columns .cat-column,
.dark .user-center-card,
.dark .user-center-link-list .user-center-link,
.dark .user-center-stats {
    background: var(--yg-glass-bg);
    border-color: var(--yg-glass-border);
    box-shadow: var(--yg-shadow-card);
    color: var(--yg-text);
}
.dark .post-item:hover,
.dark .post-list .post-item:hover,
.dark .user-center-link-list .user-center-link:hover {
    border-color: rgba(167, 139, 250, .35);
    box-shadow: var(--yg-shadow-hover);
}
.dark .post-item .post-title,
.dark .post-list .post-item .post-title {
    color: var(--yg-text);
}
.dark .post-item:hover .post-title,
.dark .post-item .post-title:hover {
    color: var(--yg-primary-soft);
}
.dark .post-item .post-meta,
.dark .post-list .post-item .post-meta {
    color: var(--yg-text-muted);
}

/* section title */
.dark .aside-box .section-header,
.dark .section-header {
    border-bottom-color: var(--yg-inner-border);
}
.dark .aside-box .section-title,
.dark .section-title,
.dark .yicego-archive-title,
.dark .yicego-search-title,
.dark .yicego-author-name,
.dark .yicego-author-post-list-title,
.dark .yicego-comment-area .comment-title,
.dark .home-cat-columns .cat-column .cat-title,
.dark .home-cat-columns .cat-column h2,
.dark .yicego-404-title {
    color: var(--yg-text);
}

/* 标签 */
.dark .tagcloud a,
.dark .post-cat-tag,
.dark .post-tags a,
.dark .yicego-tag,
.dark .yicego-search-keyword {
    background: rgba(167, 139, 250, .12);
    color: var(--yg-primary-soft);
    border-color: rgba(167, 139, 250, .22);
}
.dark .tagcloud a:hover,
.dark .post-cat-tag:hover,
.dark .post-tags a:hover {
    background: var(--yg-gradient);
    color: #fff;
    border-color: transparent;
}

/* 搜索输入 */
.dark .yicego-search-input,
.dark .yicego-comment-form .form-row textarea,
.dark .yicego-comment-form .form-row input {
    background: rgba(15, 18, 35, .7);
    border-color: rgba(167, 139, 250, .18);
    color: var(--yg-text);
}
.dark .yicego-search-input::placeholder {
    color: var(--yg-text-muted);
}
.dark .yicego-search-input:focus,
.dark .yicego-comment-form .form-row textarea:focus,
.dark .yicego-comment-form .form-row input:focus {
    border-color: var(--yg-primary-soft);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, .2);
}

/* 分页 */
.dark .yicego-pagination a,
.dark .yicego-pagination .page-numbers {
    background: rgba(20, 24, 46, .8);
    border-color: rgba(167, 139, 250, .18);
    color: var(--yg-text);
}
.dark .yicego-pagination a:hover,
.dark .yicego-pagination .current,
.dark .yicego-pagination .page-numbers.current {
    background: var(--yg-gradient);
    color: #fff;
    border-color: transparent;
}

/* 文章正文颜色 */
.dark .single-post-card .content-warp {
    color: var(--yg-text);
}
.dark .breadcrumb {
    color: var(--yg-text-muted);
}

/* 作者统计数字 */
.dark .yicego-author-stat-count {
    color: var(--yg-primary-soft);
}
.dark .yicego-author-description,
.dark .yicego-archive-description,
.dark .yicego-404-message {
    color: var(--yg-text-secondary);
}

/* 选中态 */
.dark ::selection {
    background: rgba(167, 139, 250, .3);
    color: #fff;
}

/* 滚动条 */
.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(167, 139, 250, .35), rgba(99, 102, 241, .35));
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(167, 139, 250, .55), rgba(99, 102, 241, .55));
}

/* ----- 后台暗色 ----- */
.dark #wpwrap,
.dark #wpcontent,
[data-theme="dark"] #wpwrap,
[data-theme="dark"] #wpcontent {
    background:
        radial-gradient(900px 400px at 0% -10%, rgba(124, 58, 237, .2) 0%, transparent 60%),
        radial-gradient(700px 350px at 100% 0%, rgba(99, 102, 241, .15) 0%, transparent 55%),
        linear-gradient(180deg, #0b0d18 0%, #0e1124 70%, #0a0c18 100%) !important;
}
.dark .yicego-admin-header,
.dark .yicego-admin-sidebar,
.dark .yicego-admin-content,
.dark .yicego-admin-preview,
.dark .yicego-admin-footer {
    background: rgba(20, 24, 46, .72);
    border-color: rgba(167, 139, 250, .15);
    color: var(--yg-text);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.dark .yicego-admin-header h1 {
    background: var(--yg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.dark .yicego-admin-header p,
.dark .yicego-admin-content .description {
    color: var(--yg-text-muted);
}
.dark .yicego-admin-content .yg-tab-panel > h2,
.dark .yicego-admin-content > h2 {
    color: var(--yg-text);
}
.dark .yicego-admin-sidebar .nav-item {
    color: var(--yg-text-secondary);
}
.dark .yicego-admin-sidebar .nav-item:hover {
    background: rgba(167, 139, 250, .1);
    color: var(--yg-primary-soft);
}
.dark .yicego-admin-sidebar .nav-item.active {
    background: var(--yg-gradient);
    color: #fff;
}
.dark .yicego-form-group {
    background: rgba(15, 18, 35, .55);
    border-color: rgba(167, 139, 250, .12);
}
.dark .yicego-form-group:hover {
    border-color: rgba(167, 139, 250, .35);
}
.dark .yicego-form-group > label,
.dark .yicego-form-group .form-label {
    color: var(--yg-text);
}
.dark .yicego-form-group input[type="text"],
.dark .yicego-form-group input[type="number"],
.dark .yicego-form-group input[type="email"],
.dark .yicego-form-group input[type="url"],
.dark .yicego-form-group select,
.dark .yicego-form-group textarea {
    background: rgba(15, 18, 35, .7);
    border-color: rgba(167, 139, 250, .15);
    color: var(--yg-text);
}
.dark .yicego-form-group input:focus,
.dark .yicego-form-group select:focus,
.dark .yicego-form-group textarea:focus {
    border-color: var(--yg-primary-soft);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, .2);
}
.dark .yicego-admin-wrap .yg-list-item {
    background: rgba(15, 18, 35, .65);
    border-color: rgba(167, 139, 250, .14);
    color: var(--yg-text);
}
.dark .yicego-admin-preview .preview-card {
    background: rgba(15, 18, 35, .7);
    border-color: var(--yg-inner-border);
    color: var(--yg-text);
}
.dark .yicego-alert.yicego-alert-info {
    background: rgba(99, 102, 241, .15);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, .3);
}

/* ============================================================
   48. WCAG AA Contrast Patch (2026-05-02)
   覆盖第 47 节遗留的浅色硬编码值，保证深色模式下所有文字
   达到 WCAG AA 4.5:1（正文）/ 3:1（大字号）对比度
   ============================================================ */

/* ---- 1) 补齐 :root 变量（section 47 在 main.css 引入但 dark.css 漏掉）---- */
:root {
    /* 玻璃卡：用近黑紫底，保留毛玻璃质感 */
    --yg-glass-bg: rgba(20, 22, 40, .72);
    --yg-glass-border: rgba(167, 139, 250, .15);
    --yg-card-bg: rgba(20, 22, 40, .82);
    --yg-bg: #0b0d18;
    --yg-bg-soft: #0e1124;

    /* 文字：高对比 */
    --yg-text: #f1f5f9;            /* 16.8:1 on #0b0d18 */
    --yg-text-secondary: #cbd5e1;  /* 11.5:1 */
    --yg-text-muted: #94a3b8;      /* 6.6:1 */

    /* 描边/分隔 */
    --yg-border: rgba(167, 139, 250, .18);
    --yg-inner-border: rgba(167, 139, 250, .12);

    /* 主题色（紫色）调亮 */
    --yg-primary: #a78bfa;
    --yg-primary-soft: #c4b5fd;
    --yg-primary-deep: #8b5cf6;
    --yg-primary-end: #818cf8;
    --yg-gradient: linear-gradient(135deg, #a78bfa 0%, #818cf8 60%, #6366f1 100%);
    --yg-gradient-soft: linear-gradient(135deg, #c4b5fd 0%, #a5b4fc 100%);
    --yg-gradient-banner: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #7c3aed 100%);

    /* 页面背景渐晕：紫色微光 */
    --yg-page-tint: radial-gradient(1200px 600px at 10% -10%, rgba(124, 58, 237, .22) 0%, transparent 60%),
                    radial-gradient(900px 500px at 100% 0%, rgba(99, 102, 241, .18) 0%, transparent 55%),
                    linear-gradient(180deg, #0b0d18 0%, #0e1124 70%, #0a0c18 100%);

    /* 阴影 */
    --yg-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .25);
    --yg-shadow-hover: 0 22px 60px rgba(0, 0, 0, .55), 0 4px 16px rgba(0, 0, 0, .3);
    --yg-shadow-card: 0 8px 28px rgba(0, 0, 0, .4);

    --yg-input-bg: rgba(255, 255, 255, .04);
}

/* ---- 2) 全局背景强制深色 ---- */
html,
body {
    background: var(--yg-page-tint) !important;
    color: var(--yg-text) !important;
}

/* ---- 3) 顶栏 ---- */
.yicego-header {
    background: rgba(15, 17, 36, .82) !important;
    border-bottom: 1px solid rgba(167, 139, 250, .12) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 6px 24px rgba(0, 0, 0, .4) !important;
}
.header-logo {
    color: var(--yg-text) !important;
}
.header-nav > li > a,
.header-nav a,
.header-nav .nav-item,
.header-nav .has-submenu > a {
    color: #cbd5e1 !important;
}
.header-nav > li > a:hover,
.header-nav > li.current-menu-item > a,
.header-nav > li.current_page_item > a,
.header-nav a:hover,
.header-nav .nav-item:hover,
.header-nav a.active,
.header-nav .nav-item.active {
    background: rgba(167, 139, 250, .14) !important;
    color: var(--yg-primary) !important;
}
.header-nav .submenu {
    background: rgba(15, 17, 36, .96) !important;
    border-color: rgba(167, 139, 250, .15) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .55) !important;
}
.header-nav .submenu a {
    color: #cbd5e1 !important;
}
.header-nav .submenu a:hover {
    background: rgba(167, 139, 250, .12) !important;
    color: var(--yg-primary) !important;
}
.header-right .dark-toggle,
.header-right .login-trigger,
.header-right .user-avatar,
.dark-toggle,
.login-trigger,
.user-avatar {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(167, 139, 250, .18) !important;
    color: #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35) !important;
}
.header-right .dark-toggle:hover,
.header-right .login-trigger:hover,
.header-right .user-avatar:hover {
    color: var(--yg-primary) !important;
    border-color: rgba(167, 139, 250, .45) !important;
    background: rgba(167, 139, 250, .12) !important;
}

/* ---- 4) 站点公告栏 ---- */
.yicego-site-notice {
    background: rgba(20, 22, 40, .82) !important;
    border: 1px solid rgba(167, 139, 250, .18) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35) !important;
}
.yicego-site-notice,
.yicego-site-notice .notice-content,
.yicego-site-notice .notice-content * {
    color: #e2e8f0 !important;
}
.yicego-site-notice a {
    color: var(--yg-primary-soft) !important;
}
.yicego-site-notice .notice-close {
    color: #cbd5e1 !important;
}

/* ---- 5) 通用玻璃卡 ---- */
.aside-box,
.post-item,
.post-list .post-item,
.cat-column,
.home-cat-columns .cat-column,
.yicego-archive-header,
.yicego-search-header,
.yicego-author-header,
.yicego-404-container,
.full-page-article,
.single-post-card,
.home-card-section,
.user-center-card,
.user-center-link-list .user-center-link,
.user-center-stats,
.yicego-card,
.content-warp,
.comment-area,
.yicego-related-articles,
.yicego-search-form-warp,
.yicego-no-content,
.yicego-no-result {
    background: rgba(20, 22, 40, .72) !important;
    border: 1px solid rgba(167, 139, 250, .14) !important;
    box-shadow: var(--yg-shadow-card) !important;
}
.aside-box:hover,
.post-item:hover,
.post-list .post-item:hover,
.cat-column:hover,
.home-cat-columns .cat-column:hover,
.user-center-link-list .user-center-link:hover {
    border-color: rgba(167, 139, 250, .35) !important;
    box-shadow: var(--yg-shadow-hover) !important;
}

/* ---- 6) 文章列表卡内文字 ---- */
.post-item .post-title,
.post-list .post-item .post-title,
.post-item .post-title a,
.post-list .post-item .post-title a,
.post-item.grid-card .post-info h2 a {
    color: #f1f5f9 !important;
}
.post-item:hover .post-title,
.post-item .post-title a:hover,
.post-item.grid-card .post-info h2 a:hover {
    color: var(--yg-primary) !important;
}
.post-item .post-excerpt,
.post-item.grid-card .post-excerpt {
    color: #cbd5e1 !important;
}
.post-item .post-meta,
.post-item .post-meta span,
.post-item .post-meta a,
.post-list .post-item .post-meta,
.post-list .post-item .post-meta span,
.post-list .post-item .post-meta a,
.post-item.grid-card .post-meta span {
    color: #94a3b8 !important;
}
.post-item .post-meta a:hover {
    color: var(--yg-primary) !important;
}
.post-item .post-meta span + span::before {
    color: rgba(148, 163, 184, .35) !important;
}

/* ---- 7) Tab 导航 ---- */
.tab-nav {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(167, 139, 250, .15) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03) !important;
}
.tab-nav .tab-btn,
.tab-nav-item,
.tab-btn {
    color: #cbd5e1 !important;
}
.tab-nav .tab-btn:hover,
.tab-nav-item:hover,
.tab-btn:hover {
    color: var(--yg-primary-soft) !important;
    background: rgba(167, 139, 250, .12) !important;
    box-shadow: none !important;
}
.tab-nav .tab-btn.active,
.tab-nav-item.active,
.tab-btn.active {
    color: #fff !important;
    background: var(--yg-gradient) !important;
    box-shadow: 0 8px 22px rgba(124, 58, 237, .4) !important;
}

/* ---- 8) 标题/副标题/section ---- */
.section-title,
.aside-box .section-title,
.aside-box-title,
.cat-column .cat-title,
.cat-column h2,
.home-cat-columns .cat-column .cat-title,
.home-cat-columns .cat-column h2,
.yicego-archive-title,
.yicego-search-title,
.yicego-author-name,
.yicego-author-post-list-title,
.yicego-404-title,
.yicego-comment-area .comment-title,
.footer-col-title,
.footer-widget .footer-widget-title {
    color: #f1f5f9 !important;
}
.yicego-archive-count,
.yicego-search-count,
.yicego-author-description,
.yicego-author-stat-label,
.yicego-404-message,
.breadcrumb {
    color: #94a3b8 !important;
}

/* ---- 9) 标签 / 胶囊 ---- */
.tagcloud a,
.post-cat-tag,
.post-tags a,
.yicego-tag,
.yicego-archive-header .yicego-archive-count,
.yicego-search-keyword {
    background: rgba(167, 139, 250, .14) !important;
    color: var(--yg-primary-soft) !important;
    border: 1px solid rgba(167, 139, 250, .25) !important;
}
.tagcloud a:hover,
.post-cat-tag:hover,
.post-tags a:hover,
.yicego-tag:hover {
    background: var(--yg-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ---- 10) 表单与输入框 ---- */
.yicego-search-input,
.search-page-form input,
.yicego-comment-form .form-row textarea,
.yicego-comment-form .form-row input,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
select {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(167, 139, 250, .18) !important;
    color: #f1f5f9 !important;
}
.yicego-search-input:focus,
.yicego-comment-form .form-row input:focus,
.yicego-comment-form .form-row textarea:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--yg-primary) !important;
    background: rgba(255, 255, 255, .06) !important;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, .15) !important;
}
::placeholder {
    color: rgba(148, 163, 184, .65) !important;
}

/* ---- 11) 分页 ---- */
.yicego-pagination a,
.yicego-pagination .page-numbers {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(167, 139, 250, .15) !important;
    color: #e2e8f0 !important;
}
.yicego-pagination a:hover,
.yicego-pagination .current,
.yicego-pagination .page-numbers.current {
    background: var(--yg-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .4) !important;
}

/* ---- 12) 文章详情页 banner（保持紫色渐变，调浅文字）---- */
.single-post .post-header,
.single-post-card .post-header {
    background: var(--yg-gradient-banner) !important;
}
.single-post .post-header .post-title,
.single-post-card .post-header .post-title,
.single-post .post-header .post-meta,
.single-post-card .post-header .post-meta,
.single-post .post-header .post-meta a,
.single-post-card .post-header .post-meta a {
    color: #fff !important;
}

/* ---- 13) 作者页统计 ---- */
.yicego-author-avatar {
    border: 3px solid rgba(167, 139, 250, .35) !important;
    box-shadow: 0 10px 30px rgba(124, 58, 237, .35) !important;
}
.yicego-author-stat-count {
    color: var(--yg-primary-soft) !important;
}

/* ---- 14) 用户中心 ---- */
.user-center-link-list .user-center-link {
    color: #e2e8f0 !important;
}
.user-center-link-list .user-center-link:hover {
    color: var(--yg-primary-soft) !important;
    border-color: rgba(167, 139, 250, .35) !important;
}

/* ---- 15) 评论 ---- */
.yicego-comment-area,
.comment-area {
    background: rgba(20, 22, 40, .72) !important;
    border-color: rgba(167, 139, 250, .14) !important;
}
.comment-author { color: #f1f5f9 !important; }
.comment-content,
.comment-text { color: #cbd5e1 !important; }
.comment-date { color: #94a3b8 !important; }
.reply-btn,
.comment-reply-link { color: #cbd5e1 !important; }
.reply-btn:hover,
.comment-reply-link:hover { color: var(--yg-primary) !important; }

/* ---- 16) 页脚 ---- */
.yicego-footer,
.site-footer {
    background:
        linear-gradient(180deg, transparent 0%, rgba(11, 13, 24, .65) 30%, rgba(11, 13, 24, .92) 100%) !important;
    border-top: 1px solid rgba(167, 139, 250, .12) !important;
}
.yicego-footer .footer-wave .wave-path,
.site-footer .footer-wave .wave-path {
    fill: rgba(11, 13, 24, .8) !important;
}
.footer-col-title,
.footer-widget .footer-widget-title {
    color: #f1f5f9 !important;
}
.footer-post-list a,
.footer-cat-list a,
.footer-widget ul li a,
.footer-info a,
.footer-info-inner a,
.footer-icp a,
.footer-police a,
.footer-nav-link,
.footer-friend-links a,
.footer-legal a {
    color: #cbd5e1 !important;
}
.footer-post-list a:hover,
.footer-cat-list a:hover,
.footer-widget ul li a:hover,
.footer-info a:hover,
.footer-nav-link:hover,
.footer-friend-links a:hover,
.footer-legal a:hover {
    color: var(--yg-primary-soft) !important;
}
.footer-desc,
.footer-copyright,
.footer-info,
.footer-info-inner,
.footer-disclaimer,
.footer-divider,
.footer-friend-links .friend-links-label {
    color: #94a3b8 !important;
}
.footer-copyright {
    border-top-color: rgba(167, 139, 250, .12) !important;
}
.footer-cat-count {
    background: rgba(167, 139, 250, .14) !important;
    color: var(--yg-primary-soft) !important;
}

/* ---- 17) 选中态 / 滚动条 ---- */
::selection {
    background: rgba(167, 139, 250, .35) !important;
    color: #fff !important;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(167, 139, 250, .35), rgba(99, 102, 241, .35)) !important;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(167, 139, 250, .55), rgba(99, 102, 241, .55)) !important;
}

/* ---- 18) 移动端导航 ---- */
.mobile-nav,
.mobile-nav-content {
    background: rgba(15, 17, 36, .96) !important;
    border-color: rgba(167, 139, 250, .15) !important;
}
.mobile-nav a,
.mobile-nav .nav-item {
    color: #cbd5e1 !important;
}
.mobile-nav a:hover,
.mobile-nav .nav-item:hover,
.mobile-nav a.active,
.mobile-nav .nav-item.active {
    background: rgba(167, 139, 250, .12) !important;
    color: var(--yg-primary) !important;
}

/* ---- 19) 下拉/弹层 ---- */
.user-dropdown,
.search-suggestions,
.notification-dropdown {
    background: rgba(15, 17, 36, .96) !important;
    border: 1px solid rgba(167, 139, 250, .15) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .55) !important;
}

/* ---- 20) 兜底：消除任何残留的浅色背景 ---- */
[style*="rgba(255, 255, 255, 0.6"],
[style*="rgba(255, 255, 255, 0.7"],
[style*="rgba(255, 255, 255, 0.8"],
[style*="rgba(255, 255, 255, 0.9"] {
    /* 行内样式不强制，仅在出现可读性问题时再单独处理 */
}

/* ============================================================
   21) 新版页脚 4 列网格 + 申请友链 Modal（深色映射）
   ============================================================ */

/* ---- 页脚整体背景 ---- */
.site-footer.yicego-footer {
    background:
        linear-gradient(180deg, rgba(15, 17, 36, 0) 0%, rgba(124, 58, 237, .06) 50%, rgba(15, 17, 36, .55) 100%),
        rgba(15, 17, 36, .85) !important;
    border-top: 1px solid rgba(167, 139, 250, .12) !important;
    color: #cbd5e1 !important;
}

/* ---- 列标题 ---- */
.footer-col-title {
    color: #e2e8f0 !important;
}
.footer-col-title::before,
.footer-col-title::after {
    background: linear-gradient(180deg, var(--yg-primary), var(--yg-accent, #6366f1)) !important;
}

/* ---- 品牌列 ---- */
.footer-brand-title {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 60%, #818cf8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}
.footer-brand-desc {
    color: #94a3b8 !important;
}
.footer-disclaimer {
    background: rgba(167, 139, 250, .08) !important;
    border-left-color: rgba(167, 139, 250, .35) !important;
    color: #94a3b8 !important;
}

/* ---- 导航 / 分类列表 ---- */
.footer-nav-list a,
.footer-cat-list a {
    color: #a0a8b8 !important;
}
.footer-nav-list a:hover,
.footer-cat-list a:hover {
    color: var(--yg-primary-soft, #c4b5fd) !important;
}
.footer-cat-count {
    background: rgba(167, 139, 250, .14) !important;
    color: var(--yg-primary-soft, #c4b5fd) !important;
    border: 1px solid rgba(167, 139, 250, .2) !important;
}

/* ---- 友情链接列 ---- */
.footer-friend-grid > li > a {
    background: rgba(167, 139, 250, .06) !important;
    border: 1px solid rgba(167, 139, 250, .14) !important;
    color: #cbd5e1 !important;
}
.footer-friend-grid > li > a:hover {
    background: rgba(167, 139, 250, .14) !important;
    border-color: rgba(167, 139, 250, .35) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, .25) !important;
}
.friend-link-icon {
    background: rgba(255, 255, 255, .9) !important;
    border-radius: 6px;
}
.friend-link-fallback {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    color: #fff !important;
}
.friend-link-name {
    color: inherit !important;
}
.footer-friend-empty {
    color: #94a3b8 !important;
}

/* ---- 申请友链按钮 ---- */
.friend-apply-btn {
    background: rgba(167, 139, 250, .14) !important;
    border: 1px solid rgba(167, 139, 250, .35) !important;
    color: var(--yg-primary-soft, #c4b5fd) !important;
}
.friend-apply-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .35) !important;
}

/* ---- 底栏 ---- */
.footer-bottom {
    border-top: 1px solid rgba(167, 139, 250, .12) !important;
}
.footer-copyright {
    color: #94a3b8 !important;
}
.footer-copyright a {
    color: #cbd5e1 !important;
}
.footer-copyright a:hover {
    color: var(--yg-primary-soft, #c4b5fd) !important;
}
.footer-divider {
    color: rgba(167, 139, 250, .25) !important;
}
.footer-legal a {
    color: #94a3b8 !important;
}
.footer-legal a:hover {
    color: var(--yg-primary-soft, #c4b5fd) !important;
}

/* ---- 申请友链 Modal ---- */
.friend-apply-modal .yicego-modal {
    background: rgba(15, 17, 36, .96) !important;
    border: 1px solid rgba(167, 139, 250, .2) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .65) !important;
    color: #cbd5e1 !important;
}
.friend-apply-modal .yicego-modal-header {
    border-bottom: 1px solid rgba(167, 139, 250, .12) !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(99, 102, 241, .08)) !important;
}
.friend-apply-modal .yicego-modal-title {
    color: #e2e8f0 !important;
}
.friend-apply-modal .yicego-modal-close {
    color: #94a3b8 !important;
}
.friend-apply-modal .yicego-modal-close:hover {
    background: rgba(167, 139, 250, .14) !important;
    color: var(--yg-primary-soft, #c4b5fd) !important;
}
.friend-apply-notes {
    background: rgba(167, 139, 250, .08) !important;
    border-left-color: rgba(167, 139, 250, .35) !important;
    color: #cbd5e1 !important;
}
.friend-apply-notes strong {
    color: var(--yg-primary-soft, #c4b5fd) !important;
}
.friend-apply-modal .yicego-form-label {
    color: #cbd5e1 !important;
}
.friend-apply-modal .yicego-form-input,
.friend-apply-modal textarea.yicego-form-input {
    background: rgba(15, 17, 36, .65) !important;
    border: 1px solid rgba(167, 139, 250, .2) !important;
    color: #e2e8f0 !important;
}
.friend-apply-modal .yicego-form-input::placeholder {
    color: #64748b !important;
}
.friend-apply-modal .yicego-form-input:focus {
    background: rgba(15, 17, 36, .85) !important;
    border-color: rgba(167, 139, 250, .55) !important;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, .18) !important;
}
.friend-apply-modal .yicego-captcha-img {
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid rgba(167, 139, 250, .25) !important;
}
.friend-apply-modal .fl-fetch-icon-btn {
    background: rgba(167, 139, 250, .14) !important;
    border: 1px solid rgba(167, 139, 250, .35) !important;
    color: var(--yg-primary-soft, #c4b5fd) !important;
}
.friend-apply-modal .fl-fetch-icon-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    border-color: transparent !important;
    color: #fff !important;
}
.friend-apply-modal .yicego-btn-primary,
.friend-apply-modal #fl-submit {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(124, 58, 237, .35) !important;
}
.friend-apply-modal .yicego-btn-primary:hover,
.friend-apply-modal #fl-submit:hover {
    box-shadow: 0 12px 28px rgba(124, 58, 237, .5) !important;
    transform: translateY(-1px);
}

/* ============================================================
   22) Footer v104 简洁化（去版块边框/背景/卡片化）
   ============================================================ */

/* logo 暗色切换 */
html.dark .footer-col-brand .footer-brand-logo .footer-logo-light {
    display: none !important;
}
html.dark .footer-col-brand .footer-brand-logo .footer-logo-dark {
    display: block !important;
}

/* 免责声明：取消"框感" */
.footer-col-brand .footer-disclaimer,
.footer-disclaimer {
    background: transparent !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
}

/* 友链项：纯文本式，去除背景/边框/阴影 */
.footer-friend-grid a,
.footer-friend-grid > li > a {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
    color: #cbd5e1 !important;
}
.footer-friend-grid a:hover,
.footer-friend-grid > li > a:hover {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--yg-primary-soft, #c4b5fd) !important;
    transform: translateX(2px) !important;
}
.footer-friend-grid .friend-link-icon {
    background: rgba(255, 255, 255, .85) !important;
    border-radius: 3px !important;
}

/* 底部条：去背景/卡片阴影，仅保留顶部细分隔 */
.footer-bottom {
    background: transparent !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(167, 139, 250, .1) !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

/* 法律链接：原本被加了底色块，去掉 */
.footer-legal a {
    background: transparent !important;
    padding: 0 !important;
}

/* 网格分隔线统一弱化 */
.footer-grid-modern {
    background: transparent !important;
    border-color: rgba(167, 139, 250, .08) !important;
    box-shadow: none !important;
}
