/**
 * RFJ Home Page - Modern Dark Theme Styles
 *
 * 现代深色风格主页样式
 */
a{
    text-decoration: none;
}
/* ===== Home Banner Slider (16:9, below categories) ===== */
.home-banner-section {
    padding: 2rem 0;
}

.home-banner-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.home-banner-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-xl);
}

.home-banner-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-banner-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.home-banner-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.home-banner-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.home-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-banner-item:hover img {
    transform: scale(1.03);
}

/* Banner Arrows */
.home-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-normal);
}

.home-banner-slider:hover .home-banner-arrow {
    opacity: 1;
}

.home-banner-arrow:hover {
    background: rgba(99, 102, 241, 0.85);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.08);
}

.home-banner-arrow svg {
    width: 26px;
    height: 26px;
}

.home-banner-arrow.prev {
    left: 1.25rem;
}

.home-banner-arrow.next {
    right: 1.25rem;
}

/* Banner Dots */
.home-banner-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
}

.home-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.home-banner-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.home-banner-dot.active {
    width: 26px;
    border-radius: 4px;
    background: var(--primary-color);
}

/* ===== Home Banner Ad Section ===== */
.home-banner-ad {
    padding: 1rem 0;
    background: var(--bg-primary);
}

.home-banner-ad-inner {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.home-banner-scroll-wrapper {
    overflow: hidden;
    max-height: 110px;
}

.home-banner-scroll-track {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-banner-scroll-track .banner-scroll-item {
    overflow: hidden;
}

.home-banner-scroll-track .banner-scroll-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.home-banner-scroll-track .banner-scroll-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.home-banner-scroll-track .banner-scroll-item a:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .home-banner-ad {
        display: none;
    }

    .home-banner-ad-inner {
        border-radius: var(--radius-md);
    }

    .home-banner-scroll-wrapper {
        max-height: 100px;
    }

    .home-banner-scroll-track .adbox ul li a img {
        max-height: 90px;
    }

    @keyframes bannerScrollUp {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-50%);
        }
    }
}

/* ===== Hero Section ===== */
.home-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--bg-primary);
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.hero-gradient-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.hero-gradient-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    top: -100px;
    right: -50px;
    animation-delay: -7s;
}

.hero-gradient-orb.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search */
.hero-search-wrapper {
    position: relative;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

.hero-search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.hero-search-box .search-icon {
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

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

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

.hero-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.hero-search-btn svg {
    width: 18px;
    height: 18px;
}

.hero-search-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.hero-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 100;
}

/* Hero Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.hero-tag-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hero-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.hero-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== Stats Section ===== */
.home-stats {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

/* ===== Home Ads Grid ===== */
.home-ads-section {
    padding: 1.5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.home-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.home-ad-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.home-ad-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.home-ad-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.home-ad-item a {
    display: block;
    line-height: 0;
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

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

/* ===== Home Sections ===== */
.home-section {
    padding: 4rem 0;
}

.home-section-dark {
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    margin: 1rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.section-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.section-more svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.section-more:hover {
    color: var(--primary-hover);
}

.section-more:hover svg {
    transform: translateX(4px);
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--cat-color);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--cat-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    color: var(--cat-color, var(--primary-color));
    flex-shrink: 0;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

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

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

.category-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-normal);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Software Carousel ===== */
.software-carousel {
    position: relative;
}

.software-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0 1rem;
}

.software-carousel-track::-webkit-scrollbar {
    display: none;
}

.software-card {
    flex: 0 0 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    scroll-snap-align: start;
    transition: all var(--transition-normal);
    position: relative;
}

.software-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.software-vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    z-index: 1;
}

.software-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.software-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.software-info {
    padding: 1.25rem;
}

.software-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.software-excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.software-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== Vendors Grid ===== */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.vendor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.vendor-card:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.vendor-card img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.vendor-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== Logo Wall Animation ===== */
.home-vendors-section {
    overflow: hidden;
    padding: 1.5rem 0;
}

.logo-wall-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logo-wall-wrapper::before,
.logo-wall-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.logo-wall-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.logo-wall-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.logo-wall-row {
    overflow: hidden;
    padding: 0.5rem 0;
}

.logo-wall-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
}

.logo-wall-track-left {
    animation: logoScrollLeft 80s linear infinite;
}

.logo-wall-track-right {
    animation: logoScrollRight 80s linear infinite;
}

.logo-wall-track-left:hover,
.logo-wall-track-right:hover {
    animation-play-state: paused;
}

.logo-wall-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 60px;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-wall-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.8);
}

.logo-wall-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: grayscale(1) invert(1) brightness(1.5);
}

.logo-wall-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

@keyframes logoScrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes logoScrollRight {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .logo-wall-item {
        width: 100px;
        height: 48px;
        padding: 0.4rem;
    }

    .logo-wall-wrapper::before,
    .logo-wall-wrapper::after {
        width: 40px;
    }
}

/* ===== Posts Grid ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ===== Rankings Grid ===== */
.home-rankings-section {
    padding: 1.5rem 0;
}

.home-rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
}

.home-ranking-card {
    display: block;
    padding: 1.2rem 1.2rem 0.75rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.home-ranking-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

.home-ranking-card:hover img{
    transform: scale(1.03);
}

.home-ranking-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.home-ranking-placeholder {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.home-ranking-placeholder svg {
    width: 32px;
    height: 32px;
}

/* ===== Cases Grid ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cases-grid .case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.cases-grid .case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.cases-grid .case-card .case-card-image {
    aspect-ratio: 16 / 9;
}

.cases-grid .case-card .case-card-body {
    padding: 1rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.post-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--primary-color);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.post-content {
    padding: 1.25rem;
}

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

.post-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== AI Tools Grid ===== */
.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.ai-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-normal);
    max-width: 100%;
    width: 100%;
}

.ai-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.15);
}

.ai-tool-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ai-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-tool-info {
    text-align: center;
    width: 100%;
    min-width: 0;
}

.ai-tool-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ai-tool-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 9999px;
}

/* ===== CTA Section ===== */
.home-cta {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.cta-btn svg {
    width: 18px;
    height: 18px;
}

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

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cta-btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.cta-btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}



/* ===== Hero Banner Wrapper with Side Panels ===== */
.hero-banner-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 1rem;
    margin: 1.5rem 0 0;
    align-items: stretch;
}

.hero-side-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.hero-side-panel:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

.hero-side-panel-left {
    min-height: 400px;
}

.hero-side-panel-right {
    min-height: 400px;
}

.hero-panel-header {
    padding: 1rem 1rem 0.875rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-panel-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-panel-title svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    stroke: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.hero-panel-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}

.hero-side-panel-left {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.hero-panel-category {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-panel-category:last-child {
    border-bottom: none;
}

.hero-panel-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.hero-panel-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
}

.hero-panel-section-icon svg {
    width: 16px;
    height: 16px;
    stroke: #6366f1;
}

.hero-panel-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.hero-panel-links-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.hero-panel-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-align: center;
    transition: all 0.2s ease;
}

.hero-panel-link-item:hover {
    background: var(--bg-card);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.hero-panel-link-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.hero-panel-link-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

.hero-panel-link-item:hover .hero-panel-link-text{
    color: #fff;
}

.hero-panel-link-item:hover .hero-panel-link-icon svg {
    stroke: #6366f1;
}

.hero-panel-link-text {
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.hero-panel-link-arrow {
    display: none;
}

.hero-panel-link-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.hero-panel-link-highlight:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.4);
}

.hero-panel-link-highlight .hero-panel-link-icon {
    background: rgba(99, 102, 241, 0.1);
}

.hero-panel-link-highlight .hero-panel-link-icon svg {
    stroke: #6366f1;
}

.hero-panel-link-highlight .hero-panel-link-text {
    color: #6366f1;
    font-weight: 600;
}

.hero-enquiry-scroll-wrapper {
    overflow: hidden;
    position: relative;
    height: 380px;
}

.hero-enquiry-scroll-wrapper::before,
.hero-enquiry-scroll-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 2;
    pointer-events: none;
}

.hero-enquiry-scroll-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-card), transparent);
}

.hero-enquiry-scroll-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.hero-enquiry-track {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    animation: enquiryScrollUp 180s linear infinite;
}

.hero-enquiry-track:hover {
    animation-play-state: paused;
}

.hero-enquiry-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

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

.hero-enquiry-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.hero-enquiry-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes enquiryScrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ===== Hero Banner Slider (16:9, below hero-tags) ===== */
.hero-banner-slider {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16 / 9;
}

.hero-slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-banner-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-banner-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-banner-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-banner-item:hover img {
    transform: scale(1.03);
}

/* Hero Banner Arrows */
.hero-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-normal);
}

.hero-banner-slider:hover .hero-banner-arrow {
    opacity: 1;
}

.hero-banner-arrow:hover {
    background: rgba(99, 102, 241, 0.85);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.08);
}

.hero-banner-arrow svg {
    width: 24px;
    height: 24px;
}

.hero-banner-arrow.prev {
    left: 1rem;
}

.hero-banner-arrow.next {
    right: 1rem;
}

/* Hero Banner Dots */
.hero-banner-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
}

.hero-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-banner-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.hero-banner-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-color);
}

/* ===== Banner Responsive ===== */
@media (max-width: 768px) {
    .home-banner-section {
        padding: 1.5rem 0;
    }

    .home-banner-slider,
    .hero-banner-slider {
        border-radius: var(--radius-lg);
        aspect-ratio: 16 / 9;
    }

    .home-banner-arrow,
    .hero-banner-arrow {
        width: 40px;
        height: 40px;
        opacity: 1;
    }

    .home-banner-arrow svg,
    .hero-banner-arrow svg {
        width: 20px;
        height: 20px;
    }

    .home-banner-arrow.prev,
    .hero-banner-arrow.prev {
        left: 0.75rem;
    }

    .home-banner-arrow.next,
    .hero-banner-arrow.next {
        right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .home-banner-slider,
    .hero-banner-slider {
        border-radius: var(--radius-md);
        aspect-ratio: 4 / 3;
    }

    .home-banner-arrow,
    .hero-banner-arrow {
        width: 34px;
        height: 34px;
    }

    .home-banner-arrow.prev,
    .hero-banner-arrow.prev {
        left: 0.5rem;
    }

    .home-banner-arrow.next,
    .hero-banner-arrow.next {
        right: 0.5rem;
    }

    .home-banner-dots {
        padding: 0.375rem 0.75rem;
    }
}

/* ===== Home Main ===== */
.home-main {
    min-height: calc(100vh - 200px);
}

/* ===== Home Footer ===== */
.home-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-links {
    display: flex;
    flex: 1;
    gap: 3rem;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.footer-link-group a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-qr-group {
    flex: 0 0 auto;
}

.footer-qr-codes {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-qr-item img {
    width: 96px;
    height: 96px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    object-fit: contain;
    transition: all 0.2s ease;
}

.footer-qr-item:hover img {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.footer-qr-item span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-bottom a{
    color: var(--text-muted);
    text-decoration: none;
}
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-link-group {
        min-width: 140px;
    }

    .footer-qr-codes {
        justify-content: center;
    }

    .footer-qr-item img {
        width: 64px;
        height: 64px;
    }
}
/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ai-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vendors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-search-btn span {
        display: none;
    }

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

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .vendors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-banner-wrapper {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hero-side-panel,
    .hero-side-panel-left,
    .hero-side-panel-right {
        width: 100%;
        min-height: auto;
    }

    .hero-banner-slider {
        width: 100%;
    }

    .home-rankings-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .home-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .hero-banner-wrapper {
        grid-template-columns: 1fr;
    }

    .home-rankings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}