/* Hero Section */
.hero-section {
    background-image: url('../img/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 60px 0;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        padding: 40px 0;
    }
}

/* Modern Search Container */
.modern-search-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Modern Search Input */
.modern-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 16px 120px 16px 60px;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.modern-search-input::placeholder {
    color: #7f8c8d;
    font-weight: 400;
}

.modern-search-input:focus {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15), 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

/* Search Icon */
.search-icon-wrapper {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.search-icon {
    font-size: 20px;
    color: #ff6b35;
    transition: all 0.3s ease;
}

.modern-search-input:focus ~ .search-icon-wrapper .search-icon {
    color: #e55a2b;
    transform: scale(1.1);
}



/* Clear Search Button */
.clear-search-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(108, 117, 125, 0.1);
    border: none;
    border-radius: 16px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: translateY(-50%) scale(1.1);
}

/* Category Grid - 统一的方形卡片设计，适用于所有屏幕 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 0 0.5rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-height: 80px;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--text-dark);
    border-color: rgba(255, 107, 53, 0.3);
}

.category-card:active {
    transform: translateY(0);
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    transition: all 0.15s ease;
}

.category-card:focus {
    outline: none;
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.category-icon {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.category-card:active .category-icon {
    transform: scale(1.05);
}

.category-card .fw-semibold {
    font-weight: 600;
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    word-break: break-word;
    hyphens: auto;
    text-align: center;
}

/* 平板设备优化 - 保持方形 */
@media (max-width: 768px) and (min-width: 577px) {
    .category-grid {
        gap: 0.875rem;
        padding: 0 0.75rem;
    }
    
    .category-card {
        padding: 0.875rem;
        border-radius: 14px;
        min-height: 75px;
    }
}

/* 大屏手机优化 - 保持方形 */
@media (max-width: 576px) and (min-width: 481px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 0 0.25rem;
    }
    
    .category-card {
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
        min-height: 70px;
    }
}

/* 小屏手机优化 - 保持方形 */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.375rem;
        padding: 0 0.125rem;
        margin: 1rem 0;
    }
    
    .category-card {
        padding: 0.625rem 0.25rem;
        border-radius: 10px;
        box-shadow: 0 1px 8px rgba(0,0,0,0.06);
        min-height: 65px;
    }
    
    .category-card .fw-semibold {
        -webkit-line-clamp: 3;
        line-height: 1.1;
    }
}

/* 超小屏设备优化 - 保持方形 */
@media (max-width: 360px) {
    .category-grid {
        gap: 0.25rem;
        padding: 0;
    }
    
    .category-card {
        padding: 0.5rem 0.125rem;
        border-radius: 8px;
        min-height: 60px;
    }
}

/* 确保在所有设备上文字都能完整显示 */
@media (max-width: 320px) {
    .category-card .fw-semibold {
        font-size: 0.6rem;
        -webkit-line-clamp: 3;
    }
    
    .category-icon {
        margin-bottom: 0.25rem;
    }
    
    .category-card {
        min-height: 55px;
    }
}

/* Special Category Card - "Don't Know What to Eat" */
.category-card.special-category {
    background: linear-gradient(135deg, #ff6b35 0%, #f39c12 50%, #e74c3c 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse-glow 3s ease-in-out infinite;
}

.category-card.special-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 2s linear infinite;
}

.category-card.special-category:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    animation: none;
}

.category-card.special-category:active {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #e55a2b 0%, #d68910 50%, #c0392b 100%);
}

.category-card.special-category .category-icon {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: bounce 2s ease-in-out infinite;
}

.category-card.special-category:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
    animation: none;
}

.category-card.special-category .fw-semibold {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-size: clamp(0.7rem, 2.8vw, 0.9rem);
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 8px rgba(255, 107, 53, 0.1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Responsive adjustments for special category */
@media (max-width: 768px) {
    .category-card.special-category {
        animation-duration: 4s;
    }
}

@media (max-width: 480px) {
    .category-card.special-category .category-icon {
        animation-duration: 2.5s;
    }
}

@media (max-width: 360px) {
    .category-card.special-category {
        border-width: 1px;
    }
}



/* 删除或注释掉原来的圆形样式媒体查询 */
/*
@media (max-width: 768px) {
    .category-grid {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        margin: 1rem 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-card {
        border-radius: 50%;
        width: 80px;
        height: 80px;
        text-align: center;
        text-decoration: none;
        color: white;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .category-card:nth-child(1) {
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    }
    
    .category-card:nth-child(2) {
        background: linear-gradient(135deg, #ff8a50 0%, #ff6b35 100%);
        box-shadow: 0 8px 25px rgba(255, 138, 80, 0.3);
    }
    
    .category-card:nth-child(3) {
        background: linear-gradient(135deg, #f7931e 0%, #e67e22 100%);
        box-shadow: 0 8px 25px rgba(247, 147, 30, 0.3);
    }
    
    .category-card:nth-child(4) {
        background: linear-gradient(135deg, #ff9f43 0%, #f39c12 100%);
        box-shadow: 0 8px 25px rgba(255, 159, 67, 0.3);
    }
    
    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
        display: block;
        line-height: 1;
    }
    
    .category-card .fw-semibold {
        font-weight: 600;
        font-size: 0.65rem;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70px;
    }
    
    .category-card:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    }
    
    .category-card:active {
        transform: translateY(-2px) scale(1.05);
    }
    
    /* 添加滑动指示器 */
    .category-container {
        position: relative;
    }
    
    .category-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 100%;
        background: linear-gradient(to left, rgba(255,255,255,0.6), rgba(255,255,255,0));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .category-container:hover::after {
        opacity: 1;
    }
    
    @media (max-width: 768px) {
        .category-card {
            width: 70px;
            height: 70px;
        }
        
        .category-icon {
            font-size: 1.3rem;
        }
        
        .category-card .fw-semibold {
            font-size: 0.6rem;
            max-width: 60px;
        }
    }
}
*/

.category-grid::-webkit-scrollbar {
    height: 4px;
}

.category-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.category-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.section-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.view-all-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.dont-know-btn {
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
}

.dont-know-btn:hover {
    background: linear-gradient(135deg, #e55a2b, #e67e22);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.dont-know-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.dont-know-btn i {
    font-size: 1rem;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .section-buttons {
        gap: 0.5rem;
    }
    
    .dont-know-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 16px;
    }
    
    .dont-know-btn i {
        font-size: 0.9rem;
    }
    
    .view-all-btn {
        font-size: 0.875rem;
    }
}

/* Very small screens - stack buttons vertically */
@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

/* Stall Grid - Updated for better responsive design */
.stall-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 2rem;
}

/* Ensure consistent card height in home page */
.stall-grid .stall-card {
    height: 100%;
    min-height: 350px;
}

.stall-grid .stall-info {
    min-height: 140px;
    justify-content: flex-start;
}

/* Mobile First Approach */
@media (max-width: 575px) {
    .stall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stall-grid .stall-card {
        min-height: 320px;
    }
    
    .stall-grid .stall-info {
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

@media (min-width: 576px) {
    .stall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .stall-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .stall-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .stall-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Advertisement Slideshow */
.ads-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 3/1;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ads-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.ads-slide.active {
    display: block;
}

.ads-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ads-slide img:hover {
    transform: scale(1.02);
}

.ads-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-align: center;
    max-width: 80%;
}

.ads-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.ads-indicators {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.ads-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ads-indicator.active {
    background: white;
    border-color: rgba(255,255,255,0.3);
}

.ads-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ads-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ads-nav.prev {
    left: 15px;
}

.ads-nav.next {
    right: 15px;
}

/* Home Bottom Advertisements */
.home-bottom-ads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 1.5rem auto;
    justify-items: center;
}

.home-bottom-ad-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3/1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.home-bottom-ad-item:hover {
    transform: scale(1.02);
}

.home-bottom-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.home-bottom-ad-item:hover .home-bottom-ad-image {
    transform: scale(1.02);
}

.home-bottom-ad-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-align: center;
    max-width: 80%;
}

.home-bottom-ad-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .home-bottom-ads {
            grid-template-columns: 1fr;
            padding: 0 15px;
            gap: 15px;
            margin: 1.5rem auto;
        }
    
    .home-bottom-ad-item {
        aspect-ratio: 3/1;
    }
    
    .home-bottom-ad-title {
        font-size: 1rem;
    }
    
    .home-bottom-ad-overlay {
        padding: 0.5rem 1rem;
        max-width: 85%;
    }
}

/* Modern Search Suggestions */
.modern-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    z-index: 1000;
    max-height: 480px;
    overflow: hidden;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.suggestions-content {
    max-height: 480px;
    overflow-y: auto;
    padding: 8px;
}

.suggestions-content::-webkit-scrollbar {
    width: 6px;
}

.suggestions-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.suggestions-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.3);
    border-radius: 3px;
}

.suggestions-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.5);
}

.suggestions-section {
    margin-bottom: 16px;
}

.suggestions-section:last-child {
    margin-bottom: 8px;
}

.suggestions-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px 8px;
    font-weight: 600;
    color: #ff6b35;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
    margin-bottom: 8px;
}

.suggestions-header i {
    margin-right: 8px;
    font-size: 14px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-item {
    padding: 14px 16px;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 16px;
}

.suggestion-item:hover::before {
    opacity: 1;
}

.suggestion-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}

.suggestion-item:active {
    transform: translateX(2px) scale(0.98);
}

.suggestion-text {
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.featured-icon {
    color: #ffc107;
    font-size: 16px;
    position: relative;
    z-index: 1;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Quick Actions Styles */
.quick-actions-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03), rgba(247, 147, 30, 0.03));
    border-radius: 20px;
    margin: 8px;
    padding: 8px;
}

.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-action-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.quick-action-item:hover::before {
    left: 100%;
}

.quick-action-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.quick-action-item:active {
    transform: translateY(0) scale(0.98);
}

.quick-action-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.quick-action-content i {
    font-size: 18px;
    color: #ff6b35;
    width: 20px;
    text-align: center;
}

.quick-action-content span {
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
}

.quick-action-item > i {
    color: #ff6b35;
    font-size: 14px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-action-item:hover > i {
    transform: translateX(4px);
}

.no-results {
    padding: 24px 16px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    font-size: 15px;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 16px;
    margin: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ads-slideshow {
        aspect-ratio: 3/1;
        margin: 1rem 0;
    }
    
    .ads-title {
        font-size: 1rem;
    }
    
    .ads-overlay {
        padding: 0.5rem 1rem;
        max-width: 85%;
    }
    
    .ads-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .ads-nav.prev {
        left: 10px;
    }
    
    .ads-nav.next {
        right: 10px;
    }
    
    /* Quick Actions Mobile Styles */
    .quick-action-item {
        padding: 14px 16px;
    }
    
    .quick-action-content {
        gap: 10px;
    }
    
    .quick-action-content i {
        font-size: 16px;
    }
    
    .quick-action-content span {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ads-slideshow {
        aspect-ratio: 3/1;
        margin: 0.75rem 0;
    }
    
    /* Quick Actions Small Mobile Styles */
    .quick-action-item {
        padding: 12px 14px;
    }
    
    .quick-action-content {
        gap: 8px;
    }
    
    .quick-action-content span {
        font-size: 13px;
    }
    
    .ads-title {
        font-size: 0.9rem;
    }
    
    .ads-overlay {
        padding: 0.4rem 0.8rem;
        max-width: 90%;
    }
    
    .ads-nav {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .ads-indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 360px) {
    .ads-slideshow {
        aspect-ratio: 2.8/1;
    }
    
    .ads-title {
        font-size: 0.8rem;
    }
    
    .ads-overlay {
        padding: 0.3rem 0.6rem;
    }
}

/* Blog Posts Home Section */
.blog-posts-home {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-post-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.blog-post-image {
    flex: 0 0 200px;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/3;
}

.blog-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.blog-post-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #888;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(108, 92, 231, 0.1);
}

.author-info::before {
    content: attr(data-label);
    position: absolute;
    top: -1rem;
    left: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c5ce7;
    background: #fff;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}



.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6c5ce7;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.author-avatar::after {
    content: '✓';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #6c5ce7;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
}

.author-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.author-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7 0%, #5a4fcf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    border: 2px solid #6c5ce7;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.2);
    position: relative;
}

.author-avatar-placeholder::after {
    content: '✓';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #6c5ce7;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
}

.post-stats {
    display: flex;
    gap: 1rem;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-post-date {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.merchant-tags {
    margin-bottom: 0.5rem;
}

.merchant-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.merchant-tag:hover {
    background: #dee2e6;
    color: #495057;
    text-decoration: none;
}

.merchant-tag-more {
    background: #f8f9fa;
    color: #6c757d;
    cursor: default;
    border: 1px dashed #dee2e6;
}

.merchant-tag-more:hover {
    background: #e9ecef;
    color: #6c757d;
}

/* Merchant Avatars - Modern Stall Design */
.merchant-avatars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.merchant-avatars::before {
    content: attr(data-label);
    position: absolute;
    top: -1rem;
    left: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ff6b35;
    background: #fff;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}



.merchant-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #ff6b35;
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    position: relative;
    flex-shrink: 0;
}

.merchant-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
}

.merchant-avatar:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    border-color: #e55a2b;
}

.merchant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    aspect-ratio: 1;
}

.merchant-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    font-size: 1rem;
}

.merchant-avatar-more {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #ff6b35;
    color: #ff6b35;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: default;
    border-radius: 12px;
}

.merchant-avatar-more:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-post-item {
        flex-direction: column;
    }
    
    .blog-post-image {
        flex: none;
        height: 180px;
        min-height: 180px;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .blog-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 16/9;
    }
    
    .blog-post-placeholder {
        height: 180px;
        font-size: 1.5rem;
    }
    
    .blog-post-content {
        padding: 1rem;
    }
    
    .blog-post-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .blog-post-excerpt {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .merchant-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .merchant-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        margin-right: 0;
        margin-bottom: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .merchant-tag-more {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        flex-shrink: 0;
    }
    
    .merchant-avatars {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .merchant-avatars::before {
        content: attr(data-label);
        font-size: 0.6rem;
        padding: 0 0.4rem;
        top: -0.8rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }
    
    .author-info {
        padding: 0.4rem 0;
        margin-top: 0.4rem;
    }
    
    .author-info::before {
        content: attr(data-label);
        font-size: 0.6rem;
        padding: 0 0.4rem;
        top: -0.8rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }
    
    .merchant-avatar {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-width: 2px;
        border-radius: 10px;
        flex-shrink: 0;
    }
    
    .merchant-avatar::after {
        width: 8px;
        height: 8px;
        top: -1px;
        right: -1px;
    }
    
    .merchant-avatar-placeholder {
        font-size: 0.7rem;
    }
    
    .merchant-avatar-more {
        font-size: 0.5rem;
        border-width: 2px;
        border-radius: 8px;
    }
    
    .merchant-avatar img {
        border-radius: 8px;
        aspect-ratio: 1;
    }
    
    .author-avatar {
        width: 24px;
        height: 24px;
    }
    
    .author-avatar::after {
        width: 7px;
        height: 7px;
        top: -1px;
        right: -1px;
        font-size: 0.3rem;
    }
    
    .author-avatar-placeholder {
        width: 24px;
        height: 24px;
    }
    
    .author-avatar-placeholder::after {
        width: 7px;
        height: 7px;
        top: -1px;
        right: -1px;
        font-size: 0.3rem;
    }
    
    .author-avatar {
        width: 26px;
        height: 26px;
    }
    
    .author-avatar::after {
        width: 8px;
        height: 8px;
        top: -2px;
        right: -2px;
        font-size: 0.35rem;
    }
    
    .author-avatar-placeholder {
        width: 26px;
        height: 26px;
    }
    
    .author-avatar-placeholder::after {
        width: 8px;
        height: 8px;
        top: -2px;
        right: -2px;
        font-size: 0.35rem;
    }
}
/* Alternative: Horizontal Scrollable Categories - 统一样式 */
@media (max-width: 768px) {
    .category-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem;
        margin: 1rem 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-grid::-webkit-scrollbar {
        display: none;
    }
    
    .category-card {
        flex: 0 0 auto;
        background: white;
        border-radius: 12px;
        width: 90px;
        height: 90px;
        text-align: center;
        text-decoration: none;
        color: var(--text-dark);
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        border: 2px solid transparent;
        overflow: hidden;
        font-weight: 600;
    }
    
    /* 移除彩色背景，保持一致的白色背景 */
    .category-card:nth-child(1),
    .category-card:nth-child(2),
    .category-card:nth-child(3),
    .category-card:nth-child(4) {
        background: white;
        border: 2px solid transparent;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    
    .category-icon {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
        display: block;
        line-height: 1;
        transition: all 0.3s ease;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    }
    
    .category-card .fw-semibold {
        font-weight: 600;
        font-size: 0.7rem;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
        color: var(--text-dark);
    }
    
    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        color: var(--text-dark);
        border-color: rgba(255, 107, 53, 0.3);
    }
    
    .category-card:hover .category-icon {
        transform: scale(1.1);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    }
    
    .category-card:active {
        transform: translateY(0);
        background: rgba(255, 107, 53, 0.1);
        border-color: rgba(255, 107, 53, 0.5);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
        transition: all 0.15s ease;
    }
    
    .category-card:active .category-icon {
        transform: scale(1.05);
    }
    
    .category-card:focus {
        outline: none;
        border-color: rgba(255, 107, 53, 0.6);
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    }
    
    /* 添加滑动指示器 */
    .category-container {
        position: relative;
    }
    
    .category-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 100%;
        background: linear-gradient(to left, rgba(255,255,255,0.6), rgba(255,255,255,0));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .category-container:hover::after {
        opacity: 1;
    }
}

/* 更小屏幕的进一步优化 - 保持一致样式 */
@media (max-width: 576px) {
    .category-card {
        width: 80px;
        height: 80px;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-card .fw-semibold {
        font-size: 0.65rem;
        max-width: 70px;
    }
}

@media (max-width: 480px) {
    .category-card {
        width: 75px;
        height: 75px;
    }
    
    .category-icon {
        font-size: 1.4rem;
    }
    
    .category-card .fw-semibold {
        font-size: 0.6rem;
        max-width: 65px;
    }
}

.category-grid::-webkit-scrollbar {
    height: 4px;
}

.category-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.category-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.view-all-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Stall Grid - Updated for better responsive design */
.stall-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 2rem;
}

/* Mobile First Approach */
@media (max-width: 575px) {
    .stall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (min-width: 576px) {
    .stall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .stall-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .stall-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .stall-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Advertisement Slideshow */
.ads-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 3/1;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ads-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.ads-slide.active {
    display: block;
}

.ads-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ads-slide img:hover {
    transform: scale(1.02);
}

.ads-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-align: center;
    max-width: 80%;
}

.ads-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.ads-indicators {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.ads-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ads-indicator.active {
    background: white;
    border-color: rgba(255,255,255,0.3);
}

.ads-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ads-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ads-nav.prev {
    left: 15px;
}

.ads-nav.next {
    right: 15px;
}

/* Home Bottom Advertisements */
.home-bottom-ads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 1.5rem auto;
    justify-items: center;
}

.home-bottom-ad-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3/1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.home-bottom-ad-item:hover {
    transform: scale(1.02);
}

.home-bottom-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.home-bottom-ad-item:hover .home-bottom-ad-image {
    transform: scale(1.02);
}

.home-bottom-ad-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-align: center;
    max-width: 80%;
}

.home-bottom-ad-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .home-bottom-ads {
            grid-template-columns: 1fr;
            padding: 0 15px;
            gap: 15px;
            margin: 1.5rem auto;
        }
    
    .home-bottom-ad-item {
        aspect-ratio: 3/1;
    }
    
    .home-bottom-ad-title {
        font-size: 1rem;
    }
    
    .home-bottom-ad-overlay {
        padding: 0.5rem 1rem;
        max-width: 85%;
    }
}

/* Modern Search Suggestions */
.modern-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    z-index: 1000;
    max-height: 480px;
    overflow: hidden;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.suggestions-content {
    max-height: 480px;
    overflow-y: auto;
    padding: 8px;
}

.suggestions-content::-webkit-scrollbar {
    width: 6px;
}

.suggestions-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.suggestions-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.3);
    border-radius: 3px;
}

.suggestions-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.5);
}

.suggestions-section {
    margin-bottom: 16px;
}

.suggestions-section:last-child {
    margin-bottom: 8px;
}

.suggestions-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px 8px;
    font-weight: 600;
    color: #ff6b35;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
    margin-bottom: 8px;
}

.suggestions-header i {
    margin-right: 8px;
    font-size: 14px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-item {
    padding: 14px 16px;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 16px;
}

.suggestion-item:hover::before {
    opacity: 1;
}

.suggestion-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}

.suggestion-item:active {
    transform: translateX(2px) scale(0.98);
}

.suggestion-text {
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.featured-icon {
    color: #ffc107;
    font-size: 16px;
    position: relative;
    z-index: 1;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.no-results {
    padding: 24px 16px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    font-size: 15px;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 16px;
    margin: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ads-slideshow {
        aspect-ratio: 3/1;
        margin: 1rem 0;
    }
    
    .ads-title {
        font-size: 1rem;
    }
    
    .ads-overlay {
        padding: 0.5rem 1rem;
        max-width: 85%;
    }
    
    .ads-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .ads-nav.prev {
        left: 10px;
    }
    
    .ads-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .ads-slideshow {
        aspect-ratio: 3/1;
        margin: 0.75rem 0;
    }
    
    .ads-title {
        font-size: 0.9rem;
    }
    
    .ads-overlay {
        padding: 0.4rem 0.8rem;
        max-width: 90%;
    }
    
    .ads-nav {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .ads-indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 360px) {
    .ads-slideshow {
        aspect-ratio: 2.8/1;
    }
    
    .ads-title {
        font-size: 0.8rem;
    }
    
    .ads-overlay {
        padding: 0.3rem 0.6rem;
    }
}

/* Blog Posts Home Section */
.blog-posts-home {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-post-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.blog-post-image {
    flex: 0 0 200px;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/3;
}

.blog-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.blog-post-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #888;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(108, 92, 231, 0.1);
}

.author-info::before {
    content: attr(data-label);
    position: absolute;
    top: -1rem;
    left: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c5ce7;
    background: #fff;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}



.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6c5ce7;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.author-avatar::after {
    content: '✓';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #6c5ce7;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
}

.author-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.author-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7 0%, #5a4fcf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    border: 2px solid #6c5ce7;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.2);
    position: relative;
}

.author-avatar-placeholder::after {
    content: '✓';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #6c5ce7;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
}

.post-stats {
    display: flex;
    gap: 1rem;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-post-date {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.merchant-tags {
    margin-bottom: 0.5rem;
}

.merchant-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.merchant-tag:hover {
    background: #dee2e6;
    color: #495057;
    text-decoration: none;
}

.merchant-tag-more {
    background: #f8f9fa;
    color: #6c757d;
    cursor: default;
    border: 1px dashed #dee2e6;
}

.merchant-tag-more:hover {
    background: #e9ecef;
    color: #6c757d;
}

/* Merchant Avatars - Modern Stall Design */
.merchant-avatars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.merchant-avatars::before {
    content: attr(data-label);
    position: absolute;
    top: -1rem;
    left: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ff6b35;
    background: #fff;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}



.merchant-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #ff6b35;
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    position: relative;
    flex-shrink: 0;
}

.merchant-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
}

.merchant-avatar:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    border-color: #e55a2b;
}

.merchant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    aspect-ratio: 1;
}

.merchant-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    font-size: 1rem;
}

.merchant-avatar-more {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #ff6b35;
    color: #ff6b35;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: default;
    border-radius: 12px;
}

.merchant-avatar-more:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-post-item {
        flex-direction: column;
    }
    
    .blog-post-image {
        flex: none;
        height: 180px;
        min-height: 180px;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .blog-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 16/9;
    }
    
    .blog-post-placeholder {
        height: 180px;
        font-size: 1.5rem;
    }
    
    .blog-post-content {
        padding: 1rem;
    }
    
    .blog-post-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .blog-post-excerpt {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .merchant-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .merchant-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        margin-right: 0;
        margin-bottom: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .merchant-tag-more {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        flex-shrink: 0;
    }
    
    .merchant-avatars {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .merchant-avatars::before {
        content: attr(data-label);
        font-size: 0.6rem;
        padding: 0 0.4rem;
        top: -0.8rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }
    
    .author-info {
        padding: 0.4rem 0;
        margin-top: 0.4rem;
    }
    
    .author-info::before {
        content: attr(data-label);
        font-size: 0.6rem;
        padding: 0 0.4rem;
        top: -0.8rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }
    
    .merchant-avatar {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-width: 2px;
        border-radius: 10px;
        flex-shrink: 0;
    }
    
    .merchant-avatar::after {
        width: 8px;
        height: 8px;
        top: -1px;
        right: -1px;
    }
    
    .merchant-avatar-placeholder {
        font-size: 0.7rem;
    }
    
    .merchant-avatar-more {
        font-size: 0.5rem;
        border-width: 2px;
        border-radius: 8px;
    }
    
    .merchant-avatar img {
        border-radius: 8px;
        aspect-ratio: 1;
    }
    
    .author-avatar {
        width: 24px;
        height: 24px;
    }
    
    .author-avatar::after {
        width: 7px;
        height: 7px;
        top: -1px;
        right: -1px;
        font-size: 0.3rem;
    }
    
    .author-avatar-placeholder {
        width: 24px;
        height: 24px;
    }
    
    .author-avatar-placeholder::after {
        width: 7px;
        height: 7px;
        top: -1px;
        right: -1px;
        font-size: 0.3rem;
    }
    
    .author-avatar {
        width: 26px;
        height: 26px;
    }
    
    .author-avatar::after {
        width: 8px;
        height: 8px;
        top: -2px;
        right: -2px;
        font-size: 0.35rem;
    }
    
    .author-avatar-placeholder {
        width: 26px;
        height: 26px;
    }
    
    .author-avatar-placeholder::after {
        width: 8px;
        height: 8px;
        top: -2px;
        right: -2px;
        font-size: 0.35rem;
    }
}