
/* 移动端隐藏分类导航 - 最高优先级 */
@media (max-width: 768px) {
    .category-navigation {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #1f1f1f;
    --header-bg: rgba(15, 15, 15, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-orange: #ff6b35;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #22c55e;
    --accent-green-hover: #16a34a;
    --border-color: #4a4a4a;
    --hover-bg: #2a2a2a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --accent-gradient: linear-gradient(135deg, #ff6b35, #3b82f6);
}

html[data-theme="light"] {
    --primary-bg: #f7f8fa;
    --secondary-bg: #f1f3f4;
    --card-bg: #ffffff;
    --header-bg: rgba(247, 248, 250, 0.95);
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-muted: #7f8c8d;
    --accent-orange: #ff6b35;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --border-color: #d1d9e0;
    --hover-bg: #f1f5f9;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --accent-gradient: linear-gradient(135deg, #ff6b35, #3b82f6);
    --input-bg: #ffffff;
    --input-border: #d1d9e0;
    --input-focus: #10b981;
}

html[data-theme="dark"] {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #1f1f1f;
    --header-bg: rgba(15, 15, 15, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-orange: #ff6b35;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #22c55e;
    --accent-green-hover: #16a34a;
    --border-color: #4a4a4a;
    --hover-bg: #2a2a2a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --accent-gradient: linear-gradient(135deg, #ff6b35, #3b82f6);
    --input-bg: #1a1a1a;
    --input-border: #4a4a4a;
    --input-focus: #22c55e;
}

html[data-theme="dark-blue"] {
    --primary-bg: #0f172a;
    --secondary-bg: #1e293b;
    --card-bg: #334155;
    --header-bg: rgba(15, 23, 42, 0.95);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-orange: #ff6b35;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #22c55e;
    --accent-green-hover: #16a34a;
    --border-color: #475569;
    --hover-bg: #475569;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --accent-gradient: linear-gradient(135deg, #ff6b35, #3b82f6);
    --input-bg: #1e293b;
    --input-border: #475569;
    --input-focus: #22c55e;
}


html[data-theme="dark-green"] {
    --primary-bg: #0f2027;
    --secondary-bg: #203a43;
    --card-bg: #2c5364;
    --header-bg: rgba(15, 32, 39, 0.95);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-orange: #ff6b35;
    --accent-blue: #3b82f6;
    --accent-purple: #8b82f6;
    --accent-green: #22c55e;
    --accent-green-hover: #16a34a;
    --border-color: #4a6b7a;
    --hover-bg: #2c5364;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --accent-gradient: linear-gradient(135deg, #ff6b35, #22c55e);
    --input-bg: #203a43;
    --input-border: #4a6b7a;
    --input-focus: #22c55e;
}






html {
    transition: all 0.3s ease;
}

.site-header,
.top-banner,
.main-content,
.sidebar,
.mobile-sidebar,
.tool-card,
.search-box,
.mobile-filter-dropdown,
.mobile-reset-button,
.category-header,
.subcategory-item,
.filter-item,
.mobile-nav-item {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header,
.top-banner,
.main-content,
.sidebar,
.mobile-sidebar,
.tool-card,
.search-box {
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:hover,
a:focus,
a:active {
    color: inherit !important;
}

html[data-theme="light"] .mobile-filter-dropdown:hover,
html[data-theme="light"] .mobile-reset-button:hover,
html[data-theme="light"] .subcategory-item:hover,
html[data-theme="light"] .filter-item:hover,
html[data-theme="light"] .mobile-nav-item:hover {
    background: var(--accent-green) !important;
    color: white !important;
}

html[data-theme="light"] .mobile-filter-dropdown:hover .mobile-filter-label,
html[data-theme="light"] .mobile-filter-dropdown:hover i {
    color: white !important;
}

html[data-theme="light"] .mobile-filter-option:hover {
    background: var(--accent-green) !important;
    color: white !important;
}

html[data-theme="light"] .mobile-filter-option:hover i,
html[data-theme="light"] .mobile-filter-option:hover span {
    color: white !important;
}

html[data-theme="light"] .mobile-filter-option.subcategory:hover {
    background: var(--accent-green) !important;
    color: white !important;
}

html[data-theme="light"] .mobile-filter-option.subcategory:hover i,
html[data-theme="light"] .mobile-filter-option.subcategory:hover span {
    color: white !important;
}

html[data-theme="dark"] .mobile-filter-dropdown:hover,
html[data-theme="dark"] .mobile-reset-button:hover,
html[data-theme="dark"] .subcategory-item:hover,
html[data-theme="dark"] .filter-item:hover,
html[data-theme="dark"] .mobile-nav-item:hover,
html[data-theme="dark-blue"] .mobile-filter-dropdown:hover,
html[data-theme="dark-blue"] .mobile-reset-button:hover,
html[data-theme="dark-blue"] .subcategory-item:hover,
html[data-theme="dark-blue"] .filter-item:hover,
html[data-theme="dark-blue"] .mobile-nav-item:hover,
html[data-theme="dark-green"] .mobile-filter-dropdown:hover,
html[data-theme="dark-green"] .mobile-reset-button:hover,
html[data-theme="dark-green"] .subcategory-item:hover,
html[data-theme="dark-green"] .filter-item:hover,
html[data-theme="dark-green"] .mobile-nav-item:hover {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] *:not(.summary-toggle-btn):not(.summary-toggle-btn *),
html[data-theme="dark-blue"] *:not(.summary-toggle-btn):not(.summary-toggle-btn *),
*:not(.summary-toggle-btn):not(.summary-toggle-btn *),
html[data-theme="dark-green"] *:not(.summary-toggle-btn):not(.summary-toggle-btn *) {
    color: var(--text-primary) !important;
}

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

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

html[data-theme="dark"] button:not(.summary-toggle-btn),
html[data-theme="dark"] .btn,
html[data-theme="dark-blue"] button:not(.summary-toggle-btn),
html[data-theme="dark-blue"] .btn,
button:not(.summary-toggle-btn),
.btn,
html[data-theme="dark-green"] button:not(.summary-toggle-btn),
html[data-theme="dark-green"] .btn {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] a,
html[data-theme="dark-blue"] a,
a,
html[data-theme="dark-green"] a {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] a:hover,
html[data-theme="dark-blue"] a:hover,
a:hover,
html[data-theme="dark-green"] a:hover {
    color: inherit !important;
}

html[data-theme="light"] .mobile-reset-button:hover {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .nav-link.active,
html[data-theme="light"] .nav-link.active:hover,
html[data-theme="light"] .tag-item:hover,
html[data-theme="light"] .tag-item.active,
html[data-theme="light"] .featured-badge,
html[data-theme="light"] .blog-featured-badge,
html[data-theme="light"] .tag-card:hover,
html[data-theme="light"] .tag-card:hover .tag-name {
    color: white !important;
}
html[data-theme="light"] .category-tag:hover,
html[data-theme="light"] .category-label:hover,
html[data-theme="light"] .item-category:hover,
html[data-theme="light"] .item-tag:hover,
html[data-theme="light"] .search-btn,
html[data-theme="light"] .search-btn:hover,
html[data-theme="light"] .search-btn i,
html[data-theme="light"] .search-btn:hover i,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .btn-primary i,
html[data-theme="light"] .btn-primary:hover i,
html[data-theme="light"] .tag-card:hover,
html[data-theme="light"] .subcategory-item:hover,
html[data-theme="light"] .mobile-filter-option.active,
html[data-theme="light"] .filter-item.active,
html[data-theme="light"] .subcategory-item.active,
html[data-theme="light"] .mobile-nav-item.active,
html[data-theme="light"] .mobile-bottom-nav .nav-item.active {
    color: white !important;
}

html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .nav-link.active:hover,
html[data-theme="dark"] .tag-item:hover,
html[data-theme="dark"] .tag-item.active,
html[data-theme="dark"] .category-tag:hover,
html[data-theme="dark"] .category-label:hover,
html[data-theme="dark"] .item-category:hover,
html[data-theme="dark"] .item-tag:hover,
html[data-theme="dark"] .search-btn,
html[data-theme="dark"] .search-btn:hover,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .tag-card:hover,
html[data-theme="dark"] .subcategory-item:hover,
html[data-theme="dark"] .mobile-filter-option.active,
html[data-theme="dark"] .filter-item.active,
html[data-theme="dark"] .subcategory-item.active,
html[data-theme="dark"] .mobile-nav-item.active,
html[data-theme="dark"] .mobile-bottom-nav .nav-item.active,
html[data-theme="dark-blue"] .nav-link.active,
html[data-theme="dark-blue"] .nav-link.active:hover,
html[data-theme="dark-blue"] .tag-item:hover,
html[data-theme="dark-blue"] .tag-item.active,
html[data-theme="dark-blue"] .category-tag:hover,
html[data-theme="dark-blue"] .category-label:hover,
html[data-theme="dark-blue"] .item-category:hover,
html[data-theme="dark-blue"] .item-tag:hover,
html[data-theme="dark-blue"] .search-btn,
html[data-theme="dark-blue"] .search-btn:hover,
html[data-theme="dark-blue"] .btn-primary,
html[data-theme="dark-blue"] .btn-primary:hover,
html[data-theme="dark-blue"] .tag-card:hover,
html[data-theme="dark-blue"] .subcategory-item:hover,
html[data-theme="dark-blue"] .mobile-filter-option.active,
html[data-theme="dark-blue"] .filter-item.active,
html[data-theme="dark-blue"] .subcategory-item.active,
html[data-theme="dark-blue"] .mobile-nav-item.active,
html[data-theme="dark-blue"] .mobile-bottom-nav .nav-item.active,
.nav-link.active,
.nav-link.active:hover,
.tag-item:hover,
.tag-item.active,
.category-tag:hover,
.category-label:hover,
.item-category:hover,
.item-tag:hover,
.search-btn,
.search-btn:hover,
.btn-primary,
.btn-primary:hover,
.tag-card:hover,
.subcategory-item:hover,
.mobile-filter-option.active,
.filter-item.active,
.subcategory-item.active,
.mobile-nav-item.active,
.mobile-bottom-nav .nav-item.active,
html[data-theme="dark-green"] .nav-link.active,
html[data-theme="dark-green"] .nav-link.active:hover,
html[data-theme="dark-green"] .tag-item:hover,
html[data-theme="dark-green"] .tag-item.active,
html[data-theme="dark-green"] .category-tag:hover,
html[data-theme="dark-green"] .category-label:hover,
html[data-theme="dark-green"] .item-category:hover,
html[data-theme="dark-green"] .item-tag:hover,
html[data-theme="dark-green"] .search-btn,
html[data-theme="dark-green"] .search-btn:hover,
html[data-theme="dark-green"] .btn-primary,
html[data-theme="dark-green"] .btn-primary:hover,
html[data-theme="dark-green"] .tag-card:hover,
html[data-theme="dark-green"] .subcategory-item:hover,
html[data-theme="dark-green"] .mobile-filter-option.active,
html[data-theme="dark-green"] .filter-item.active,
html[data-theme="dark-green"] .subcategory-item.active,
html[data-theme="dark-green"] .mobile-nav-item.active,
html[data-theme="dark-green"] .mobile-bottom-nav .nav-item.active {
    color: white !important;
}

html[data-theme="light"] .category-header.active,
.category-header.active,
.category-header.active,
.category-header.active,
.category-header.active,
.category-header.active,
html[data-theme="dark"] .category-header.active,
html[data-theme="dark-blue"] .category-header.active,
.category-header.active,
html[data-theme="dark-green"] .category-header.active {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .category-header.active,
.category-header.active,
.category-header.active,
.category-header.active,
.category-header.active,
.category-header.active,
html[data-theme="dark"] .category-header.active,
html[data-theme="dark-blue"] .category-header.active,
.category-header.active,
html[data-theme="dark-green"] .category-header.active {
    background: transparent !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .subcategory-item.active,
.subcategory-item.active,
.subcategory-item.active,
.subcategory-item.active,
.subcategory-item.active,
.subcategory-item.active {
    background: var(--accent-green) !important;
    color: white !important;
}

html[data-theme="light"] .subcategory-item.active *,
.subcategory-item.active *,
.subcategory-item.active *,
.subcategory-item.active *,
.subcategory-item.active *,
.subcategory-item.active * {
    color: white !important;
}

html[data-theme="dark"] .subcategory-item.active,
html[data-theme="dark-blue"] .subcategory-item.active,
.subcategory-item.active,
html[data-theme="dark-green"] .subcategory-item.active {
    background: var(--accent-green) !important;
    color: white !important;
}

html[data-theme="light"] .subcategory-item:hover,
.subcategory-item:hover,
.subcategory-item:hover,
.subcategory-item:hover,
.subcategory-item:hover,
.subcategory-item:hover {
    background: rgba(34, 197, 94, 0.1) !important;
    color: var(--accent-green) !important;
}

html[data-theme="dark"] .subcategory-item:hover,
html[data-theme="dark-blue"] .subcategory-item:hover,
.subcategory-item:hover,
html[data-theme="dark-green"] .subcategory-item:hover {
    background: var(--hover-bg) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .category-tag:hover,
.category-tag:hover,
.category-tag:hover,
.category-tag:hover,
.category-tag:hover,
.category-tag:hover,
html[data-theme="dark"] .category-tag:hover,
html[data-theme="dark-blue"] .category-tag:hover,
.category-tag:hover,
html[data-theme="dark-green"] .category-tag:hover {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
}

html[data-theme="light"] .category-header.active * {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .category-header.active *,
html[data-theme="dark-blue"] .category-header.active *,
.category-header.active *,
html[data-theme="dark-green"] .category-header.active * {
    color: var(--text-primary) !important;
}

.tool-tag:hover {
    color: white !important;
}

html[data-theme="light"] .tool-tag:hover {
    color: white !important;
}

html[data-theme="dark"] .tool-tag:hover,
html[data-theme="dark-blue"] .tool-tag:hover,
.tool-tag:hover,
html[data-theme="dark-green"] .tool-tag:hover {
    color: white !important;
}

.item-category:hover,
.item-tag:hover,
.item-category:hover,
.item-tag:hover,
.item-category:hover,
.item-tag:hover,
.item-category:hover,
.item-tag:hover,
.item-category:hover,
.item-tag:hover {
    color: white !important;
}


html[data-theme="light"] .search-box {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 2px 12px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .mobile-filter-dropdown,
html[data-theme="light"] .mobile-reset-button {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .mobile-filter-dropdown {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .mobile-filter-dropdown .mobile-filter-label,
html[data-theme="light"] .mobile-filter-dropdown i {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .tool-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .tool-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .search-box,
html[data-theme="dark-blue"] .search-box,
.search-box,
html[data-theme="dark-green"] .search-box {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .search-box:focus-within,
html[data-theme="dark-blue"] .search-box:focus-within,
.search-box:focus-within,
html[data-theme="dark-green"] .search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 2px 12px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .tool-card,
html[data-theme="dark-blue"] .tool-card,
.tool-card,
html[data-theme="dark-green"] .tool-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .tool-card:hover,
html[data-theme="dark-blue"] .tool-card:hover,
.tool-card:hover,
html[data-theme="dark-green"] .tool-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark-blue"] input,
html[data-theme="dark-blue"] textarea,
html[data-theme="dark-blue"] select,
input,
textarea,
select,
html[data-theme="dark-green"] input,
html[data-theme="dark-green"] textarea,
html[data-theme="dark-green"] select {
    color: var(--text-primary) !important;
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark-blue"] input::placeholder,
html[data-theme="dark-blue"] textarea::placeholder,
input::placeholder,
textarea::placeholder,
html[data-theme="dark-green"] input::placeholder,
html[data-theme="dark-green"] textarea::placeholder {
    color: var(--text-muted) !important;
}

html[data-theme="dark"] input:focus:not(.search-input),
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark-blue"] input:focus:not(.search-input),
html[data-theme="dark-blue"] textarea:focus,
html[data-theme="dark-blue"] select:focus,
input:focus:not(.search-input),
textarea:focus,
select:focus,
html[data-theme="dark-green"] input:focus:not(.search-input),
html[data-theme="dark-green"] textarea:focus,
html[data-theme="dark-green"] select:focus {
    border-color: var(--input-focus) !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2) !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

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

.item-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.25rem 0;
}

.item-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.item-basic-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-screenshot-main {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
}

.item-screenshot-main a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-screenshot-main a:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.item-screenshot-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* 底部内容区域 */
.item-bottom-section {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.item-details {
    display: flex;
    flex-direction: column;
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.item-details h2.section-title {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-sidebar .sidebar-section h3 {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}


.alternatives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.alternative-card {
    background: var(--primary-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alternative-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.alternative-link {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.alternative-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.alternative-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
}

.alternative-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alternative-image i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.alternative-title {
    flex: 1;
    min-width: 0;
}

.alternative-title h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alternative-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-alternatives {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .item-top-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .item-bottom-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .item-screenshot-main {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .item-top-section {
        gap: 1rem;
    }
    
    .item-bottom-section {
        gap: 1rem;
    }
    
    .item-screenshot-main {
        height: auto;
        min-height: 200px;
        max-height: 400px;
    }
}

@media (max-width: 1000px) {
    .item-screenshot-main {
        height: auto;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 460px) {
    .item-screenshot-main {
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .item-top-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .item-basic-info {
        order: 1;
    }
    
    .item-screenshot-main {
        order: 2;
    }
    
    .item-bottom-section h2.section-title {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .alternative-link {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .alternative-image {
        width: 40px;
        height: 40px;
    }
    
    .detail-anchor-nav {
        gap: 0.25rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .anchor-nav-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

.item-main {
    padding: 0.25rem 0;
}

.item-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.item-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.item-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.item-title-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.item-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.125rem !important;
}

.item-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
    white-space: nowrap;
}

.item-visit-btn:hover {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    color: white !important;
}

html[data-theme="light"] .item-visit-btn {
    color: white !important;
}

html[data-theme="light"] .item-visit-btn:hover {
    color: white !important;
}

html[data-theme="light"] .item-visit-btn i {
    color: white !important;
}

html[data-theme="light"] .item-visit-btn:hover i {
    color: white !important;
}

.item-content-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.item-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.item-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.item-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.item-section h2.special-section {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-hover));
    color: white !important;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.item-section h2.special-section * {
    color: white !important;
}

.item-section h2.special-section:before {
    content: "✨";
    margin-right: 0.5rem;
}

.item-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.item-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.item-features {
    list-style: none;
    padding: 0;
}

.item-features li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.item-features li::before {
    content: '•';
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.item-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.item-screenshot {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.item-screenshot a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-screenshot a:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.item-info-list {
    list-style: none;
    padding: 0;
}

.item-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.item-info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.item-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-categories-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.item-category {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.item-category:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.item-tag:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.coupons-section {
    margin-bottom: 2rem;
}

.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coupon-item {
    background: var(--hover-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.coupon-item:hover {
    background: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coupon-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 180px;
    flex-shrink: 0;
}

.coupon-code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--hover-bg);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.coupon-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    background: var(--hover-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coupon-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.coupon-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
}

.coupon-featured {
    background: var(--card-bg);
    border: 2px solid var(--accent-green);
}

.coupon-featured .coupon-code {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}


html[data-theme="light"] .coupon-item:hover,
.coupon-item:hover,
.coupon-item:hover,
.coupon-item:hover,
.coupon-item:hover,
.coupon-item:hover {
    background: var(--hover-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


html[data-theme="dark"] .coupon-item:hover,
html[data-theme="dark-blue"] .coupon-item:hover,
.coupon-item:hover,
html[data-theme="dark-green"] .coupon-item:hover {
    background: var(--card-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}



html[data-theme="light"] .item-visit-btn:hover,
.item-visit-btn:hover,
.item-visit-btn:hover,
.item-visit-btn:hover,
.item-visit-btn:hover,
.item-visit-btn:hover {
    background: var(--accent-green-hover);
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

html[data-theme="dark"] .item-visit-btn:hover,
html[data-theme="dark-blue"] .item-visit-btn:hover,
.item-visit-btn:hover,
html[data-theme="dark-green"] .item-visit-btn:hover {
    background: var(--accent-green-hover);
    color: white !important;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}
 

.breadcrumb {
    margin-bottom: 0.5rem !important;
    padding: 0.125rem 0 !important;
}

/* 新的详情页布局样式 */
.detail-page-navbar {
    padding: 0.375rem 0 !important;
}

.detail-page-breadcrumb {
    margin-top: 1rem !important;
    margin-bottom: 0.75rem !important;
    padding: 0.125rem 0 !important;
}

.detail-page-description {
    margin-bottom: 0.125rem !important;
}

.detail-page-tag {
    padding: 0.125rem 0.375rem !important;
    font-size: 0.7rem !important;
    border-radius: 4px !important;
    margin: 0.0625rem !important;
    display: inline-block !important;
    line-height: 1.3 !important;
}

.detail-page-tags {
    gap: 0.0625rem !important;
    margin: 0.125rem 0 !important;
    padding: 0 !important;
}

/* 减少整个页面的顶部间距 */
.detail-page .page-content {
    padding: 0.125rem 0 !important;
}

.detail-page .main-content {
    padding-top: 0.125rem !important;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-green);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}


.back-button {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-button:hover {
    background: rgba(16, 185, 129, 0.9);
    border-color: rgba(16, 185, 129, 0.3);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.back-button:active {
    transform: scale(0.95);
}

.back-button i {
    font-size: 1rem;
}


html[data-theme="light"] .back-button {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    color: #374151;
}


html[data-theme="dark"] .back-button {
    background: rgba(31, 31, 31, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}


html[data-theme="dark-blue"] .back-button,
.back-button,
html[data-theme="dark-green"] .back-button {
    background: rgba(31, 31, 31, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}


@media (max-width: 768px) {
    .back-button {
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
        border-radius: 8px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .back-button:hover {
        transform: translateY(-50%) scale(1.1);
    }
}

@media (min-width: 769px) {
    .back-button {
        display: none !important;
    }
}


.page-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.page-featured-image {
    margin-bottom: 2rem;
    text-align: center;
}

.page-featured-image .featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.page-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-meta i {
    color: var(--accent-orange);
}

.page-body {
    margin-bottom: 3rem;
}

.page-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.page-content-text h1,
.page-content-text h2,
.page-content-text h3,
.page-content-text h4,
.page-content-text h5,
.page-content-text h6 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-content-text h1 { font-size: 2rem; }
.page-content-text h2 { font-size: 1.75rem; }
.page-content-text h3 { font-size: 1.5rem; }
.page-content-text h4 { font-size: 1.25rem; }
.page-content-text h5 { font-size: 1.1rem; }
.page-content-text h6 { font-size: 1rem; }

.page-content-text p {
    margin-bottom: 1.5rem;
}

.page-content-text ul,
.page-content-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content-text li {
    margin-bottom: 0.5rem;
}

.page-content-text blockquote {
    border-left: 4px solid var(--accent-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.page-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.page-content-text a {
    color: var(--accent-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.page-content-text a:hover {
    border-bottom-color: var(--accent-green);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .page-content {
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .page-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-content-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .page-content-text {
        font-size: 0.95rem;
    }
}


@media (max-width: 768px) {
    .breadcrumb {
        margin-bottom: 0.25rem;
        padding: 0.125rem 0;
    }
    
    .item-content {
        padding: 0.5rem 0;
    }
    
    .item-main {
        padding: 0.5rem 0;
    }
    
    .item-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    
    .item-title-section {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .item-title-info h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin: 0;
    }
    
    .item-logo {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .item-description {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .item-details {
        padding: 0.75rem;
    }
    
    .item-details h2.section-title {
        margin-bottom: 0.25rem;
        padding-bottom: 0.25rem;
    }
    
    .sidebar-section {
        padding: 1rem 0;
    }
    
    .item-section {
        padding: 1rem 0;
    }
    
    .coupon-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .coupon-left {
        min-width: auto;
        width: 100%;
        gap: 0.5rem;
    }
    
    .coupon-code {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
    
    .coupon-link {
        padding: 0.5rem 0.8rem;
    }
    
    .coupon-description {
        width: 100%;
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        margin-bottom: 0.125rem;
        padding: 0.0625rem 0;
    }
    
    .item-content {
        padding: 0.25rem 0;
    }
    
    .item-main {
        padding: 0.25rem 0;
    }
    
    .item-header {
        margin-bottom: 0.25rem;
        padding-bottom: 0.125rem;
    }
    
    .item-title-section {
        gap: 0.375rem;
        margin-bottom: 0.125rem;
    }
    
    .item-title-info h1 {
        font-size: 1.75rem;
    }
    
    .item-description {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .item-details {
        padding: 0.5rem;
    }
    
    .item-details h2.section-title {
        margin-bottom: 0.125rem;
        padding-bottom: 0.125rem;
    }
    
    .item-section {
        padding: 0.75rem 0;
    }
    
    .sidebar-section {
        padding: 0.75rem 0;
    }
}

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.navbar {
    display: flex;
    align-items: center;
    padding: 0.5rem 0 !important;
    position: relative;
}

.navbar-brand .logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.navbar-brand .logo {
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-right: 2rem;
}

.navbar-brand .logo .best {
    color: var(--accent-orange);
}

.navbar-brand .logo .directories {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    margin: 0 auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--accent-green);
    color: white;
    font-weight: 600;
}

.nav-link.active:hover {
    background: var(--accent-green-hover);
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active::after {
    width: 80%;
    background: white;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--hover-bg);
    color: var(--text-secondary);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}


.language-dropdown {
    position: relative;
    display: inline-block;
    z-index: 2147483647 !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    outline: none !important;
    box-shadow: none !important;
}

.language-toggle:hover {
    background: var(--hover-bg);
    color: var(--text-secondary);
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 120px;
    z-index: 2147483647 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.language-item:last-child {
    border-bottom: none;
}

.language-item:hover {
    background: var(--hover-bg);
}

.language-item[data-lang="en"] .bi-check {
    color: var(--accent-orange);
}



.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
}

.mobile-menu-toggle:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}


.mobile-top-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.mobile-top-nav.show {
    left: 0;
}

.mobile-top-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.mobile-top-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.mobile-top-logo .best {
    color: var(--accent-orange);
}

.mobile-top-logo .directories {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-top-nav-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.mobile-top-nav-close:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

.mobile-top-nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item {
    display: block;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-nav-item:hover {
    background: var(--accent-green);
    color: white;
}

.mobile-nav-item.active {
    background: var(--accent-green);
    color: white;
}

.mobile-filters-section {
    background: none;
    border-radius: 0;
    padding: 0.25rem;
    margin-bottom: 0.5rem;
    box-shadow: none;
    position: relative;
    overflow: visible;
    z-index: 10;
}

@media (max-width: 768px) {
    .mobile-filters-section {
        display: block !important;
    }
}

.main-area .mobile-filters-section {
    margin-bottom: 0.5rem;
    margin-top: 0;
    padding-top: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.main-area .mobile-filters-container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-area .mobile-filters-container::-webkit-scrollbar {
    display: none;
}

.mobile-filters-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    background: var(--hover-bg);
    border: none;
    border-radius: 16px;
    padding: 0.4rem 0.8rem;
    gap: 0.5rem;
    max-width: fit-content;
    min-width: fit-content;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    height: 32px;
}



.filter-pill-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
    transition: color 0.3s ease;
}

.filter-pill-close {
    position: relative;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.filter-pill-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.filter-pill-close i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 900;
    color: white !important;
    margin: 0;
    padding: 0;
    line-height: 1;
}

html[data-theme="light"] .filter-pill-text {
    color: #000000;
}

html[data-theme="light"] .filter-pill-close {
    background: transparent;
    color: white !important;
}

html[data-theme="light"] .filter-pill-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: white !important;
}

html[data-theme="dark"] .filter-pill-text {
    color: #ffffff;
}

html[data-theme="dark"] .filter-pill-close {
    background: transparent;
    color: white !important;
}

html[data-theme="dark"] .filter-pill-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
}

@media (min-width: 769px) {
    .mobile-filters-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .main-area .mobile-filters-container {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1rem;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .main-area .mobile-filters-section {
        padding: 0.25rem 0;
        margin: 0;
    }

    .main-area .category-filter {
        display: none !important;
    }
}

.mobile-filter-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.6rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.1rem 0;
    box-shadow: none;
    min-width: 120px;
    flex: 0 0 auto;
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
    height: 32px;
}

.mobile-filter-dropdown:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.mobile-filter-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-filter-dropdown i {
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.mobile-filter-dropdown:hover i {
    transform: rotate(180deg);
}

.mobile-reset-button {
    display: block;
    width: fit-content;
    margin: 0;
    padding: 0.25rem 0.6rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: none;
    white-space: nowrap;
    flex: 0 0 auto;
    height: 32px;
}

.mobile-reset-button:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.mobile-reset-button[href] {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-reset-button[href]:hover {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .top-banner {
        padding: 0.5rem 0 !important;
    }
    
    .top-banner-title {
        margin-bottom: 0.25rem !important;
    }
    
    .search-banner-title {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }
    
    .search-banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .search-box {
        max-width: 100% !important;
        margin: 0 1rem !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        height: 56px !important;
        gap: 0 !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        background: var(--card-bg) !important;
        border: 2px solid var(--accent-green) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        transition: all 0.3s ease !important;
    }
    
    .search-box:focus-within {
        border: 2px solid var(--accent-green) !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .search-input {
        font-size: 1rem !important;
        padding: 0.6rem 1rem !important;
        height: 100% !important;
        flex: 1 !important;
        min-width: 0 !important;
        order: 1 !important;
        margin-right: 0 !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        color: var(--text-color) !important;
        caret-color: var(--primary-color) !important;
        -webkit-text-fill-color: var(--text-color) !important;
    }
    
    .search-btn {
        min-width: 44px !important;
        height: 100% !important;
        width: 44px !important;
        padding: 0.6rem !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        flex-basis: 44px !important;
        z-index: 10 !important;
        order: 2 !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 6px !important;
        border-bottom-right-radius: 6px !important;
        background: var(--accent-green) !important;
        border: none !important;
    }
    
    .mobile-filters-section {
        padding: 0;
        margin: 0 0 0.5rem 0;
    }
    
    .mobile-filters-container {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0;
    }
    
    .mobile-filter-dropdown {
        width: 100% !important;
        min-width: auto !important;
        flex-shrink: 1 !important;
        margin: 0.25rem 0 !important;
    }
    
    .mobile-reset-button {
        width: fit-content !important;
        margin: 0 auto !important;
        flex-shrink: 1 !important;
    }
    
    .category-filter {
        display: block !important;
    }
    
    .mobile-filter-overlay-content {
        width: 100%;
        max-width: none;
        margin-top: 0;
        max-height: 70vh;
    }
}

.mobile-filter-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: none;
    z-index: 10;
    display: none;
    margin-top: 0;
}

@media (max-width: 768px) {
.mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
        right: 0;
        bottom: 0;
    width: 100%;
        height: 100vh;
    }
}

.desktop-filter-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.desktop-filter-item:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.desktop-filter-item:active {
    transform: translateY(0);
    background: var(--accent-orange);
    color: white;
}

.desktop-filter-item .bi-chevron-down {
    opacity: 0.5;
}

.desktop-filter-item:hover .bi-chevron-down {
    opacity: 1;
    transform: rotate(180deg);
}

@media (min-width: 769px) {
    .mobile-filter-overlay {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: none;
        z-index: 10;
        display: none;
        margin-top: 0.1rem;
    }
    
    .mobile-filter-overlay-content {
        width: 400px;
        max-width: 400px;
        height: auto;
        max-height: 60vh;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        margin: 0;
        border: 2px solid var(--border-color);
        animation: slideDownFromTop 0.3s ease-out;
    z-index: 11;
    }
    
    .mobile-filter-overlay-content[data-filter-type="sort"] {
        width: 200px;
        max-width: 200px;
    }
    
    .mobile-filter-overlay-body {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        max-height: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .mobile-filter-dropdown {
        position: relative;
    }
}

.mobile-filter-overlay-content {
    background: var(--card-bg);
    width: 100%;
    height: auto;
    max-height: 60vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideDownFromTop 0.3s ease-out;
    background-clip: border-box;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg) !important;
    position: relative;
    z-index: 11;
}


@media (max-width: 768px) {
    .mobile-filter-overlay-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 80vh;
        border-radius: 8px 8px 0 0;
        position: fixed;
        bottom: 54px;
        left: 0;
        right: 0;
        animation: slideUpFromBottom 0.3s ease-out;
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
        box-sizing: border-box;
        top: auto;
    }
}

.mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    flex-shrink: 0;
}

.mobile-filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.mobile-filter-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.mobile-filter-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.mobile-filter-overlay-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    border-radius: 8px;
    z-index: -1;
}


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

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.mobile-filter-search {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    flex-shrink: 0;
    min-height: 35px;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
}

.filter-search-input::placeholder {
    color: var(--text-secondary);
}



.mobile-filter-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 0;
    max-height: none;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-filter-overlay-body::-webkit-scrollbar {
    width: 6px;
}

.mobile-filter-overlay-body::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-filter-overlay-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.mobile-filter-overlay-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

.mobile-filter-overlay-body {
    scroll-behavior: smooth;
    height: auto;
    touch-action: pan-y;
}


@media (max-width: 768px) {
    .mobile-filter-overlay-body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        min-height: 200px;
    }
}

.mobile-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: none;
    text-decoration: none;
    color: inherit;
    min-height: 32px;
}

.mobile-filter-option:hover {
    background: var(--hover-bg);
}

.check-icon {
    color: var(--accent-orange);
    font-size: 1.1rem;
}



.mobile-filter-option:hover {
    background: var(--accent-green);
    color: white;
}

.mobile-filter-option.active {
    background: var(--accent-green);
    color: white;
}

.mobile-filter-option span {
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-filter-option .category-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    pointer-events: auto;
}

.mobile-filter-option .category-link:hover {
    color: var(--accent-green);
}

.mobile-filter-option {
    pointer-events: auto;
}

.mobile-filter-option[data-category-id] {
    cursor: pointer;
}

.mobile-filter-option i {
    color: var(--text-secondary);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-filter-option:hover i {
    color: var(--accent-green);
}

.mobile-filter-option.active i {
    color: white;
}

.category-group {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.category-label {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    margin: 0.15rem 0.15rem 0.15rem 0;
    height: 28px;
    line-height: 1.2;
}

.category-label:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.category-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    margin: 0.15rem 0.15rem 0.15rem 0;
    height: 28px;
    line-height: 1.2;
}

.category-tag:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.category-label.active {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

.category-tag.active {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

html[data-theme="light"] .category-label.active {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
}

html[data-theme="light"] .category-label.active * {
    color: white !important;
}

html[data-theme="light"] .category-tag.active {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
}

html[data-theme="light"] .category-tag.active * {
    color: white !important;
}

.mobile-filter-option.subcategory {
    padding: 0.2rem 0.75rem 0.2rem 1.25rem;
    font-size: 0.8rem;
    background: transparent !important;
    border: none !important;
    margin: 0;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    min-height: 28px;
}

.mobile-filter-option.subcategory:hover {
    background: var(--accent-green) !important;
    margin-left: -0.5rem;
    padding-left: 2rem;
    color: white !important;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
}

.mobile-filter-option[href] {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.mobile-filter-option[href]:hover {
    text-decoration: none;
    color: inherit;
}

.tag-item {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    height: 28px;
    line-height: 1.2;
    margin: 0.15rem 0.15rem 0.15rem 0;
}

.tag-item:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.tag-item.active {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}


.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.show {
    left: 0;
}

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

.mobile-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.mobile-logo .best {
    color: var(--accent-orange);
}

.mobile-logo .directories {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-sidebar-close:hover {
    color: var(--text-primary);
}

.top-banner {
    background: var(--primary-bg);
    padding: 1rem 0;
    text-align: center;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.top-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.search-banner-text {
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.search-banner-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--accent-green);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: none;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: nowrap !important;
    overflow: hidden;
    height: 56px;
    position: relative;
    flex-direction: row !important;
    justify-content: space-between;
}

.search-box:focus-within {
    border: 2px solid var(--accent-green);
    box-shadow: none;
    transform: none;
}

.search-form {
    width: 100%;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    min-width: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 100%;
    box-sizing: border-box;
    order: 1;
    caret-color: var(--accent-green);
    margin-right: 0;
}

.search-input:focus {
    caret-color: var(--accent-green) !important;
    -webkit-text-fill-color: var(--text-primary);
    outline: none;
}

.search-input::selection {
    background: rgba(34, 197, 94, 0.2) !important;
    color: var(--text-primary) !important;
}

.search-input::-moz-selection {
    background: rgba(34, 197, 94, 0.2) !important;
    color: var(--text-primary) !important;
}

.search-box * {
    caret-color: auto !important;
}

.search-box input {
    caret-color: var(--accent-green) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 100%;
    width: 56px;
    flex-basis: 56px;
    position: relative;
    box-sizing: border-box;
    margin-right: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    order: 2;
}

.search-btn::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--accent-green);
}

.search-btn:hover {
    background: var(--accent-green) !important;
    transform: none !important;
    box-shadow: none !important;
}

.search-box .search-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.main-content {
    padding: 2rem 0;
    background: var(--primary-bg);
}

.top-page {
    display: flex;
    gap: 2rem;
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
}

.topic-sidebar {
    width: 180px;
    flex-shrink: 0;
    position: sticky;
    top: 6rem; 
    height: fit-content;
}

.topic-category-menu {
    background: transparent; 
    border: 1px solid var(--border-color);
    border-radius: 8px; 
    padding: 1rem; 
    box-shadow: none;
}

.menu-title {
    font-size: 1rem; 
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color); 
}

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

.category-menu-item {
    margin-bottom: 0.25rem;
}

.category-menu-link {
    display: block;
    padding: 0.5rem 0.75rem; 
    color: white !important; 
    text-decoration: none;
    border-radius: 4px; 
    transition: background-color 0.3s ease; 
    font-size: 0.9rem; 
    position: relative;
    margin: 0.1rem 0; 
    background: transparent;
    border: none;
    text-align: left;
}

.category-menu-link:hover {
    background: var(--hover-bg); 
    color: white !important; 
}

.category-menu-link.active {
    background: var(--accent-green); 
    color: white !important; 
    border-radius: 4px;
}


html[data-theme="light"] .topic-sidebar {
    width: 180px;
    flex-shrink: 0;
    position: sticky;
    top: 6rem;
    height: fit-content;
}

html[data-theme="light"] .topic-category-menu {
    background: #ffffff; 
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .menu-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0; 
    color: #2c3e50;
}

html[data-theme="light"] .category-menu-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #2c3e50 !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    margin: 0.1rem 0;
    background: transparent;
    border: none;
    text-align: left;
}

html[data-theme="light"] .category-menu-link:hover {
    background: #f1f5f9; 
    color: #2c3e50 !important; 
}

html[data-theme="light"] .category-menu-link.active {
    background: var(--accent-green); 
    color: white !important; 
    border-radius: 4px;
}

@media (max-width: 768px) {
    html[data-theme="light"] .topic-sidebar {
        width: 100%;
        position: static;
        margin-top: 1rem;
        order: 1;
    }
    
    html[data-theme="light"] .topic-category-menu {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        padding: 1rem;
    }
    
    html[data-theme="light"] .menu-title {
        border-bottom: 1px solid #e2e8f0;
        color: #2c3e50;
    }
    
    html[data-theme="light"] .category-menu-link {
        color: #2c3e50 !important;
    }
    
    html[data-theme="light"] .category-menu-link:hover {
        background: #f1f5f9;
        color: #2c3e50 !important;
    }
    
    html[data-theme="light"] .category-menu-link.active {
        background: var(--accent-green) !important;
        color: white !important;
    }
}


.top-categories-grid.with-sidebar {
    flex: 1;
}


@media (max-width: 768px) {
    .top-page {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .topic-sidebar {
        width: 100%;
        position: static;
        margin-top: 1rem;
        order: 1; 
    }
    
    .topic-category-menu {
        padding: 1rem;
    }
    
    .category-menu-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-menu-item {
        margin-bottom: 0;
    }
    
    .category-menu-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .top-categories-grid {
        order: 2;
    }
}

.content-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 9999;
}

.sidebar-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    padding-left: 1rem;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-item:hover {
    background: var(--hover-bg);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 6px;
}

.filter-item .filter-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-item .filter-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.filter-item .filter-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.filter-item .filter-arrow {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.filter-item.active {
    background: var(--accent-green);
    border-radius: 6px;
}

.filter-item.active .filter-arrow {
    color: white;
}


.category-item {
    margin-bottom: 0.25rem;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}


.category-item + .category-item {
    border-top: none !important;
}

.category-item:not(:last-child) {
    border-bottom: none !important;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    margin: 0.15rem 0;
    position: relative;
    background: var(--card-bg);
    height: 2.8rem;
}

.category-header-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-header-link:hover {
    text-decoration: none;
    color: inherit;
}

.category-header:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
}

.category-icon {
    font-size: 1rem;
    color: var(--text-secondary);
    min-width: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
}

.category-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-name-link:hover {
    color: var(--accent-green);
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.category-arrow {
    color: var(--text-secondary);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.category-item.expanded .category-arrow {
    transform: rotate(180deg);
    color: var(--accent-orange);
}


.subcategory-list {
    display: none;
    background: transparent;
    margin: 0.2rem 0 0 0;
    border-radius: 6px;
    padding: 0;
    text-align: left;
}

.category-item.expanded .subcategory-list {
    display: block;
    margin-top: 0.1rem;
}

.sidebar .subcategory-item {
    padding: 0.45rem 0.75rem 0.45rem 1.5rem !important;
    cursor: pointer;
    border-bottom: none;
    margin: 0.1rem 0;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    text-align: left !important;
    background: transparent;
    border: none;
    color: var(--text-secondary);
}

.sidebar .subcategory-link:hover .subcategory-item {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    transform: translateX(4px);
}

.sidebar .subcategory-item.active {
    background: var(--accent-green);
    color: white;
    margin-left: 0;
    padding-left: 1rem;
    border-radius: 6px;
    width: 100%;
    position: relative;
    left: 0;
}

.sidebar .subcategory-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left !important;
}

.sidebar .subcategory-icon {
    font-size: 0.9rem;
    color: inherit;
    min-width: 16px;
    text-align: center;
}

.sidebar .subcategory-item.active .subcategory-icon {
    color: white;
}

.sidebar .subcategory-name {
    font-size: 0.8rem;
    font-weight: 400;
    text-align: left !important;
    color: var(--text-secondary);
}

.sidebar .subcategory-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    text-align: left !important;
    border-radius: 6px;
}

.sidebar .subcategory-link:hover {
    color: var(--accent-green);
}

.sidebar .subcategory-item.active .subcategory-link {
    color: white;
}

.sidebar .subcategory-item.active .subcategory-link:hover {
    color: white;
}

.category-name {
    color: var(--text-primary);
    font-weight: 500;
}

.category-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-name-link:hover {
    color: var(--accent-green);
}

.tool-tag {
    text-decoration: none;
    color: var(--text-secondary);
    display: inline-block;
    padding: 0.015625rem 0.125rem !important;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 2px !important;
    font-size: 0.5rem !important;
    margin: 0.0078125rem !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tool-tag:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: translateY(-1px);
}


.site-footer {
    background: var(--card-bg) !important;
    border-top: 1px solid var(--border-color) !important;
    margin-top: 4rem;
    padding: 3rem 0 0 0;
}


html[data-theme="light"] .site-footer,
.site-footer,
.site-footer,
.site-footer,
.site-footer,
.site-footer {
    background: var(--card-bg) !important;
    border-top: 1px solid var(--border-color) !important;
}


html[data-theme="light"] .site-footer,
html[data-theme="light"] .footer-content,
.site-footer,
.footer-content,
.site-footer,
.footer-content,
.site-footer,
.footer-content,
.site-footer,
.footer-content,
.site-footer,
.footer-content {
    background: var(--card-bg) !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    background: var(--card-bg) !important;
}


.site-footer,
.footer-content,
.footer-section {
    background: var(--card-bg) !important;
}


footer.site-footer {
    background: var(--card-bg) !important;
}


footer.site-footer,
footer.site-footer .footer-content,
footer.site-footer .footer-section {
    background: var(--card-bg) !important;
}


html[data-theme] .site-footer,
html[data-theme] .footer-content,
html[data-theme] .footer-section {
    background: var(--card-bg) !important;
}


html[data-theme="light"] .site-footer,
html[data-theme="light"] .footer-content,
html[data-theme="light"] .footer-section,
.site-footer,
.footer-content,
.footer-section,
.site-footer,
.footer-content,
.footer-section,
.site-footer,
.footer-content,
.footer-section,
.site-footer,
.footer-content,
.footer-section,
.site-footer,
.footer-content,
.footer-section {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.footer-section {
    min-width: 0;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}


.footer-section .footer-subtitle {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

.social-link i {
    font-size: 0.9rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--primary-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.newsletter-btn {
    padding: 0.75rem 1rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.footer-bottom {
    padding-top: 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--accent-green);
}

.main-area {
    min-width: 0;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 0;
    padding: 0;
}



@media (max-width: 1024px) {
    .tools-grid:not(.list-view) {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-websites-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 首页分类卡片在1024px下保持居左对齐 */
    .category-websites-grid .tool-card {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .tools-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    color: white !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top:hover {
    background: var(--accent-green-dark, #16a34a);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.back-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px; 
        right: 15px;
        font-size: 1.1rem;
    }
}

html[data-theme="light"] .back-to-top {
    background: var(--accent-green) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

html[data-theme="light"] .back-to-top:hover {
    background: var(--accent-green-dark, #16a34a) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

html[data-theme="light"] .back-to-top i {
    color: white !important;
}

html[data-theme="light"] .back-to-top:hover i {
    color: white !important;
}

.category-websites-grid .tool-card .tool-name {
    text-align: left !important;
}

.category-websites-grid .tool-card .tool-subtitle {
    text-align: left !important;
}


.tools-grid.list-view {
    grid-template-columns: 1fr !important;
}

.category-section {
    margin-bottom: 1.5rem;
    width: 100%;
}

.category-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    padding: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-section-title a:hover {
    color: var(--accent-green);
}

.category-more-link {
    text-decoration: none;
    color: var(--text-secondary);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    margin: 0.125rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-more-link:hover {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
    transform: translateY(-1px);
}

html[data-theme="dark"] .category-more-link:hover,
html[data-theme="dark-blue"] .category-more-link:hover,
.category-more-link:hover,
html[data-theme="dark-green"] .category-more-link:hover {
    color: white !important;
}

.category-websites-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 0;
    padding: 0;
}

.tools-grid.list-view .category-websites-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 768px) and (min-width: 481px) {
    .tools-grid.list-view .category-websites-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        min-height: 120px !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .list-view-content {
        display: none !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .grid-view-content {
        display: block !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .tool-name {
        text-align: left !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .tool-subtitle {
        text-align: left !important;
    }
    

    
    .tools-grid.list-view .tool-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        min-height: 120px !important;
    }
    

    .tools-grid.list-view .tool-card .list-view-content {
        display: none !important;
    }
    
    .tools-grid.list-view .tool-card .grid-view-content {
        display: block !important;
    }
    
    .tools-grid.list-view .tool-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: var(--card-bg) !important;
        border: 1px solid var(--border-color) !important;
        position: relative !important;
    }
    
    .tools-grid.list-view .tool-card .tool-image-area {
        width: 100% !important;
        height: 120px !important;
        overflow: hidden !important;
        position: relative !important;
        border-radius: 0 !important;
    }
    
    .tools-grid.list-view .tool-card .tool-screenshot,
    .tools-grid.list-view .tool-card .tool-favicon {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block !important;
    }
    
    .tools-grid.list-view .tool-card .tool-content-area {
        padding: 0.75rem !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
    
    .tools-grid.list-view .tool-card .tool-coupon {
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        z-index: 10 !important;
    }

    
    .tools-grid.list-view .tool-card .tool-name {
        text-align: left !important;
    }
    
    .tools-grid.list-view .tool-card .tool-subtitle {
        text-align: left !important;
    }
}


@media (max-width: 480px) {

    .tools-grid:not(.list-view) {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .tools-grid.list-view {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .category-websites-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    

    .tools-grid.list-view .tool-card .list-view-content {
        display: none !important;
    }
    
    .tools-grid.list-view .tool-card .grid-view-content {
        display: block !important;
    }
    

    .tools-grid.list-view .tool-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        background: var(--card-bg) !important;
        border: none !important;
        position: relative !important;
        margin: 0 !important;
        min-height: 200px !important;
    }
    

    .tools-grid.list-view .tool-card .tool-image-area {
        width: 100% !important;
        height: 140px !important;
        overflow: hidden !important;
        position: relative !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    

    .tools-grid.list-view .tool-card .tool-screenshot,
    .tools-grid.list-view .tool-card .tool-favicon {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    

    .tools-grid.list-view .tool-card .tool-content-area {
        padding: 1.25rem !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    

    .tools-grid.list-view .tool-card .tool-name {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: var(--text-primary) !important;
    }
    

    .tools-grid.list-view .tool-card .tool-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        color: var(--text-secondary) !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .tools-grid.list-view .tool-card .tool-coupon {
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        z-index: 10 !important;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .tools-grid.list-view .category-websites-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        min-height: 80px !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .list-view-content {
        display: flex !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .grid-view-content {
        display: none !important;
    }
}



.tools-grid:has(.category-section) {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tools-grid:has(.category-section) .category-section {
    width: 100%;
}


.pagination-container {
    margin-top: 3rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
    text-align: center !important;
    grid-column: 1 / -1 !important;
    justify-self: center !important;
}

.pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.pagination-list {
    display: flex !important;
    list-style: none !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.pagination-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.pagination-link.current {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    cursor: default;
}

.pagination-link.current:hover {
    transform: none;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pagination-info {
    text-align: center !important;
    width: 100% !important;
}

.pagination-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .pagination-list {
        gap: 0.25rem;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .pagination-ellipsis {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
    }
}



@media (max-width: 768px) {
    .pagination-list {
        gap: 0.25rem;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .pagination-ellipsis {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
    }

    .category-section-title {
        font-size: 1.25rem;
        margin: 0 0 1rem 0;
    }

    .category-websites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .category-websites-grid .tool-card {
        min-height: 140px;
        height: auto;
    }
}


.tools-grid.list-view {
    grid-template-columns: 1fr !important;
}

@media (min-width: 769px) {
    .tools-grid.list-view .tool-card {
        display: flex !important;
        flex-direction: row !important;
        gap: 2rem !important;
        align-items: flex-start !important;
        padding: 1.5rem !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        background: var(--card-bg) !important;
        margin-bottom: 1rem !important;
        box-shadow: var(--shadow) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
    }
}

.tools-grid.list-view .grid-view-content {
    display: none !important;
}


@media (min-width: 769px) {
    .tools-grid.list-view .list-view-content {
        display: flex !important;
        flex-direction: row;
        gap: 2rem;
        align-items: flex-start;
        width: 100%;
    }
}

.tools-grid:not(.list-view) .list-view-content {
    display: none !important;
}

.tools-grid.list-view .tool-icon {
    width: 180px;
    height: 120px;
    font-size: 2rem;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 0;
}

.tools-grid.list-view .tool-screenshot {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: none;
    display: block;
}

.tools-grid.list-view .tool-favicon {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: none;
    background: transparent;
    display: block;
}

.tools-grid.list-view .tool-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
    flex: 1;
}

.tools-grid.list-view .tool-coupon {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10 !important;
}



@media (min-width: 481px) {
.tools-grid.list-view .tool-name {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-primary) !important;
    line-height: 1.4 !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    text-align: left !important;
    align-self: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word;
    word-break: break-word;
    }
}

@media (min-width: 481px) {
.tools-grid.list-view .tool-subtitle {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
    font-size: 1rem !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    text-align: left !important;
    align-self: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    }
}

.tools-grid.list-view .tool-tags {
    justify-content: flex-start;
    margin: 0;
    margin-top: 0.25rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}


.tools-grid.list-view .tool-content *:not(.tool-tag) {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.tools-grid.list-view .tool-content h3,
.tools-grid.list-view .tool-content p {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tools-grid.list-view .tool-meta {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    justify-content: flex-start;
}


.tools-grid.list-view .tool-tag {
    background: var(--hover-bg);
    color: var(--text-secondary);
    border-color: var(--border-color);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 1.5rem !important;
}

.tools-grid.list-view .tool-tag:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}


.tools-grid.list-view .coupon-badge {
    background: var(--accent-orange);
    color: white;
}

.tools-grid:not(.list-view) .tool-tags {
    display: none; 
}

.tools-grid:not(.list-view) .tool-meta {
    display: none; 
}


.tools-grid.list-view .tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}


html[data-theme="light"] .tools-grid.list-view .tool-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .tools-grid.list-view .tool-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .tools-grid.list-view .tool-icon {
    background: transparent;
    border: none;
}


html[data-theme="dark"] .tools-grid.list-view .tool-card {
    background: #1f1f1f;
    border-color: #4a4a4a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .tools-grid.list-view .tool-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .tools-grid.list-view .tool-icon {
    background: transparent;
    border: none;
}

.tool-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}


.tools-grid:not(.list-view) .tool-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.tools-grid:not(.list-view) .tool-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.tools-grid:not(.list-view) .tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 九宫格大图样式 */
.tools-grid:not(.list-view) .tool-image-area {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 0;
}

.tools-grid:not(.list-view) .tool-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.tools-grid:not(.list-view) .tool-favicon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* 九宫格大图网格布局 - 使用较少列数以显示大图片 */
.tools-grid.grid-large {
    grid-template-columns: repeat(4, 1fr) !important;
}

.category-websites-grid.grid-large {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* 九宫格大图响应式样式 */
@media (max-width: 1024px) {
    .tools-grid.grid-large {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .category-websites-grid.grid-large {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .tools-grid:not(.list-view) .tool-image-area {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .tools-grid.grid-large {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .category-websites-grid.grid-large {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .tools-grid:not(.list-view) .tool-image-area {
        height: 100px;
    }
}

/* 九宫格小图样式 - 隐藏大图片区域，显示小图标 */
.tools-grid.grid-small .tool-image-area {
    display: none;
}

.tools-grid.grid-small .tool-screenshot,
.tools-grid.grid-small .tool-favicon {
    display: none;
}

/* 小卡片头部区域 - 图标和标题 */
.tools-grid:not(.list-view) .tool-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.tools-grid:not(.list-view) .tool-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.tools-grid:not(.list-view) .tool-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.tools-grid:not(.list-view) .tool-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 小卡片内容区域 */
.tools-grid:not(.list-view) .tool-content-area {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tools-grid:not(.list-view) .tool-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.tools-grid:not(.list-view)         .tool-coupon {
    display: none !important;
}


.tools-grid .tool-coupon {
    display: none !important;
}

.tools-grid.list-view .tool-coupon {
    display: none !important;
}

.tools-grid:not(.list-view) .tool-coupon {
    display: none !important;
}


/* 这些样式已经在小卡片样式中重新定义了 */

/* 这些样式已经在小卡片样式中重新定义了 */



.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


.tool-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.tool-favicon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.tool-subtitle-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0.2rem 0;
    word-wrap: break-word;
    word-break: break-word;
}

.tool-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-title-link:hover {

}


.tool-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.tool-coupon {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.coupon-badge {
    background: var(--accent-orange);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.coupon-desc {
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.125rem;
    margin-bottom: 0;
    width: 100%;
}

.tool-tag {
    background: var(--hover-bg);
    color: var(--text-secondary);
    padding: 0.03125rem 0.1875rem;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 1.5rem !important;
    line-height: 1 !important;
}

.tool-tag:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: translateY(-1px);
}

.tool-tag.active {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.tool-price-model {
    color: var(--text-secondary);
    font-size: 0.8rem;
}


.featured-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--accent-orange);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    z-index: 20;
    min-width: 45px;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    padding-top: 0;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.2rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-source {
    font-weight: 500;
    color: var(--accent-orange);
}

.blog-date {
    color: var(--text-secondary);
}

.blog-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-stat i {
    color: var(--accent-orange);
}

.blog-featured-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--accent-orange);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 10;
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 2rem;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-item .page-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.page-item.active .page-link {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.blog-article {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.blog-article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.blog-article-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: left !important;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.blog-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-article-meta i {
    color: var(--accent-orange);
}

.blog-article-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    background-color: var(--bg-secondary);
}

.blog-article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.url-card-inline {
    float: left;
    width: 240px;
    margin: 0 1rem 0.5rem 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    clear: left;
}

.url-card-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.url-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.url-card-content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.8rem;
    height: 100%;
}

.url-card-image {
    display: none;
}

.url-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.url-card-favicon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-card-favicon img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

.url-card-title {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.url-card-text {
    padding: 0;
    margin: 0;
}


.url-card-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.url-card-domain {
    display: none;
}

.url-card-fallback {
    color: var(--accent-color);
    text-decoration: underline;
}

.url-card-inline::after {
    content: "";
    display: table;
    clear: both;
}

.blog-article-body::after {
    content: "";
    display: table;
    clear: both;
}


@media (max-width: 768px) {
    .url-card-inline {
        float: none;
        width: 100%;
        margin: 1rem 0;
    }
    
    .url-card-content {
        padding: 0.75rem;
    }
    
    .url-card-header {
        padding: 0.5rem;
        min-height: auto;
    }
    
    .url-card-title {
        font-size: 1rem;
    }
    
    .url-card-description {
        font-size: 0.85rem;
    }
}

.blog-article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
    overflow-wrap: break-word;
}


.blog-article-body p:has(.url-card-inline) {
    margin-bottom: 0.5rem;
}

.blog-article-body h2, .blog-article-body h3, .blog-article-body h4 {
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.blog-article-body h2 {
    font-size: 1.75rem;
}

.blog-article-body h3 {
    font-size: 1.5rem;
}

.blog-article-body h4 {
    font-size: 1.25rem;
}

.blog-article-body ul, .blog-article-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-article-body li {
    margin-bottom: 0.5rem;
}

.blog-article-body blockquote {
    border-left: 4px solid var(--accent-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--hover-bg);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.blog-article-body code {
    background: var(--hover-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.blog-article-body pre {
    background: var(--hover-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-article-body pre code {
    background: none;
    padding: 0;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.blog-article-body a {
    color: var(--accent-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-article-body a:hover {
    border-bottom-color: var(--accent-green);
}

.blog-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-article-body th,
.blog-article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.blog-article-body th {
    background: var(--hover-bg);
    font-weight: 600;
    color: var(--text-primary);
}

.blog-article-body tr:hover {
    background: var(--hover-bg);
}

.blog-article-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-orange), transparent);
    margin: 2rem 0;
}

.blog-article-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.blog-article-body em {
    font-style: italic;
    color: var(--text-secondary);
}

.blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.blog-article-tag {
    background: var(--hover-bg);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-article-tag:hover {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
    transform: translateY(-2px);
}

.blog-article-tags .blog-article-tag:hover,
.blog-article-tags a.blog-article-tag:hover {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
}

.blog-article-tags .tool-tag:hover,
.blog-article-tags .tag-item:hover,
.blog-article-tags .item-tag:hover,
.blog-article-tags a.tool-tag:hover,
.blog-article-tags a.tag-item:hover,
.blog-article-tags a.item-tag:hover {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
}

.blog-related-urls {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.blog-related-urls h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blog-url-list {
    display: grid;
    gap: 1rem;
}

.blog-url-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--hover-bg);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-url-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-url-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.blog-url-favicon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.blog-url-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.blog-url-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.blog-url-favicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.blog-url-info {
    flex: 1;
    min-width: 0;
}

.blog-url-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.blog-url-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.blog-related-posts {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.blog-related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blog-related-post-list {
    display: grid;
    gap: 1rem;
}

.blog-related-post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--hover-bg);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-related-post-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.blog-related-post-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.blog-related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-related-post-info {
    flex: 1;
    min-width: 0;
}

.blog-related-post-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-size: 0.95rem;
}

.blog-related-post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-sidebar-section {
    margin-bottom: 2rem;
}

.blog-sidebar-section:last-child {
    margin-bottom: 0;
}

.blog-sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blog-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.blog-sidebar-item:last-child {
    border-bottom: none;
}

.blog-sidebar-item:hover {
    background: var(--hover-bg);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 6px;
}

.blog-sidebar-item-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.blog-sidebar-item-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.blog-sidebar-item-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--hover-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .tools-grid:not(.list-view) {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 240px 1fr;
        gap: 1rem;
    }

    .sidebar {
        position: sticky;
        top: 100px;
        order: 1;
    }

    .main-area {
        order: 2;
    }

    .tools-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .blog-detail-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-sidebar {
        position: static;
        order: 2;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sidebar {
        position: static;
        order: 2;
        display: none; 
    }

    .main-area {
        order: 1;
    }

    .tools-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .tools-grid.list-view {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-detail-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-sidebar {
        position: static;
        order: 2;
    }

    .blog-article {
        padding: 1.5rem;
    }

    .blog-article-title {
        font-size: 2rem;
    }

    .blog-article-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-url-item, .blog-related-post-item {
        flex-direction: column;
        text-align: center;
    }

    .blog-url-favicon, .blog-related-post-image {
        align-self: center;
    }

    .pagination-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-websites-grid .tool-card {
        justify-content: center;
        text-align: left;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-brand {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .container {
        padding: 0 0 0 60px;
    }

    .main-content .container {
        padding: 0 20px;
    }

    .top-banner .container {
        padding: 0 20px;
    }

    .sidebar {
        padding: 1rem;
    }

    .top-banner {
        padding: 1.5rem 0;
    }

    .main-content {
        padding: 2rem 0;
    }

    .search-container {
        max-width: 100%;
        padding: 0;
    }

    .search-box {
        flex-direction: row;
        border-radius: 20px;
        padding: 0.8rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .no-results {
        min-height: 200px;
        padding: 2rem 1rem;
    }

    .no-results i {
        font-size: 3rem;
    }

    .no-results h3 {
        font-size: 1.25rem;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .search-btn {
        flex-shrink: 0;
        border-radius: 15px;
        white-space: nowrap;
    }


    .tool-card {
        min-height: 120px;
        height: auto;
    }
    
    .tools-grid:not(.list-view) .tool-card {
        min-height: 140px;
    }
    
    .tools-grid.list-view .tool-card {
        min-height: 100px;
    }
}

@media (max-width: 600px) {
    .top-banner .container {
        padding: 0 20px;
    }

    .search-container {
        padding: 0;
    }
    
    .search-box {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    .search-input {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    .search-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .top-banner-title {
        font-size: 2rem;
    }

    .top-banner-subtitle {
        font-size: 1rem;
    }

    

    .main-content .container {
        padding: 0 20px;
    }

    .top-banner .container {
        padding: 0 20px;
    }

    .search-container {
        padding: 0;
    }

    .search-box {
        flex-direction: row;
        flex-wrap: nowrap;
        border-radius: 20px;
        padding: 0.6rem;
        gap: 0.5rem;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        text-align: center;
        font-size: 1rem;
    }

    .search-btn {
        flex-shrink: 0;
        border-radius: 15px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}


@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

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

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

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 748px) {
    .site-footer {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .site-footer .container {
        margin: 0 auto !important;
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .site-footer .footer-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 1rem;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-auto-flow: unset !important;
        grid-gap: unset !important;
    }
    

    .site-footer .footer-content .footer-section:first-child {
        width: 100% !important;
        text-align: left !important;
        margin-top: 1rem !important;
        margin-bottom: 2rem;
        flex: 0 0 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    .site-footer .social-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .site-footer .social-link {
        width: 32px;
        height: 32px;
    }
    

    .site-footer .footer-content .footer-section:not(:first-child) {
        flex: 0 0 calc(50% - 0.5rem) !important;
        min-width: 150px !important;
        max-width: 200px !important;
        text-align: left;
        border: none;
        padding: 0;
        margin-right: 0.5rem;
        margin-bottom: 1rem;
        margin-left: 0 !important;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    .site-footer .footer-content .footer-section:not(:first-child) .footer-subtitle {
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .site-footer .footer-links {
        display: block;
        text-align: left;
    }
    
    .site-footer .footer-links li {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .site-footer .container {
        margin: 0 auto !important;
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .footer-content {
        display: block !important;
        gap: 1.5rem;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-auto-flow: unset !important;
        grid-gap: unset !important;
    }
    
    .footer-section:first-child {
        width: 100% !important;
        text-align: left;
        margin-bottom: 1.5rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    .footer-section:not(:first-child) {
        display: block !important;
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
        text-align: left;
        padding-top: 1rem;
        margin-right: 0 !important;
        margin-bottom: 1rem;
        margin-left: 0 !important;
        grid-column: unset !important;
        grid-row: unset !important;
        border: none !important;
    }
    
    .footer-links {
        display: block;
        text-align: left;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        margin-top: 2rem;
        padding: 2rem 0 0 0;
    }

    .footer-title {
        font-size: 1.25rem;
    }

    .footer-subtitle {
        font-size: 1rem;
    }

    .social-links {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }

    .footer-section {
        padding: 0 0.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-btn {
        width: 100%;
    }
}


.category-list-page {
    padding: 2rem 0;
}


.top-page {
    padding: 2rem 0;
}

.top-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.top-page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: center;
}

.top-categories-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-category-section {
    margin-bottom: 2rem;
}

.top-category-header {
    display: block;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}


.top-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.top-category-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--hover-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-left: auto;
}

.top-urls-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.top-url-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.top-url-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.top-url-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.top-url-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-url-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.top-url-info {
    flex: 1;
    min-width: 0;
}

.top-url-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-url-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-url-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.top-url-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.top-url-featured {
    background: var(--accent-orange);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .top-urls-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .top-urls-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .top-urls-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.category-search-section {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.category-search-container {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    max-width: 500px;
    width: 100%;
    box-shadow: none;
    transition: all 0.3s ease;
}

.category-search-container:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

html[data-theme="dark"] .category-search-container:focus-within,
html[data-theme="dark-blue"] .category-search-container:focus-within,
.category-search-container:focus-within,
html[data-theme="dark-green"] .category-search-container:focus-within {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.category-search-container .search-icon {
    color: var(--text-secondary);
    font-size: 1rem;
}

.category-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
}

.category-search-input::placeholder {
    color: var(--text-secondary);
}

.category-list-page .categories-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-list-page .category-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.category-list-page .category-card:hover {
    transform: none;
    box-shadow: none;
}

.category-list-page .category-header {
    margin-bottom: 0.2rem;
    padding: 0;
    border: none;
    background: transparent;
}

.category-list-page .category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
}

.category-header-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.category-header-link:hover {
    color: inherit;
}

.category-list-page .category-header-link:hover .category-title {
    color: var(--text-primary);
}

.category-list-page .subcategories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 0.1rem;
}

.category-list-page .subcategory-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 70px;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 28px;
    font-size: 0.75rem;
}

.category-list-page .subcategory-item:hover {
    background: var(--accent-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
    border-color: var(--accent-green);
}

.category-list-page .subcategory-name {
    font-weight: 500;
    text-align: center;
    font-size: 0.75rem;
}

.category-websites-grid .tool-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tools-grid.list-view .category-websites-grid .tool-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    min-height: 120px !important;
    padding: 1.5rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    background: var(--card-bg) !important;
    margin-bottom: 1rem !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

@media (min-width: 769px) {
    .tools-grid.list-view .category-websites-grid .tool-card .grid-view-content {
        display: none;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .list-view-content {
        display: flex;
    }
}


@media (min-width: 769px) {
    .tools-grid.list-view .category-websites-grid .tool-card .list-view-content {
        display: flex !important;
        flex-direction: row !important;
        gap: 2rem !important;
        align-items: flex-start !important;
        width: 100% !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .tool-icon {
        width: 180px !important;
        height: 120px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .tool-content {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding-right: 0 !important;
    }
    
    @media (min-width: 481px) {
    .tools-grid.list-view .category-websites-grid .tool-card .tool-name {
        font-size: 1.3rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
        text-align: left !important;
        color: var(--text-primary) !important;
        line-height: 1.4 !important;
    }
    
    .tools-grid.list-view .category-websites-grid .tool-card .tool-subtitle {
        font-size: 1rem !important;
        margin: 0 !important;
        text-align: left !important;
        color: var(--text-secondary) !important;
        line-height: 1.5 !important;
        }
    }
    

    .tools-grid.list-view .category-websites-grid .tool-card .tool-coupon {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }
}

.category-websites-grid .tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-websites-grid .tool-card .tool-name {
    text-align: left;
    width: 100%;
}

.category-websites-grid .tool-card .tool-subtitle {
    text-align: left;
    width: 100%;
}


html[data-theme="light"] .page-item.active .page-link {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
}

html[data-theme="light"] .pagination-link.current {
    background: var(--accent-green) !important;
    color: white !important;
    border-color: var(--accent-green) !important;
}


.tag-list-page {
    padding: 2rem 0;
}

.tag-search-section {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.tag-search-container {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    max-width: 500px;
    width: 100%;
    box-shadow: none;
    transition: all 0.3s ease;
}

.tag-search-container:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}


html[data-theme="dark"] .tag-search-container:focus-within,
html[data-theme="dark-blue"] .tag-search-container:focus-within,
.tag-search-container:focus-within,
html[data-theme="dark-green"] .tag-search-container:focus-within {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.tag-search-container .search-icon {
    color: var(--text-secondary);
    font-size: 1rem;
}

.tag-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
}

.tag-search-input::placeholder {
    color: var(--text-secondary);
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
    flex: 0 0 auto;
    min-width: 70px;
    height: 28px;
    margin: 0.15rem 0.15rem 0.15rem 0;
    font-size: 0.75rem;
}

.tag-card:hover {
    background: var(--accent-green) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.tag-name {
    font-weight: 500;
    font-size: 0.75rem;
}


.main-area.full-width {
    grid-column: 1 / -1;
}


[style*="background: var(--accent-green)"],
[style*="background-color: var(--accent-green)"],
.search-btn,
.tag-card:hover,
.subcategory-item:hover,
.mobile-filter-option.active,
.filter-item.active,
.category-header.active,
.subcategory-item.active,
.nav-link.active,
.mobile-nav-item.active,
.mobile-bottom-nav .nav-item.active {
    color: white !important;
}


html[data-theme="light"] [style*="background: var(--accent-green)"],
html[data-theme="light"] [style*="background-color: var(--accent-green)"],
html[data-theme="light"] .search-btn,
html[data-theme="light"] .tag-card:hover,
html[data-theme="light"] .subcategory-item:hover,
html[data-theme="light"] .mobile-filter-option.active,
html[data-theme="light"] .filter-item.active,
html[data-theme="light"] .category-header.active,
html[data-theme="light"] .subcategory-item.active,
html[data-theme="light"] .nav-link.active,
html[data-theme="light"] .mobile-nav-item.active,
html[data-theme="light"] .mobile-bottom-nav .nav-item.active,
html[data-theme="light"] .page-item.active .page-link,
html[data-theme="light"] .pagination-link.current {
    color: white !important;
}


@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.6rem;
        gap: 0.6rem;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        order: 2;
    }

    .search-btn {
        width: 100%;
        border-radius: 15px;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        order: 3;
    }
    
    .search-icon {
        order: 1;
        align-self: center;
        margin-bottom: 0;
    }
    

    .search-box > *:first-child {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .search-icon {
        margin: 0;
        order: 0;
    }
    
    .search-input {
        order: 1;
        flex: 1;
    }
}

.theme-dropdown {
    position: relative;
    display: inline-block;
    z-index: 2147483647 !important;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.theme-toggle:hover {
    background: var(--hover-bg);
    color: var(--text-secondary);
}

.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 120px;
    z-index: 2147483647 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.theme-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.theme-item:last-child {
    border-bottom: none;
}

.theme-item:hover {
    background: var(--hover-bg);
}

.theme-item[data-theme="light"] .bi-check {
    color: var(--accent-orange);
}

.theme-preview {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 0.75rem;
    border: 1px solid var(--border-color);
}


.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.15rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0.15rem;
    border-radius: 6px;
    min-width: 50px;
    cursor: pointer;
    user-select: none;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--accent-green);
}


.mobile-bottom-nav .nav-item:active {

}


.mobile-bottom-nav .nav-item[onclick] {
    position: relative;
}

.mobile-bottom-nav .nav-item[onclick]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.mobile-bottom-nav .nav-item[onclick]:hover::after {
    width: 60%;
}

.mobile-bottom-nav .nav-item.active {
    background: rgba(16, 185, 129, 0.1);
}


html[data-theme="light"] .mobile-bottom-nav {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .mobile-bottom-nav .nav-item {
    color: #64748b;
}

html[data-theme="light"] .mobile-bottom-nav .nav-item:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

html[data-theme="light"] .mobile-bottom-nav .nav-item.active {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

html[data-theme="light"] .mobile-bottom-nav .nav-item.active i,
html[data-theme="light"] .mobile-bottom-nav .nav-item.active span {
    color: white !important;
}

html[data-theme="light"] .mobile-bottom-nav .nav-item:hover i,
html[data-theme="light"] .mobile-bottom-nav .nav-item:hover span {
    color: #10b981;
}


html[data-theme="dark"] .mobile-bottom-nav .nav-item:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

html[data-theme="dark"] .mobile-bottom-nav .nav-item.active {
    background: #22c55e;
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

html[data-theme="dark"] .mobile-bottom-nav .nav-item.active i,
html[data-theme="dark"] .mobile-bottom-nav .nav-item.active span {
    color: white !important;
}

html[data-theme="dark"] .mobile-bottom-nav .nav-item:hover i,
html[data-theme="dark"] .mobile-bottom-nav .nav-item:hover span {
    color: #22c55e;
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    
    .mobile-filter-overlay {
        padding-top: 20px;
        padding-bottom: 80px;
    }
}

@media (max-width: 748px) and (min-width: 401px) {
    .site-footer {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .site-footer .container {
        margin: 0 auto !important;
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .site-footer .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        grid-template-columns: none !important;
        background: transparent !important;
    }
    
    .site-footer .footer-content .footer-section:first-child {
        width: 100% !important;
        text-align: left !important;
        margin-top: 1rem !important;
        margin-bottom: 2rem;
        background: transparent !important;
    }
    
    .site-footer .footer-content .footer-section:first-child h3,
    .site-footer .footer-content .footer-section:first-child p {
        text-align: left !important;
        white-space: normal !important;
        word-wrap: normal !important;
    }
    
    .footer-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        font-size: 1.1rem !important; 
    }
    

    .footer-description {
        font-size: 0.9rem !important; 
        margin-top: 0.25rem !important; 
    }
    
    .site-footer .footer-content {
        flex-direction: row !important;
    }
    
    .site-footer .footer-content .footer-section:not(:first-child) {
        flex: 0 0 calc(50% - 0.5rem) !important;
        min-width: 150px !important;
        max-width: 250px !important;
        margin-right: 0.5rem;
        background: transparent !important;
    }
    

    .site-footer .footer-content .footer-section:not(:first-child) .footer-subtitle {
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    

    .site-footer .footer-bottom {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .site-footer .footer-bottom-content {
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        justify-content: flex-start !important; 
    }
    

    .site-footer .footer-bottom .copyright {
        text-align: left !important;
    }
    

    @media (max-width: 748px) {
        .site-footer .footer-bottom .footer-bottom-content {
            justify-content: flex-start !important;
            text-align: left !important;
        }
        
        .site-footer .footer-bottom .copyright {
            text-align: left !important;
            margin: 0 !important;
            padding: 0 !important;
        }
    }
    

    @media (max-width: 768px) {
        .footer-bottom-content {
            text-align: left !important;
        }
    }
}

.language-dropdown .language-menu .language-item,
.language-dropdown .language-menu .language-item:hover,
.language-dropdown .language-menu .language-item:focus,
.language-dropdown .language-menu .language-item:active,
.language-dropdown .language-menu .language-item:visited,
.language-dropdown .language-menu .language-item:link {
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    outline: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    text-decoration: none !important;
    background-color: transparent !important;
    background: transparent !important;
}


html body .language-dropdown .language-menu .language-item,
html body .language-dropdown .language-menu .language-item:hover,
html body .language-dropdown .language-menu .language-item:focus,
html body .language-dropdown .language-menu .language-item:active,
html body .language-dropdown .language-menu .language-item:visited,
html body .language-dropdown .language-menu .language-item:link {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    text-decoration: none !important;
    background-color: transparent !important;
    background: transparent !important;
}


html body .language-dropdown .language-toggle,
html body .language-dropdown .language-toggle:focus,
html body .language-dropdown .language-toggle:active {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

html body .language-dropdown .language-toggle:hover {
    background: var(--hover-bg) !important;
    color: var(--text-secondary) !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* 分类简介区域样式 */
.category-summary-section {
    margin: 0 0 20px 0;
    padding: 0;
}

.category-summary-content {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    box-shadow: none;
}

.category-summary-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accent-gradient);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-summary-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.category-summary-text p {
    margin: 0 0 8px 0;
}

.category-summary-text p:last-child {
    margin-bottom: 0;
}

/* 主题页面分类描述样式 - 显示在分类名称下方 */
.category-description-section {
    margin: 12px 0 0 0;
    padding: 0;
}

.category-description-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.category-description-text {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.category-description-text p {
    margin: 0 0 8px 0;
}

.category-description-text p:last-child {
    margin-bottom: 0;
}

/* 分类简介展开/收起功能样式 */
.summary-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: 4.5em; /* 3行 × 1.5行高 = 4.5em */
    color: var(--text-secondary);
    cursor: pointer;
}

.summary-full {
    line-height: 1.5;
    color: var(--text-primary);
    cursor: pointer;
}

.summary-toggle-container {
    text-align: center;
    margin-top: 4px;
    height: 16px;
    line-height: 16px;
}

.summary-toggle-container[style*="display: none"] {
    display: none !important;
}

.summary-toggle-btn {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    text-decoration: none;
    vertical-align: baseline;
}

.summary-toggle-btn:hover {
    color: #e55a2b;
    opacity: 0.8;
}

/* 确保在不同主题下按钮颜色正确显示 - 使用橙色主题 */
html[data-theme="dark"] .summary-toggle-btn,
html[data-theme="dark-blue"] .summary-toggle-btn,
html[data-theme="dark-green"] .summary-toggle-btn,
.summary-toggle-btn {
    color: #ff6b35 !important;
}

html[data-theme="dark"] .summary-toggle-btn:hover,
html[data-theme="dark-blue"] .summary-toggle-btn:hover,
html[data-theme="dark-green"] .summary-toggle-btn:hover,
.summary-toggle-btn:hover {
    color: #ff8c42 !important;
    opacity: 0.9 !important;
}

html[data-theme="light"] .summary-toggle-btn {
    color: #ff6b35 !important;
}

html[data-theme="light"] .summary-toggle-btn:hover {
    color: #ff8c42 !important;
    opacity: 0.9 !important;
}

.summary-toggle-btn .toggle-text {
    font-weight: 500;
    font-size: 0.8rem;
}

.toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    margin-left: 3px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .category-summary-section {
        margin: 15px 0;
    }
    
    .category-summary-content {
        padding: 20px;
    }
    
    .category-summary-title {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    
    .category-summary-text {
        font-size: 0.9rem;
    }
    
    .summary-toggle-container {
        margin-top: 6px;
        height: 18px;
        line-height: 18px;
    }
    
    .summary-toggle-btn {
        font-size: 0.85rem;
        color: var(--accent-blue);
    }
    
    .summary-toggle-btn:hover {
        color: var(--accent-green);
        opacity: 0.8;
    }
    
    /* 移动端主题特定样式 - 使用橙色主题 */
    html[data-theme="dark"] .summary-toggle-btn,
    html[data-theme="dark-blue"] .summary-toggle-btn,
    html[data-theme="dark-green"] .summary-toggle-btn,
    .summary-toggle-btn {
        color: #ff6b35 !important;
    }
    
    html[data-theme="dark"] .summary-toggle-btn:hover,
    html[data-theme="dark-blue"] .summary-toggle-btn:hover,
    html[data-theme="dark-green"] .summary-toggle-btn:hover,
    .summary-toggle-btn:hover {
        color: #ff8c42 !important;
        opacity: 0.9 !important;
    }
    
    html[data-theme="light"] .summary-toggle-btn {
        color: #ff6b35 !important;
    }
    
    html[data-theme="light"] .summary-toggle-btn:hover {
        color: #ff8c42 !important;
        opacity: 0.9 !important;
    }
    
    .summary-toggle-btn .toggle-text {
        font-weight: 600;
        font-size: 0.85rem;
    }
    
    .toggle-icon {
        font-size: 0.75rem;
    }
    
    .summary-preview {
        color: var(--text-secondary);
        cursor: pointer;
    }
    
    .summary-full {
        color: var(--text-primary);
        cursor: pointer;
    }
    
    /* 移动端筛选区域恢复原样式 */
    .category-summary-section {
        margin: 15px 0 20px 0;
    }
}

/* 桌面版筛选区域样式 */
@media (min-width: 769px) {
    .filters-section {
        display: block !important;
        margin-bottom: 1rem;
    }
    
    .mobile-filters-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 0.5rem !important;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
    }
    
    .mobile-filter-dropdown {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 8px 12px;
        min-width: 150px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-filter-dropdown:hover {
        background: var(--hover-bg);
        border-color: var(--accent-blue);
    }

/* 分类导航区域样式 */
.category-navigation {
    background: var(--primary-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.category-tabs {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tabs-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}

.category-tabs-content::-webkit-scrollbar {
    display: none;
}

.category-tab-item {
    flex: 1;
    min-width: fit-content;
    white-space: nowrap;
    display: flex;
    justify-content: center;
}

.category-tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.category-tab-link:hover {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.category-tab-link.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
    font-weight: 500;
}

.category-tab-link.active .category-tab-icon {
    color: var(--accent-orange);
}

.category-tab-link.active .category-tab-count {
    background: var(--accent-orange);
    color: white;
}

.category-tab-icon {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.category-tab-link:hover .category-tab-icon {
    color: var(--accent-orange);
}

.category-tab-name {
    font-size: 0.9rem;
}

.category-tab-count {
    background: var(--text-secondary);
    color: var(--primary-bg);
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}

.category-tab-link:hover .category-tab-count {
    background: var(--accent-orange);
    color: white;
}

/* 分类滚动按钮样式 */
.category-scroll-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.category-scroll-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
    transform: scale(1.05);
}

.category-scroll-btn:active {
    transform: scale(0.95);
}

.category-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.category-scroll-btn:disabled:hover {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
}


/* ===== 合并的移动端样式 (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* 分类导航隐藏 */
    .category-navigation {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 项目详情页样式 */
    .item-top-section {
        gap: 1rem;
    }
    
    .item-bottom-section {
        gap: 1rem;
    }
    
    .item-screenshot-main {
        height: auto;
        min-height: 200px;
        max-height: 400px;
    }
    
    /* 返回按钮 */
    .back-button {
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
        border-radius: 8px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .back-button:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    /* 页面内容 */
    .page-content {
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .page-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-content-text {
        font-size: 1rem;
    }
    
    /* 面包屑导航 */
    .breadcrumb {
        margin-bottom: 0.25rem;
        padding: 0.125rem 0;
    }
    
    .item-content {
        padding: 0.5rem 0;
    }
    
    .item-main {
        padding: 0.5rem 0;
    }
    
    .item-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    
    .item-title-section {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .item-title-info h1 {
        font-size: 1.5rem;
    }
    
    .item-logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .item-description {
        font-size: 1rem;
    }
    
    .item-details {
        padding: 0.75rem;
    }
    
    .item-details h2.section-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .sidebar-section {
        padding: 1rem 0;
    }
    
    .item-section {
        padding: 1rem 0;
    }
    
    .coupon-item {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .coupon-left {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .coupon-code {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .coupon-link {
        padding: 0.5rem 0.8rem;
    }
    
    .coupon-description {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    /* 移动端过滤器 */
    .mobile-filters-section {
        display: block !important;
    }
    
    /* 顶部横幅 */
    .top-banner {
        padding: 0.5rem 0 !important;
    }
    
    .top-banner-title {
        margin-bottom: 0.25rem !important;
    }
    
    .search-banner-title {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }
    
    .search-banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .search-box {
        max-width: 100% !important;
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: var(--card-bg);
        color: var(--text-primary);
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-input:focus {
        outline: none;
        border-color: var(--accent-green);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    }
    
    .search-btn {
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        min-width: 80px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .mobile-reset-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 6px;
        margin-top: 0.5rem;
    }
    
    .category-filter {
        display: block !important;
    }
    
    /* 移动端过滤器覆盖层 */
    .mobile-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
    }
    
    .mobile-filter-overlay-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 80vh;
        border-radius: 8px 8px 0 0;
        position: fixed;
        bottom: 54px;
        left: 0;
        right: 0;
        animation: slideUpFromBottom 0.3s ease-out;
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
        box-sizing: border-box;
        top: auto;
    }
    
    .mobile-filter-overlay-body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        min-height: 200px;
    }
    
    /* 主题侧边栏 */
    html[data-theme="light"] .topic-sidebar {
        width: 100%;
        position: static;
        margin-top: 1rem;
        order: 1;
    }
    
    html[data-theme="light"] .topic-category-menu {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        padding: 1rem;
    }
    
    html[data-theme="light"] .menu-title {
        border-bottom: 1px solid #e2e8f0;
        color: #2c3e50;
    }
    
    html[data-theme="light"] .category-menu-link {
        color: #2c3e50 !important;
    }
    
    html[data-theme="light"] .category-menu-link:hover {
        color: #22c55e !important;
    }
    
    html[data-theme="light"] .category-menu-link.active {
        color: #22c55e !important;
    }
    
    /* 顶部页面布局 */
    .top-page {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .topic-sidebar {
        width: 100%;
        position: static;
        margin-top: 1rem;
        order: 1; 
    }
    
    .topic-category-menu {
        padding: 1rem;
    }
    
    .category-menu-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-menu-item {
        margin-bottom: 0;
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
    
    .category-menu-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .top-categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* 工具网格 */
    .tools-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid.grid-large {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .category-websites-grid.grid-large {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .tools-grid:not(.list-view) .tool-image-area {
        height: 100px;
    }
    
    /* 列表视图在移动端应该保持列表样式 - 最高优先级 */
    .tools-grid.list-view {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        display: grid !important;
    }
    
    /* 强制覆盖所有可能的冲突规则 */
    @media (max-width: 768px) {
        .tools-grid.list-view {
            grid-template-columns: 1fr !important;
            gap: 1rem !important;
            display: grid !important;
        }
    }
    
    .tools-grid.list-view .tool-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 1rem !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        background: var(--card-bg) !important;
        margin-bottom: 0.5rem !important;
        min-height: 80px !important;
    }
    
    .tools-grid.list-view .tool-card .list-view-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        gap: 1rem !important;
    }
    
    .tools-grid.list-view .tool-card .grid-view-content {
        display: none !important;
    }
    
    .tools-grid.list-view .tool-card .tool-image-area {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    
    .tools-grid.list-view .tool-card .tool-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        border-radius: 8px !important;
    }
    
    .tools-grid.list-view .tool-card .tool-content {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .tools-grid.list-view .tool-card .tool-name {
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin: 0 0 0.25rem 0 !important;
        color: var(--text-primary) !important;
    }
    
    .tools-grid.list-view .tool-card .tool-subtitle {
        font-size: 0.85rem !important;
        color: var(--text-secondary) !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* 返回顶部按钮 */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px; 
        right: 15px;
        font-size: 1.1rem;
    }
    
    /* 分页 */
    .pagination-list {
        gap: 0.25rem;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .pagination-ellipsis {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
    }

    .category-section-title {
        font-size: 1.25rem;
        margin: 0 0 1rem 0;
    }

    .category-websites-grid {
        gap: 0.75rem;
    }

    .category-websites-grid .tool-card {
        min-height: 120px;
    }
    
    /* URL卡片 */
    .url-card-inline {
        float: none;
        width: 100%;
        margin: 1rem 0;
    }
    
    /* 英雄标题 */
    .hero-title {
        font-size: 2rem;
    }

    .content-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .main-area {
        order: 1;
    }

    .tools-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-grid.list-view {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-detail-content {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
        order: 2;
    }

    .blog-article {
        padding: 1.5rem;
    }

    .blog-article-title {
        font-size: 2rem;
    }

    .blog-article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-url-item, .blog-related-post-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .blog-url-favicon, .blog-related-post-image {
        align-self: center;
    }

    .pagination-wrapper {
        margin-top: 2rem;
    }

    .category-websites-grid .tool-card {
        min-height: 120px;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-brand {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .container {
        padding: 0 0 0 60px;
    }

    .main-content .container {
        padding: 0 20px;
    }

    .top-banner .container {
        padding: 0 20px;
    }

    .sidebar {
        padding: 1rem;
    }

    .top-banner {
        padding: 1.5rem 0;
    }

    .main-content {
        padding: 2rem 0;
    }

    .search-container {
        padding: 0 1rem;
    }

    .search-box {
        border-radius: 8px;
        padding: 0.5rem;
    }

    .no-results {
        padding: 2rem 1rem;
        text-align: center;
    }

    .no-results i {
        font-size: 3rem;
    }

    .no-results h3 {
        font-size: 1.25rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .search-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .tool-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .tools-grid:not(.list-view) .tool-card {
        min-height: 140px;
    }
    
    .tools-grid.list-view .tool-card {
        min-height: 100px;
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        margin-top: 0.5rem;
    }
    
    /* 顶部URL网格 */
    .top-urls-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* 移动端底部导航 */
    body {
        padding-bottom: 60px;
    }
    
    .mobile-filter-overlay {
        display: block !important;
    }
    
    /* 分类摘要 */
    .category-summary-section {
        margin: 15px 0;
    }
    
    .category-summary-content {
        padding: 20px;
    }
    
    .category-summary-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .category-summary-text {
        font-size: 0.9rem;
    }
    
    .summary-toggle-container {
        margin-top: 0.75rem;
        text-align: center;
    }
    
    .summary-toggle-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        border-radius: 4px;
    }
    
    .summary-toggle-btn:hover {
        background: var(--accent-orange);
        color: white !important;
    }
    
    html[data-theme="dark"] .summary-toggle-btn,
    html[data-theme="dark-blue"] .summary-toggle-btn,
    html[data-theme="dark-green"] .summary-toggle-btn {
        background: var(--accent-orange);
        color: white !important;
    }
    
    html[data-theme="dark"] .summary-toggle-btn:hover,
    html[data-theme="dark-blue"] .summary-toggle-btn:hover,
    html[data-theme="dark-green"] .summary-toggle-btn:hover {
        background: #e55a2b;
        color: white !important;
    }
    
    html[data-theme="light"] .summary-toggle-btn {
        color: #ff6b35 !important;
    }
    
    html[data-theme="light"] .summary-toggle-btn:hover {
        background: #ff6b35;
        color: white !important;
    }
    
    .summary-toggle-btn .toggle-text {
        font-size: 0.75rem;
    }
    
    .toggle-icon {
        font-size: 0.75rem;
    }
    
    .summary-preview {
        max-height: 60px;
    }
    
    .summary-full {
        max-height: none;
    }
    
    .category-summary-section {
        margin: 10px 0;
    }
}
