﻿/*
Theme Name: RatHero Pro
Theme URI: https://www.bosmao.cn
Description: RatHero Pro - 专业的WordPress商城主题，集成完整电商功能、支付系统、卡密发货等强大功能。由鼠大侠（RatHero）开发。
Version: 2.5.0
Author: 鼠大侠 (RatHero)
Author URI: https://www.bosmao.cn
License: 商业授权 - Commercial License
License URI: https://www.bosmao.cn/license
Text Domain: rathero-pro
Tags: ecommerce, shop, payment, woocommerce, dark-mode, responsive, modern
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4

Copyright (c) 2024-2026 鼠大侠 (RatHero). All rights reserved.
本主题由鼠大侠开发，版权所有。未经授权禁止二次开发、转售或商业使用。
联系方式: QQ 1102260427 | 官网: https://www.bosmao.cn
*/

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --border-color: var(--gray-200);
    --hover-bg: var(--gray-100);
}

[data-theme="dark"] {
    --bg-primary: #1a1d23;
    --bg-secondary: #13161b;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --border-color: #2d3139;
    --hover-bg: #252932;
}

/* 全局重置 - 消除所有可能的边框和轮廓 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: #f5f7fa;
    transition: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    border: none;
    outline: none;
    min-height: 100%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

html[data-theme="dark"] {
    background: #13161b;
}

/* 使用伪元素覆盖可能的白线 */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
    pointer-events: none;
}

/* 详情页html背景为纯白色 - 使用:has选择�?*/
html:has(body.single),
html:has(body.single-product) {
    background: #ffffff;
}

html[data-theme="dark"]:has(body.single),
html[data-theme="dark"]:has(body.single-product) {
    background: #13161b;
}

/* 全局移除所有按钮、卡片、标题链接的下划�?*/
a,
a:hover,
a:focus,
a:active,
a:visited,
.shortcut-card,
.shortcut-card *,
.category-card,
.category-card *,
.post-card a,
.post-title a,
.section-more-btn,
.sidebar a,
.widget a,
.cta-btn,
.floating-btn,
button,
.btn,
.theme-content-info .list_tool a,
.theme-content-thumb .info .pull-right a,
.theme-content-author .head a,
.theme-attributo .item li a {
    text-decoration: none !important;
}

.shortcut-card:hover,
.shortcut-card:hover *,
.category-card:hover,
.category-card:hover *,
.post-card a:hover,
.post-title a:hover,
.section-more-btn:hover,
.sidebar a:hover,
.sidebar a:focus,
.sidebar a:active,
.widget a:hover,
.widget a:focus,
.widget a:active,
.cta-btn:hover,
.floating-btn:hover,
button:hover,
.btn:hover {
    text-decoration: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: #f5f7fa;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    box-sizing: border-box;
    border: none;
    outline: none;
}

[data-theme="dark"] body {
    background: #13161b;
    color: #e8eaed;
}

/* 首页背景 */
body.home {
    background: #f5f7fa;
}

[data-theme="dark"] body.home {
    background: #13161b;
}

/* 详情页背景 */
body.single,
body.single-product {
    background: #ffffff;
}

[data-theme="dark"] body.single,
[data-theme="dark"] body.single-product {
    background: #13161b;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    background: transparent !important;
}

/* 首页容器 */
body.home .container {
    background: transparent !important;
}

[data-theme="dark"] body.home .container {
    background: transparent !important;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* ========== Hero Slider ========== */
.hero-slider {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    margin-bottom: 40px;
    z-index: 10;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: visible;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    padding-top: 60px;
}

/* 快捷入口卡片 */
.hero-shortcuts {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    z-index: 100;
    max-width: 1200px;
}

.shortcut-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
    white-space: nowrap;
}

.shortcut-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.shortcut-card * {
    text-decoration: none !important;
}

[data-theme="dark"] .shortcut-card {
    background: var(--gray-800);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.shortcut-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.shortcut-icon.icon-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.shortcut-icon.icon-plugin {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.shortcut-icon.icon-tutorial {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.shortcut-icon.icon-source {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.shortcut-icon.icon-template {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.shortcut-icon.icon-update {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

.shortcut-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shortcut-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.shortcut-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #ff6600;
    color: white;
    font-size: 10px;
    border-radius: 4px;
    font-weight: 600;
}

.shortcut-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.shortcut-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shortcut-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.shortcut-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #ff6600;
    color: white;
    font-size: 10px;
    border-radius: 4px;
    font-weight: 600;
}

.shortcut-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .hero-shortcuts {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 20px;
        max-width: 100%;
    }
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

/* 搜索�?*/
.hero-search {
    width: 100%;
    max-width: 650px;
    position: relative;
    padding: 0 20px;
}

.hero-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search .search-icon {
    position: absolute;
    right: 62px;
    top: 14px;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-search input[type="search"] {
    width: 100%;
    padding: 14px 110px 14px 24px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* 隐藏搜索框的清除按钮 */
.hero-search input[type="search"]::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.hero-search input[type="search"]::-webkit-search-decoration,
.hero-search input[type="search"]::-webkit-search-results-button,
.hero-search input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

/* 禁用搜索建议/自动完成 */
.hero-search input[type="search"]::-webkit-calendar-picker-indicator {
    display: none;
}

.hero-search input[type="search"]:focus {
    background: #ffffff;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.25);
}

.hero-search input[type="search"]::placeholder {
    color: #aaa;
}

.hero-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #ff6600;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.hero-search button:hover {
    background: #ff7700;
    transform: translateY(-50%) scale(1.05);
}

/* ========== Header ========== */
.site-header {
    background: transparent;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* 首页透明header */
.home .site-header {
    background: transparent;
}

/* 首页滚动后的header - 白色背景+黑色文字 */
.home .site-header.scrolled {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.home .site-header.scrolled .site-logo a {
    color: #000000 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #000000 !important;
    background-clip: unset !important;
    text-shadow: none !important;
}

.home .site-header.scrolled .main-nav > ul > li > a {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.home .site-header.scrolled .main-nav > ul > li > a:hover,
.home .site-header.scrolled .main-nav .current-menu-item > a,
.home .site-header.scrolled .main-nav .current_page_item > a {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.08);
}

.home .site-header.scrolled .theme-toggle {
    background: #f5f5f5;
    color: #000000;
}

.home .site-header.scrolled .theme-toggle:hover {
    background: #e5e5e5;
}

.home .site-header.scrolled .mobile-menu-toggle {
    color: #000000 !important;
}

/* 非首页header - 白色背景 */
body:not(.home) .site-header {
    background: rgba(255, 255, 255, 1) !important;
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .site-header {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: none !important;
}

/* 首页暗黑模式 - header完全不透明，无边框 */
[data-theme="dark"] .home .site-header {
    background: rgba(26, 26, 26, 1) !important;
    border-bottom: none !important;
}

/* 首页暗黑模式下的导航菜单 - 使用纯白色 */
[data-theme="dark"] .home .site-header .main-nav > ul > li > a {
    color: #ffffff !important;
}

[data-theme="dark"] .home .site-header .main-nav > ul > li > a:hover,
[data-theme="dark"] .home .site-header .main-nav .current-menu-item > a,
[data-theme="dark"] .home .site-header .main-nav .current_page_item > a {
    color: #ff6600 !important;
}

/* 非首页暗黑模式 */
[data-theme="dark"] body:not(.home) .site-header {
    background: rgba(26, 26, 26, 0.98) !important;
    border-bottom: none !important;
}

[data-theme="dark"] body:not(.home) .site-header .main-nav > ul > li > a {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] body:not(.home) .site-header .main-nav > ul > li > a:hover {
    color: var(--text-primary) !important;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 32px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    margin-right: 16px;
}

.site-logo a {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none !important;
    letter-spacing: -0.02em;
    white-space: nowrap;
    position: relative;
    display: inline-block;
}

/* Logo扫光效果 - 只有带.logo-shine类的才有动画 */
.site-logo a.logo-shine {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, rgba(255,255,255,0.6) 50%, #ffffff 60%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

/* 非首页Logo - 黑色 */
body:not(.home) .site-logo a {
    color: #000000;
}

body:not(.home) .site-logo a.logo-shine {
    background: linear-gradient(90deg, #000000 0%, #000000 40%, rgba(0,0,0,0.6) 50%, #000000 60%, #000000 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

[data-theme="dark"] .site-logo a.logo-shine {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, rgba(255,255,255,0.6) 50%, #ffffff 60%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 2px;
    align-items: center;
    margin: 0;
}

.main-nav li {
    position: relative;
    white-space: nowrap;
}

.main-nav > ul > li > a {
    display: block;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

/* 非首页导�?- 黑色文字 */
body:not(.home) .main-nav > ul > li > a {
    color: var(--text-secondary);
}

body:not(.home) .main-nav > ul > li > a:hover,
body:not(.home) .main-nav .current-menu-item > a,
body:not(.home) .main-nav .current_page_item > a {
    color: var(--text-primary);
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #ffffff;
    font-weight: 600;
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a {
    padding-right: 24px !important;
    position: relative;
}

.menu-item-has-children > a::after {
    content: '\ea4e';
    font-family: 'remixicon';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.2s;
}

.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 140px;
    width: max-content;
    max-width: 200px;
    padding: 4px;
    margin-top: 0;
    display: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

[data-theme="dark"] .sub-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.menu-item-has-children:hover > .sub-menu {
    display: block !important;
    animation: slideDown 0.2s ease;
}

/* 扩大悬停区域，防止鼠标移动时消失 */
.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-menu li {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: none !important;
    list-style: none !important;
}

.sub-menu li:hover {
    padding-left: 0 !important;
}

.sub-menu a {
    padding: 6px 10px !important;
    border-radius: 4px;
    font-size: 13px !important;
    display: block;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.sub-menu a:hover {
    background: var(--hover-bg) !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

/* Header Tools */
.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Hide all search forms in header */
.site-header .search-form {
    display: none !important;
}

/* Theme Toggle */
.theme-toggle {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
}

/* 非首页主题切换按�?*/
body:not(.home) .theme-toggle {
    background: var(--hover-bg);
    color: var(--text-primary);
}

body:not(.home) .theme-toggle:hover {
    background: var(--gray-200);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ========== Main Content ========== */
.site-main {
    padding: 80px 0 80px 0;
    min-height: calc(100vh - 450px - 200px);
    background: transparent !important;
}

/* 首页site-main */
body.home .site-main {
    background: transparent !important;
}

[data-theme="dark"] body.home .site-main {
    background: transparent !important;
}

/* 默认两列布局（带侧边栏的页面�?*/
.site-main:not(.home):not(.blog):not(.single) {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* 首页、博客列表、单页单列布局 */
.home .site-main,
.blog .site-main,
.single .site-main,
.single-post .site-main {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: transparent !important;
}

body.home .posts-grid {
    background: transparent !important;
}

[data-theme="dark"] body.home .posts-grid {
    background: transparent !important;
}

/* ========== 精选分类推�?========== */
.featured-categories {
    margin-bottom: 60px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-card {
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    background-size: cover !important;
    background-position: center !important;
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.category-card * {
    text-decoration: none !important;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.category-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
}

.category-count {
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.95;
    font-weight: 500;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

@media (max-width: 1200px) {
    .category-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        height: 120px;
    }
    
    .category-name {
        font-size: 16px;
    }
}

/* ========== 分类区域 ========== */
.section-block {
    margin-bottom: 60px;
    background: transparent !important;
}

body.home .section-block {
    background: transparent !important;
}

[data-theme="dark"] body.home .section-block {
    background: transparent !important;
}

.section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.section-title i {
    display: none;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.section-more {
    display: none;
}

.section-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 28px;
    margin: 30px auto 0;
    background: #000000;
    border: 1px solid #000000;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-more-btn:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

[data-theme="dark"] .section-more-btn {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

[data-theme="dark"] .section-more-btn:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

.section-footer {
    text-align: center;
    margin-top: 30px;
}

/* 文章列表容器 - 两列布局 */
.articles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: transparent !important;
}

body.home .articles-list {
    background: transparent !important;
}

[data-theme="dark"] body.home .articles-list {
    background: transparent !important;
}

@media (max-width: 1400px) {
    .posts-grid {
        gap: 22px;
    }
}

@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .post-card {
    background: var(--gray-900);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.post-card a {
    text-decoration: none !important;
    color: inherit;
}

.post-card a:hover {
    text-decoration: none !important;
}

.post-thumbnail {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #f8f9fa;
    transition: transform 0.3s;
    display: block;
    position: relative;
    padding: 0;
}

/* 没有图片时显示占位图�?*/
.post-card a > div.post-thumbnail::after {
    content: '\eb9f';
    font-family: 'remixicon';
    font-size: 48px;
    color: var(--gray-400);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

[data-theme="dark"] .post-card a > div.post-thumbnail {
    background: var(--gray-800);
}

.post-card:hover .post-thumbnail {
    transform: scale(1.02);
}

.post-content {
    padding: 50px 16px 12px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 作者头像和信息 */
.post-author-info {
    position: absolute;
    top: -24px;
    left: 16px;
    z-index: 10;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .post-author-avatar {
    border-color: var(--gray-900);
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-name {
    display: none;
}

/* 分类和标�?*/
.post-badges {
    display: none;
}

.post-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-title a {
    color: var(--text-primary);
    transition: color 0.2s;
    text-decoration: none !important;
}

.post-title a:hover {
    color: #ff6600;
    text-decoration: none !important;
}

/* 标题和价格容�?*/
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.post-excerpt {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    min-height: 38px;
    font-weight: 400;
}

[data-theme="dark"] .post-excerpt {
    color: var(--gray-400);
}

/* 价格信息 */
.post-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #ff6600;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    line-height: 1;
}

.price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    line-height: 1;
}

/* 底部时间和网站名 */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-top: auto;
}

.post-site-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

[data-theme="dark"] .post-site-name {
    color: var(--gray-500);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.post-date i {
    font-size: 12px;
}

.post-meta {
    display: none;
}

.read-more {
    display: none;
}

/* ========== 文章列表式卡片（迷你�?- 两列布局�?========== */
.post-card.post-list-style {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 70px;
    padding: 8px;
    gap: 8px;
}

.post-card.post-list-style .post-thumbnail {
    width: 110px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 4px;
    padding: 0;
}

.post-card.post-list-style .post-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-card.post-list-style .post-author-info {
    position: static;
    display: none;
}

.post-card.post-list-style .post-header {
    display: block;
    margin-bottom: 3px;
}

.post-card.post-list-style .post-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0;
    -webkit-line-clamp: 2;
    line-height: 1.3;
}

.post-card.post-list-style .post-price {
    display: none;
}

.post-card.post-list-style .post-excerpt {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    min-height: auto;
    margin-bottom: 4px;
    flex: 1;
}

[data-theme="dark"] .post-card.post-list-style .post-excerpt {
    color: var(--gray-400);
}

.post-card.post-list-style .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    border-top: none;
}

.post-card.post-list-style .post-meta-info {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 10px;
    color: #999;
}

.post-card.post-list-style .post-meta-item {
    display: flex;
    align-items: center;
    gap: 2px;
}

.post-card.post-list-style .post-meta-item i {
    font-size: 10px;
}

.post-card.post-list-style .post-site-name {
    font-size: 10px;
}

.post-card.post-list-style .post-date {
    font-size: 10px;
}

/* 响应�?- 列表式卡�?*/
@media (max-width: 768px) {
    .articles-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .post-card.post-list-style {
        flex-direction: column;
        min-height: auto;
        padding: 10px;
    }
    
    .post-card.post-list-style .post-thumbnail {
        width: 100%;
        height: 160px;
    }
}

/* ========== Sidebar ========== */
.sidebar {
    position: sticky;
    top: 76px;
    height: fit-content;
}

.sidebar a,
.sidebar a:hover,
.sidebar a:focus,
.sidebar a:active,
.sidebar a:visited {
    text-decoration: none !important;
}

.widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.2s;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li:hover {
    padding-left: 6px;
}

.widget a {
    color: var(--text-secondary);
    text-decoration: none !important;
    font-size: 13px;
    transition: color 0.2s;
    display: block;
}

.widget a:hover,
.widget a:focus,
.widget a:active,
.widget a:visited {
    color: var(--text-primary);
    text-decoration: none !important;
}

.widget ul li a,
.widget ul li a:hover,
.widget ul li a:focus {
    text-decoration: none !important;
}

/* WordPress默认分类列表样式 */
.widget .cat-item a,
.widget .cat-item a:hover,
.widget .cat-item a:focus,
.widget .cat-item a:active,
.widget .cat-item a:visited,
.widget .recentcomments a,
.widget .recentcomments a:hover,
.widget li a,
.widget li a:hover,
.widget li a:focus,
.widget li a:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ========== Product Detail Page (小二胡风�? ========== */
.theme-content {
    padding-top: 65px;
    padding-bottom: 0;
    background: #f5f7fa;
}

/* 详情页theme-content使用纯白�?*/
body.single .theme-content,
body.single-product .theme-content {
    background: #ffffff;
}

[data-theme="dark"] .theme-content {
    background: #13161b;
}

[data-theme="dark"] .theme-content .portlet,
[data-theme="dark"] .page-container .portlet,
[data-theme="dark"] .page-content .portlet {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .theme-content-thumb {
    background: var(--bg-primary);
}

[data-theme="dark"] .theme-content-thumb .info {
    color: var(--text-secondary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .theme-content-info .title {
    color: var(--text-primary);
}

[data-theme="dark"] .theme-content-info .desc {
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-content-info .data {
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-content-info .price {
    border-top-color: var(--border-color);
    border-bottom-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-attributo .item li {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .theme-attributo .item li .text {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .theme-attributo .item li span:last-child {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .theme-content-body {
    color: var(--text-primary);
}

[data-theme="dark"] .theme-content-body h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .theme-content-author {
    background: var(--bg-primary);
}

[data-theme="dark"] .theme-content-author li {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .theme-content-author .head {
    background: var(--bg-secondary);
}

[data-theme="dark"] .page-content .portlet ul li p {
    color: var(--text-secondary);
}

[data-theme="dark"] .page-content .portlet ul li p:nth-child(2) {
    color: var(--text-primary);
}

/* 详情页更多暗黑模式样式 */
[data-theme="dark"] body.single .page-container,
[data-theme="dark"] body.single-product .page-container,
[data-theme="dark"] body.single .page-content-wrapper,
[data-theme="dark"] body.single-product .page-content-wrapper,
[data-theme="dark"] body.single .page-content,
[data-theme="dark"] body.single-product .page-content {
    background: #13161b;
}

[data-theme="dark"] .theme-content-info .data span {
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-content-info .data a {
    color: var(--text-primary);
}

[data-theme="dark"] .theme-content-info .price .money span {
    color: var(--text-primary);
}

[data-theme="dark"] .theme-content-info .help dl dt,
[data-theme="dark"] .theme-content-info .help dl dd {
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-content-info .list_tool a {
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-content-info .list_tool a:hover {
    color: var(--text-primary);
}

[data-theme="dark"] .theme-content-author .desc {
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-content-author .name {
    color: var(--text-primary);
}

[data-theme="dark"] .portlet-title {
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .portlet-title h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .side-text-list li a {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .side-text-list li a:hover {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .related-item h4 a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .related-item h4 a:hover {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .related-thumb {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .page-content .portlet {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .page-content .portlet ul li {
    color: var(--text-secondary);
}

[data-theme="dark"] .page-content .portlet ul li p {
    color: var(--text-secondary);
}

.theme-content .container,
.page-container .container {
    max-width: 1200px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* 详情页：完全移除所有padding和margin */
body.single .theme-content .container,
body.single-product .theme-content .container,
body.single .page-container .container,
body.single-product .page-container .container {
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.portlet {
    background: #fff;
    border-radius: 8px;
    padding: 20px !important;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: none;
}

/* 详情页：完全移除portlet的所有视觉边�?*/
body.single .portlet,
body.single-product .portlet {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

[data-theme="dark"] body.single .portlet,
[data-theme="dark"] body.single-product .portlet {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* 电脑端详情页：移除portlet的边框和阴影，让页面看起来是一个整�?*/
@media (min-width: 769px) {
    /* 移除所有portlet的视觉边�?*/
    body.single .theme-content .portlet,
    body.single-product .theme-content .portlet,
    body.single .page-container .portlet,
    body.single-product .page-container .portlet,
    body.single .page-content .portlet,
    body.single-product .page-content .portlet {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 20px 0 !important;
        margin: 0 !important;
    }
    
    /* 暗黑模式下也移除边框，背景透明 */
    [data-theme="dark"] body.single .theme-content .portlet,
    [data-theme="dark"] body.single-product .theme-content .portlet,
    [data-theme="dark"] body.single .page-container .portlet,
    [data-theme="dark"] body.single-product .page-container .portlet,
    [data-theme="dark"] body.single .page-content .portlet,
    [data-theme="dark"] body.single-product .page-content .portlet {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
    
    /* 移除所有列的padding */
    body.single .theme-content [class*="col-"],
    body.single-product .theme-content [class*="col-"],
    body.single .page-container [class*="col-"],
    body.single-product .page-container [class*="col-"] {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* 确保theme-content背景色正�?*/
    body.single .theme-content,
    body.single-product .theme-content {
        background: #ffffff;
    }
    
    [data-theme="dark"] body.single .theme-content,
    [data-theme="dark"] body.single-product .theme-content {
        background: #13161b;
    }
    
    /* 确保page-container背景色正确 */
    body.single .page-container,
    body.single-product .page-container {
        background: #ffffff;
    }
    
    [data-theme="dark"] body.single .page-container,
    [data-theme="dark"] body.single-product .page-container {
        background: #13161b;
    }
}

.portlet.margin-0 {
    margin: 0 0 20px 0;
    padding: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.portlet-body {
    padding: 0 !important;
}

.portlet-body {
    padding: 0;
}

/* 确保row没有负margin */
.theme-content .row,
.page-container .row,
.row-flex {
    margin-left: 0;
    margin-right: 0;
}

/* 但是portlet内部的row需要负margin来抵消列的padding */
.portlet-body > .row {
    margin-left: -10px;
    margin-right: -10px;
}

/* 左侧产品图片 */
.theme-content-thumb {
    background: #fff;
    border-radius: 6px;
    padding: 0;
}

.theme-content-thumb .pic {
    margin-bottom: 12px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.theme-content-thumb .pic img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.theme-content-thumb .info {
    padding: 10px 15px;
    font-size: 12px;
    color: #666;
}

.theme-content-thumb .info {
    padding-top: 10px;
    font-size: 12px;
    color: #666;
}

.theme-content-thumb .info .pull-right a {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
}

.theme-content-thumb .info .pull-right a:hover {
    color: #5568d3;
}

.split-line {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #ddd;
    margin: 0 8px;
    vertical-align: middle;
}

/* 中间产品信息 */
.theme-content-info {
    padding: 0 10px;
}

.theme-content-info .title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.theme-content-info .desc {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #666;
}

.theme-content-info .desc.text-red {
    color: #ff6b35;
}

.txt-ov {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-content-info .data {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.theme-content-info .data .text-muted {
    color: #999;
}

.theme-content-info .price {
    margin-bottom: 12px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #666;
}

.theme-content-info .price .money {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
}

.theme-content-info .price .money .sale {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: normal;
    vertical-align: middle;
}

/* 增值服�?*/
.theme-content-info .help {
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.theme-content-info .help dl {
    margin: 0;
}

.theme-content-info .help dt {
    float: left;
    font-size: 13px;
    color: #999;
    font-weight: normal;
    margin-right: 10px;
}

.theme-content-info .help dd {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}

.spot.text {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #667eea;
    border-radius: 50%;
    margin-right: 5px;
}

/* 分享按钮 */
.list_tool.shares {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

.list_tool.shares strong {
    font-size: 13px;
    margin-right: 10px;
    vertical-align: middle;
}

.list_tool.shares a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    margin-right: 6px;
    transition: all 0.3s;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}

.list_tool.shares a:hover {
    transform: scale(1.1);
}

.share-weixin {
    background: #09bb07;
}

.share-tsina {
    background: #e6162d;
}

.share-sqq {
    background: #12b7f5;
}

.share-qzone {
    background: #fdbe3d;
}

.share-twitter {
    background: #1da1f2;
}

.share-facebook {
    background: #3b5998;
}

.share-linkedin {
    background: #0077b5;
}

/* 点赞按钮 - 按钮风格 */
.list_tool.shares .btn-like {
    display: inline-block;
    background: #52c41a !important;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: normal;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    transition: all 0.3s ease;
    border: 1px solid #52c41a;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.list_tool.shares .btn-like:hover {
    background: #73d13d !important;
    border-color: #73d13d !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3) !important;
}

.list_tool.shares .btn-like:active {
    transform: translateY(0) !important;
}

.list_tool.shares .btn-like.liked {
    background: #95de64 !important;
    border-color: #95de64 !important;
    cursor: default;
}

.list_tool.shares .btn-like.liked:hover {
    background: #95de64 !important;
    border-color: #95de64 !important;
    transform: none !important;
    box-shadow: none !important;
}

.list_tool.shares .btn-like i {
    margin-right: 4px;
    font-size: 14px;
}

.list_tool.shares .btn-like .like-count {
    margin-left: 4px;
    font-weight: normal;
}

/* 点赞动画效果 */
.list_tool.shares .btn-like.animate {
    animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 暗黑模式下的点赞按钮 */
[data-theme="dark"] .list_tool.shares .btn-like {
    background: #52c41a !important;
    border-color: #52c41a !important;
    color: #fff !important;
}

[data-theme="dark"] .list_tool.shares .btn-like:hover {
    background: #73d13d !important;
    border-color: #73d13d !important;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4) !important;
}

[data-theme="dark"] .list_tool.shares .btn-like.liked {
    background: #95de64 !important;
    border-color: #95de64 !important;
}

[data-theme="dark"] .list_tool.shares .btn-like.liked:hover {
    background: #95de64 !important;
    border-color: #95de64 !important;
}

/* 旧的digg样式保留作为备用 */
.list_tool.shares .digg {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    width: auto;
    height: auto;
    line-height: normal;
}

.list_tool.shares .digg:hover {
    background: #667eea;
    color: #fff;
    transform: none;
}

/* 操作按钮 */
.operate {
    margin-top: 12px;
}

.operate .btn {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 3px;
    margin-right: 6px;
    margin-bottom: 6px;
    border: none;
    transition: all 0.3s;
}

.operate .btn-primary {
    background: #ff6b35;
    color: #fff;
}

.operate .btn-primary:hover {
    background: #ff5722;
    opacity: 0.95;
}

.operate .btn-warning {
    background: #fbbf24;
    color: #fff;
}

.operate .btn-warning:hover {
    background: #f59e0b;
}

.operate .btn-success {
    background: #10b981;
    color: #fff;
}

.operate .btn-success:hover {
    background: #059669;
}

/* 右侧开发者信�?*/
.theme-content-author {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.theme-content-author li {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.theme-content-author li:last-child {
    border-bottom: none;
}

.theme-content-author .head {
    background: #f8f9fa;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.theme-content-author .head a {
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    font-weight: normal;
}

.theme-content-author .avatar {
    text-align: center;
    padding: 15px;
}

.theme-content-author .avatar img {
    border-radius: 5px;
    width: 90px;
    height: 90px;
}

.theme-content-author .name {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

.theme-content-author .desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.theme-content-author .btn-hollow {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.theme-content-author .btn-hollow:hover {
    background: #667eea;
    color: #fff;
}

/* 购买流程 */
.page-container {
    background: #f5f7fa;
    padding-bottom: 30px;
}

/* 详情页page-container使用纯白�?*/
body.single .page-container,
body.single-product .page-container {
    background: #ffffff;
}

.page-content-wrapper {
    background: #f5f7fa;
}

/* 详情页page-content-wrapper使用纯白�?*/
body.single .page-content-wrapper,
body.single-product .page-content-wrapper {
    background: #ffffff;
}

.page-content {
    padding: 0;
    background: #f5f7fa;
}

/* 详情页page-content使用纯白�?*/
body.single .page-content,
body.single-product .page-content {
    background: #ffffff;
}

/* 暗黑模式 - page-container, page-content-wrapper, page-content */
[data-theme="dark"] .page-container {
    background: #13161b;
}

[data-theme="dark"] .page-content-wrapper {
    background: #13161b;
}

[data-theme="dark"] .page-content {
    background: #13161b;
}

[data-theme="dark"] body.single .page-container,
[data-theme="dark"] body.single-product .page-container {
    background: #13161b;
}

[data-theme="dark"] body.single .page-content-wrapper,
[data-theme="dark"] body.single-product .page-content-wrapper {
    background: #13161b;
}

[data-theme="dark"] body.single .page-content,
[data-theme="dark"] body.single-product .page-content {
    background: #13161b;
}

.page-content .portlet {
    padding: 15px 20px;
    margin-bottom: 20px;
}

.page-content .portlet ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-content .portlet ul li {
    padding: 6px 8px;
}

.page-content .portlet ul li p {
    margin: 3px 0;
}

.page-content .portlet ul li p:first-child {
    margin-bottom: 4px;
}

.page-content .portlet ul li p:first-child i {
    font-size: 26px;
    color: #667eea;
}

.page-content .portlet ul li p:nth-child(2) {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.page-content .portlet ul li p:nth-child(3) {
    font-size: 10px;
    color: #999;
}

/* 标签�?*/
.portlet-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.portlet-tabs li {
    flex: 1;
}

.portlet-tabs li a {
    display: block;
    padding: 8px 12px;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.portlet-tabs li a:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.02);
}

.portlet-tabs li.active a {
    color: #ff6b35;
    background: #fff;
}

.portlet-tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6b35;
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane.in {
    display: block;
}

.tab-pane.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.tab-pane.fade.in {
    opacity: 1;
}

/* 产品参数表格 - 严格2�?列，�?个参�?*/
.theme-attributo {
    margin-bottom: 20px;
    background: #fafafa;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #f0f0f0;
}

[data-theme="dark"] .theme-attributo {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

.theme-attributo .item {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
}

/* 移动端覆盖为3�?*/
@media (max-width: 768px) {
    .theme-attributo .item {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
}

/* 清除clearfix对grid的影�?*/
.theme-attributo .item.clearfix::after,
.theme-attributo .item.clearfix::before {
    display: none !important;
}

.theme-attributo .item li {
    display: flex !important;
    align-items: center;
    font-size: 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    float: none !important;
    width: auto !important;
}

[data-theme="dark"] .theme-attributo .item li {
    background: #1a1d23 !important;
    border-color: #2d3139 !important;
}

/* 隐藏�?个及以后的元素（如果有的话） */
.theme-attributo .item li:nth-child(n+9) {
    display: none !important;
}

.theme-attributo .item li .text {
    color: #999;
    margin-right: 10px;
    min-width: 70px;
    flex-shrink: 0;
}

.theme-attributo .item li span:last-child {
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应�?- 小屏幕改�?�?行（非详情页�?*/
@media (max-width: 768px) {
    body:not(.single):not(.single-product) .theme-attributo .item {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    body:not(.single):not(.single-product) .theme-attributo .item li {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    body:not(.single):not(.single-product) .theme-attributo .item li .text {
        min-width: 60px;
    }
}

.theme-content-body {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.theme-content-body p {
    margin-bottom: 15px;
}

.theme-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

.theme-text-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.theme-text-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: #333;
}

.theme-text-content p {
    margin-bottom: 12px;
}

.theme-centent-qa {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theme-centent-qa li {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.theme-centent-qa li:last-child {
    margin-bottom: 0;
}

.theme-centent-qa h4 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
}

.theme-centent-qa h4 .tips {
    display: inline-block;
    background: #667eea;
    color: #fff;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    margin-right: 6px;
    font-weight: normal;
}

.theme-centent-qa p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 响应�?*/
@media (max-width: 768px) {
    .theme-content {
        padding-top: 80px;
    }
    
    .theme-content-info .title {
        font-size: 18px;
    }
    
    .theme-content-info .price .money {
        font-size: 20px;
    }
    
    .page-content .portlet ul li {
        padding: 15px 5px;
    }
}

/* 相关主题缩略�?- 固定16:9比例 */
.related-item {
    margin-bottom: 15px;
}

.related-thumb {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 6px;
}

.related-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item h4 {
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.4;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.related-item h4 a:hover {
    color: #667eea;
}
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.product-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.meta-label {
    color: var(--text-secondary);
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

.product-price-box {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8e0 100%);
    padding: 20px;
    border-radius: 8px;
}

[data-theme="dark"] .product-price-box {
    background: linear-gradient(135deg, #3a2520 0%, #2d1f1a 100%);
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.product-price-box .price-current {
    font-size: 32px;
    font-weight: 700;
    color: #ff6600;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.product-price-box .price-original {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.product-excerpt {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-action i {
    font-size: 18px;
}

.btn-demo {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-demo:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-download,
.btn-buy {
    background: #ff6600;
    color: #ffffff;
}

.btn-download:hover,
.btn-buy:hover {
    background: #ff7700;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.3);
}

[data-theme="dark"] .btn-demo {
    background: var(--gray-800);
    color: var(--gray-200);
    border-color: var(--gray-700);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

[data-theme="dark"] .tag-item {
    background: var(--gray-800);
}

/* 详情标签�?*/
.product-detail-tabs {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .product-detail-tabs {
    background: var(--gray-900);
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
}

[data-theme="dark"] .tabs-nav {
    background: var(--gray-800);
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #ff6600;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff6600;
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    padding: 40px;
}

.tab-pane.active {
    display: block;
}

.content-wrapper {
    max-width: 900px;
}

.content-wrapper h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-wrapper p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* 响应�?*/
@media (max-width: 1024px) {
    .product-detail-header {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .product-detail-header {
        padding: 20px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .price-current {
        font-size: 26px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .tabs-nav {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex: none;
        min-width: 100px;
    }
    
    .tab-pane {
        padding: 24px;
    }
}

/* ========== Single Post (Legacy) ========== */
.single-post {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 48px;
    max-width: 800px;
}

.entry-header {
    margin-bottom: 32px;
}

.entry-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.entry-content h2 {
    font-size: 28px;
}

.entry-content h3 {
    font-size: 24px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.entry-content a {
    color: var(--text-primary);
    text-decoration: none !important;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.entry-content a:hover {
    opacity: 0.7;
}

.entry-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 24px 0;
}

[data-theme="dark"] .entry-content pre {
    background: var(--black);
}

.entry-content code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

[data-theme="dark"] .entry-content code {
    background: var(--gray-800);
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* ========== Post Actions ========== */
.post-actions {
    display: flex;
    gap: 12px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.post-like:hover {
    background: var(--hover-bg);
    border-color: var(--text-primary);
}

.post-like.liked {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ========== Social Share ========== */
.social-share {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ========== Footer CTA Section ========== */
.footer-cta {
    position: relative;
    padding: 100px 0;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    width: 100%;
    min-height: 400px;
    flex-shrink: 0;
}

.footer-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #a8c0ff, #c2e9fb, #fbc2eb, #a6c1ee);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

[data-theme="dark"] .footer-cta-bg {
    background: linear-gradient(-45deg, #8fa8d8, #a0c4e0, #d8a0c8, #8fa0d0);
    background-size: 400% 400%;
}

.footer-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.footer-cta-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: 0;
}

.footer-cta-desc {
    font-size: 15px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 400;
}

.footer-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.cta-btn-primary {
    background: #ffffff;
    color: #667eea;
    border-color: #ffffff;
}

.cta-btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.cta-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 650px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-number::after {
    content: '+';
    font-size: 32px;
    margin-left: 2px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

@media (max-width: 768px) {
    .footer-cta {
        padding: 20px 0;
    }
    
    .footer-cta-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .footer-cta-desc {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .footer-cta-buttons {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 12px;
        gap: 6px;
    }
    
    .cta-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .footer-stats {
        display: none;
    }
}

/* ========== Footer ========== */
.site-footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d2d2d 100%);
    color: #b0b0b0;
    margin-top: auto;
    border-top: none;
    width: 100%;
}

[data-theme="dark"] .site-footer {
    background: linear-gradient(135deg, #1a2f4a 0%, #1a1a1a 100%);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-main .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.footer-widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-about p {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact p {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    font-size: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright p {
    color: #888888;
    font-size: 13px;
    margin: 0;
}

.footer-copyright a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-copyright a:hover {
    color: #ffffff;
}

.footer-links-inline a {
    color: #888888;
}

.footer-links-inline a:hover {
    color: #b0b0b0;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 16px 0 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .footer-widget {
        padding: 0;
    }
    
    .footer-widget:nth-child(3),
    .footer-widget:nth-child(4) {
        display: none;
    }
    
    .footer-widget-title {
        font-size: 12px;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    
    .footer-links li {
        padding: 3px 0;
    }
    
    .footer-links a,
    .footer-about p,
    .footer-contact p {
        font-size: 11px;
        line-height: 1.5;
    }
    
    .footer-about p {
        margin-bottom: 4px;
    }
    
    .footer-social {
        margin-top: 6px;
    }
    
    .footer-social a {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    
    .footer-copyright {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright p {
        font-size: 10px;
        line-height: 1.5;
        margin: 2px 0;
    }
    
    .footer-bottom {
        padding: 8px 0;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

#page,
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.site-main,
.theme-content,
.page-container {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* ========== 右侧悬浮工具�?========== */
.floating-toolbar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

[data-theme="dark"] .floating-toolbar {
    background: var(--gray-800);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.floating-btn {
    width: 60px;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none !important;
    color: #666666;
    position: relative;
}

.floating-btn:last-child {
    border-bottom: none;
}

[data-theme="dark"] .floating-btn {
    border-bottom-color: var(--gray-700);
    color: var(--gray-400);
}

.floating-btn:hover {
    background: #f8f9fa;
    color: #000000;
    text-decoration: none !important;
}

[data-theme="dark"] .floating-btn:hover {
    background: var(--gray-700);
    color: #ffffff;
    text-decoration: none !important;
}

.floating-btn i {
    font-size: 20px;
}

.floating-btn span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.floating-btn.btn-primary {
    background: transparent;
    color: #666666;
}

.floating-btn.btn-primary:hover {
    background: #f8f9fa;
    color: #000000;
}

[data-theme="dark"] .floating-btn.btn-primary {
    color: var(--gray-400);
}

[data-theme="dark"] .floating-btn.btn-primary:hover {
    background: var(--gray-700);
    color: #ffffff;
}

.floating-btn::before {
    display: none;
}

@media (max-width: 768px) {
    .floating-toolbar {
        right: 10px;
        bottom: 60px;
    }
    
    .floating-btn {
        width: 54px;
        padding: 10px 0;
    }
    
    .floating-btn i {
        font-size: 18px;
    }
    
    .floating-btn span {
        font-size: 10px;
    }
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 48px 0;
}

.pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ========== Post Navigation ========== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.post-navigation a:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

/* ========== Comments ========== */
.comments-area {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
}

.comment-list {
    list-style: none;
}

.comment-body {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.comment-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.comment-content {
    line-height: 1.7;
    font-size: 15px;
}

/* ========== Forms ========== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

input[type="submit"],
button[type="submit"] {
    padding: 12px 32px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ========== 404 Page ========== */
.error-404 {
    text-align: center;
    padding: 120px 20px;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.05em;
}

.error-404 p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ========== Search Results ========== */
.search-results .page-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.search-results .page-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ========== Animations ========== */
@keyframes likeAnimation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.post-like.animate {
    animation: likeAnimation 0.3s ease;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .site-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 30px 0 60px 0;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* 移动端header布局 */
    .header-inner {
        height: 56px;
        gap: 12px;
        display: flex;
        align-items: center;
    }
    
    .site-logo {
        order: 1;
        margin-right: auto;
    }
    
    .site-logo a {
        font-size: 16px;
    }
    
    .main-nav {
        display: none;
    }
    
    /* 移动端header-tools - 两个按钮都在右边 */
    .header-tools {
        display: flex !important;
        gap: 8px;
        margin-left: 0;
        order: 2;
    }
    
    .theme-toggle {
        order: 1;
        width: 32px;
        height: 32px;
        font-size: 16px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        color: #ffffff;
        padding: 0;
        cursor: pointer;
    }
    
    .mobile-menu-toggle {
        order: 2;
        font-size: 20px;
        width: 32px;
        height: 32px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        color: #ffffff;
        padding: 0;
        cursor: pointer;
    }
    
    /* 移动端布局 - 单列 */
    .site-main {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    /* 移动端posts-grid改为2�?*/
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* 移动端文章列表卡片缩�?*/
    .articles-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .list-item {
        padding: 10px;
    }
    
    .list-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .list-content {
        padding: 0 10px;
    }
    
    .list-title {
        font-size: 13px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .list-excerpt {
        font-size: 12px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .list-meta {
        font-size: 11px;
    }
    
    .post-thumbnail {
        height: 200px;
    }
    
    .single-post {
        padding: 20px;
    }
    
    .entry-title {
        font-size: 24px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
    
    .hero-video-wrapper {
        height: 280px;
        overflow: hidden;
        margin-bottom: 0;
    }
    
    .hero-video {
        height: 280px;
    }
    
    .hero-slider {
        margin-bottom: 0;
    }
    
    .hero-overlay {
        padding-top: 56px;
        gap: 16px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .hero-content h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .hero-content p {
        font-size: 13px;
    }
    
    .hero-search {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .hero-search input[type="search"] {
        padding: 10px 40px 10px 50px;
        font-size: 13px;
        height: 40px;
    }
    
    .hero-search .search-icon {
        left: auto;
        right: 56px;
        font-size: 16px;
    }
    
    .hero-search button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        right: 16px;
    }
    
    /* 移动端快捷入�?- 一�?�?*/
    .hero-shortcuts {
        position: static;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 16px auto;
        padding: 0 12px;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
        max-width: 100%;
        z-index: auto;
    }
    
    .shortcut-card {
        flex-direction: column;
        padding: 8px 4px;
        min-width: auto;
        gap: 4px;
        align-items: center;
        justify-content: center;
    }
    
    .shortcut-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .shortcut-content {
        align-items: center;
        gap: 2px;
    }
    
    .shortcut-title {
        font-size: 10px;
        text-align: center;
        flex-direction: column;
        gap: 2px;
        line-height: 1.2;
    }
    
    .shortcut-desc {
        display: none;
    }
    
    .shortcut-badge {
        font-size: 8px;
        padding: 1px 3px;
        margin-top: 1px;
    }
    
    .site-main {
        padding: 24px 0 40px 0;
    }
    
    .site-footer {
        padding: 20px 0;
    }
    
    /* 移动端隐藏侧边栏 */
    .sidebar {
        display: none !important;
    }
    
    /* 移动端内容区域全�?*/
    .content-area {
        width: 100%;
        max-width: 100%;
    }
    
    /* ========== 移动端商品详情页优化 ========== */
    /* 详情页容器铺满屏�?*/
    body.single .theme-content,
    body.single-product .theme-content,
    .theme-content {
        padding-top: 56px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: #f5f7fa !important;
    }
    
    body.single .theme-content .container,
    body.single-product .theme-content .container,
    body.single .page-container .container,
    body.single-product .page-container .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    body.single .theme-content .row,
    body.single-product .theme-content .row,
    body.single .page-container .row,
    body.single-product .page-container .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    body.single .theme-content .col-xs-12,
    body.single-product .theme-content .col-xs-12,
    body.single .theme-content .col-md-4,
    body.single-product .theme-content .col-md-4,
    body.single .theme-content .col-md-6,
    body.single-product .theme-content .col-md-6,
    body.single .theme-content .col-md-8,
    body.single-product .theme-content .col-md-8,
    body.single .page-container .col-xs-12,
    body.single-product .page-container .col-xs-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
    
    /* 移除所有portlet的卡片样�?- 让页面看起来是一个整�?*/
    body.single .theme-content .portlet,
    body.single-product .theme-content .portlet,
    body.single .page-container .portlet,
    body.single-product .page-container .portlet,
    body.single .portlet.margin-0,
    body.single-product .portlet.margin-0,
    body.single .theme-content .portlet.margin-0,
    body.single-product .theme-content .portlet.margin-0 {
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        background: #ffffff;
        padding: 0 !important;
    }
    
    [data-theme="dark"] body.single .theme-content .portlet.margin-0,
    [data-theme="dark"] body.single-product .theme-content .portlet.margin-0 {
        background: #13161b;
    }
    
    /* Portlet body内部添加padding */
    body.single .theme-content .portlet .portlet-body,
    body.single-product .theme-content .portlet .portlet-body,
    body.single .page-container .portlet .portlet-body,
    body.single-product .page-container .portlet .portlet-body {
        padding: 16px !important;
    }
    
    /* 确保page-container和page-content背景正确 */
    body.single .page-container,
    body.single-product .page-container,
    body.single .page-content-wrapper,
    body.single-product .page-content-wrapper,
    body.single .page-content,
    body.single-product .page-content {
        background: #ffffff;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 暗黑模式 */
    [data-theme="dark"] body.single .page-container,
    [data-theme="dark"] body.single-product .page-container,
    [data-theme="dark"] body.single .page-content-wrapper,
    [data-theme="dark"] body.single-product .page-content-wrapper,
    [data-theme="dark"] body.single .page-content,
    [data-theme="dark"] body.single-product .page-content {
        background: #13161b;
    }
    
    /* 详情页信息区域 */
    body.single .theme-content-info,
    body.single-product .theme-content-info {
        padding: 0 16px !important;
    }
    
    body.single .theme-content-info .title,
    body.single-product .theme-content-info .title {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    
    body.single .theme-content-info .data,
    body.single-product .theme-content-info .data {
        font-size: 12px !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    body.single .theme-content-info .price,
    body.single-product .theme-content-info .price {
        display: block !important;
        clear: both !important;
    }
    
    body.single .theme-content-info .price .pull-right,
    body.single-product .theme-content-info .price .pull-right {
        float: none !important;
        display: block !important;
        margin-bottom: 8px !important;
    }
    
    /* 购买流程改为3�?*/
    body.single .page-content .portlet ul,
    body.single-product .page-content .portlet ul {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    body.single .page-content .portlet ul li,
    body.single-product .page-content .portlet ul li {
        width: 33.333% !important;
        padding: 12px 8px !important;
        box-sizing: border-box !important;
    }
    
    body.single .page-content .portlet ul li p,
    body.single-product .page-content .portlet ul li p {
        font-size: 10px !important;
    }
    
    body.single .page-content .portlet ul li p:first-child i,
    body.single-product .page-content .portlet ul li p:first-child i {
        font-size: 20px !important;
    }
    
    /* 产品参数表格改为横向2行，每行3个（�?个） */
    body.single .theme-attributo,
    body.single-product .theme-attributo {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    body.single .theme-attributo .item,
    body.single-product .theme-attributo .item {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-rows: auto !important;
        gap: 8px !important;
        display: grid !important;
        width: 100% !important;
    }
    
    /* 隐藏�?和第8个参数（源码编码和是否原创） */
    body.single .theme-attributo .item li:nth-child(5),
    body.single .theme-attributo .item li:nth-child(7),
    body.single-product .theme-attributo .item li:nth-child(5),
    body.single-product .theme-attributo .item li:nth-child(7) {
        display: none !important;
    }
    
    body.single .theme-attributo .item li,
    body.single-product .theme-attributo .item li {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 10px 8px !important;
        font-size: 11px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    
    body.single .theme-attributo .item li .text,
    body.single-product .theme-attributo .item li .text {
        margin-bottom: 4px !important;
        margin-right: 0 !important;
        font-size: 10px !important;
        min-width: auto !important;
    }
    
    body.single .theme-attributo .item li span:last-child,
    body.single-product .theme-attributo .item li span:last-child {
        font-size: 11px !important;
        text-align: left !important;
        word-break: break-word !important;
    }
    
    /* 暗黑模式下的移动端详情页 */
    [data-theme="dark"] body.single .theme-content,
    [data-theme="dark"] body.single-product .theme-content,
    [data-theme="dark"] body.single .page-container,
    [data-theme="dark"] body.single-product .page-container,
    [data-theme="dark"] body.single .page-content-wrapper,
    [data-theme="dark"] body.single-product .page-content-wrapper,
    [data-theme="dark"] body.single .page-content,
    [data-theme="dark"] body.single-product .page-content {
        background: #13161b !important;
    }
    
    [data-theme="dark"] body.single .theme-content .portlet,
    [data-theme="dark"] body.single-product .theme-content .portlet,
    [data-theme="dark"] body.single .page-container .portlet,
    [data-theme="dark"] body.single-product .page-container .portlet,
    [data-theme="dark"] body.single .portlet.margin-0,
    [data-theme="dark"] body.single-product .portlet.margin-0 {
        background: #13161b !important;
    }
    
    [data-theme="dark"] body.single .theme-content .portlet .portlet-body,
    [data-theme="dark"] body.single-product .theme-content .portlet .portlet-body,
    [data-theme="dark"] body.single .page-container .portlet .portlet-body,
    [data-theme="dark"] body.single-product .page-container .portlet .portlet-body {
        background: #13161b !important;
    }
    
    /* 暗黑模式下所有portlet内的ul也要是暗色背�?*/
    [data-theme="dark"] body.single .portlet ul,
    [data-theme="dark"] body.single-product .portlet ul,
    [data-theme="dark"] body.single .page-container .portlet ul,
    [data-theme="dark"] body.single-product .page-container .portlet ul {
        background: #13161b !important;
    }
    
    /* 暗黑模式下所有portlet内的li也要是暗色背�?*/
    [data-theme="dark"] body.single .portlet ul li,
    [data-theme="dark"] body.single-product .portlet ul li,
    [data-theme="dark"] body.single .page-container .portlet ul li,
    [data-theme="dark"] body.single-product .page-container .portlet ul li {
        background: #13161b !important;
    }
}

@media (max-width: 480px) {
    .hero-video-wrapper {
        height: 250px;
    }
    
    .hero-video {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 20px;
    }
    
    .hero-content p {
        font-size: 13px;
    }
    
    .post-content {
        padding: 40px 12px 12px 12px;
    }
    
    .post-title {
        font-size: 14px;
    }
    
    .post-excerpt {
        font-size: 12px;
    }
    
    .price-current {
        font-size: 16px;
    }
}

/* ========== Print Styles ========== */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .social-share,
    .post-navigation,
    .back-to-top,
    .theme-toggle {
        display: none;
    }
    
    .site-main {
        grid-template-columns: 1fr;
    }
}


/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination .page-numbers {
    padding: 8px 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* 文章导航 */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    padding: 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.post-navigation a:hover {
    border-color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: bold;
}

/* 评论样式 */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comment-list {
    list-style: none;
}

.comment-body {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.comment-content {
    line-height: 1.6;
}

/* 表单样式 */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    margin-bottom: 15px;
}

input[type="submit"],
button[type="submit"] {
    padding: 10px 30px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--primary-color);
}

/* 点赞动画 */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.post-like.animate {
    animation: likeAnimation 0.3s ease;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 404页面样式 */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 120px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 搜索结果�?*/
.search-results .page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
}

.search-results .page-title {
    font-size: 28px;
}

/* 移动端优�?*/
@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
    
    .entry-title {
        font-size: 24px;
    }
    
    .search-form input {
        width: 100%;
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .social-share,
    .post-navigation,
    .back-to-top,
    .theme-toggle {
        display: none;
    }
    
    .site-main {
        grid-template-columns: 1fr;
    }
}


/* ========== Additional Animations ========== */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ========== Loading State ========== */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--text-primary);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Selection ========== */
::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--gray-800);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--gray-600);
}

/* ========== Focus Visible ========== */
*:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* ========== Image Placeholder ========== */
.post-thumbnail[src=""],
.post-thumbnail:not([src]) {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail[src=""]::after,
.post-thumbnail:not([src])::after {
    content: '\eb9f';
    font-family: 'remixicon';
    font-size: 48px;
    color: var(--gray-400);
}

/* ========== Utility Classes ========== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* ========== Archive Title ========== */
.page-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.archive-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ========== No Posts Found ========== */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.no-posts p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ========== Sticky Post ========== */
.sticky {
    position: relative;
}

.sticky::before {
    content: '\eb4f';
    font-family: 'remixicon';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
}

/* ========== Category Badge ========== */
.cat-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-links a {
    padding: 4px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.cat-links a:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ========== Tag Cloud ========== */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    padding: 6px 14px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    text-decoration: none;
    color: var(--text-secondary) !important;
    transition: all 0.2s;
}

.tagcloud a:hover {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    border-color: var(--text-primary) !important;
}

/* ========== Mobile Menu Toggle ========== */
.mobile-menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    padding: 0;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

.mobile-menu-toggle i {
    transition: all 0.2s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
    left: 0;
}

.mobile-menu-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none !important;
    font-size: 14px;
    transition: background 0.2s;
}

.mobile-nav-menu a:hover {
    background: var(--hover-bg);
}

.mobile-nav-menu .current-menu-item > a,
.mobile-nav-menu .current_page_item > a {
    color: #667eea;
    font-weight: 600;
}

/* 移动端菜单遮�?*/
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-menu-overlay.active {
    display: block;
}


/* ========== Single Page Full Width Fix ========== */
.single-product-wrapper {
    padding-top: 100px;
    padding-bottom: 60px;
    background: #f5f7fa;
}

.single-product-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.single-product-wrapper .content-area {
    width: 100%;
}

.single-post .container,
.single .container {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
}

.single-post .content-area,
.single .content-area {
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-post .site-main,
.single .site-main {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 100% !important;
    width: 100% !important;
}


/* ========== 强制修复所有可能的宽度限制 ========== */
body.single,
body.single-post {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body.single #page,
body.single-post #page,
body.single .site,
body.single-post .site {
    width: 100% !important;
    max-width: 100% !important;
}


/* 详情页专用：确保所有卡片左右对�?- 统一使用相同的padding */
.theme-content .col-md-4,
.theme-content .col-md-6,
.theme-content .col-md-2,
.page-container .col-md-2,
.page-container .col-md-8,
.page-container .col-md-4,
.page-container .col-xs-6,
.page-container .col-xs-12 {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* 所有portlet卡片必须使用完全相同的padding */
.theme-content .portlet,
.page-container .portlet {
    padding: 20px !important;
    box-sizing: border-box !important;
}

.theme-content .portlet.margin-0 {
    padding: 20px !important;
    margin: 0 0 20px 0 !important;
}

.theme-content .portlet.margin-0 .portlet-body {
    padding: 0 !important;
}


/* ========== 暗黑模式详情页完整修�?========== */

/* theme-attributo 容器背景 */
[data-theme="dark"] .theme-attributo {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

/* theme-attributo 列表项背景和边框 */
[data-theme="dark"] .theme-attributo .item li {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

/* theme-attributo 文字颜色 - 标签 */
[data-theme="dark"] .theme-attributo .item li .text {
    color: #9aa0a6 !important;
}

/* theme-attributo 文字颜色 - �?*/
[data-theme="dark"] .theme-attributo .item li span {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-attributo .item li span:last-child {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-attributo .item li a {
    color: #e8eaed !important;
    text-decoration: none !important;
}

/* 分享图标和文字颜�?*/
[data-theme="dark"] .theme-content-info .list_tool {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-content-info .list_tool strong {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-content-info .list_tool a {
    color: #ffffff !important;
    text-decoration: none !important;
}

[data-theme="dark"] .theme-content-info .list_tool a:hover {
    color: #ffffff !important;
    opacity: 0.9;
}

[data-theme="dark"] .theme-content-info .list_tool a i {
    color: #ffffff !important;
}

[data-theme="dark"] .theme-content-info .list_tool a:hover i {
    color: #ffffff !important;
}

/* 点赞按钮在暗黑模式下 */
[data-theme="dark"] .list_tool.shares .digg {
    background: #2d3139 !important;
    color: #e8eaed !important;
}

[data-theme="dark"] .list_tool.shares .digg:hover {
    background: #667eea !important;
    color: #ffffff !important;
}

/* 购买流程图标颜色 */
[data-theme="dark"] .page-content .portlet ul li p {
    color: #e8eaed !important;
}

[data-theme="dark"] .page-content .portlet ul li p i {
    color: #e8eaed !important;
    font-size: 24px !important;
}

[data-theme="dark"] .page-content .portlet ul li p:first-child i {
    color: #667eea !important;
}

/* 商品介绍标题 */
[data-theme="dark"] .theme-content-body h3 {
    color: #e8eaed !important;
}

/* 产品信息区域所有文�?*/
[data-theme="dark"] .theme-content-info .title {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-content-info .desc {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .theme-content-info .data {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .theme-content-info .data span {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .theme-content-info .data a {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-content-info .price {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .theme-content-info .price .money span {
    color: #e8eaed !important;
}

/* 图片信息区域 */
[data-theme="dark"] .theme-content-thumb .info {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .theme-content-thumb .info span {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-content-thumb .info a {
    color: #9aa0a6 !important;
}

/* 开发者信�?*/
[data-theme="dark"] .theme-content-author {
    background: var(--bg-primary) !important;
}

[data-theme="dark"] .theme-content-author .head {
    background: var(--bg-secondary) !important;
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-content-author .name {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-content-author .name span {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-content-author .desc {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .theme-content-author li {
    border-bottom-color: var(--border-color) !important;
}

/* 商品介绍内容 */
[data-theme="dark"] .theme-content-body {
    color: #e8eaed !important;
}

[data-theme="dark"] .theme-content-body p {
    color: #e8eaed !important;
}

/* Header Logo在暗黑模式下必须是白�?*/
[data-theme="dark"] .site-logo a {
    color: #ffffff !important;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, rgba(255,255,255,0.6) 50%, #ffffff 60%, #ffffff 100%) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Header菜单在暗黑模式下的颜色 */
[data-theme="dark"] .main-nav > ul > li > a {
    color: #ffffff !important;
}

[data-theme="dark"] .main-nav > ul > li > a:hover,
[data-theme="dark"] .main-nav .current-menu-item > a,
[data-theme="dark"] .main-nav .current_page_item > a {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.15) !important;
    border-radius: 6px !important;
}

/* 侧边�?*/
[data-theme="dark"] .portlet-title {
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .portlet-title h3 {
    color: #e8eaed !important;
}

[data-theme="dark"] .side-text-list li a {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .side-text-list li a:hover {
    color: #e8eaed !important;
}

[data-theme="dark"] .related-item h4 a {
    color: #e8eaed !important;
}

[data-theme="dark"] .related-item h4 a:hover {
    color: #e8eaed !important;
}

[data-theme="dark"] .related-thumb {
    background: var(--bg-secondary) !important;
}

/* 全局文本颜色 */
[data-theme="dark"] .text-muted {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .text-color {
    color: #e8eaed !important;
}



/* ========== 暗黑模式商品详情页完整修�?========== */
@media (max-width: 768px) {
    /* 暗黑模式下所有容器都是暗�?- 使用!important强制覆盖 */
    [data-theme="dark"] body.single,
    [data-theme="dark"] body.single *:not(img):not(video):not(.btn):not(button):not(a.btn) {
        background-color: #13161b !important;
        background: #13161b !important;
    }
    
    /* 特别处理购买流程的portlet */
    [data-theme="dark"] body.single .page-container .portlet,
    [data-theme="dark"] body.single .page-container .portlet *:not(img):not(video):not(.btn):not(button) {
        background-color: #13161b !important;
        background: #13161b !important;
    }
    
    /* 特别处理ul和li */
    [data-theme="dark"] body.single ul,
    [data-theme="dark"] body.single li,
    [data-theme="dark"] body.single .page-container ul,
    [data-theme="dark"] body.single .page-container li {
        background-color: #13161b !important;
        background: #13161b !important;
    }
    
    /* 按钮保持原有颜色 */
    [data-theme="dark"] body.single .btn,
    [data-theme="dark"] body.single button,
    [data-theme="dark"] body.single a.btn {
        background-color: #f56c6c !important;
        background: #f56c6c !important;
    }
    
    [data-theme="dark"] body.single .btn-primary {
        background-color: #409eff !important;
        background: #409eff !important;
    }
    
    [data-theme="dark"] body.single .btn-warning {
        background-color: #e6a23c !important;
        background: #e6a23c !important;
    }
    
    [data-theme="dark"] body.single .btn-success {
        background-color: #67c23a !important;
        background: #67c23a !important;
    }
    
    /* 文字颜色 */
    [data-theme="dark"] body.single,
    [data-theme="dark"] body.single p,
    [data-theme="dark"] body.single span,
    [data-theme="dark"] body.single div,
    [data-theme="dark"] body.single li {
        color: #9aa0a6 !important;
    }
    
    /* 标题颜色 */
    [data-theme="dark"] body.single h1,
    [data-theme="dark"] body.single h2,
    [data-theme="dark"] body.single h3,
    [data-theme="dark"] body.single h4 {
        color: #e8eaed !important;
    }
    
    /* 链接颜色 */
    [data-theme="dark"] body.single a:not(.btn) {
        color: #8ab4f8 !important;
    }
    
    /* 图标颜色 */
    [data-theme="dark"] body.single i {
        color: #9aa0a6 !important;
    }
}



/* ========== 强制性暗黑模式规则 - 确保所有容器背景正确 ========== */

/* 日间模式 - 确保所有容器背景透明 */
html:not([data-theme="dark"]) body.home,
html:not([data-theme="dark"]) body.home .container,
html:not([data-theme="dark"]) body.home .site-main,
html:not([data-theme="dark"]) body.home .content-area,
html:not([data-theme="dark"]) body.home .section-block,
html:not([data-theme="dark"]) body.home .posts-grid,
html:not([data-theme="dark"]) body.home .articles-list,
html:not([data-theme="dark"]) body.home .featured-categories {
    background: transparent !important;
}

/* 日间模式 - 确保html和body背景是浅色 */
html:not([data-theme="dark"]) {
    background: #f5f7fa !important;
}

html:not([data-theme="dark"]) body {
    background: #f5f7fa !important;
}

html:not([data-theme="dark"]) body.home {
    background: #f5f7fa !important;
}

/* 暗黑模式 - 确保所有容器背景透明 */
[data-theme="dark"] body.home,
[data-theme="dark"] body.home .container,
[data-theme="dark"] body.home .site-main,
[data-theme="dark"] body.home .content-area,
[data-theme="dark"] body.home .section-block,
[data-theme="dark"] body.home .posts-grid,
[data-theme="dark"] body.home .articles-list,
[data-theme="dark"] body.home .featured-categories {
    background: transparent !important;
}

/* 暗黑模式 - 确保html和body背景是深色 */
[data-theme="dark"] html {
    background: #13161b !important;
}

[data-theme="dark"] body {
    background: #13161b !important;
}

[data-theme="dark"] body.home {
    background: #13161b !important;
}

/* 确保page-container在所有模式下都有正确的背景 */
html:not([data-theme="dark"]) .page-container {
    background: #f5f7fa !important;
}

[data-theme="dark"] .page-container {
    background: #13161b !important;
}

html:not([data-theme="dark"]) body.single .page-container {
    background: #ffffff !important;
}

[data-theme="dark"] body.single .page-container {
    background: #13161b !important;
}


/* ========== 主题切换动画 - 半透明小球扩散效果 ========== */

.theme-transition-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 激活动画 - 小球从右上角扩散 */
.theme-transition-overlay.active {
    clip-path: circle(150% at 100% 0%);
}

/* 切换到日间模式 - 半透明白色 */
.theme-transition-overlay.to-light {
    background: rgba(245, 247, 250, 0.95);
    backdrop-filter: blur(10px);
}

/* 切换到暗黑模式 - 半透明黑色 */
.theme-transition-overlay.to-dark {
    background: rgba(19, 22, 27, 0.95);
    backdrop-filter: blur(10px);
}




/* ========== 统一修复：Header样式 ========== */

/* 日间模式 - 首页滚动后和详情页统一样式 */
.home .site-header.scrolled,
body:not(.home) .site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* 日间模式 - Logo黑色 */
.home .site-header.scrolled .site-logo a,
body:not(.home) .site-logo a {
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
}

/* 日间模式 - 菜单黑色 */
.home .site-header.scrolled .main-nav > ul > li > a,
body:not(.home) .main-nav > ul > li > a {
    color: #000000 !important;
    font-weight: 700 !important;
}

.home .site-header.scrolled .main-nav > ul > li > a:hover,
body:not(.home) .main-nav > ul > li > a:hover {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.1) !important;
}

/* 日间模式 - 主题切换按钮 */
.home .site-header.scrolled .theme-toggle,
body:not(.home) .theme-toggle {
    color: #000000 !important;
    background: #f0f0f0 !important;
}

/* 暗黑模式 - 统一样式 */
[data-theme="dark"] .site-header {
    background: rgba(26, 26, 26, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 暗黑模式 - Logo白色 */
[data-theme="dark"] .site-logo a {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 暗黑模式 - 菜单白色 */
[data-theme="dark"] .main-nav > ul > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .main-nav > ul > li > a:hover {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.15) !important;
    border-radius: 6px !important;
}

/* 暗黑模式 - 主题切换按钮 */
[data-theme="dark"] .theme-toggle {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}


/* ========== 最终修复：暗黑模式Logo必须是白色 ========== */
[data-theme="dark"] .site-logo a,
[data-theme="dark"] .site-logo a span,
[data-theme="dark"] .home .site-header .site-logo a,
[data-theme="dark"] body:not(.home) .site-logo a {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* 暗黑模式下的菜单也必须是白色 */
[data-theme="dark"] .main-nav > ul > li > a,
[data-theme="dark"] .home .site-header .main-nav > ul > li > a,
[data-theme="dark"] body:not(.home) .main-nav > ul > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .main-nav > ul > li > a:hover,
[data-theme="dark"] .home .site-header .main-nav > ul > li > a:hover,
[data-theme="dark"] body:not(.home) .main-nav > ul > li > a:hover {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.15) !important;
    border-radius: 6px !important;
}

/* 日间模式下Logo和菜单必须是黑色 */
body:not([data-theme="dark"]) .home .site-header.scrolled .site-logo a,
body:not([data-theme="dark"]) body:not(.home) .site-logo a {
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
}

body:not([data-theme="dark"]) .home .site-header.scrolled .main-nav > ul > li > a,
body:not([data-theme="dark"]) body:not(.home) .main-nav > ul > li > a {
    color: #000000 !important;
    font-weight: 700 !important;
}


/* Logo布局 */
.site-logo a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.site-logo a span {
    display: inline-block;
}

.site-logo a img {
    max-height: 40px;
}


/* ========== 统一菜单hover颜色 ========== */
/* 所有页面的菜单hover效果统一 */
.main-nav > ul > li > a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.home .site-header .main-nav > ul > li > a:hover,
.home .site-header.scrolled .main-nav > ul > li > a:hover,
body:not(.home) .main-nav > ul > li > a:hover,
[data-theme="dark"] .main-nav > ul > li > a:hover,
[data-theme="dark"] .home .site-header .main-nav > ul > li > a:hover,
[data-theme="dark"] body:not(.home) .main-nav > ul > li > a:hover {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.1) !important;
    border-radius: 6px !important;
}


/* ========== 强制统一：暗黑模式菜单hover效果 ========== */
/* 首页和详情页必须完全一致 */
[data-theme="dark"] .main-nav > ul > li > a:hover,
[data-theme="dark"] .main-nav .current-menu-item > a,
[data-theme="dark"] .main-nav .current_page_item > a,
[data-theme="dark"] .home .site-header .main-nav > ul > li > a:hover,
[data-theme="dark"] .home .site-header .main-nav .current-menu-item > a,
[data-theme="dark"] .home .site-header .main-nav .current_page_item > a,
[data-theme="dark"] body:not(.home) .main-nav > ul > li > a:hover,
[data-theme="dark"] body:not(.home) .main-nav .current-menu-item > a,
[data-theme="dark"] body:not(.home) .main-nav .current_page_item > a {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.15) !important;
    border-radius: 6px !important;
}

/* 日间模式也统一 */
body:not([data-theme="dark"]) .main-nav > ul > li > a:hover,
body:not([data-theme="dark"]) .main-nav .current-menu-item > a,
body:not([data-theme="dark"]) .main-nav .current_page_item > a,
body:not([data-theme="dark"]) .home .site-header.scrolled .main-nav > ul > li > a:hover,
body:not([data-theme="dark"]) body:not(.home) .main-nav > ul > li > a:hover {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.1) !important;
    border-radius: 6px !important;
}


/* ========== 最终修复：增加暗黑模式菜单hover透明度 ========== */
[data-theme="dark"] .main-nav > ul > li > a:hover,
[data-theme="dark"] .main-nav .current-menu-item > a,
[data-theme="dark"] .main-nav .current_page_item > a,
[data-theme="dark"] .home .site-header .main-nav > ul > li > a:hover,
[data-theme="dark"] .home .site-header .main-nav .current-menu-item > a,
[data-theme="dark"] .home .site-header .main-nav .current_page_item > a,
[data-theme="dark"] body:not(.home) .main-nav > ul > li > a:hover,
[data-theme="dark"] body:not(.home) .main-nav .current-menu-item > a,
[data-theme="dark"] body:not(.home) .main-nav .current_page_item > a {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.25) !important;
    border-radius: 6px !important;
}


/* ========== 强制修复：首页滚动后header必须有白色背景 ========== */
body.home .site-header.scrolled,
html body.home .site-header.scrolled {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 首页滚动后Logo和菜单必须是黑色 - 最高优先级 */
body.home .site-header.scrolled .site-logo a,
body.home .site-header.scrolled .site-logo a span,
body.home .site-header.scrolled .site-logo a:hover,
body.home .site-header.scrolled .site-logo a:visited,
body.home .site-header.scrolled .site-logo a:active,
body.home .site-header.scrolled .site-logo a:focus {
    color: #000000 !important;
    background: none !important;
    background-image: none !important;
    -webkit-text-fill-color: #000000 !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    text-shadow: none !important;
}

body.home .site-header.scrolled .main-nav > ul > li > a,
body.home .site-header.scrolled .main-nav > ul > li > a:link,
body.home .site-header.scrolled .main-nav > ul > li > a:visited {
    color: #000000 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

body.home .site-header.scrolled .main-nav > ul > li > a:hover,
body.home .site-header.scrolled .main-nav > ul > li > a:active,
body.home .site-header.scrolled .main-nav > ul > li > a:focus,
body.home .site-header.scrolled .main-nav .current-menu-item > a,
body.home .site-header.scrolled .main-nav .current_page_item > a {
    color: #ff6600 !important;
    background: rgba(255, 102, 0, 0.1) !important;
    border-radius: 6px !important;
}

body.home .site-header.scrolled .theme-toggle {
    color: #000000 !important;
    background: #f0f0f0 !important;
}

body.home .site-header.scrolled .mobile-menu-toggle {
    color: #000000 !important;
}


/* ========== 终极修复：首页Logo颜色 ========== */
/* 日间模式 - Logo黑色 */
html:not([data-theme="dark"]) body.home .site-header .site-logo a,
html:not([data-theme="dark"]) body.home .site-header .site-logo a span,
html:not([data-theme="dark"]) body.home .site-header .site-logo a:hover,
html:not([data-theme="dark"]) body.home .site-header .site-logo a:visited {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
    background-image: none !important;
}

/* 暗黑模式 - Logo白色 */
html[data-theme="dark"] body.home .site-header .site-logo a,
html[data-theme="dark"] body.home .site-header .site-logo a span,
html[data-theme="dark"] body.home .site-header .site-logo a:hover,
html[data-theme="dark"] body.home .site-header .site-logo a:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    background-image: none !important;
}

/* 日间模式 - 菜单黑色 */
html:not([data-theme="dark"]) body.home .site-header .main-nav > ul > li > a {
    color: #000000 !important;
}

/* 暗黑模式 - 菜单白色 */
html[data-theme="dark"] body.home .site-header .main-nav > ul > li > a {
    color: #ffffff !important;
}
