﻿/**
 * 主样式文件
 *
 * @package Xuhuan
 * @since 1.0.0
 */

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title-link {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.site-logo img {
    height: 40px;
    width: auto;
}

/* Main Navigation */
.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu li {
    position: relative;
}

.main-navigation .nav-menu a {
    display: block;
    padding: var(--spacing-sm) 0;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu .current-menu-item > a {
    color: var(--primary-color);
}

/* Dropdown */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
}

.main-navigation .sub-menu a:hover {
    background: var(--bg-tertiary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.header-publish-btn {
    padding: 10px 20px;
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 4px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-menu-toggle:hover {
    background: var(--border-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-arrow {
    margin-right: 4px;
    transition: transform var(--transition-fast);
}

.user-menu-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: var(--z-dropdown);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.user-dropdown-header .user-name {
    font-weight: 600;
    display: block;
}

.user-dropdown-header .user-email {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.user-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: var(--spacing-sm);
}

.user-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.user-dropdown-menu li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--spacing-sm) 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Search - 默认隐藏 */
.mobile-search {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    z-index: var(--z-dropdown);
}

.mobile-search.active {
    display: block;
}

/* Mobile Navigation - 默认隐藏 */
.mobile-navigation {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    z-index: var(--z-modal);
    overflow-y: auto;
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

.mobile-navigation.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-title {
    font-weight: 600;
    font-size: var(--text-lg);
}

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

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: var(--spacing-md);
}

.mobile-nav-menu li {
    margin-bottom: var(--spacing-xs);
}

.mobile-nav-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

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

.mobile-nav-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* ==========================================================================
   Footer Styles - 优化布局，匹配主题系统设置
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 128px;
    height: auto;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    position: relative;
    /* 关键：设置较高的z-index，确保悬浮二维码不被上方内容遮挡 */
    z-index: 100;
    /* 关键：不限制溢出 */
    overflow: visible !important;
    clip: unset !important;
}

.footer-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow: visible !important;
}

.footer-main .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow: visible !important;
    width: 100%;
}

/* 第二行：版权信息 */
.footer-row-copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-blocks-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-xl);
    align-items: center;
    justify-content: flex-start;
    overflow: visible !important;
    width: 100%;
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    position: static;
}

/* 品牌区块靠左对齐，增加显示面积 */
.footer-block-brand {
    align-items: flex-start;
    text-align: left;
    margin-right: auto;
    min-width: 280px;
    max-width: 400px;
    flex: 1;
}

/* 二维码区块需要relative定位 */
.footer-block-wechat,
.footer-block-qq {
    position: relative;
    overflow: visible !important;
}

.footer-block-title {
    display: none;
}

/* 品牌信息块不显示标题 */
.footer-block-brand .footer-block-title {
    display: none;
}

.footer-block-title::after {
    display: none;
}

.footer-block-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
}

/* 品牌区块内容靠左 */
.footer-block-brand .footer-block-body {
    align-items: flex-start;
    text-align: left;
}

/* 品牌信息 */
.footer-brand-name {
    margin-bottom: 6px;
    text-align: left;
}

.footer-brand-name .custom-logo-link img {
    max-height: 32px;
    width: auto;
}

.footer-brand-name .brand-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-light);
    display: inline-block;
    line-height: 1.2;
}

.footer-brand-name .brand-title::after {
    display: none;
}

.footer-brand-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: left;
    max-width: 380px;
    /* 允许多行显示 */
    white-space: normal;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 链接列表 */
.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

.footer-links-list li {
    margin: 0;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-links-list a:hover {
    color: var(--text-light);
}

/* 社交媒体 */
.footer-social-links {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.footer-social-links .social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    transition: all var(--transition-fast);
    font-size: var(--text-sm);
    text-decoration: none;
}

.footer-social-links .social-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* 二维码 - 图标+悬浮显示 */
.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.footer-qr-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* 确保hover时wrapper获得更高层级 */
.footer-qr-icon-wrapper:hover {
    z-index: 999999;
}

.footer-qr-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.footer-qr-icon:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* 微信图标专属样式 */
.footer-qr-icon-wechat:hover {
    background: #07c160;
}

/* QQ图标专属样式 */
.footer-qr-icon-qq:hover {
    background: #12b7f5;
}

/* 二维码悬浮弹窗 - 使用absolute定位，由JS计算精确位置 */
.footer-qr-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out, transform 0.2s ease-out;
    z-index: 999999;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 197px;
    box-sizing: border-box;
}

/* 悬浮弹窗箭头 */
.footer-qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #ffffff;
}

/* 悬浮显示二维码 */
.footer-qr-icon-wrapper:hover .footer-qr-popup,
.footer-qr-hover:hover .footer-qr-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.footer-qr-popup-image {
    width: 165px;
    height: 165px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    margin: 0 auto;
}

/* 二维码弹窗内的名称标题 */
.footer-qr-popup-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 12px;
    margin-bottom: 0;
}

.footer-qr-name {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff !important;
    margin: 0;
    margin-top: 6px;
    line-height: 1.3;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

/* 版权信息 */
.footer-copyright-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    line-height: 1.3;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-copyright-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-copyright-text a:hover {
    color: var(--text-light);
}

/* 备案号列表 */
.footer-licenses {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
    margin: 0;
}

.footer-license-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-xs);
    line-height: 1.4;
    flex-shrink: 0;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-license-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-license-text {
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-license-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-license-item a:hover {
    color: var(--text-light);
}

/* 响应式布局 - 移动端页脚 */
@media (max-width: 768px) {
    .site-footer {
        height: auto;
        min-height: auto;
        padding: var(--spacing-md) 0;
        overflow: visible;
    }
    
    .footer-blocks-grid {
        flex-wrap: wrap;
        gap: var(--spacing-md);
        justify-content: center;
    }
    
    .footer-block {
        flex: 0 0 auto;
    }
    
    .footer-brand-desc {
        display: none;
    }
    
    .footer-row-copyright {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding-top: var(--spacing-sm);
    }
    
    .footer-licenses {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.wechat-icon {
    font-size: 18px;
}

.wechat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wechat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
}

.wechat-name {
    font-size: var(--text-sm);
    color: var(--text-light);
    font-weight: 500;
}

.wechat-qr {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* QQ二维码样式 */
.qq-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.qq-icon {
    font-size: 18px;
}

.qq-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qq-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
}

.qq-name {
    font-size: var(--text-sm);
    color: var(--text-light);
    font-weight: 500;
}

.qq-qr {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qq-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式设计 - 中等屏幕 */
@media (max-width: 992px) {
    .footer-blocks-grid {
        gap: var(--spacing-lg);
    }
}

/* 小屏幕页脚样式已在上方定义 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-search {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.hero-search .search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    padding: 6px;
    box-shadow: var(--shadow-lg);
}

.hero-search .search-icon {
    margin-left: 16px;
    color: var(--text-muted);
}

.hero-search .search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: var(--text-base);
}

.hero-search .search-input:focus {
    outline: none;
}

.hero-search .search-btn {
    border-radius: var(--radius-full);
    padding: 12px 32px;
}

.hot-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.hot-label {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.hot-keyword {
    padding: 4px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.hot-keyword:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
}

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

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ==========================================================================
   Category Section
   ========================================================================== */
.category-section,
.latest-section,
.popular-section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.section-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
    text-decoration: none;
}

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

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.category-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.category-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.cta-section .btn-primary {
    background: var(--text-light);
    color: var(--primary-color);
    box-shadow: none;
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

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

.toast-success {
    background: rgba(40, 167, 69, 0.08);
    color: var(--success-color, #1e7e34);
}

.toast-error {
    background: rgba(220, 53, 69, 0.08);
    color: var(--error-color, #c82333);
}

.toast-warning {
    background: rgba(255, 193, 7, 0.12);
    color: var(--warning-color, #d39e00);
}

.toast-info {
    background: rgba(23, 162, 184, 0.08);
    color: var(--info-color, #138496);
}

/* ==========================================================================
   Global Loader
   ========================================================================== */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.loader-content {
    text-align: center;
}

.loader-text {
    display: block;
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    
    .header-publish-btn .hide-mobile {
        display: none;
    }
    
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
    
    .stat-item {
        flex: 1 1 calc(50% - var(--spacing-lg));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .category-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-search .search-input-wrapper {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: var(--spacing-sm);
    }
    
    .hero-search .search-icon {
        display: none;
    }
    
    .hero-search .search-input {
        width: 100%;
        text-align: center;
    }
    
    .hero-search .search-btn {
        width: 100%;
        margin-top: var(--spacing-sm);
    }
}

