/*
 * RFJ Home Page - Alibaba Cloud inspired light theme.
 * This file is intentionally standalone for page-home.php.
 *
 * Maintenance map:
 * 1. Tokens / Base / Header / Home modules
 * 2. Shared search dropdowns, cards, carousel, footer
 * 3. Shared modal, form, phone, and software dropdown components
 * 4. Page modules: advisors, resellers, video, events, company, ranking, categories, posts, software list
 * 5. Responsive overrides stay near their related module until this file is split into buildable parts
 */
@import url("/wp-content/themes/bigboom/css/rfj-red-swatches.css?v=1787855429");

:root {
    --rfj-font-sans: -apple-system, BlinkMacSystemFont, "Alibaba PuHuiTi", "AliPuHui", "PingFang SC", "Microsoft YaHei", Arial, Helvetica, sans-serif;
    --rfj-color-primary: var(--rfj-brand-action, var(--rfj-red-action));
    --rfj-color-primary-hover: var(--rfj-brand-action-hover, var(--rfj-red-c0001a));
    --rfj-color-primary-active: var(--rfj-brand-action-active, var(--rfj-red-a80017));
    --rfj-color-primary-light: var(--rfj-brand-red-soft, var(--rfj-red-blush));
    --rfj-color-primary-border: var(--rfj-brand-red-border, var(--rfj-red-f6becb));
    --rfj-color-primary-shadow: var(--rfj-brand-red-shadow, var(--rfj-red-bright-e372a0));
    /* The legacy gradient variables are also used with background-clip: text. */
    --rfj-gradient-primary: linear-gradient(var(--rfj-color-primary), var(--rfj-color-primary));
    --rfj-gradient-primary-hover: linear-gradient(var(--rfj-color-primary-hover), var(--rfj-color-primary-hover));
    --rfj-gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --rfj-color-blue: #1677ff;
    --rfj-color-blue-light: rgba(22, 119, 255, 0.1);
    --rfj-color-blue-border: rgba(22, 119, 255, 0.35);
    /* 统一厂商身份标签：浅蓝描边，不以大色块区分身份。 */
    --rfj-vendor-official-bg: #f5f9ff;
    --rfj-vendor-official-border: #d8eaff;
    --rfj-vendor-official-text: #0064c8;
    --rfj-vendor-verified-bg: #eef6ff;
    --rfj-vendor-verified-border: #cfe2ff;
    --rfj-vendor-verified-text: #1664d9;
    --rfj-color-cyan: #00b7d3;
    --rfj-color-success: #00a870;
    --rfj-color-success-light: rgba(0, 168, 112, 0.1);
    --rfj-color-success-border: rgba(0, 168, 112, 0.35);
    --rfj-color-warning: #ffb000;
    --rfj-color-danger: var(--rfj-red-f53f3f);
    --rfj-color-danger-text: var(--rfj-red-error);
    --rfj-color-danger-focus: var(--rfj-red-f53f3f-07216a);
    --rfj-color-border: #e6eaf0;
    --rfj-color-border-strong: #d6dde8;
    --rfj-color-bg: #ffffff;
    --rfj-color-bg-soft: #f5f7fb;
    --rfj-color-bg-panel: #ffffff;
    --rfj-color-bg-tint: var(--rfj-color-primary-light);
    --rfj-shadow-sm: 0 2px 8px rgba(20, 32, 51, 0.06);
    --rfj-shadow-md: 0 8px 24px rgba(20, 32, 51, 0.08);
    --rfj-shadow-lg: 0 18px 48px rgba(20, 32, 51, 0.12);
    --rfj-radius-xs: 2px;
    --rfj-radius-sm: 4px;
    --rfj-radius-md: 6px;
    --rfj-radius-lg: 8px;
    --rfj-transition: 180ms ease;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --rfj-color-bg-hover: var(--rfj-color-primary-hover);
    --status-ended: rgba(180, 180, 180, 0.15);
    --status-pending: rgba(16, 185, 129, 0.15);
    --status-active: rgba(59, 130, 246, 0.15);
    --status-other: var(--rfj-red-danger-953eaf);
    --status-other-text: var(--rfj-red-f87171);
    --rfj-shell-max: 1400px;
    --rfj-shell-gutter: clamp(16px, 2vw, 24px);
    --rfj-content-max: 1120px;
    --rfj-reading-max: 800px;
}

/* ===== Spacing utilities (Bootstrap-compatible, global) ===== */
/* 档位：0=0, 1=4px, 2=8px, 3=16px, 4=24px, 5=40px */

.m-0 { margin: 0 !important; }
.m-1 { margin: 4px !important; }
.m-2 { margin: 8px !important; }
.m-3 { margin: 16px !important; }
.m-4 { margin: 24px !important; }
.m-5 { margin: 40px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 40px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 40px !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 4px !important; }
.ml-2 { margin-left: 8px !important; }
.ml-3 { margin-left: 16px !important; }
.ml-4 { margin-left: 24px !important; }
.ml-5 { margin-left: 40px !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 4px !important; }
.mr-2 { margin-right: 8px !important; }
.mr-3 { margin-right: 16px !important; }
.mr-4 { margin-right: 24px !important; }
.mr-5 { margin-right: 40px !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 4px !important; margin-right: 4px !important; }
.mx-2 { margin-left: 8px !important; margin-right: 8px !important; }
.mx-3 { margin-left: 16px !important; margin-right: 16px !important; }
.mx-4 { margin-left: 24px !important; margin-right: 24px !important; }
.mx-5 { margin-left: 40px !important; margin-right: 40px !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 4px !important; margin-bottom: 4px !important; }
.my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.my-3 { margin-top: 16px !important; margin-bottom: 16px !important; }
.my-4 { margin-top: 24px !important; margin-bottom: 24px !important; }
.my-5 { margin-top: 40px !important; margin-bottom: 40px !important; }

.m-auto { margin: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.p-5 { padding: 40px !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 16px !important; }
.pt-4 { padding-top: 24px !important; }
.pt-5 { padding-top: 40px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 16px !important; }
.pb-4 { padding-bottom: 24px !important; }
.pb-5 { padding-bottom: 40px !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 4px !important; }
.pl-2 { padding-left: 8px !important; }
.pl-3 { padding-left: 16px !important; }
.pl-4 { padding-left: 24px !important; }
.pl-5 { padding-left: 40px !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 4px !important; }
.pr-2 { padding-right: 8px !important; }
.pr-3 { padding-right: 16px !important; }
.pr-4 { padding-right: 24px !important; }
.pr-5 { padding-right: 40px !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 16px !important; padding-right: 16px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.px-5 { padding-left: 40px !important; padding-right: 40px !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-5 { padding-top: 40px !important; padding-bottom: 40px !important; }

* {
    box-sizing: border-box;
}

/* WordPress editor image alignment */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 1200px;
    background:
            linear-gradient(180deg, #f7faff 0, #ffffff 360px),
            var(--rfj-color-bg);
    color: var(--rfj-text-primary);
    font-family: var(--rfj-font-sans);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: var(--rfj-font-sans);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--rfj-transition), border-color var(--rfj-transition), background var(--rfj-transition), box-shadow var(--rfj-transition), transform var(--rfj-transition);
}

img {
    height: auto;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    appearance: none;
}

.badge {
    align-items: center;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: 999px;
    color: var(--rfj-text-secondary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    max-width: 100%;
    min-width: 10px;
    overflow: hidden;
    padding: 3px 7px;
    text-align: center;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-primary {
    background: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary);
    color: #fff;
}

.badge-secondary,
.badge-muted {
    background: #6b7280;
    border-color: #6b7280;
    color: #fff;
}

.badge-success {
    background: var(--rfj-color-success);
    border-color: var(--rfj-color-success);
    color: #fff;
}

.badge-info {
    background: #f2f7ff;
    border-color: #d7e8ff;
    color: #1266c3;
}

.badge-warning {
    background: var(--rfj-color-warning);
    border-color: var(--rfj-color-warning);
    color: #1f2d3d;
}

.badge-danger {
    background: var(--rfj-color-danger);
    border-color: var(--rfj-color-danger);
    color: #fff;
}

.badge-light {
    background: #fff;
    border-color: var(--rfj-color-border);
    color: var(--rfj-text-secondary);
}

.badge-dark {
    background: #343a40;
    border-color: #343a40;
    color: #fff;
}

.badge-default {
    background: #fff;
    border-color: var(--rfj-color-border-strong);
    color: var(--rfj-text-secondary);
}

a.badge:hover,
a.badge:focus {
    color: #fff;
    text-decoration: none;
}

a.badge-info:hover,
a.badge-info:focus {
    color: #1266c3;
}

a.badge-light:hover,
a.badge-light:focus,
a.badge-default:hover,
a.badge-default:focus {
    color: var(--rfj-color-primary);
}

.container,
.rfj-shell {
    width: 100%;
    max-width: var(--rfj-shell-max);
    margin-inline: auto;
    padding-inline: var(--rfj-shell-gutter);
}

/* .container remains a compatibility alias for existing light templates. */
.rfj-content-frame {
    width: 100%;
    max-width: var(--rfj-content-max);
    margin-inline: auto;
}

.rfj-reading-column {
    width: 100%;
    max-width: var(--rfj-reading-max);
    margin-inline: auto;
}

body.rfj-light-page {
    min-width: 0;
}

@media (max-width: 767px) {
    .rfj-mobile-bleed {
        margin-inline: calc(var(--rfj-shell-gutter) * -1);
    }
}

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

@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

.header-simple {
    position: sticky;
    top: 0;
    z-index: var(--rfj-z-global-header, 200);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--rfj-color-border);
    box-shadow: 0 2px 14px rgba(20, 32, 51, 0.05);
    backdrop-filter: saturate(140%) blur(12px);
}

.header-simple--dark {
    background:
        linear-gradient(90deg, rgba(20, 42, 76, .42), transparent 34%, rgba(67, 45, 112, .22)),
        rgba(5, 10, 22, .96);
    border-bottom-color: rgba(128, 166, 236, .16);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
}

.header-simple--dark .logo {
    color: #f2f7ff;
}

.header-simple--dark .logo-icon {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 0 0 1px rgba(116, 225, 255, .2), 0 7px 24px rgba(52, 231, 255, .12);
}

.header-simple--dark .header-nav a {
    color: #9caec8;
}

.header-simple--dark .header-nav a:hover,
.header-simple--dark .header-nav a.active {
    color: #5deeff;
    border-bottom-color: #5deeff;
}

.header-simple--dark .header-search-wrapper::before {
    filter: brightness(0) invert(1);
    opacity: .62;
}

.header-simple--dark .header-search-input {
    color: #edf5ff;
    border-color: rgba(137, 171, 228, .2);
    background: rgba(255, 255, 255, .055);
}

.header-simple--dark .header-search-input::placeholder {
    color: #7f91aa;
}

.header-simple--dark .header-search-input:focus {
    border-color: rgba(83, 232, 255, .62);
    background: rgba(12, 24, 44, .98);
    box-shadow: 0 0 0 3px rgba(52, 231, 255, .11), 0 10px 30px rgba(0, 0, 0, .18);
}

.header-simple--dark .header-link {
    color: #b8c8dd;
    border-color: rgba(137, 171, 228, .18);
    background: rgba(255, 255, 255, .04);
}

.header-simple--dark .header-link:hover {
    color: #5deeff;
    border-color: rgba(83, 232, 255, .42);
    background: rgba(52, 231, 255, .08);
}

.header-simple--dark .hamburger-line {
    background: #dce8f8;
}

.header-simple--dark .header-mobile-menu {
    border-top-color: rgba(137, 171, 228, .14);
    background: #081120;
}

.header-simple--dark .header-mobile-menu-item {
    color: #9caec8;
}

.header-simple--dark .header-mobile-menu-item:active {
    background: rgba(52, 231, 255, .08);
}

.header-simple--dark .header-mobile-menu-item.is-active {
    color: #5deeff;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    color: var(--rfj-text-primary);
}

.logo-icon,
.footer-logo img {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--rfj-radius-sm);
    box-shadow: 0 4px 12px var(--rfj-color-primary-shadow);
    overflow: hidden;
}

.logo-icon img,
.footer-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.header-nav-group {
    position: relative;
    flex: 0 0 auto;
}

.header-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0 9px;
    border-bottom: 2px solid transparent;
    color: var(--rfj-text-secondary);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.header-nav a svg {
    display: inline-block;
    margin-right: 4px;
    vertical-align: -1px;
}

.header-nav a:hover {
    color: var(--rfj-text-primary);
}

.header-nav a.active {
    color: var(--rfj-color-primary);
    border-bottom-color: var(--rfj-brand-red, var(--rfj-red-bright));
}

.header-nav .header-nav-group-trigger {
    gap: 3px;
}

.header-nav-caret {
    font-size: 12px;
    line-height: 1;
    transform: translateY(-1px);
}

.header-nav-dropdown {
    position: absolute;
    z-index: 240;
    top: calc(100% - 4px);
    right: 0;
    display: grid;
    min-width: 132px;
    padding: 7px;
    border: 1px solid var(--rfj-color-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(20, 32, 51, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.header-nav-group:hover .header-nav-dropdown,
.header-nav-group:focus-within .header-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav .header-nav-dropdown a {
    min-height: 36px;
    justify-content: flex-start;
    padding: 7px 11px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
}

.header-nav .header-nav-dropdown a:hover {
    border: 0;
    background: var(--rfj-color-bg-soft);
}

.header-simple--dark .header-nav-dropdown {
    border-color: rgba(137, 171, 228, .2);
    background: #101b2d;
}

.header-simple--dark .header-nav .header-nav-dropdown a:hover {
    background: rgba(52, 231, 255, .08);
}

.header-search-wrapper {
    position: relative;
    flex: 0 0 auto;
}

.header-search-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395a1b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    pointer-events: none;
    transform: translateY(-50%);
}

.header-search-input,
.hero-search-input {
    width: 100%;
    color: var(--rfj-text-primary);
    background: transparent;
    border: 0;
    outline: 0;
}

.header-search-input {
    width: 200px;
    height: 36px;
    padding: 0 14px 0 36px;
    border: 1px solid var(--rfj-color-border);
    border-radius: 18px;
    background: #f8fafc;
    font-size: 16px;
    transition: width var(--rfj-transition), border-color var(--rfj-transition), box-shadow var(--rfj-transition), background var(--rfj-transition);
}

.header-search-input:focus {
    width: 280px;
    border-color: var(--rfj-color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--rfj-color-primary-shadow);
}

.header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.header-link {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    color: var(--rfj-text-secondary);
    background: #fff;
}

.header-link:hover {
    color: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary-border);
    background: var(--rfj-color-primary-light);
}

.header-link svg {
    width: 18px;
    height: 18px;
}

.header-ai-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid #e7e3f6;
    border-radius: 10px;
    background: #f6f4fc;
    color: #65588a;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.header-ai-tool svg {
    flex: 0 0 auto;
}

.rfj-nav-avatar {
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    vertical-align: middle;
}

.header-mobile-menu-item {
    gap: 6px;
}

.header-ai-tool:hover,
.header-ai-tool.is-active {
    border-color: #d4c9ef;
    background: #eee9f9;
    color: #57457f;
    text-decoration: none;
}

.header-ai-tool:focus-visible {
    outline: 2px solid #8b77b9;
    outline-offset: 3px;
}

.header-simple--dark .header-ai-tool {
    border-color: rgba(137, 171, 228, .2);
    background: rgba(137, 171, 228, .08);
    color: #b8c8dd;
}

.header-simple--dark .header-ai-tool:hover,
.header-simple--dark .header-ai-tool.is-active {
    border-color: rgba(83, 232, 255, .4);
    background: rgba(52, 231, 255, .1);
    color: #5deeff;
}

.header-user-menu {
    position: relative;
}

.header-simple:has(.is-user-menu-open) {
    z-index: var(--rfj-z-dropdown, 1000);
}

.header-user-trigger {
    display: inline-flex;
    justify-content: center;
    width: auto;
    min-width: 34px;
    padding: 0 4px;
    gap: 8px;
    border: 0;
    background: transparent;
}

.header-user-trigger:hover {
    border-color: transparent;
    background: transparent;
}

.header-user-trigger:focus-visible {
    outline: 2px solid #8b77b9;
    outline-offset: 4px;
    border-radius: 8px;
}

.header-user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: var(--rfj-z-dropdown, 1000);
    min-width: 190px;
    max-width: min(280px, calc(100vw - 24px));
    max-height: min(420px, calc(100vh - 100px));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(16, 24, 40, .12);
    text-align: left;
}

.header-user-dropdown[hidden] { display: none; }

.header-user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #343942;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.header-user-dropdown-link:hover,
.header-user-dropdown-link:focus-visible {
    color: #20252d;
    background: #f3f4f6;
    outline: none;
    text-decoration: none;
}

.header-user-dropdown-icon-wrap { display: inline-flex; flex: 0 0 18px; }
.header-user-dropdown-icon { width: 18px; height: 18px; }
.header-user-dropdown-logout {
    margin-top: 6px;
    border-top: 1px solid #eceef1;
    border-radius: 0 0 7px 7px;
    padding-top: 12px;
    color: #686e78;
}

.header-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    overflow: hidden;
    border-radius: 50%;
    flex: 0 0 auto;
}

.header-user-icon svg {
    width: 22px;
    height: 22px;
}

.header-user-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-name {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1;
}

.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--rfj-text-primary);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.header-hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-mobile-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    background: #fff;
    border-top: 1px solid var(--rfj-color-border);
    transition: max-height 0.3s ease;
}

.header-mobile-menu.is-open {
    max-height: 500px;
}

.header-mobile-menu-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 8px 0;
}

.header-mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rfj-text-secondary);
    text-decoration: none;
    border-radius: var(--rfj-radius-sm);
    transition: color var(--rfj-transition), background var(--rfj-transition);
    -webkit-tap-highlight-color: transparent;
}

.header-mobile-menu-item:active {
    background: var(--rfj-color-bg-soft);
}

.header-mobile-menu-item.is-active {
    color: var(--rfj-color-primary);
    font-weight: 600;
}

.header-mobile-menu-group {
    display: contents;
}

.header-mobile-menu-label {
    display: none;
}

.header-mobile-menu-children {
    display: contents;
}
.home-main {
    min-height: calc(100vh - 220px);
    overflow: hidden;
}

.home-banner-ad {
    padding: 10px 0 10px;
    background: transparent;
}

.home-banner-ad-inner {
    height: 110px;
    overflow: hidden;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: var(--rfj-shadow-sm);
}

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

.home-banner-scroll-track {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-banner-scroll-track > .rfj-ad-position,
.home-banner-scroll-track > .rfj-ad-position > .rfj-ad-item {
	width: 100%;
	height: 110px;
}

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

.home-banner-scroll-track > .rfj-ad-position img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.banner-scroll-item {
    height: 110px;
    flex: 0 0 110px;
    overflow: hidden;
}

.banner-scroll-item a,
.banner-scroll-item img {
    width: 100%;
    height: 100%;
}

.banner-scroll-item img,
.home-banner-image {
    object-fit: cover;
    object-position: center;
}

.home-hero {
    position: relative;
    padding: 42px 0 34px;
    background: linear-gradient(180deg, #ffffff 0, #f7faff 100%);
}

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

.hero-gradient-orb {
    position: absolute;
    opacity: 0.42;
    filter: blur(10px);
}

.hero-gradient-orb.orb-1 {
    top: 38px;
    left: calc(50% - 620px);
    width: 420px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(22, 119, 255, .10), transparent 70%);
}

.hero-gradient-orb.orb-2 {
    top: 70px;
    right: calc(50% - 560px);
    width: 380px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(22, 119, 255, 0.14), transparent 72%);
}

.hero-gradient-orb.orb-3 {
    right: calc(50% - 120px);
    bottom: 0;
    width: 300px;
    height: 120px;
    background: radial-gradient(circle at center, rgba(0, 183, 211, 0.12), transparent 72%);
}

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

.hero-title {
    margin: 0 0 12px;
    color: var(--rfj-text-primary);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    margin-left: 8px;
    color: var(--rfj-color-primary);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    margin: 0 0 24px;
    color: var(--rfj-text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.hero-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    max-width: 800px;
    margin: 0 auto 14px;
}

.hero-search-main {
    position: relative;
    flex: 1 1 680px;
    min-width: 0;
    max-width: 680px;
}

.hero-search-ai-entry {
    flex: 0 0 auto;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    box-sizing: border-box;
}

.hero-search-box {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 5px;
    border: 1px solid #d8e0ea;
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 32, 51, 0.1);
}

.hero-search-box:focus-within {
    border-color: var(--rfj-color-primary);
    box-shadow: 0 12px 34px rgba(20, 32, 51, 0.1), 0 0 0 4px var(--rfj-color-primary-shadow);
}

.hero-search-input {
    flex: 1 1 auto;
    height: 46px;
    padding: 0 18px;
    font-size: 16px;
}

.hero-search-input::placeholder,
.header-search-input::placeholder {
    color: var(--rfj-text-tertiary);
}

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    min-width: 110px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--rfj-radius-sm);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-search-btn:hover {
    transform: translateY(-2px);
}

.hero-search-btn:active {
    transform: translateY(-1px) scale(0.98);
}

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

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #e8edf4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--rfj-text-tertiary);
    font-size: 13px;
}

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

.hero-banner-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    align-items: stretch;
    gap: 16px;
    margin-top: 26px;
}

.hero-banner-wrapper > * {
    min-width: 0;
}

.hero-side-panel,
.hero-banner-slider,
.stat-card,
.home-ad-item,
.category-card,
.software-card,
.home-ranking-card,
.post-card,
.ai-tool-card,
.case-card,
.advisor-card,
.logo-wall-item {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    box-shadow: var(--rfj-shadow-sm);
}

.hero-side-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

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

.hero-side-panel:hover,
.hero-banner-slider:hover,
.stat-card:hover,
.home-ad-item:hover,
.category-card:hover,
.software-card:hover,
.home-ranking-card:hover,
.post-card:hover,
.ai-tool-card:hover,
.case-card:hover,
.advisor-card:hover {
    border-color: var(--rfj-color-primary-border);
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-2px);
}

.hero-banner-wrapper .hero-side-panel-right:hover {
    border-color: var(--rfj-color-blue-border);
}

.hero-panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--rfj-color-border);
    background: linear-gradient(90deg, var(--rfj-color-primary-light), #f7f9fc);
    flex-shrink: 0;
}

.hero-panel-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: var(--rfj-text-primary);
    font-size: 15px;
    font-weight: 700;
}

.hero-panel-title svg {
    width: 18px;
    height: 18px;
    color: var(--rfj-color-primary);
}

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

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

.hero-panel-links-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    flex: 1 1 0;
}

.hero-panel-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid #eef2f7;
    border-radius: var(--rfj-radius-sm);
    background: #fbfcff;
    color: var(--rfj-text-secondary);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: all var(--rfj-transition);
}

.hero-panel-link-item:hover {
    color: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary-border);
    background: var(--rfj-color-primary-light);
}

.hero-panel-link-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-text-secondary);
    box-shadow: inset 0 0 0 1px #e8edf4;
}

.hero-panel-link-icon svg {
    width: 18px;
    height: 18px;
}

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

.hero-enquiry-scroll-wrapper {
    position: relative;
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

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

.hero-enquiry-scroll-wrapper::before {
    top: 0;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0));
}

.hero-enquiry-scroll-wrapper::after {
    bottom: 0;
    background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0));
}

.hero-enquiry-track {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    animation: enquiryScrollUp 180s linear infinite;
}

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

.hero-enquiry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: var(--rfj-radius-sm);
    background: #f7f9fc;
    color: var(--rfj-text-secondary);
    font-size: 12px;
}

.hero-enquiry-item:hover {
    color: var(--rfj-color-blue);
    border-color: #d6e8ff;
    background: #f2f8ff;
}

.hero-enquiry-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rfj-color-blue);
    box-shadow: 0 0 0 4px var(--rfj-color-blue-light);
}

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

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

.hero-banner-slider {
    position: relative;
    /* Give WebKit a definite inline size before resolving aspect-ratio.
       Without this, Safari may size the item from the side-panel row height
       and leave unused space at the right of the flexible grid track. */
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    contain: paint;
}

.hero-slider-inner,
.hero-banner-item,
.hero-banner-item img {
    width: 100%;
    height: 100%;
}

.hero-slider-inner {
    position: relative;
    overflow: hidden;
}

.hero-banner-slider > .rfj-ad-position {
    width: 100%;
    height: 100%;
}

.hero-banner-item {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 360ms ease, visibility 360ms ease;
}

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

.hero-banner-item img {
    display: block;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 360ms ease;
}

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

.hero-banner-arrow,
.home-slider-control,
.carousel-btn,
.advisors-featured__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    background: rgba(255, 255, 255, 0.94);
    color: var(--rfj-text-secondary);
    cursor: pointer;
    box-shadow: var(--rfj-shadow-sm);
}

.hero-banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 38px;
    height: 38px;
    opacity: 0;
    transform: translateY(-50%);
}

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

.hero-banner-arrow:hover,
.carousel-btn:hover,
.advisors-featured__arrow:hover {
    color: #fff;
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary);
}

.hero-banner-arrow.prev {
    left: 14px;
}

.hero-banner-arrow.next {
    right: 14px;
}

.hero-banner-arrow svg,
.carousel-btn svg,
.advisors-featured__arrow svg {
    width: 18px;
    height: 18px;
}

.hero-banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.35);
    transform: translateX(-50%);
    backdrop-filter: blur(6px);
}

.hero-banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.hero-banner-dot.active {
    width: 20px;
    background: var(--rfj-color-primary);
}

.home-stats,
.home-ads-section,
.home-section,
.advisors-featured,
.home-cta {
    position: relative;
}

.home-stats {
    padding: 30px 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    overflow: hidden;
}

.stat-card a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas: "icon value" "icon label";
    column-gap: 14px;
    align-items: center;
    min-height: 104px;
    padding: 20px;
}

.stat-icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--rfj-radius-sm);
    color: var(--rfj-color-primary);
    background: var(--rfj-color-primary-light);
}

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

.stat-value {
    grid-area: value;
    color: var(--rfj-text-primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

.stat-label {
    grid-area: label;
    color: var(--rfj-text-tertiary);
    font-size: 14px;
}

.home-ads-section {
    padding: 20px 0;
    background: var(--rfj-color-bg-soft);
}

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

.home-ad-item {
    overflow: hidden;
    background: #fff;
}

.home-ad-item a,
.home-ad-image {
    display: block;
    width: 100%;
}

.home-ad-item .rfj-ad-position,
.home-ad-item .rfj-ad-item {
	width: 100%;
}

.home-ad-image {
    height: auto;
}

.home-section {
    padding: 48px 0;
    background: #fff;
}

.home-section-dark {
    background:
            linear-gradient(180deg, #f7faff 0, #fff 100%);
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
}

.home-rankings-section,
.home-vendors-section {
    padding: 38px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rfj-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}
.section-count {
    padding: 0.25rem 0.75rem;
    background: var(--rfj-color-bg-soft);
    border-radius: var(--rfj-radius-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.section-title-group .section-title,
.advisors-featured__title,
.cta-title {
    margin: 0;
    color: var(--rfj-text-primary);
    font-weight: 700;
    line-height: 1.25;
}

.section-title-group .section-title {
    position: relative;
    padding-left: 12px;
    font-size: 26px;
}

.section-title-group .section-title::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--rfj-color-primary);
}

.section-title-group .section-subtitle,
.advisors-featured__subtitle,
.cta-description {
    color: var(--rfj-text-tertiary);
    font-size: 14px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rfj-text-tertiary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.section-more:hover,
.section-more:focus-visible {
    color: var(--rfj-text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-main .section-more {
    color: var(--rfj-text-tertiary);
}

.home-main .section-more:hover {
    color: var(--rfj-text-secondary);
}

.section-more svg {
    width: 16px;
    height: 16px;
}


.categories-grid,
.home-rankings-grid,
.cases-grid,
.posts-grid,
.ai-tools-grid {
    display: grid;
    gap: 16px;
}

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

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


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

.category-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-arrow {
    color: #b3bdca;
}

.category-arrow svg {
    width: 18px;
    height: 18px;
}

.category-card:hover .category-arrow {
    color: var(--rfj-color-primary);
}

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

.home-ranking-card {
    display: grid;
    place-items: center;
    min-height: 96px;
    padding: 30px;
}

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

.home-ranking-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    transition: var(--rfj-transition);
}

.home-ranking-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 70px;
    color: var(--rfj-text-tertiary);
    background: #f7f9fc;
}

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

.rfj-ai-ranking-entry {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid var(--rfj-color-border);
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 12px 30px rgba(31, 41, 55, .05);
    text-decoration: none;
    transition: border-color var(--rfj-transition), box-shadow var(--rfj-transition), transform var(--rfj-transition);
}

.rfj-ai-ranking-entry:hover,
.rfj-ai-ranking-entry:focus-visible {
    border-color: var(--rfj-color-border-strong);
    color: #1f2937;
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-1px);
}

.rfj-ai-ranking-entry__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #eaf3f2;
    color: #147d75;
}

.rfj-ai-ranking-entry__icon .rfj-icon {
    width: 23px;
    height: 23px;
}

.rfj-ai-ranking-entry strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.rfj-ai-ranking-entry__arrow {
    display: grid;
    place-items: center;
    color: var(--rfj-text-secondary);
}

.rfj-ai-ranking-entry__arrow .rfj-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.25;
}

@media (max-width: 680px) {
    .rfj-ai-ranking-entry {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 62px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .rfj-ai-ranking-entry__icon {
        width: 40px;
        height: 40px;
        border-radius: 9px;
    }

    .rfj-ai-ranking-entry__arrow .rfj-icon {
        width: 22px;
        height: 22px;
    }
}

.software-carousel {
    position: relative;
}

.software-carousel-track {
    display: flex;
    gap: 16px;
    padding: 2px 2px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

.software-card {
    position: relative;
    flex: 0 0 278px;
    overflow: hidden;
    scroll-snap-align: start;
}

.software-vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffb000, var(--rfj-color-primary));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.software-logo {
    display: grid;
    place-items: center;
    height: 118px;
    padding: 20px;
    border-bottom: 1px solid var(--rfj-color-border);
    background: #fbfcff;
}

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

.software-info {
    padding: 18px;
}

.software-title {
    margin: 0 0 8px;
    color: var(--rfj-text-primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.software-excerpt {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--rfj-text-secondary);
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.software-category,
.ai-tool-category,
.post-category {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--rfj-color-blue-light);
    color: var(--rfj-color-blue);
    font-size: 12px;
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.carousel-btn {
    width: 36px;
    height: 36px;
}

.home-latest-updates-section {
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
}

.home-latest-header {
    gap: 20px;
}

.home-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-latest-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-bg-panel);
    box-shadow: var(--rfj-shadow-sm);
}

.home-latest-panel:hover {
    border-color: var(--rfj-color-primary-border);
    box-shadow: var(--rfj-shadow-md);
}

.home-latest-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-latest-panel-head h3 {
    min-width: 0;
    margin: 0;
    color: var(--rfj-text-primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.home-latest-panel-head a {
    flex: 0 0 auto;
    color: var(--rfj-text-tertiary);
    font-size: 13px;
    font-weight: 600;
}

.home-latest-panel-head a:hover {
    color: var(--rfj-text-secondary);
}

.home-latest-list {
    display: grid;
    gap: 10px;
}

.home-latest-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 8px;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
}

.home-latest-item:hover {
    background: var(--rfj-color-primary-light);
}

.home-latest-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    background: #fff;
}

.home-latest-logo img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
}

.home-latest-logo .rfj-icon {
    width: 24px;
    height: 24px;
    color: var(--rfj-color-primary);
}

.home-latest-item-customer_case .home-latest-logo .rfj-icon {
    color: var(--rfj-text-tertiary);
}

.home-latest-logo--avatar {
    border-radius: 50%;
}

.home-latest-logo--avatar img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.home-latest-logo span {
    color: var(--rfj-color-primary);
    font-weight: 700;
}

.home-latest-copy {
    min-width: 0;
}

.home-latest-copy strong,
.home-latest-copy em,
.home-latest-copy span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-latest-copy strong {
    color: var(--rfj-text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
}

.home-latest-copy em {
    color: var(--rfj-text-secondary);
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
    white-space: nowrap;
}

.home-latest-copy span {
    color: var(--rfj-text-tertiary);
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
}

.home-vendors-section {
    overflow: hidden;
    background: #fff;
}

.logo-wall-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

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

.logo-wall-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.logo-wall-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.logo-wall-row {
    overflow: hidden;
    padding: 2px 0;
}

.logo-wall-track {
    display: flex;
    gap: 14px;
    width: max-content;
}

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

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

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

.logo-wall-item {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 124px;
    height: 56px;
    padding: 10px;
    background: #fff;
}

.logo-wall-item:hover {
    border-color: #d7e9ff;
    box-shadow: var(--rfj-shadow-md);
}

.logo-wall-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: opacity var(--rfj-transition), transform var(--rfj-transition);
}

.logo-wall-item:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.02);
}

.home-vendors-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.home-vendors-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--rfj-color-primary);
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-color-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-vendors-join-btn:hover {
    background: var(--rfj-color-primary);
    color: #fff;
}

.home-vendors-join-btn svg {
    width: 16px;
    height: 16px;
}

.home-reseller-manufacturers-section {
    padding: 38px 0;
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
    background: linear-gradient(180deg, #f7faff 0, #fff 100%);
}

.home-reseller-manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.home-reseller-manufacturers-grid .rfzj_simple_card {
    min-width: 0;
}

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

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

.cases-grid,
.posts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-card {
    overflow: hidden;
}

.case-card-link,
.post-card {
    display: block;
    height: 100%;
}

.case-card-image,
.post-image {
    position: relative;
    overflow: hidden;
    background: #eef3f9;
}

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

.case-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.case-card:hover .case-card-thumb,
.post-card:hover .post-image img {
    transform: scale(1.04);
}

.case-card-body,
.post-content {
    padding: 16px;
}

.case-card-title,
.post-title {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--rfj-text-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.case-card-info {
    display: grid;
    gap: 8px;
}

.case-card-info-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    color: var(--rfj-text-secondary);
    font-size: 12px;
    align-items: baseline;
}

.case-card-info-label {
    color: var(--rfj-text-tertiary);
    white-space: nowrap;
}

.case-card-info-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-card-meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--rfj-color-border);
}

.case-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rfj-text-tertiary);
    font-size: 12px;
}

.case-card-date svg {
    width: 14px;
    height: 14px;
}

.post-image {
    height: 170px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(24, 31, 42, .88);
    color: #fff;
}

.post-excerpt {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--rfj-text-secondary);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-meta {
    color: var(--rfj-text-tertiary);
    font-size: 12px;
}

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

.ai-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 20px 12px;
}

.ai-tool-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    background: #fbfcff;
}

.ai-tool-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

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

.ai-tool-name {
    margin: 0 0 8px;
    color: var(--rfj-text-primary);
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-tool-category {
    max-width: 100%;
    background: #f2f8ff;
    color: var(--rfj-color-blue);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advisors-featured {
    padding: 46px 0;
    background: linear-gradient(180deg, #fff 0, #f7faff 100%);
}

.advisors-featured__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto 24px;
    padding: 0 1.5rem;
}

.advisors-featured__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 4px solid var(--rfj-color-primary);
    font-size: 26px;
}

.advisors-featured__title svg {
    color: var(--rfj-color-primary);
}

.advisors-featured__subtitle {
    margin: 6px 0 0 16px;
}

.advisors-featured__scroll-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.advisors-featured__viewport {
    overflow: hidden;
    padding: 2px;
}

.advisors-featured__track {
    display: flex;
    gap: 16px;
}

.advisors-featured__item {
    flex: 0 0 260px;
}

.advisors-featured__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
}

.advisors-featured__arrow--left {
    left: -18px;
}

.advisors-featured__arrow--right {
    right: -18px;
}

.advisor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 282px;
    padding: 22px 16px 18px;
    text-align: center;
}

.advisor-card__avatar {
    display: block;
    margin-bottom: 12px;
}

.advisor-card__avatar-img,
.advisor-card__avatar img {
    width: 96px;
    height: 96px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(20, 32, 51, 0.12);
}

.advisor-card__content {
    width: 100%;
    min-width: 0;
}

.advisor-card__name {
    display: block;
    margin-bottom: 4px;
    color: var(--rfj-text-primary);
    font-size: 17px;
    font-weight: 700;
}

.advisor-card__name:hover,
.advisor-card__company-link:hover {
    color: var(--rfj-color-primary);
}

.advisor-card__role,
.advisor-card__company,
.advisor-card__company-link {
    color: var(--rfj-text-tertiary);
    font-size: 13px;
}

.advisor-card__company {
    min-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advisor-card__actions {
    width: 100%;
    margin-top: 14px;
}

.btn-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.btn-outline-success:hover {
    color: #fff;
    border-color: var(--rfj-color-blue);
    background: var(--rfj-color-blue);
}

.home-cta {
    padding: 60px 0;
    background: var(--rfj-color-bg-soft);
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 10px;
    font-size: 30px;
}

.cta-description {
    margin: 0 0 24px;
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    height: 42px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--rfj-radius-sm);
    font-size: 15px;
    font-weight: 700;
}

.cta-btn-primary {
    color: #fff;
    background: var(--rfj-color-primary);
}

.cta-btn-primary:hover {
    color: #fff;
    background: var(--rfj-color-primary-hover);
    box-shadow: var(--rfj-shadow-sm);
}

.cta-btn-secondary {
    color: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary-border);
    background: #fff;
}

.cta-btn-secondary:hover {
    color: #fff;
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary);
}

.cta-btn svg,
.cta-icon-img {
    width: 20px;
    height: 20px;
}

.home-footer {
    padding: 42px 0 24px;
    background: #111827;
    color: #d1d5db;
}

.footer-content {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #fff;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
}

.footer-tagline {
    margin: 0 0 6px;
    color: var(--rfj-text-tertiary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-group h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.footer-link-group a {
    color: #aeb7c5;
    font-size: 13px;
}

.footer-link-group a:hover {
    color: #fff;
}

.footer-qr-codes {
    display: flex;
    gap: 10px;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #aeb7c5;
    font-size: 12px;
}

.footer-qr-item img {
    width: 72px;
    height: 72px;
    padding: 4px;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    object-fit: contain;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8d97a8;
    font-size: 12px;
    text-align: center;
}

.footer-bottom p {
    margin: 0 0 8px;
}

.footer-bottom a {
    color: #aeb7c5;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom img {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 3px;
    vertical-align: -3px;
}

/* ==========================================
   Shared Search Dropdown Component
   ========================================== */

/* -- Dropdown Shell -- */
.rfj-search-dropdown {
    position: absolute;
    z-index: var(--rfj-z-dropdown, 1000);
    width: 100%;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--rfj-color-border-strong);
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: var(--rfj-shadow-lg);
    color: var(--rfj-text-primary);
    font-size: 14px;
    text-align: left;
}

/* -- Header and Hero Position Variants -- */
.header-search-wrapper .rfj-search-dropdown,
.header-search-dropdown.rfj-search-dropdown {
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
}

.hero-search-wrapper .rfj-search-dropdown,
.hero-search-dropdown.rfj-search-dropdown {
    top: calc(100% + 8px);
    right: 0;
    left: 0;
}

.rfj-sd-list,
.rfj-sd-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* -- Result Sections -- */
.rfj-sd-section {
    border-bottom: 1px solid var(--rfj-color-border);
}

.rfj-sd-section:last-child {
    border-bottom: 0;
}

.rfj-sd-section-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rfj-color-border);
    background: #f7f9fc;
    color: var(--rfj-color-primary);
    font-size: 13px;
    font-weight: 700;
}

.rfj-sd-section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rfj-sd-items {
    list-style: none;
}

/* -- Result Items -- */
.rfj-sd-item {
    border-bottom: 1px solid #f0f3f7;
}

.rfj-sd-item:last-child {
    border-bottom: 0;
}

.rfj-sd-item-link {
    display: block;
    padding: 10px 16px;
    overflow: hidden;
    color: var(--rfj-text-secondary);
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.rfj-sd-item-link:hover {
    color: var(--rfj-color-primary);
    background: #fff7f0;
}

/* -- Footer Action -- */
.rfj-sd-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--rfj-color-border);
    background: #fbfcff;
}

.rfj-sd-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border-radius: var(--rfj-radius-sm);
    color: var(--rfj-text-tertiary);
    font-weight: 700;
    text-decoration: none;
}

.rfj-sd-more-btn:hover,
.rfj-sd-more-btn:focus-visible {
    background: #f1f5f9;
    color: var(--rfj-text-secondary);
}

/* -- Empty, Loading, and Error States -- */
.rfj-sd-loading,
.rfj-sd-error,
.rfj-sd-empty {
    padding: 22px;
    color: var(--rfj-text-tertiary);
    text-align: center;
}

.rfj-sd-error {
    color: var(--rfj-color-danger);
}

.rfj-sd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rfj-sd-loading .rfj-sd-icon {
    animation: rfjSdSpin 0.8s linear infinite;
}

/* -- Component Animations -- */
@keyframes rfjSdSpin {
    to {
        transform: rotate(360deg);
    }
}
/* ==========================================
   Shared Modal, Form, Phone, and Software Dropdown Components
   ========================================== */

/* -- Modal Shell -- */
.rfj-modal *,
.rfj-modal *::before,
.rfj-modal *::after {
    box-sizing: border-box;
}

.rfj-modal {
    position: fixed;
    inset: 0;
    z-index: var(--rfj-z-modal, 2010);
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--rfj-text-primary);
    font-family: var(--rfj-font-sans);
    outline: 0;
    animation: rfjFadeIn 180ms ease-out;
}

.rfj-modal-hidden,
.rfj-hidden {
    display: none !important;
}

.rfj-visible {
    display: block !important;
}

.rfj-flex {
    display: flex !important;
}

.rfj-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(3px);
}

.rfj-modal-dialog {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 560px;
    margin: 48px auto;
    pointer-events: none;
}

.rfj-modal-dialog-sm {
    max-width: 460px;
}

.rfj-modal-dialog-lg {
    max-width: 720px;
}

.rfj-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--rfj-radius-lg);
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 32, 51, 0.22);
    pointer-events: auto;
    animation: rfjSlideIn 220ms ease-out;
}

.rfj-modal-header,
.rfj-modal-header-simple,
.rfj-modal-header-gradient {
    position: relative;
    padding: 22px 24px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}

.rfj-modal-header-simple {
    padding: 18px 24px;
}

.rfj-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--rfj-radius-sm);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.rfj-modal-close:hover,
.rfj-modal-close:focus {
    background: rgba(255, 255, 255, 0.24);
    outline: 0;
}

.rfj-modal-header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-right: 26px;
}

.rfj-modal-logo {
    flex: 0 0 auto;
    padding: 8px;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    box-shadow: 0 8px 18px rgba(20, 32, 51, 0.12);
}

.rfj-modal-logo-img {
    display: block;
    max-width: 100px;
    height: auto;
}

.rfj-modal-desc {
    flex: 1 1 auto;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    line-height: 1.75;
}

.rfj-modal-title-header {
    margin: 0;
    padding-right: 42px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.rfj-modal-body {
    padding: 24px;
    background: #fff;
}

.rfj-modal-title {
    margin: 0 0 18px;
    color: #6366f1;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.rfj-modal .text-center {
    text-align: center;
}

.rfj-modal .text-primary {
    color: #6366f1;
}

/* -- Form Layout and Controls -- */
.rfj-form {
    width: 100%;
}

.rfj-form-group {
    margin-bottom: 16px;
}

.rfj-form-group-hidden {
    display: none;
}

.rfj-control-label {
    display: block;
    margin-bottom: 7px;
    color: var(--rfj-text-primary);
    font-size: 14px;
    font-weight: 600;
}

.rfj-label {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    color: var(--rfj-text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.rfj-label:hover {
    color: var(--rfj-color-primary);
}

.rfj-checkbox-label a,
.rfj-help-text a {
    color: var(--rfj-color-primary);
}

.rfj-label input[type="radio"],
.rfj-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    accent-color: var(--rfj-color-primary);
    cursor: pointer;
}

.rfj-input,
.rfj-textarea,
.rfj-select {
    display: block;
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--rfj-color-border-strong);
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-text-primary);
    font-size: 14px;
    line-height: 1.5;
    outline: 0;
    transition: border-color var(--rfj-transition), box-shadow var(--rfj-transition), background var(--rfj-transition);
    font-family: var(--rfj-font-sans);
}

.rfj-textarea {
    height: auto;
    min-height: 78px;
    resize: vertical;
}

.rfj-input:hover,
.rfj-textarea:hover,
.rfj-select:hover {
    border-color: #c3cedc;
}

.rfj-input:focus,
.rfj-textarea:focus,
.rfj-select:focus {
    border-color: var(--rfj-color-primary);
    box-shadow: 0 0 0 3px var(--rfj-color-primary-shadow);
}

.rfj-input[readonly] {
    background: #f5f7fb;
    color: var(--rfj-text-tertiary);
    cursor: not-allowed;
}

.rfj-input-error {
    border-color: var(--rfj-color-danger) !important;
    background: var(--rfj-red-fff7f7) !important;
}

.rfj-input-error:focus {
    box-shadow: 0 0 0 3px var(--rfj-color-danger-focus) !important;
}

.rfj-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.rfj-input-group .rfj-input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.rfj-input-group .rfj-btn {
    flex: 0 0 auto;
    min-width: 108px;
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

.rfj-error-message {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: var(--rfj-color-danger);
    font-size: 12px;
    font-weight: 500;
}

.rfj-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    color: var(--rfj-text-tertiary);
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.rfj-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
}

.rfj-checkbox-label a {
    text-decoration: none;
    font-weight: 500;
}

.rfj-checkbox-label a:hover,
.rfj-help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

/* -- Form Buttons -- */
.rfj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-text-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: all var(--rfj-transition);
}

.rfj-btn:hover {
    transform: translateY(-1px);
}

.rfj-btn:focus,
.rfj-btn:active:focus {
    outline: 0;
    box-shadow: 0 0 0 3px var(--rfj-color-primary-shadow);
}

.rfj-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.rfj-btn-primary {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.25);
}

.rfj-btn-primary:hover,
.rfj-btn-primary:focus {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.rfj-btn-block {
    width: 100%;
}

.rfj-help-text {
    display: block;
    margin-top: 6px;
    color: var(--rfj-text-tertiary);
    font-size: 12px;
    line-height: 1.5;
}

.rfj-help-text a {
    text-decoration: none;
}

/* -- Phone Modal Content -- */
.rfj-phone-content {
    padding: 8px 0 2px;
    text-align: center;
}

.rfj-phone-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-sm);
}

.rfj-phone-icon {
    width: 38px;
    height: 38px;
    color: #fff;
}

.rfj-phone-number-wrapper {
    margin-bottom: 18px;
}

.rfj-phone-number-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    border: 1px solid var(--rfj-color-primary-border);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.rfj-phone-number-link:hover {
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary);
    color: #fff;
}

.rfj-phone-info-card {
    padding: 16px 18px;
    border: 1px solid var(--rfj-color-primary-border);
    border-left: 4px solid var(--rfj-color-primary);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-primary-light);
}

.rfj-phone-info-content {
    display: flex;
    gap: 10px;
    text-align: left;
}

.rfj-phone-info-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--rfj-color-primary);
}

.rfj-phone-info-text {
    flex: 1 1 auto;
    color: var(--rfj-text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.rfj-phone-info-title {
    margin-bottom: 8px;
    color: var(--rfj-text-primary);
    font-weight: 700;
}

.rfj-phone-info-item {
    margin-bottom: 5px;
}

.rfj-phone-info-highlight {
    color: var(--rfj-color-primary);
}

.rfj-phone-info-success {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    color: var(--rfj-color-success);
    vertical-align: -2px;
}

/* -- Software Search Dropdown -- */
.rfj-software-search-container {
    position: relative;
    width: 100%;
}

.rfj-software-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: var(--rfj-z-dropdown, 1000);
    display: none;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--rfj-color-border-strong);
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: var(--rfj-shadow-lg);
}

.rfj-dropdown-active {
    display: block;
    animation: rfjDropdownFadeIn 160ms ease-out;
}

.rfj-software-list {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.rfj-software-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f3f7;
    cursor: pointer;
}

.rfj-software-option:last-child {
    border-bottom: 0;
}

.rfj-software-option:hover,
.rfj-software-option-hover,
.rfj-software-option-selected {
    background: var(--rfj-color-primary-light);
}

.rfj-software-logo,
.rfj-software-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    background: #f7f9fc;
}

.rfj-software-logo {
    object-fit: contain;
}

.rfj-software-icon {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--rfj-color-blue);
}

.rfj-software-icon::after {
    content: "S";
    font-size: 14px;
    font-weight: 800;
}

.rfj-software-info {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
}

.rfj-software-name,
.rfj-software-maker {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfj-software-name {
    color: var(--rfj-text-primary);
    font-size: 14px;
    font-weight: 700;
}

.rfj-software-maker {
    margin-top: 2px;
    color: var(--rfj-text-tertiary);
    font-size: 12px;
}

.rfj-software-arrow {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-right: 2px solid #b7c0ce;
    border-bottom: 2px solid #b7c0ce;
    opacity: 0;
    transform: rotate(-45deg);
}

.rfj-software-option:hover .rfj-software-arrow,
.rfj-software-option-hover .rfj-software-arrow {
    opacity: 1;
}

.rfj-software-option-selected .rfj-software-name {
    color: var(--rfj-color-primary);
}

.rfj-software-empty {
    padding: 22px 14px;
    color: var(--rfj-text-tertiary);
    font-size: 14px;
    text-align: center;
}

.rfj-software-dropdown::-webkit-scrollbar {
    width: 6px;
}

.rfj-software-dropdown::-webkit-scrollbar-track {
    background: #f5f7fb;
}

.rfj-software-dropdown::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd4e1;
}

/* -- Component Animations -- */
@keyframes rfjFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rfjSlideIn {
    from {
        opacity: 0;
        transform: translateY(-18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rfjDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1200px) {
    body {
        min-width: 0;
    }

    .header-content {
        gap: 12px;
    }

    .header-nav a {
        padding: 0 7px;
    }

    .hero-banner-wrapper {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .hero-side-panel-right {
        display: none;
    }

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

@media (max-width: 992px) {
    .header-nav {
        overflow-x: auto;
    }

    .header-search-wrapper {
        display: block;
        flex: 0 0 auto;
    }

    .header-search-input {
        width: 160px;
    }

    .header-search-input:focus {
        width: 220px;
    }

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

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

    .hero-side-panel-right {
        display: flex;
        min-height: 260px;
    }

    .hero-enquiry-scroll-wrapper {
        min-height: 210px;
    }

    .hero-panel-links-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: 1fr;
    }

    .hero-panel-link-item {
        min-height: 66px;
    }

    .stats-grid,
    .categories-grid,
    .cases-grid,
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-content,
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .advisors-featured__header,
    .advisors-featured__scroll-wrapper {
        max-width: calc(100% - 28px);
    }

    .header-content {
        min-height: 58px;
        gap: 12px;
    }

    .logo-text {
        font-size: 16px;
    }

    .header-nav {
        display: none;
    }
    .header-search-wrapper {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-search-input {
        width: 100%;
    }

    .header-search-input:focus {
        width: 100%;
    }

    .header-search-wrapper .rfj-search-dropdown,
    .header-search-dropdown.rfj-search-dropdown {
        width: 100%;
        right: 0;
    }

    .header-ai-tool,
    .header-user-menu{
        display: none;
    }

    .header-user-name {
        display: none;
    }

    .header-user-trigger {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
    }

    .header-user-icon {
        width: 22px;
        height: 22px;
    }

    .header-user-icon svg {
        width: 20px;
        height: 20px;
    }

    .header-hamburger {
        display: flex;
    }

    .header-mobile-menu {
        display: block;
    }
    .home-banner-ad {
        display: none;
    }

    .home-hero {
        padding: 32px 0 26px;
    }

    .home-reseller-manufacturers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-search-box {
        height: 52px;
    }

    .hero-search-btn {
        min-width: 58px;
        padding: 0 14px;
    }

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

    .hero-panel-links-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .section-header {
        align-items: flex-end;
        flex-direction: row;
        gap: 12px;
    }

    .section-title-group {
        flex: 1;
    }

    .section-title-group .section-title {
        font-size: 22px;
    }

    .home-section {
        padding: 36px 0;
    }

    .software-card {
        flex-basis: 250px;
    }

    .home-rankings-grid,
    .home-latest-grid,
    .ai-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-latest-header {
        align-items: flex-start;
    }

    .advisors-featured__arrow {
        display: none;
    }

    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .stats-grid,
    .categories-grid,
    .cases-grid,
    .posts-grid,
    .home-rankings-grid,
    .home-latest-grid,
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }

    .home-latest-header {
        flex-direction: column;
    }

    .home-reseller-manufacturers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card a {
        min-height: 92px;
        padding: 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-panel-link-item {
        min-height: 66px;
    }

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

    .cta-btn {
        width: 100%;
    }

    .footer-qr-codes {
        flex-wrap: wrap;
    }

    .rfj-search-dropdown {
        position: fixed;
        right: 14px !important;
        left: 14px !important;
        width: auto !important;
        max-height: 60vh;
    }

    .header-mobile-menu-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rfj-modal-dialog {
        max-width: calc(100% - 28px);
        margin: 24px auto;
    }

    .rfj-modal-header,
    .rfj-modal-header-simple,
    .rfj-modal-header-gradient {
        padding: 20px 18px 18px;
    }

    .rfj-modal-header-content {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        text-align: center;
    }

    .rfj-modal-logo-img {
        max-width: 82px;
    }

    .rfj-modal-desc {
        font-size: 12px;
    }

    .rfj-modal-body {
        padding: 20px 18px;
    }

    .rfj-label {
        margin-right: 12px;
        margin-bottom: 8px;
    }

    .rfj-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .rfj-input-group .rfj-input,
    .rfj-input-group .rfj-btn {
        width: 100%;
        margin-left: 0;
        border-radius: var(--rfj-radius-sm);
    }

    .rfj-phone-number-link {
        min-height: 50px;
        padding: 0 22px;
        font-size: 22px;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    z-index: 9998;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 560px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 5px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #d7d9dd;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .04);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.mobile-nav-item {
    display: flex;
    min-width: 0;
    min-height: 61px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 999px;
    padding: 4px 0;
    color: #8b8f98;
    font-size: 12px;
    font-weight: 550;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item:active { opacity: .75; }
.mobile-nav-item.is-active { background: #e4e5e7; color: #101114; font-weight: 650; }
.mobile-bottom-nav .mobile-nav-icon { display: block; width: 25px; height: 25px; stroke-width: 2.4; }
.mobile-nav-label { line-height: 1.2; }

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: grid;
    }

    .home-footer {
        display: none;
    }

    .right-nav {
        display: none !important;
    }

    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

/* ===== Right Sticky Nav ===== */
.right-nav {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-card, #fff);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(20, 32, 51, 0.08));
    border-radius: var(--radius-xl, 12px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    border: 1px solid var(--border-color, #e6eaf0);
}

.right-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary, #181f2a);
    padding: 8px 6px;
    border-radius: var(--radius-lg, 8px);
    transition: all var(--transition-fast, 150ms ease);
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    cursor: pointer;
}

.right-nav-button .icon {
    flex-shrink: 0;
    font-size: 22px;
    color: var(--primary-color, var(--rfj-red-legacy-brand));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md, 6px);
    transition: all var(--transition-fast, 150ms ease);
}

.right-nav-button .icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.right-nav-button .text {
    white-space: nowrap;
    color: var(--text-secondary, #4f5b6c);
    transition: color var(--transition-fast, 150ms ease);
}

button.right-nav-button,
button.rfj-floating-actions__button {
    border: 0;
    background: transparent;
    font: inherit;
}

.right-nav-button:hover {
    background-color: var(--primary-color, var(--rfj-red-legacy-brand));
}

.right-nav-button:hover .text, .right-nav-button:hover .icon {
    color: #fff;
}

@media (max-width: 992px) {
    .right-nav {
        right: 8px;
        padding: 6px 4px;
    }

    .right-nav-button {
        padding: 6px 4px;
        font-size: 10px;
    }

    .right-nav-button .icon {
        width: 28px;
        height: 28px;
    }

    .right-nav-button .icon svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 768px) {
    .right-nav {
        right: 6px;
        bottom: 80px;
        top: auto;
        transform: none;
    }
}
/* ==========================================
   Guides Page Styles
   软件选型指南页面样式
   ========================================== */

.guides-page {
    color: var(--rfj-text-primary);
    min-height: 100vh;
    background: var(--rfj-color-bg-soft);
}

/* ==========================================
   Advisors Page Styles
   软件顾问页面样式
   ========================================== */

.advisors-wrapper {
    padding-bottom: 3rem;
    padding-top: 1rem;
    background: linear-gradient(180deg, var(--rfj-color-bg-soft) 0%, transparent 100%);
}

.advisors-search-wrapper {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.advisors-search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.advisors-search-box {
    display: flex;
    align-items: center;
    background: var(--rfj-color-bg-panel);
    border: 2px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 0.5rem;
    box-shadow: var(--rfj-shadow-md);
    transition: all var(--rfj-transition);
}

.advisors-search-box:focus-within {
    border-color: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-lg), 0 0 0 4px var(--rfj-color-primary-shadow);
}

.advisors-search-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1rem;
    outline: none;
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-text-primary);
    border-radius: var(--rfj-radius-md);
    padding: 0.6rem 0.85rem;
}

.advisors-search-input::placeholder {
    color: var(--rfj-text-tertiary);
}

.advisors-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--rfj-gradient-primary);
    border: none;
    border-radius: var(--rfj-radius-md);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--rfj-transition), box-shadow var(--rfj-transition);
}

.advisors-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--rfj-color-primary-shadow);
}

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

.advisors-search-row {
    display: flex;
    gap: 8px;
}

.advisors-company-search {
    position: relative;
    flex: 1;
}

.advisors-kw-search {
    flex: 1;
}

.advisors-search-icon {
    flex-shrink: 0;
    margin-left: 12px;
    margin-right: 5px;
    color: var(--rfj-text-tertiary);
}

.advisors-company-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--rfj-text-tertiary);
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
    transition: color 150ms ease;
}

.advisors-company-clear:hover {
    color: var(--rfj-color-primary);
}

.advisors-company-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--rfj-color-border, #e6eaf0);
    border-radius: var(--rfj-radius-lg, 8px);
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
}

.advisors-company-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--rfj-text-primary);
    cursor: pointer;
    transition: background 150ms ease;
}

.advisors-company-item:hover {
    background: var(--rfj-color-bg-tint, #f5f7fb);
}

.advisors-company-empty {
    padding: 16px 14px;
    font-size: 13px;
    color: var(--rfj-text-tertiary);
    text-align: center;
}

.advisors-help-text {
    margin: 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--rfj-text-tertiary);
}

.advisors-help-text a {
    color: var(--rfj-color-primary);
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color var(--rfj-transition);
}

.advisors-help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

.advisor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.advisor-grid-item {
    height: 100%;
}

.advisor-grid-item > .text-center {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.advisor-grid-item .pb-4 {
    margin-top: auto;
}

.advisor-card__company-placeholder {
    color: var(--rfj-text-tertiary);
    font-size: 13px;
}

.btn-outline-success {
    color: var(--rfj-color-success);
    background: transparent;
    border-color: var(--rfj-color-success);
}

.btn-outline-success:hover {
    color: #fff;
    border-color: var(--rfj-color-success);
    background: var(--rfj-color-success);
}

.btn-outline-info {
    color: var(--rfj-color-blue);
    background: transparent;
    border-color: var(--rfj-color-blue);
}

.btn-outline-info:hover {
    color: #fff;
    border-color: var(--rfj-color-blue);
    background: var(--rfj-color-blue);
}

.btn-outline-danger {
    color: var(--rfj-color-primary);
    background: transparent;
    border-color: var(--rfj-color-primary);
}

.btn-outline-danger:hover {
    color: #fff;
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary);
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-height: 28px;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

.rfj-viewPrivateNumberButton {
    cursor: pointer;
    transition: all var(--rfj-transition);
}

.rfj-viewPrivateNumberButton:hover {
    opacity: 0.85;
}

.advisors-wrapper .row-tight {
    gap: 1rem;
}

.advisors-wrapper .text-center.px-3,
.advisors-wrapper .text-center.pl-3,
.advisors-wrapper .text-center {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-sm);
    padding: 1rem;
    height: 100%;
}

.advisors-wrapper .text-center a {
    text-decoration: none;
    color: inherit;
}

.advisors-wrapper .text-center b,
.advisors-wrapper .text-lg {
    color: var(--rfj-text-primary);
}

.advisors-wrapper .text-muted,
.advisors-wrapper .small,
.advisors-wrapper .text-overflow {
    color: var(--rfj-text-secondary);
}

.advisors-wrapper .btn,
.advisors-wrapper .btn-xs {
    border-radius: var(--rfj-radius-md);
}

.advisors-wrapper .rfj-load-more-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.advisors-wrapper .rfj-loading-spinner .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--rfj-color-border);
    border-top-color: var(--rfj-color-primary);
    border-radius: 50%;
    animation: advisors-spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.advisors-wrapper form.form-inline,
.advisors-wrapper #fr {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.advisors-wrapper .btn-primary,
.advisors-wrapper input[type="submit"].btn,
.advisors-wrapper input[type="submit"] {
    background: var(--rfj-gradient-primary);
    border: none;
    color: #fff;
    padding: 0.6rem 1.1rem;
    border-radius: var(--rfj-radius-md);
    box-shadow: var(--rfj-shadow-md);
}

.advisors-wrapper .rfj-loading-spinner div {
    color: var(--rfj-text-secondary);
}

.advisors-wrapper .p2 {
    margin: 0.25rem 0;
}

.advisors-featured__viewport::before,
.advisors-featured__viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 1;
    pointer-events: none;
}

.advisors-featured__viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--rfj-color-bg), transparent);
}

.advisors-featured__viewport::after {
    right: 0;
    background: linear-gradient(-90deg, var(--rfj-color-bg), transparent);
}

.rfj-guwen-div {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.single-enquiry-bread-crumbs {
    font-size: 0.875rem;
    color: var(--rfj-text-tertiary);
}

.single-enquiry-bread-crumbs a {
    color: var(--rfj-text-secondary);
    text-decoration: none;
}

.single-enquiry-bread-crumbs a:hover {
    color: var(--rfj-color-primary);
}

.black_title {
    color: var(--rfj-text-primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .advisors-search-wrapper {
        max-width: 100%;
    }

    .advisors-search-row {
        flex-direction: column;
    }

    .advisors-search-box {
        flex-direction: column;
        padding: 0.75rem;
    }

    .advisors-search-input {
        width: 100%;
        padding: 0.75rem;
    }

    .advisors-search-btn {
        width: 100%;
        height: 42px;
        border-radius: var(--rfj-radius-md);
    }

    .advisor-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* ==========================================
   Resellers Page Styles
   代理商查询页面样式
   ========================================== */

.resellers-page {
    min-height: 100vh;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.resellers-page .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
    margin-bottom: 2rem;
}

.resellers-page .row > .col {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .resellers-page .row > .col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 992px) {
    .resellers-page .row > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .resellers-page .row > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.page-content {
    min-height: 400px;
}

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

.vendor_warp {
    transition: all var(--rfj-transition);
}

.vendor_warp.hidden {
    display: none;
}

.location-filter {
    background: var(--rfj-color-bg-panel);
    padding: 1.5rem;
    border-radius: var(--rfj-radius-lg);
    border: 1px solid var(--rfj-color-border);
    margin-bottom: 2rem;
}

.location-filter-title svg {
    color: var(--rfj-color-primary);
    flex-shrink: 0;
}

.location-filter .filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    justify-content: center;
}

.location-filter .filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rfj-text-secondary);
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    cursor: pointer;
    transition: all var(--rfj-transition);
    text-decoration: none;
    user-select: none;
}

.location-filter .filter-tag:hover {
    color: var(--rfj-color-primary);
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-color-primary-border);
}

.location-filter .filter-tag.active {
    color: #fff;
    background: var(--rfj-gradient-primary);
    border-color: var(--rfj-color-primary);
    box-shadow: 0 2px 8px var(--rfj-color-primary-shadow);
}

.location-filter .filter-tag.active:hover {
    box-shadow: 0 4px 12px var(--rfj-color-primary-shadow);
}

.filter-tag-icon {
    margin-right: 0.375rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.filter-tag-count {
    margin-left: 0.375rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--rfj-radius-sm);
}

.filter-tag.active .filter-tag-count {
    background: rgba(255, 255, 255, 0.25);
}

.location_child {
    display: none;
}

.filter-divider {
    height: 1px;
    background: var(--rfj-color-border);
    margin: 1rem 0;
}

.filter-children {
    display: none;
    animation: filterTagIn 0.3s ease;
}

.filter-children.visible {
    display: block;
}

.badge-cat {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-text-secondary);
    border: 1px solid var(--rfj-color-border);
    cursor: pointer;
    transition: all var(--rfj-transition);
    text-decoration: none;
}

.badge-cat:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

.badge-cat.active {
    background: var(--rfj-gradient-primary);
    color: #fff;
    border-color: var(--rfj-color-primary);
}

.help-text a {
    color: var(--rfj-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--rfj-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

.help-text svg {
    display: inline-block;
    vertical-align: -2px;
    margin-left: 2px;
    color: var(--rfj-text-tertiary);
    transition: color var(--rfj-transition);
}

.help-text a:hover svg {
    color: var(--rfj-color-primary);
}

@media (max-width: 768px) {
    .location-filter {
        padding: 1rem;
    }

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

    .location-filter .filter-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .location-filter .filter-tags {
        gap: 0.375rem;
    }
}

/* ==========================================
   Videos Page Styles (from videos.css)
   ========================================== */

.video-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.video-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--rfj-text-primary);
    margin-bottom: 0.75rem;
}

.video-hero-subtitle {
    font-size: 1.05rem;
    color: var(--rfj-text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.video-hero-desc {
    font-size: 0.875rem;
    color: var(--rfj-text-tertiary);
    max-width: 480px;
    margin: 0.5rem auto 0;
}

.video-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

.video-intro {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.video-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--rfj-text-secondary);
}

.video-intro p + p {
    margin-top: 1rem;
}

.video-hero-content p {
    line-height: 1.8;
    color: var(--rfj-text-secondary);
}

.video-hero-content p + p {
    margin-top: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    border-radius: var(--rfj-radius-lg);
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    box-shadow: var(--rfj-shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.video-card a {
    text-decoration: none;
    color: inherit;
}

.video-card a:hover {
    text-decoration: none;
    color: inherit;
}

.video-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--rfj-color-primary);
}

.video-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem 1.25rem;
    background: var(--rfj-color-bg-panel);
    border-top: 1px solid var(--rfj-color-border);
}

.video-category {
    margin-bottom: 0.625rem;
}

.video-category a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--rfj-transition);
}

.video-category a:hover {
    background: var(--rfj-color-primary);
    color: #fff;
    text-decoration: none;
}

.video-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    height: calc(1.05rem * 1.45 * 2);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--rfj-text-primary);
    transition: color 200ms ease;
}

.video-card:hover .video-title {
    color: var(--rfj-color-primary);
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--rfj-text-tertiary);
}

.video-meta svg {
    flex-shrink: 0;
    color: var(--rfj-text-tertiary);
}

.video-meta-left {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
}

.video-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.video-meta-date {
    flex-shrink: 0;
    color: var(--rfj-text-tertiary);
    font-size: 0.8rem;
}

.video-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-text-secondary);
    font-size: 0.8rem;
    transition: all var(--rfj-transition);
}

.video-tag:hover {
    border-color: var(--rfj-color-border-strong);
    color: var(--rfj-text-primary);
    text-decoration: none;
}

/* Featured Videos Section */
.featured-videos-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.featured-video-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--rfj-radius-lg);
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    box-shadow: var(--rfj-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rfj-shadow-lg);
    border-color: var(--rfj-color-primary-border);
}

.featured-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-video-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--rfj-color-bg-soft);
}

.featured-video-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-video-card:hover .featured-video-image img {
    transform: scale(1.08);
}

.featured-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.featured-video-card:hover .featured-video-overlay {
    background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.95) 100%);
}

.featured-video-content {
    width: 100%;
}

.featured-video-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-video-author {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.featured-video-author svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1200px) {
    .featured-videos-section {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .featured-videos-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .featured-videos-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-video-overlay {
        padding: 1rem;
    }

    .featured-video-title {
        font-size: 1rem;
    }
}

.video-load-more {
    text-align: center;
    padding: 3rem 0;
}

.video-no-more {
    text-align: center;
    padding: 3rem 0;
    color: var(--rfj-text-tertiary);
    font-size: 0.9375rem;
}

.video-filter-section {
    margin-bottom: 2rem;
}

.video-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.video-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-filter-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rfj-text-primary);
    margin-right: 0.5rem;
}

.video-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-filter-chip {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-text-secondary);
    background: var(--rfj-color-bg-panel);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--rfj-transition);
}

.video-filter-chip:hover {
    border-color: var(--rfj-color-border-strong);
    color: var(--rfj-text-primary);
}

.video-filter-reset {
    margin-left: auto;
}

.video-filter-reset a {
    color: var(--rfj-text-tertiary);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--rfj-transition);
}

.video-filter-reset a:hover {
    color: var(--rfj-color-primary);
}

.video-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.video-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-text-secondary);
    font-size: 0.85rem;
}

.video-selected-tag .video-tag-close {
    color: inherit;
    text-decoration: none;
}

.video-selected-tag .video-tag-close:hover {
    color: var(--rfj-color-primary);
}

.video-selected-tag.muted {
    color: var(--rfj-text-tertiary);
    border-style: dashed;
}

/* ==========================================
   Events Page Styles (from events.css)
   ========================================== */

.event-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.event-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--rfj-text-primary);
    margin-bottom: 0.75rem;
}

.event-hero-subtitle {
    font-size: 1.05rem;
    color: var(--rfj-text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.event-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

.event-intro {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.event-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--rfj-text-secondary);
}

.event-intro p + p {
    margin-top: 1rem;
}

.event-hero-content {
    margin-top: 2rem;
}

.event-hero-content p {
    line-height: 1.8;
    color: var(--rfj-text-secondary);
}

.event-hero-content p + p {
    margin-top: 1rem;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-card a {
    text-decoration: none;
    color: inherit;
}

.event-card a:hover {
    text-decoration: none;
    color: inherit;
}

.event-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.event-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.event-status--ended {
    background: rgba(180, 180, 180, 0.15);
    color: var(--rfj-text-tertiary);
}

.event-status--pending {
    background: var(--status-pending, rgba(16, 185, 129, 0.15));  /* 改为绿色，与变量一致 */
    color: #34d399;
}

.event-status--other {
    background: var(--status-other);
    color: var(--status-other-text);
}

.event-status--active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.event-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem 1.25rem;
    background: var(--rfj-color-bg-panel);
    border-top: 1px solid var(--rfj-color-border);
}

.event-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    height: calc(1.05rem * 1.45 * 2);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--rfj-text-primary);
    text-decoration: none;
}

.event-title:hover {
    text-decoration: none;
    color: var(--rfj-color-primary);
}

.event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--rfj-text-tertiary);
}

.event-meta svg {
    flex-shrink: 0;
    color: var(--rfj-text-tertiary);
}

.event-meta-left {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
}

.event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.event-meta-date {
    flex-shrink: 0;
    color: var(--rfj-text-secondary);
}

/* -- Filter Bar (consolidated) -- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 16px 24px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-sm);
}

.filter-group,
.filter-dropdown-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.filter-label {
    color: var(--rfj-text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-text-secondary);
    background: var(--rfj-color-bg-panel);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--rfj-transition);
}

.filter-chip:hover {
    border-color: var(--rfj-color-border-strong);
    color: var(--rfj-text-primary);
}

.video-tag.active,
.video-filter-chip.active,
.filter-chip.active {
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-brand-red, var(--rfj-red-bright));
    color: var(--rfj-color-primary);
}

.filter-reset {
    margin-left: auto;
}

.filter-reset-link {
    color: var(--rfj-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-reset-link:hover {
    color: var(--rfj-color-primary);
}

.filter-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* -- Responsive for Videos & Events -- */
@media (max-width: 992px) {
    .video-hero,
    .event-hero {
        padding: 2.5rem 0 2rem;
    }

    .video-hero-title,
    .event-hero-title {
        font-size: 2.25rem;
    }

    .video-grid,
    .event-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .video-hero,
    .event-hero {
        padding: 2rem 0 1.5rem;
    }

    .video-hero-title,
    .event-hero-title {
        font-size: 1.875rem;
    }

    .video-hero-subtitle,
    .event-hero-subtitle {
        font-size: 1rem;
    }

    .video-content,
    .event-content {
        padding: 2rem 0 3rem;
    }

    .video-intro,
    .event-intro {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .video-grid,
    .event-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .video-title,
    .event-title {
        font-size: 0.95rem;
        height: calc(0.95rem * 1.45 * 2);
    }

    .video-meta-left {
        max-width: 60%;
    }

    .filter-reset {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .video-hero,
    .event-hero {
        padding: 1.5rem 0 1.25rem;
    }

    .video-hero-title,
    .event-hero-title {
        font-size: 1.5rem;
    }

    .video-grid,
    .event-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-body {
        padding: 0.85rem 0.9rem 1rem;
    }

    .event-body {
        padding: 0.85rem 0.9rem 1rem;
    }

    .video-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .video-filter-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .video-filter-chips {
        flex-wrap: nowrap;
    }
}

/* ==========================================
   Resellers Page Styles (from style.css)
   ========================================== */

.tool-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    box-shadow: var(--rfj-shadow-sm);
    transition: all var(--rfj-transition);
    overflow: hidden;
}

.tool-card:hover {
    border-color: var(--rfj-color-primary-border);
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-2px);
}

.simple-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    min-height: 120px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-bg-panel);
}

.simple-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
}


.simple-card-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.simple-card:hover .simple-card-logo {
    transform: scale(1.05);
}

.simple-card-logo img {
    width: 100%;
    max-width: 150px;
    max-height: 60px;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
    background-color: #fff;
    border-radius: 6px;
    padding: 5px;
}

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

.simple-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rfj-shadow-lg);
    border-color: var(--rfj-color-primary);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rfj-gradient-primary-hover);
    opacity: 0;
    transition: opacity var(--rfj-transition);
}

.simple-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.simple-card:hover .simple-card-title {
    color: var(--rfj-color-primary);
}
.simple-card:hover::before {
    opacity: 1;
}

.simple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rfj-gradient-primary-hover);
    opacity: 0;
    transition: opacity var(--rfj-transition);
}

.reseller-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.reseller-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.reseller-card-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 80px;
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-bg-soft);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: transform var(--rfj-transition);
}

.reseller-card:hover .reseller-card-logo {
    transform: scale(1.05);
}

.reseller-card-logo img {
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
}

.reseller-card-verified {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 50px;
    height: 50px;
}

.reseller-card-verified img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reseller-card-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rfj-text-primary);
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--rfj-transition);
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.reseller-card:hover .reseller-card-title {
    color: var(--rfj-color-primary);
}

.reseller-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.reseller-level {
    font-size: 0.8125rem;
    color: var(--rfj-text-secondary);
    font-weight: 500;
}

.reseller-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--rfj-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.reseller-badge-agency {
    background: var(--rfj-color-blue-light);
    color: var(--rfj-color-blue);
}

.reseller-badge-direct {
    background: var(--rfj-color-success-light);
    color: var(--rfj-color-success);
}

.reseller-badge-manufacturer {
    background: var(--rfj-vendor-official-bg);
    color: var(--rfj-vendor-official-text);
}

.reseller-card-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--rfj-text-tertiary);
    margin-bottom: 0.5rem;
    text-align: center;
    justify-content: center;
}

.reseller-card-location i {
    font-size: 0.875rem;
    color: var(--rfj-color-primary);
}

.reseller-card-status {
    font-size: 0.75rem;
    color: var(--rfj-text-tertiary);
    text-align: center;
    margin-top: 0.375rem;
}

.reseller-card-status-expired {
    color: var(--rfj-color-danger);
    font-weight: 600;
}

.reseller-card-status-pending {
    color: var(--rfj-color-warning);
    font-weight: 600;
}

.reseller-card-status-verified {
    color: var(--rfj-color-success);
    font-weight: 600;
}

.reseller-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rfj-color-border);
    justify-content: center;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-outline-primary {
    color: var(--rfj-color-primary);
    background: transparent;
    border-color: var(--rfj-color-primary-border);
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary);
    transform: translateY(-1px);
    box-shadow: var(--rfj-shadow-sm);
}

.reseller-card-active {
    border-color: var(--rfj-color-success-border);
}

.reseller-card-expired {
    border-color: var(--rfj-color-danger);
}

.reseller-card-manufacturer {
    border-color: var(--rfj-color-primary-border);
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--rfj-color-bg-panel);
    border: 2px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-text-primary);
    font-size: 1rem;
    font-family: var(--rfj-font-sans);
    transition: all var(--rfj-transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--rfj-color-primary);
    box-shadow: 0 0 0 4px var(--rfj-color-primary-shadow);
}

.form-input::placeholder {
    color: var(--rfj-text-tertiary);
}

.pretty-tabs {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.pretty-tabs > li {
    flex: 1;
}

.pretty-tabs > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 70px;
    font-size: 20px;
    font-weight: 400;
    border-radius: var(--rfj-radius-lg);
    color: var(--rfj-text-primary);
    background: var(--rfj-color-bg-soft);
    box-shadow: var(--rfj-shadow-sm);
    transition: all var(--rfj-transition);
    text-decoration: none;
}

.pretty-tabs > li > a:hover {
    transform: translateY(-2px);
    box-shadow: var(--rfj-shadow-md);
}

.pretty-tabs > li.active > a,
.pretty-tabs > li.active > a:hover {
    color: #fff;
    background: var(--rfj-gradient-secondary);
    font-weight: 400;
}

.pretty-tabs > li.active > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    margin-left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid var(--rfj-color-primary);
}

.pretty-tabs i {
    font-size: 32px;
    opacity: 0.7;
}

.pretty-tabs > li.active > a i {
    opacity: 1;
}

@media (max-width: 768px) {
    .pretty-tabs > li > a {
        height: 50px;
        font-size: 14px;
        gap: 4px;
    }

    .pretty-tabs > li > a svg {
        width: 14px;
        height: 14px;
    }
}

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

.company-info {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.text-blue {
    color: var(--rfj-color-blue);
    text-decoration: none;
}

.text-blue:hover {
    color: var(--rfj-color-primary);
    text-decoration: underline;
}

.text-primary {
    color: var(--rfj-color-primary) ;
}

.text-muted {
    color: var(--rfj-text-tertiary);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col {
    flex: 1;
    padding: 0 0.75rem;
}

.row-cols-4 > .col {
    flex: 0 0 25%;
    max-width: 25%;
}

.content-section {
    margin-bottom: 2.5rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-rounded {
    border-radius: var(--rfj-radius-md);
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.location-filter {
    margin-bottom: 2rem;
}

.location-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
}

.location-filter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rfj-text-primary);
}

.location-filter-reset {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--rfj-text-tertiary);
    cursor: pointer;
    transition: color var(--rfj-transition);
}

.location-filter-reset:hover {
    color: var(--rfj-color-primary);
}

.filter-level {
    margin-bottom: 0.75rem;
}

.filter-level.filter-children {
    display: none;
    margin-top: 0.5rem;
}

.filter-level.filter-children.active {
    display: block;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--rfj-radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.alert svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-info {
    background: var(--rfj-color-primary-light);
    border: 1px solid var(--rfj-color-primary-border);
    color: var(--rfj-text-primary);
}


.btn-primary {
    color: #fff;
    background: var(--rfj-gradient-primary);
    border-color: var(--rfj-color-primary);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--rfj-shadow-sm);
    text-decoration: none;
    color: #fff;
}

.btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

/* ==========================================
   Post Page Styles (from post.css)
   ========================================== */

.post-page {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-text-primary);
}

.featured-posts-section {
    padding: 3rem 0;
}

.featured-posts-grid {
    display: grid;
    gap: 2rem;
}

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

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

.featured-posts-grid-3 .featured-post-third {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
}

.featured-posts-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .featured-posts-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .featured-posts-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .featured-posts-grid-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.featured-post-card {
    position: relative;
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: var(--rfj-shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--rfj-shadow-lg);
}

.featured-post-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.featured-post-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.featured-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: background 0.3s ease;
}

.featured-post-card:hover .featured-post-overlay {
    background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.9) 100%);
}

.featured-post-content {
    width: 100%;
}

.featured-post-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--rfj-gradient-primary);
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--rfj-shadow-sm);
}

.featured-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-excerpt {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-filter-section {
    margin-bottom: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rfj-color-border);
}

.post-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.post-category-tabs::-webkit-scrollbar {
    display: none;
}

.post-tab-item {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: 999px;
    color: var(--rfj-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--rfj-shadow-sm);
}

.post-tab-item:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
    transform: translateY(-2px);
    box-shadow: var(--rfj-shadow-md);
}

.post-tab-item.active {
    background: var(--rfj-gradient-primary);
    border-color: var(--rfj-color-primary);
    color: #fff;
    box-shadow: var(--rfj-shadow-md);
}

.post-main {
    min-height: 400px;
}

.post-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.post-count {
    font-size: 0.9375rem;
    color: var(--rfj-text-secondary);
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--rfj-radius-lg);
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.post-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.post-card-link:hover {
    text-decoration: none;
    color: inherit;
}

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

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.post-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-card-content {
    padding: 1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid var(--rfj-color-border);
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rfj-text-primary);
    height: calc(1.2rem * 1.45 * 2);
    margin: 0 0 0.75rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 200ms ease;
}

.post-card:hover .post-card-title {
    color: var(--rfj-color-primary);
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--rfj-text-tertiary);
}

.post-card-meta svg {
    flex-shrink: 0;
    color: var(--rfj-text-tertiary);
}

.post-card-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 60%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--rfj-text-tertiary);
    font-weight: 500;
    font-size: 0.8rem;
}

.post-card-date {
    flex-shrink: 0;
    color: var(--rfj-text-tertiary);
    font-size: 0.8rem;
}

.post-card-excerpt {
    font-size: 0.93rem;
    color: var(--rfj-text-secondary);
    line-height: 1.7;
    height: calc(0.93rem * 1.7 * 3);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 0.8rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px dashed var(--rfj-color-border);
}

.post-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 0;
    color: var(--rfj-text-tertiary);
}

.post-load-more {
    text-align: center;
    padding: 3rem 0;
}

.post-no-more {
    text-align: center;
    padding: 3rem 0;
    color: var(--rfj-text-tertiary);
    font-size: 0.9375rem;
}

/* -- Case Cards (grid layout only, base styles at line 534/1373) -- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* -- Post Meta Info Box -- */
.post-meta-info-box {
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.meta-info-item {
    display: flex;
    align-items: baseline;
    padding: 0.5rem 0;
    line-height: 1.6;
}

.meta-info-item:not(:last-child) {
    border-bottom: 1px dashed var(--rfj-color-border);
}

.meta-info-label {
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--rfj-text-secondary);
    margin-right: 0.5rem;
    min-width: 3.5rem;
}

.meta-info-value {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--rfj-text-primary);
    word-break: break-word;
}

/* ==========================================
   Advisors Page Styles (from advisors.css)
   ========================================== */

.advisors-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.advisors-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--rfj-text-primary);
    margin-bottom: 0.75rem;
}

.advisors-hero-subtitle {
    font-size: 1.05rem;
    color: var(--rfj-text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.advisors-hero-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
    margin: 22px auto 0;
}

.advisors-hero-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 16px 18px;
    color: var(--rfj-text-primary);
    text-align: left;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    box-shadow: var(--rfj-shadow-sm);
    transition: transform var(--rfj-transition), border-color var(--rfj-transition), box-shadow var(--rfj-transition);
}

.advisors-hero-link:hover {
    color: var(--rfj-text-primary);
    text-decoration: none;
    border-color: var(--rfj-color-primary-border);
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-2px);
}

.advisors-hero-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--rfj-color-primary);
    background: var(--rfj-color-primary-shadow);
    border-radius: var(--rfj-radius-md);
    flex-shrink: 0;
}

.advisors-hero-link__icon .advisors-hero-link__icon-symbol {
	width: 22px;
	height: 22px;
}

.advisors-hero-link--community .advisors-hero-link__icon,
.advisors-hero-link--selection .advisors-hero-link__icon {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.1);
}

.advisors-hero-link__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.advisors-hero-link__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.advisors-hero-link__text {
    color: var(--rfj-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.advisors-hero-link__arrow {
    color: var(--rfj-text-tertiary);
    font-size: 20px;
    line-height: 1;
    transition: transform var(--rfj-transition), color var(--rfj-transition);
}

.advisors-hero-link:hover .advisors-hero-link__arrow {
    color: var(--rfj-color-primary);
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .advisors-hero-links {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
    }

    .advisors-hero-link {
        min-height: 76px;
        padding: 14px;
    }

    .advisors-hero-link__icon {
        width: 40px;
        height: 40px;
    }
}

.advisors-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

.advisors-intro {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.advisors-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--rfj-text-secondary);
}

.advisors-intro p + p {
    margin-top: 1rem;
}

.advisors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.advisors-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
}

.advisors-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rfj-shadow-md);
    border-color: var(--rfj-color-primary-border);
}

.advisors-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--rfj-color-bg-soft);
}

.advisors-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.advisors-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.advisors-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rfj-text-primary);
    margin: 0;
}

.advisors-card-note {
    font-size: 0.95rem;
    color: var(--rfj-text-secondary);
    margin: 0;
}

.advisors-card-link {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--rfj-color-primary);
    word-break: break-word;
    text-decoration: none;
}

.advisors-card-link:hover {
    text-decoration: underline;
}

/* ==========================================
   Guides Page Styles (from guides.css)
   ========================================== */

.guides-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.guides-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--rfj-text-primary);
    margin-bottom: 0.75rem;
}

.guides-hero-subtitle {
    font-size: 1.05rem;
    color: var(--rfj-text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.guides-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

.guides-intro {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.guides-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--rfj-text-secondary);
}

.guides-intro p + p {
    margin-top: 1rem;
}

.guides-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.guides-special {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    background: var(--rfj-color-bg-panel);
}

.guides-special-title {
    margin: 0 0 18px;
    font-size: 20px;
}

.guides-special-title a {
    color: var(--rfj-text-primary);
}

.guides-special-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guides-special-grid-item {
    min-width: 0;
}

.guides-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
}

.guides-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rfj-shadow-md);
    border-color: var(--rfj-color-primary-border);
}

.guides-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--rfj-color-bg-soft);
}

.guides-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.guides-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guides-card-body a {
    text-decoration: none;
    color: inherit;
}

.guides-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.guides-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rfj-text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guides-card-note {
    font-size: 0.95rem;
    color: var(--rfj-text-secondary);
    margin: 0;
}

.guides-card-link {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--rfj-color-primary);
    word-break: break-word;
    text-decoration: none;
}

.guides-card-link:hover {
    text-decoration: underline;
}

.guides-info {
    margin-top: 2.5rem;
    background: var(--rfj-color-bg-panel);
    color: var(--rfj-text-secondary);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 1.5rem 1.75rem;
    line-height: 1.7;
    box-shadow: var(--rfj-shadow-sm);
}

.guides-info-title {
    font-weight: 700;
    color: var(--rfj-color-primary);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.guides-info p {
    margin: 0.25rem 0;
}

.header-label {
    margin-left: 0.35rem;
}
/* ==========================================
   Responsive Styles for Post/Advisors/Guides
   ========================================== */

@media (max-width: 1200px) {
    .post-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .post-hero {
        padding: 3rem 0 2rem;
    }

    .post-hero-title {
        font-size: 2.25rem;
    }

    .featured-posts-grid-2,
    .featured-posts-grid-3,
    .featured-posts-grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-posts-grid-3 .featured-post-third {
        max-width: 100%;
    }

    .featured-post-card {
        aspect-ratio: 21/9;
    }

    .featured-post-title {
        font-size: 1.25rem;
    }

    .row-cols-4 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 2.5rem 0 1.5rem;
    }

    .post-hero-title {
        font-size: 1.875rem;
    }

    .post-hero-subtitle {
        font-size: 1rem;
    }

    .featured-posts-section {
        padding: 2rem 0;
    }

    .featured-post-card {
        aspect-ratio: 16/9;
    }

    .featured-post-title {
        font-size: 1.125rem;
    }

    .featured-post-excerpt {
        display: none;
    }

    .post-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .post-card-image {
        height: 180px;
    }

    .post-card-title {
        font-size: 1.125rem;
        height: calc(1.125rem * 1.45 * 2);
    }

    .post-card-excerpt {
        -webkit-line-clamp: 2;
        height: calc(0.93rem * 1.7 * 2);
    }

    .post-card-author {
        max-width: 55%;
    }

    .post-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.75rem;
    }

    .post-tab-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

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

    .case-card-title {
        font-size: 0.95rem;
        height: calc(0.95rem * 1.45 * 2);
    }

    .post-meta-info-box {
        padding: 1rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .meta-info-item {
        padding: 0.4rem 0;
    }

    .meta-info-label {
        font-size: 1.2rem;
        min-width: 3rem;
    }

    .meta-info-value {
        font-size: 1.2rem;
    }

    .advisors-hero {
        padding: 2.5rem 0 2rem;
    }

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

    .advisors-content {
        padding: 2rem 0 3rem;
    }

    .advisors-intro {
        padding: 1.25rem;
    }

    .advisors-grid {
        gap: 1rem;
    }

    .advisors-card-body {
        padding: 1rem 1rem 1.25rem;
    }

    .guides-hero {
        padding: 2.5rem 0 2rem;
    }

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

    .guides-content {
        padding: 2rem 0 3rem;
    }

    .guides-intro {
        padding: 1.25rem;
    }

    .guides-grid {
        gap: 1rem;
    }

    .guides-special {
        padding: 16px;
    }

    .guides-special-grid {
        grid-template-columns: 1fr;
    }

    .guides-card-body {
        padding: 1rem 1rem 1.25rem;
    }

    .header-label {
        display: none;
    }

    .row-cols-4 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pretty-tabs {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .pretty-tabs > li > a {
        height: 44px;
        font-size: 12px;
        gap: 3px;
        padding: 0 8px;
    }

    .pretty-tabs > li > a svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .post-hero {
        padding: 2rem 0 1.25rem;
    }

    .post-hero-title {
        font-size: 1.5rem;
    }

    .post-card-image {
        height: 160px;
    }

    .post-card-content {
        padding: 0.85rem 1rem;
    }

    .post-card-title {
        font-size: 1rem;
        height: calc(1rem * 1.45 * 2);
    }

    .post-card-meta {
        gap: 0.375rem;
        font-size: 0.75rem;
    }

    .post-card-author {
        max-width: 55%;
    }

    .post-card-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.25rem 0.625rem;
        font-size: 0.6875rem;
    }

    .post-card-excerpt {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
        height: calc(0.875rem * 1.7 * 2);
    }

    .load-more-btn {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }

    .case-card-title {
        font-size: 0.95rem;
        height: calc(0.95rem * 1.45 * 2);
    }

    .case-card-info-row {
        min-height: 1.3rem;
    }

    .case-card-info-label,
    .case-card-info-value {
        font-size: 0.65rem;
    }

    .case-card-info-value {
        padding: 0.05rem 0.35rem;
    }

    .case-card-meta {
        font-size: 0.75rem;
    }

    .case-card-date {
        font-size: 0.75rem;
    }
}

/* ==========================================
   Company Page Styles
   ========================================== */

/* -- Vendor Activity Notice -- */
.vendor-activity-notice {
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
    margin: 14px auto 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-sm);
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.vendor-activity-notice[hidden] {
    display: none !important;
}

.vendor-activity-notice__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rfj-color-primary);
    white-space: nowrap;
}

.vendor-activity-notice__viewport {
    flex: 1;
    overflow: hidden;
    height: 1.375rem;
    position: relative;
}

.vendor-activity-notice__track {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .vendor-activity-notice__track {
        transition: none;
    }
}

.vendor-activity-notice__loading {
    font-size: 0.8rem;
    color: var(--rfj-text-tertiary);
}

.vendor-activity-notice__item {
    height: 1.375rem;
    line-height: 1.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--rfj-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-activity-notice__item a {
    color: var(--rfj-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.vendor-activity-notice__item a:hover {
    color: var(--rfj-color-primary);
    text-decoration: underline;
}

.vendor-activity-notice__item .notice-time {
    color: var(--rfj-text-tertiary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.vendor-activity-notice__item .notice-sep {
    color: var(--rfj-text-tertiary);
    opacity: 0.4;
    flex-shrink: 0;
}

/* -- Company Hero -- */
.company-hero {
    padding: 40px 0 32px;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.company-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--rfj-text-primary);
    margin: 0 0 12px;
    line-height: 1.3;
}

.company-hero-title .gradient-text {
    background: none;
    color: inherit;
    -webkit-text-fill-color: currentColor;
}

.company-hero-subtitle {
    font-size: 17px;
    color: var(--rfj-text-secondary);
    margin: 0 auto 24px;
    max-width: 720px;
    line-height: 1.7;
}

.company-hero-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1060px;
    margin: 18px auto 0;
}

.company-hero-banner {
    display: block;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--radius-lg, 8px);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.company-hero-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.1);
}

.company-hero-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 8px);
}

.company-topic-explorer {
    max-width: 1240px;
    margin: 20px auto 0;
    text-align: left;
}

.company-topic-explorer__heading {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 24px;
    margin-bottom: 12px;
}

.company-topic-explorer__heading span {
    color: var(--rfj-color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.company-topic-explorer__heading h2 {
    margin: 3px 0 0;
    color: var(--rfj-text-primary);
    font-size: 22px;
}

.company-topic-explorer__heading p {
    max-width: 420px;
    margin: 0 0 2px;
    color: var(--rfj-text-tertiary);
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
}

.company-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.company-topic-card {
    position: relative;
    display: flex;
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    background: linear-gradient(135deg, #fff 45%, var(--rfj-color-bg-soft) 100%);
    color: var(--rfj-text-primary);
    box-shadow: var(--rfj-shadow-sm);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.company-topic-card--reseller {
    background: linear-gradient(135deg, #fff 45%, #f2f7ff 100%);
}

.company-topic-card--location {
    background: linear-gradient(135deg, #fff 45%, #f1faf5 100%);
}

.company-topic-card--function {
    background: linear-gradient(135deg, #fff 45%, #f6f2ff 100%);
}

.company-topic-card:hover {
    border-color: var(--rfj-color-border-strong);
    color: var(--rfj-text-primary);
    box-shadow: var(--rfj-shadow-md);
    text-decoration: none;
    transform: translateY(-2px);
}

.company-topic-card__type {
    align-self: flex-start;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-text-secondary);
    font-size: 10px;
    font-weight: 700;
}

.company-topic-card--reseller .company-topic-card__type {
    background: #eef5ff;
    color: #2463a7;
}

.company-topic-card--location .company-topic-card__type {
    background: #edf9f2;
    color: #21834f;
}

.company-topic-card--function .company-topic-card__type {
    background: #f3efff;
    color: #6745b5;
}

.company-topic-card h3 {
    display: -webkit-box;
    min-height: 0;
    flex: 1;
    margin: 0;
    overflow: hidden;
    color: inherit;
    font-size: 15px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.company-topic-card__arrow {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--rfj-text-tertiary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.company-topic-card:hover .company-topic-card__arrow {
    color: var(--rfj-color-primary);
    transform: translateX(2px);
}

.company-topic-card p {
    display: -webkit-box;
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--rfj-text-secondary);
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.company-topic-card p strong {
    color: var(--rfj-text-primary);
    font-size: 13px;
    font-weight: 700;
}

.company-topic-card__footer {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    color: var(--rfj-color-primary);
    font-size: 11px;
    font-weight: 600;
}

.company-topic-card__footer i {
    margin-left: auto;
    font-style: normal;
}

.fns-main-count {
    color: var(--rfj-text-tertiary);
    font-size: 13px;
}

.home-fn-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-fn-banner {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-fn-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.1);
}

.home-fn-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* -- Company Filter Section -- */
.company-filter-section {
    margin-bottom: 1.5rem;
}

.company-filter-section .filter-bar {
    padding: 12px 16px;
    gap: 0.75rem;
}

/* -- Filter Dropdown Button (company specific) -- */
.filter-dropdown-btn .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform var(--rfj-transition);
}

.filter-dropdown.open .filter-dropdown-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.filter-dropdown-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.375rem;
    background: var(--rfj-color-primary);
    border-radius: 9px;
    font-size: 0.6875rem;
    color: white;
    margin-left: 0.25rem;
}

.filter-dropdown-btn.active .filter-count {
    background: white;
    color: var(--rfj-color-primary);
}

/* -- Filter Search Bar (company specific) -- */
.filter-search-bar i {
    color: var(--rfj-text-tertiary);
    font-size: 0.875rem;
}

.filter-search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    font-size: 0.875rem;
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-text-primary);
    outline: none;
    transition: all var(--rfj-transition);
    font-family: var(--rfj-font-sans);
}

.filter-search-input:focus {
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-bg-panel);
}

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

/* -- Location Three Level -- */
.filter-panel-content.location-three-level {
    flex-wrap: nowrap;
}

.filter-panel-content.location-three-level .filter-level-one,
.filter-panel-content.location-three-level .filter-level-two,
.filter-panel-content.location-three-level .filter-level-three {
    flex: 1;
    min-width: 0;
}

.filter-level-three {
    border-left: 1px solid var(--rfj-color-border);
    padding-left: 1rem;
}

/* -- Level One/Zero Items -- */
.function-level-one-item,
.location-level-zero-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rfj-radius-md);
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-size: 0.875rem;
    color: var(--rfj-text-secondary);
    background: var(--rfj-color-bg-soft);
    border: 1px solid transparent;
}

.function-level-one-item:hover,
.location-level-zero-item:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-text-primary);
}

.function-level-one-item:has(input:checked),
.location-level-zero-item:has(input:checked) {
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

.function-level-one-item input,
.location-level-zero-item input {
    accent-color: var(--rfj-color-primary);
}

/* -- Search Highlight -- */
.search-highlight {
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-color-primary) !important;
}

.search-child-match {
    border-left: 3px solid var(--rfj-color-primary);
}

.search-mark {
    background: linear-gradient(var(--rfj-color-primary-border), var(--rfj-color-primary-border));
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 90%;
    color: inherit;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

/* -- Filter Dropdown Panel Animation -- */
.filter-dropdown.open .filter-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* -- Single Level List -- */
.filter-level-list.single {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* -- Filter Level Item -- */
.filter-level-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: var(--rfj-radius-md);
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-size: 0.875rem;
    color: var(--rfj-text-secondary);
}

.filter-level-item:hover {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-text-primary);
}

.filter-level-item.active {
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
}

.filter-level-item .fa-chevron-right {
    font-size: 0.625rem;
    opacity: 0.5;
    transition: opacity var(--rfj-transition);
}

.filter-level-item:hover .fa-chevron-right {
    opacity: 1;
}

/* -- Filter Checkbox Item (company specific) -- */
.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rfj-radius-md);
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-size: 0.875rem;
    color: var(--rfj-text-secondary);
    background: var(--rfj-color-bg-soft);
    border: 1px solid transparent;
}

.filter-checkbox-item:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-text-primary);
}

.filter-checkbox-item input {
    accent-color: var(--rfj-color-primary);
}

.filter-checkbox-item:has(input:checked) {
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

/* -- Filter Selected Preview -- */
.filter-selected-preview:empty::before {
    content: '暂未选择';
    color: var(--rfj-text-tertiary);
    font-size: 0.75rem;
}

.filter-preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--rfj-color-primary-light);
    border-radius: var(--rfj-radius-sm);
    font-size: 0.75rem;
    color: var(--rfj-color-primary);
}

.filter-preview-tag .fa-times,
.filter-preview-tag .filter-preview-remove {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--rfj-transition);
}

.filter-preview-tag .fa-times:hover,
.filter-preview-tag .filter-preview-remove:hover {
    opacity: 1;
}

/* -- Filter Action Buttons (company specific) -- */
.filter-action-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--rfj-radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--rfj-transition);
    border: none;
    font-family: var(--rfj-font-sans);
}

.filter-action-btn.reset {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-text-secondary);
}

.filter-action-btn.reset:hover {
    background: var(--rfj-color-bg-hover);
    color: var(--rfj-text-primary);
}

.filter-action-btn.confirm {
    background: var(--rfj-gradient-primary);
    color: white;
}

.filter-action-btn.confirm:hover {
    transform: translateY(-1px);
    box-shadow: var(--rfj-shadow-sm);
}

/* -- Filter Tags (company specific) -- */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--rfj-color-primary-light);
    border-radius: var(--rfj-radius-lg);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-primary);
    border-radius: var(--rfj-radius-md);
    font-size: 0.8125rem;
    color: var(--rfj-color-primary);
    cursor: default;
}

.filter-tag .fa-times,
.filter-tag .filter-tag-remove {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--rfj-transition);
}

.filter-tag .fa-times:hover,
.filter-tag .filter-tag-remove:hover {
    opacity: 1;
}

.filter-tag[data-filter-type="search"] {
    background: rgba(22, 119, 255, 0.1);
    color: var(--rfj-color-blue);
    border-color: rgba(22, 119, 255, 0.2);
}

/* -- Company Main -- */
.company-main {
    padding-bottom: 4rem;
}

.company-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.company-count {
    font-size: 1rem;
    color: var(--rfj-text-secondary);
}

/* -- Company Grid -- */
.company-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.company-grid > .rfzj_company_card--mobile_list {
    display: none;
}

/* -- Company Card -- */
.company-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rfj-shadow-md);
    border-color: var(--rfj-color-primary-border);
}

.company-card-link {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.company-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.company-card-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--rfj-radius-md);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--rfj-color-border);
}

.company-card-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

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

.company-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rfj-text-primary);
    margin-bottom: 0.375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: var(--rfj-color-bg-soft);
    border-radius: var(--rfj-radius-sm);
    font-size: 0.6875rem;
    color: var(--rfj-text-tertiary);
    white-space: nowrap;
}

.company-badge.official {
    background: var(--rfj-color-blue);
    color: white;
}

.company-badge.certified {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.company-badge.certified i {
    font-size: 0.625rem;
}

.company-badge.views {
    background: var(--rfj-color-primary-light);
    color: var(--rfj-text-tertiary);
    margin-left: auto;
}

.company-badge.views i {
    font-size: 0.625rem;
}

.company-card-desc {
    font-size: 0.8125rem;
    color: var(--rfj-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4375rem;
}

.company-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    min-height: 1.625rem;
    max-height: 3.5rem;
    overflow: hidden;
    align-content: flex-start;
}

.company-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    transition: all var(--rfj-transition);
    font-size: 0.6875rem;
    white-space: nowrap;
    line-height: 1.2;
}

.company-tag:hover {
    background: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary);
    color: white;
    text-decoration: none;
}

.company-tag.more {
    background: var(--rfj-color-bg-soft);
    border-color: var(--rfj-color-border);
    color: var(--rfj-text-tertiary);
}

.company-tag.more:hover {
    background: var(--rfj-color-bg-hover);
    border-color: var(--rfj-color-border);
    color: var(--rfj-text-primary);
}

.company-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--rfj-color-border);
    background: var(--rfj-color-bg-soft);
    margin-top: auto;
}

.company-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rfj-radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--rfj-transition);
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
    font-family: var(--rfj-font-sans);
}

.company-action-btn i {
    font-size: 0.75rem;
}

.company-action-btn.primary {
    background: var(--rfj-gradient-primary);
    border: none;
    color: white;
}

.company-action-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: var(--rfj-shadow-sm);
    text-decoration: none;
    color: white;
}

.company-action-btn.secondary {
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-text-primary);
}

.company-action-btn.secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    text-decoration: none;
}

/* -- Company Loading -- */
.company-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--rfj-text-tertiary);
}

.company-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--rfj-color-border);
    border-top-color: var(--rfj-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

/* -- Company Load More -- */
.company-load-more {
    text-align: center;
    padding: 2rem 0;
}

.company-no-more {
    text-align: center;
    padding: 2rem 0;
    color: var(--rfj-text-tertiary);
    font-size: 0.875rem;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
    .filter-bar {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .filter-dropdown-panel {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: auto;
        min-width: auto;
        width: calc(100% - 2rem);
        max-height: 80vh;
        overflow-y: auto;
    }

    .filter-panel-content {
        flex-direction: column;
    }

    .filter-panel-content.location-three-level {
        flex-wrap: wrap;
    }

    .filter-panel-content.location-three-level .filter-level-one,
    .filter-panel-content.location-three-level .filter-level-two,
    .filter-panel-content.location-three-level .filter-level-three {
        flex: 1 1 100%;
    }

    .filter-level-three {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--rfj-color-border);
        padding-top: 1rem;
    }

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

@media (max-width: 768px) {
    .company-hero {
        padding: 32px 0 24px;
        padding-top: calc(var(--rfzj-mobile-channel-nav-height, 50px) + 32px);
    }

    .company-hero-title {
        font-size: 28px;
    }

    .company-hero-subtitle {
        font-size: 16px;
    }

    .vendor-activity-notice {
        margin-top: 0.75rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .vendor-activity-notice__label {
        font-size: 0.75rem;
    }

    .vendor-activity-notice__viewport {
        height: 1.25rem;
    }

    .vendor-activity-notice__item {
        height: 1.25rem;
        line-height: 1.25rem;
        font-size: 0.75rem;
    }

    .company-hero-banners {
        display: flex;
        gap: 8px;
        margin-top: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .company-hero-banners::-webkit-scrollbar {
        display: none;
    }

    .company-hero-banner {
        flex: 0 0 70%;
        scroll-snap-align: center;
    }

    .company-hero-banner img {
        border-radius: 6px;
    }

    .company-topic-explorer {
        margin-top: 18px;
    }

    .company-topic-explorer__heading {
        display: block;
    }

    .company-topic-explorer__heading h2 {
        font-size: 20px;
    }

    .company-topic-explorer__heading p {
        margin-top: 6px;
        text-align: left;
    }

    .company-topic-grid {
        display: flex;
        gap: 10px;
        margin-right: -15px;
        padding-right: 15px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .company-topic-grid::-webkit-scrollbar {
        display: none;
    }

    .company-topic-card {
        min-height: 72px;
        flex: 0 0 72%;
        scroll-snap-align: start;
    }

    .filter-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 12px;
    }

    .filter-dropdown-group {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .filter-dropdown {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }

    .filter-dropdown-btn {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        justify-content: center;
    }

    @keyframes mobileFilterSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .filter-panel-content {
        flex-direction: column;
        max-height: 50vh;
    }

    .filter-panel-content.location-three-level {
        flex-wrap: wrap;
    }

    .filter-panel-content.location-three-level .filter-level-one,
    .filter-panel-content.location-three-level .filter-level-two,
    .filter-panel-content.location-three-level .filter-level-three {
        flex: 1 1 100%;
    }

    .filter-level-three {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--rfj-color-border);
        padding-top: 1rem;
    }

    .filter-reset-all {
        flex-shrink: 0;
    }

    .company-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .company-grid > .rfzj_company_card--list {
        display: none;
    }

    .company-grid > .rfzj_company_card--mobile_list {
        display: grid;
    }

    .company-card-link {
        padding: 1rem;
    }

    .company-card-header {
        gap: 0.75rem;
    }

    .company-card-logo {
        width: 48px;
        height: 48px;
    }

    .company-card-title {
        font-size: 1rem;
    }

    .company-card-actions {
        padding: 0.75rem 1rem;
        gap: 0.375rem;
    }

    .company-action-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .company-hero {
        padding: 24px 0 16px;
        padding-top: calc(var(--rfzj-mobile-channel-nav-height, 50px) + 24px);
    }

    .company-hero-title {
        font-size: 24px;
    }

    .company-card-actions {
        flex-wrap: wrap;
    }
}

/* ==========================================
   Ranking Page Styles
   ========================================== */

/* -- Hero Section -- */
.hero {
    padding: 48px 0 36px;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--rfj-text-primary);
    margin: 0 0 12px;
    line-height: 1.3;
}

.hero-title .gradient-text {
    background: none;
    color: inherit;
    -webkit-text-fill-color: currentColor;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--rfj-text-secondary);
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ranking-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 900px;
    margin: 24px auto 0;
}

.ranking-search-row .search-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
}

.ranking-search-row .search-box,
.ranking-search-row .rfj-ai-ranking-entry {
    height: 100%;
}

.ranking-search-row + .hero-banner {
    margin-top: 24px;
}

/* -- Hero Banner -- */
.hero-banner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    box-shadow: var(--rfj-shadow-lg);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* -- Categories Navigation -- */
.categories-nav {
    position: sticky;
    top: 50px;
    z-index: 50;
    padding: 1rem 0;
    margin-bottom: 2rem;
    overflow: visible;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--rfj-radius-md);
    box-shadow: var(--rfj-shadow-sm);
}

.ranking-filter-toggle {
    display: none;
}

.ranking-filter-panel {
    display: block;
    position: relative;
    min-width: 0;
}

:root {
    --rfj-ranking-filter-toggle-height: 46px;
}

.categories-list {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.ranking-category-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--rfj-color-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--rfj-text-secondary);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color var(--rfj-transition), border-color var(--rfj-transition), box-shadow var(--rfj-transition), transform var(--rfj-transition);
}

.ranking-category-arrow:hover,
.ranking-category-arrow:focus-visible {
    border-color: var(--rfj-color-border-strong);
    color: var(--rfj-text-primary);
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-50%) scale(1.04);
}

.ranking-category-arrow--left {
    left: 6px;
}

.ranking-category-arrow--right {
    right: 6px;
}

.ranking-category-arrow[hidden] {
    display: none;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    color: var(--rfj-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--rfj-transition);
    white-space: nowrap;
    font-family: var(--rfj-font-sans);
}

.category-btn:hover {
    background: var(--rfj-gradient-secondary);
    color: white;
}

.category-btn.active {
    background: var(--rfj-gradient-secondary);
    border-color: transparent;
    color: white;
    box-shadow: var(--rfj-shadow-md);
}

.category-btn .icon {
    width: 24px;
    height: 24px;
    font-size: 1.1rem;
    flex-shrink: 0;
    object-fit: contain;
}

.category-btn .icon .category-term-icon {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.category-btn .count {
    padding: 0.125rem 0.5rem;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--rfj-radius-sm);
    font-size: 0.75rem;
}

.category-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* -- Main Content -- */
.main-content {
    padding-bottom: 4rem;
}

.ranking-main .section {
    scroll-margin-top: 132px;
}

/* -- Loading -- */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 16px;
    color: var(--rfj-text-tertiary);
    font-size: 14px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--rfj-color-border);
    border-top-color: var(--rfj-color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* -- Ranking Grid & Cards -- */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1rem;
}

.ranking-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
    cursor: pointer;
}

.ranking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rfj-gradient-primary);
    opacity: 0;
    transition: opacity var(--rfj-transition);
    z-index: 1;
}

.ranking-card:hover {
    transform: translateY(-4px);
    border-color: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-lg), 0 0 25px var(--rfj-color-primary-shadow);
}

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

.ranking-card-image {
    width: 130px;
    min-height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    margin: 12px;
    border-radius: var(--rfj-radius-md);
}

.ranking-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--rfj-transition);
    border-radius: var(--rfj-radius-md);
}

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

.ranking-card-content {
    flex: 1;
    padding: 12px 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

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

.ranking-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.ranking-card-date {
    font-size: 0.7rem;
    color: var(--rfj-text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ranking-card-date svg {
    width: 12px;
    height: 12px;
}

.ranking-card-desc {
    font-size: 0.75rem;
    color: var(--rfj-text-tertiary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
    .ranking-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 32px 0 24px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .ranking-search-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 16px;
    }

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

    .ranking-card-image {
        min-height: 160px;
    }

    .ranking-card-content {
        padding: 12px;
    }

    .ranking-hero {
        margin-top: var(--rfj-ranking-filter-toggle-height);
        padding-top: 32px;
    }

    .ranking-hero .hero-banner {
        display: none;
    }

    .ranking-main .categories-nav {
        position: fixed;
        top: var(--rfzj-mobile-channel-nav-height, 50px);
        left: 0;
        right: 0;
        z-index: 210;
        margin: 0;
        padding: 0;
        overflow: visible;
        border-radius: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        backdrop-filter: saturate(160%) blur(14px);
    }

    .ranking-filter-toggle {
        display: flex;
        align-items: center;
        width: 100%;
        height: var(--rfj-ranking-filter-toggle-height);
        border: 0;
        background: transparent;
        color: #111827;
        padding: 0 16px;
        font-family: var(--rfj-font-sans);
        cursor: pointer;
    }

    .ranking-filter-toggle__label {
        color: #6b7280;
        font-size: 13px;
        font-weight: 600;
    }

    .ranking-filter-toggle__current {
        min-width: 0;
        margin-left: 10px;
        overflow: hidden;
        color: #111827;
        font-size: 15px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ranking-filter-toggle__icon {
        margin-left: auto;
        color: #6b7280;
        transition: transform var(--rfj-transition);
    }

    .ranking-main .categories-nav.is-open .ranking-filter-toggle__icon {
        transform: rotate(180deg);
    }

    .ranking-filter-panel {
        max-height: 0;
        overflow: hidden;
        border-top: 0 solid rgba(15, 23, 42, 0.08);
        opacity: 0;
        transform: translateY(-6px);
        transition: max-height 0.24s ease, opacity 0.18s ease, transform 0.24s ease, border-top-width 0.18s ease;
    }

    .ranking-main .categories-nav.is-open .ranking-filter-panel {
        max-height: min(62vh, 520px);
        overflow-y: auto;
        border-top-width: 1px;
        opacity: 1;
        transform: translateY(0);
        -webkit-overflow-scrolling: touch;
    }

    .ranking-main .categories-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 12px 16px 16px;
        overflow: visible;
        scroll-behavior: auto;
    }

    .ranking-category-arrow {
        display: none;
    }

    .ranking-main .category-btn {
        justify-content: flex-start;
        min-width: 0;
        border-radius: 8px;
        padding: 10px 11px;
        font-size: 13px;
    }

    .ranking-main .category-btn .category-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ranking-main .category-btn .count {
        margin-left: auto;
    }

    .ranking-main .section {
        scroll-margin-top: calc(var(--rfzj-mobile-channel-nav-height, 50px) + var(--rfj-ranking-filter-toggle-height) + 12px);
    }

    .ranking-main .ranking-section-header .section-title {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 8px;
        padding-bottom: 0;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
    }

    .ranking-main .ranking-section-header .section-title > .icon {
        display: inline-flex;
        flex: 0 0 40px;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .ranking-main .ranking-section-header .section-title > .icon .category-term-icon {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .ranking-main .ranking-section-header .section-title .section-count {
        flex-shrink: 0;
        padding: 6px 10px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        white-space: nowrap;
    }

    .ranking-main .ranking-section-header .section-desc {
        margin: 0 0 16px;
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 24px 0 16px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-banner {
        border-radius: var(--rfj-radius-sm);
    }
}

/* Categories Page Styles */
.categories-hero {
    padding: 48px 0 36px;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.categories-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--rfj-text-primary);
    text-align: center;
    margin: 0 0 12px;
}

.categories-hero-subtitle {
    text-align: center;
    color: var(--rfj-text-secondary);
    font-size: 18px;
    margin: 0 0 32px;
}

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

.categories-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--rfj-color-bg-panel);
    border: 2px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 8px;
    transition: all var(--rfj-transition);
    box-shadow: var(--rfj-shadow-md);
}

.categories-search-box:focus-within {
    border-color: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-lg), 0 0 0 4px var(--rfj-color-primary-shadow);
}

.categories-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--rfj-text-primary);
    outline: none;
    font-family: var(--rfj-font-sans);
}

.categories-search-input::placeholder {
    color: var(--rfj-text-tertiary);
}

.categories-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--rfj-gradient-primary);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--rfj-radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--rfj-transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.categories-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.categories-search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--rfj-shadow-sm);
}

.categories-search-btn:hover::before {
    left: 100%;
}

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

.categories-help-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--rfj-text-tertiary);
    text-align: center;
}

.categories-help-text a {
    color: var(--rfj-color-primary);
    text-decoration: none;
    transition: color var(--rfj-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.categories-help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

.categories-main-wrapper {
    display: flex;
    gap: 32px;
    padding: 32px 0 64px;
}

.categories-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.categories-nav-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 24px;
    box-shadow: var(--rfj-shadow-sm);
}

.categories-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rfj-text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rfj-color-border);
}

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

.categories-nav-item {
    margin-bottom: 8px;
}

.categories-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--rfj-text-secondary);
    text-decoration: none;
    border-radius: var(--rfj-radius-md);
    transition: all var(--rfj-transition);
    font-size: 14px;
}

.categories-nav-link:hover {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-text-primary);
}

.categories-nav-item.active .categories-nav-link {
    background: var(--rfj-gradient-primary);
    color: white;
}

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

.categories-nav-icon img {
    width: 100%;
    height: auto;
    border-radius: var(--rfj-radius-sm);
}

.categories-content {
    flex: 1;
    min-width: 0;
}

.category-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.category-title-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--rfj-text-primary);
    transition: all var(--rfj-transition);
}

.category-title-link:hover {
    color: var(--rfj-color-primary);
}

.category-title-link:hover .category-title-arrow {
    transform: translateX(4px);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rfj-color-bg-soft);
    border-radius: var(--rfj-radius-md);
    flex-shrink: 0;
}

.category-icon img {
    width: 28px;
    height: auto;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.category-title-arrow {
    color: var(--rfj-text-tertiary);
    transition: transform var(--rfj-transition);
}

.category-count {
    padding: 4px 12px;
    background: var(--rfj-color-bg-soft);
    border-radius: var(--rfj-radius-lg);
    font-size: 12px;
    color: var(--rfj-text-tertiary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    position: relative;
    overflow: hidden;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    box-shadow: var(--rfj-shadow-sm);
    transition: all var(--rfj-transition);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rfj-gradient-primary);
    opacity: 0;
    transition: opacity var(--rfj-transition);
}

.category-card:hover {
    border-color: var(--rfj-color-primary-border);
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-2px);
}

.category-card-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.category-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--rfj-text-primary);
    transition: color var(--rfj-transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.category-card:hover .category-card-title {
    color: var(--rfj-color-primary);
}

.category-section.hidden,
.category-card.hidden {
    display: none;
}



/* ==========================================
   Featured Category Cards (Home Page)
   ========================================== */

.featured-category-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    overflow: hidden;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

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

.featured-category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--cat-color, var(--rfj-gradient-primary));
    opacity: 0;
    transition: opacity var(--transition-normal);
    right:auto;
    height: auto;
}

.featured-category-card .category-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--rfj-radius-md);
    background: rgba(99, 102, 241, 0.1);
    color: var(--cat-color, var(--rfj-color-primary));
    transition: all 0.3s ease;
}

.featured-category-card:hover .category-icon {
    transform: scale(1.05) rotate(-3deg);
}

.featured-category-card .category-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.featured-category-card:hover .category-icon svg {
    transform: scale(1.1);
}

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

.featured-category-card .category-name {
    margin: 0;
    color: var(--rfj-text-primary);
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.featured-category-card:hover .category-name {
    color: var(--rfj-color-primary);
}

.featured-category-card .category-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-text-tertiary);
    transition: all 0.3s ease;
}

.featured-category-card .category-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.featured-category-card:hover .category-arrow {
    background: var(--rfj-color-bg-tint);
    color: var(--rfj-color-primary);
    transform: translateX(2px);
}

.featured-category-card:hover .category-arrow svg {
    transform: translateX(2px);
}

.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    background: var(--rfj-gradient-primary);
    background-size: 200% 200%;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: var(--rfj-shadow-sm);
    transition: all var(--rfj-transition);
}

.mobile-nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--rfj-shadow-sm);
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--rfj-transition);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--rfj-color-bg);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform var(--rfj-transition);
    overflow-y: auto;
    padding: 24px;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

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

.mobile-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--rfj-text-primary);
}

.mobile-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: 50%;
    color: var(--rfj-text-secondary);
    cursor: pointer;
    transition: all var(--rfj-transition);
}

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

.admin-bar .categories-sidebar {
    top: 112px;
    max-height: calc(100vh - 152px);
}

@media (max-width: 1024px) {
    .categories-sidebar {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-sidebar-overlay {
        display: block;
    }

    .mobile-sidebar {
        display: block;
    }
}

@media (max-width: 768px) {
    .categories-hero {
        padding: 32px 0 24px;
    }

    .categories-hero-title {
        font-size: 28px;
    }

    .categories-hero-subtitle {
        font-size: 16px;
    }

    .categories-search-box {
        padding: 6px;
    }

    .categories-search-input {
        padding: 12px 16px;
        font-size: 15px;
    }

    .categories-search-btn {
        width: 44px;
        height: 44px;
    }

    .categories-main-wrapper {
        gap: 0;
        padding: 24px 0 48px;
    }

    .category-section {
        margin-bottom: 32px;
    }

    .category-header {
        margin-bottom: 16px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-icon {
        width: 36px;
        height: 36px;
    }

    .category-icon img {
        width: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card-link {
        padding: 16px;
    }

    .category-card-title {
        font-size: 14px;
    }

    .mobile-nav-toggle {
        bottom: 120px;
        right: auto;
        left: 24px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .categories-hero {
        padding: 24px 0 16px;
    }

    .categories-hero-title {
        font-size: 24px;
    }

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

    .category-card-link {
        padding: 14px;
    }
}

@media (max-width: 782px) {
    .admin-bar .categories-sidebar {
        top: 92px;
        max-height: calc(100vh - 132px);
    }
}

/* ==========================================
   Software List Page Styles
   ========================================== */

/* -- Hero Section -- */
.post-hero {
    padding: 48px 0 36px;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.post-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--rfj-text-primary);
    margin: 0 0 12px;
    line-height: 1.3;
}

.post-hero-subtitle {
    font-size: 18px;
    color: var(--rfj-text-secondary);
    margin: 0 0 32px;
}

/* -- Search Box -- */
.search-wrapper {
    max-width: 600px;
    margin: 24px auto 0;
}

.search-wrapper .search-box {
    display: flex;
    align-items: center;
    background: var(--rfj-color-bg-panel);
    border: 2px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 6px;
    transition: all var(--rfj-transition);
    box-shadow: var(--rfj-shadow-md);
}

.search-wrapper .search-box:focus-within {
    border-color: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-lg), 0 0 0 4px var(--rfj-color-primary-shadow);
}

.search-wrapper .search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--rfj-text-primary);
    outline: none;
    font-family: var(--rfj-font-sans);
}

.search-wrapper .search-input::placeholder {
    color: var(--rfj-text-tertiary);
}

.search-wrapper .search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--rfj-gradient-primary);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--rfj-radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--rfj-transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.search-wrapper .search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.search-wrapper .search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--rfj-shadow-sm);
}

.search-wrapper .search-btn:hover::before {
    left: 100%;
}

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

.search-wrapper .help-text {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--rfj-text-tertiary);
}

.search-wrapper .help-text a {
    color: var(--rfj-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--rfj-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.search-wrapper .help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

.search-tip {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--rfj-text-tertiary);
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: searchTipFadeIn 0.3s ease;
}

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

.search-wrapper .search-box.shake {
    animation: searchShake 0.4s ease;
    border-color: var(--rfj-color-danger) !important;
}

@keyframes searchShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* -- Filter Section -- */
.software-filter-section {
    margin-bottom: 32px;
}

/* -- Filter Dropdown Trigger -- */
.filter-dropdown {
    position: relative;
}

.filter-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--rfj-transition);
    white-space: nowrap;
    font-family: var(--rfj-font-sans);
}

.filter-dropdown-btn:hover {
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary-light);
}

.filter-dropdown-btn.active {
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--rfj-color-primary);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* -- Filter Panel -- */
.filter-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 480px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-lg);
    z-index: 100;
    overflow: hidden;
}

.filter-dropdown.open .filter-dropdown-panel {
    display: block;
    animation: filterPanelIn 0.2s ease;
}

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

.filter-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rfj-color-border);
}

.filter-search-bar svg {
    color: var(--rfj-text-tertiary);
    flex-shrink: 0;
}

.filter-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: 14px;
    color: var(--rfj-text-primary);
    outline: none;
    font-family: var(--rfj-font-sans);
}

.filter-panel-content {
    display: flex;
    max-height: 320px;
    overflow-y: auto;
}

.filter-panel-content.single-level {
    padding: 12px 16px;
    flex-direction: column;
}

.filter-level-one,
.filter-level-two {
    flex: 1;
    padding: 12px 16px;
    min-width: 0;
}

.filter-level-one {
    border-right: 1px solid var(--rfj-color-border);
}

.filter-level-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--rfj-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--rfj-radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--rfj-text-primary);
    transition: background 0.15s ease;
}

.filter-checkbox-item:hover {
    background: var(--rfj-color-bg-soft);
}

.filter-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--rfj-color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkbox-item.search-highlight span mark {
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
    border-radius: 2px;
    padding: 0 2px;
}

.filter-empty-tip {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--rfj-text-tertiary);
}

/* -- Filter Panel Footer -- */
.filter-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--rfj-color-border);
    background: var(--rfj-color-bg-soft);
}

.filter-selected-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-height: 24px;
    overflow: hidden;
}

.filter-preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--rfj-color-primary-light);
    border-radius: 999px;
    font-size: 12px;
    color: var(--rfj-color-primary);
}

.filter-panel-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.filter-action-btn {
    padding: 6px 16px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-family: var(--rfj-font-sans);
}

.filter-action-btn.reset {
    background: transparent;
    color: var(--rfj-text-secondary);
}

.filter-action-btn.reset:hover {
    background: var(--rfj-color-bg-panel);
    border-color: var(--rfj-color-border-strong);
}

.filter-action-btn.confirm {
    background: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary);
    color: #fff;
}

.filter-action-btn.confirm:hover {
    background: var(--rfj-color-primary-hover);
    border-color: var(--rfj-color-primary-hover);
}

/* -- Clear All Button -- */
.filter-reset-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-text-tertiary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--rfj-transition);
    white-space: nowrap;
    font-family: var(--rfj-font-sans);
}

.filter-reset-all:hover {
    color: var(--rfj-color-danger);
    border-color: var(--rfj-color-danger);
}

/* -- Custom Select -- */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 1rem;
    background: var(--rfj-color-bg);
    border: 2px solid var(--rfj-color-blue);
    border-radius: var(--rfj-radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-select-selection:hover {
    border-color: var(--rfj-color-bg-hover);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.custom-select-rendered {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-rendered:empty::before {
    content: attr(data-placeholder);
    color: var(--rfj-text-tertiary);
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--rfj-color-primary);
    transition: transform var(--transition-fast);
}

.custom-select-arrow.open {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--rfj-color-bg-soft);
    border: 2px solid var(--rfj-color-blue);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-lg);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow: hidden;
    flex-direction: column;
}

.custom-select-dropdown.open {
    display: flex;
}

.custom-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--rfj-color-border);
}

.custom-select-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--rfj-color-bg);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-color-primary);
    transition: all var(--transition-fast);
    font-size: 16px;
}

.custom-select-search-input:focus {
    outline: none;
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-bg);
}

.custom-select-search-input::placeholder {
    color: var(--rfj-color-primary);
}

.custom-select-results {
    max-height: 300px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    color: var(--rfj-text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--rfj-color-border);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
}

.custom-select-option__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-select-option__logo {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
    background-color: var(--rfj-color-bg);
    border-radius: var(--rfj-radius-md, 6px);
    border: 1px solid var(--rfj-color-border);
    padding: 4px;
    flex-shrink: 0;
}

.custom-select-option__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.custom-select-option__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rfj-text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-option__madeby {
    font-size: 0.75rem;
    color: var(--rfj-text-tertiary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-option:hover .custom-select-option__name {
    color: var(--rfj-color-primary);
}

.custom-select-option:hover .custom-select-option__madeby {
    color: var(--rfj-color-primary);
    opacity: 0.7;
}

.custom-select-option img {
    display: none;
}

.custom-select-message {
    padding: 1rem;
    text-align: center;
    color: var(--rfj-text-tertiary);
    font-size: 0.9rem;
}

.custom-select-error {
    color: var(--rfj-color-danger-text);
}

.custom-select-loading {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--rfj-text-tertiary);
    font-size: 0.9rem;
}

.custom-select-loading .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--rfj-color-border);
    border-top-color: var(--rfj-color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.help-text {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--rfj-text-tertiary);
}

@keyframes filterTagIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.filter-tag svg,
.filter-tag .filter-tag-close,
.filter-tag .filter-tag-remove,
.filter-tag .fa-times {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--rfj-transition);
    text-decoration: none;
    color: inherit;
}

.filter-tag svg:hover,
.filter-tag .filter-tag-close:hover,
.filter-tag .filter-tag-remove:hover,
.filter-tag .fa-times:hover {
    opacity: 1;
}

.filter-tag[data-filter-type="search"] {
    background: rgba(22, 119, 255, 0.1);
    color: var(--rfj-color-blue);
}

.filter-tag.muted {
    color: var(--rfj-text-tertiary);
    border-style: dashed;
    background: var(--rfj-color-bg-panel);
}

/* -- Software Grid -- */
.software-main {
    min-height: 300px;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* -- Software Card -- */
.software-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rfj-shadow-md);
    border-color: var(--rfj-color-primary-border);
}

.software-card-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-decoration: none;
    flex: 1;
}

.software-card-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--rfj-radius-md);
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--rfj-color-border);
}

.software-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

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

.software-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--rfj-text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.software-card-status {
    display: inline-block;
    padding: 1px 6px;
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
    font-size: 10px;
    font-weight: 500;
    border-radius: var(--rfj-radius-xs);
    flex-shrink: 0;
    line-height: 1.5;
}

.software-card-vendor {
    font-size: 13px;
    color: var(--rfj-text-tertiary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.software-card-function-text {
    font-size: 12px;
    color: var(--rfj-text-tertiary);
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- Software Brief -- */
.software-card-brief {
    padding: 0 20px;
    flex: 1;
}

.software-card-brief p {
    font-size: 13px;
    color: var(--rfj-text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- Card Footer -- */
.software-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid var(--rfj-color-border);
    background: var(--rfj-color-bg-soft);
}

.software-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.software-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--rfj-text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

.software-card-views svg {
    width: 12px;
    height: 12px;
}

/* -- Enquiry Button -- */
.software-card-enquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: var(--rfj-gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--rfj-radius-sm);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--rfj-transition);
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.software-card-enquiry-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--rfj-shadow-sm);
    text-decoration: none;
    color: #fff;
}

/* -- No Results -- */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 16px;
}

.no-results-icon {
    color: var(--rfj-text-tertiary);
    opacity: 0.4;
    margin-bottom: 16px;
}

.no-results-text {
    font-size: 16px;
    color: var(--rfj-text-tertiary);
}

/* -- Loading Spinner -- */
.software-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    color: var(--rfj-text-tertiary);
    font-size: 14px;
}

/* -- Load More -- */
.software-load-more {
    text-align: center;
    padding: 24px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 32px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-family: var(--rfj-font-sans);
}

.load-more-btn:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
    background: var(--rfj-color-primary-light);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* -- No More -- */
.software-no-more {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--rfj-text-tertiary);
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .post-hero {
        padding: 32px 0 24px;
    }

    .post-hero-title {
        font-size: 28px;
    }

    .post-hero-subtitle {
        font-size: 16px;
    }

    .search-wrapper {
        margin: 16px auto 0;
    }

    .search-wrapper .search-input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .search-wrapper .search-btn {
        width: 44px;
        height: 44px;
    }

    .filter-bar {
        padding: 12px 16px;
        gap: 12px;
    }

    .filter-dropdown-panel {
        min-width: 300px;
        left: -16px;
    }


    .filter-level-one {
        border-right: none;
        border-bottom: 1px solid var(--rfj-color-border);
    }

    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .software-card-link {
        padding: 16px;
        gap: 12px;
    }

    .software-card-logo {
        width: 48px;
        height: 48px;
    }

    .software-card-brief {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .post-hero {
        padding: 24px 0 16px;
    }

    .post-hero-title {
        font-size: 24px;
    }

    .filter-bar {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-dropdown-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

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

.post-page .post-list {
    align-items: stretch;
}

.post-page .rfzj_post_card--feature {
    height: 100%;
}

@media (max-width: 768px) {
    .post-page {
        --rfj-post-filter-height: 46px;
        --rfj-post-filter-top: var(--rfzj-mobile-channel-nav-height, 50px);
    }

    .post-page .post-filter-section {
        position: sticky;
        top: var(--rfj-post-filter-top);
        z-index: 210;
        min-height: var(--rfj-post-filter-height);
        margin: 0 calc(50% - 50vw) 1.25rem;
        padding: 4px 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        backdrop-filter: saturate(160%) blur(14px);
    }

    .post-page .post-filter-section.is-fixed {
        position: fixed;
        top: var(--rfj-post-filter-top);
        left: 0;
        right: 0;
        margin: 0;
    }

    .post-page .post-filter-placeholder {
        display: none;
    }

    .post-page .post-filter-placeholder.is-active {
        display: block;
        height: calc(var(--rfj-post-filter-height) + 1.25rem);
    }

    .post-page .post-category-tabs {
        flex-wrap: nowrap;
        gap: 8px;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 3px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .post-page .post-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .post-page .post-tab-item {
        align-self: center;
        flex: 0 0 auto;
        padding: 7px 13px;
        font-size: 13px;
        line-height: 1.2;
        box-shadow: none;
    }

    .post-page .rfzj_post_card--feature {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 13px;
        padding: 14px 0;
    }

    .post-page .rfzj_post_card--feature .rfzj_post_card__media {
        width: 112px;
        aspect-ratio: 16 / 10;
        border-radius: 14px;
    }

    .post-page .rfzj_post_card--feature .rfzj_post_card__body {
        padding-top: 0;
    }

    .post-page .rfzj_post_card--feature .rfzj_post_card__title {
        font-size: 16px;
    }

    .post-page .rfzj_post_card--feature .rfzj_post_card__summary {
        -webkit-line-clamp: 2;
        font-size: 13px;
    }

    .post-page .rfzj_post_card--feature .rfzj_post_card__facts {
        display: none;
    }

    .post-page .post-list,
    .post-page .featured-posts-section {
        scroll-margin-top: calc(var(--rfzj-mobile-channel-nav-height, 50px) + var(--rfj-post-filter-height) + 12px);
    }
}

/* ===== 全局浮动操作 ===== */
.rfj-floating-actions--mobile {
    position: fixed;
    right: 10px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: var(--rfj-z-popover, 1100);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rfj-floating-actions__fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffffee;
    color: var(--rfj-text-primary);
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.rfj-floating-actions__fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.rfj-floating-actions__fab .text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.rfj-floating-actions__fab.rfj-mobile-ai-btn {
    width: auto;
    min-width: 78px;
    padding: 0 12px;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    background: linear-gradient(135deg, #315efb 0%, #7357e8 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(49, 94, 251, 0.32);
}

.rfj-floating-actions__fab.rfj-mobile-ai-btn .icon svg {
    width: 20px;
    height: 20px;
}

.rfj-floating-actions__fab.rfj-mobile-ai-btn .text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.rfj-floating-actions__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#mobile-backtop,
.rfj-floating-backtop {
    opacity: 0;
    pointer-events: none;
}

#mobile-backtop.is-visible,
.rfj-floating-backtop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

#mobile-backtop {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

#mobile-backtop:hover {
    background: rgba(0, 0, 0, 0.72);
}

.rfj-floating-backtop--desktop {
    position: fixed;
    right: 16px;
    bottom: 32px;
    z-index: 999;
    transition: opacity 0.2s ease;
}

@media (min-width: 769px) {
    .rfj-floating-actions--mobile {
        display: none;
    }
}

/* ===== AJAX 加载指示器（全局） ===== */
.rfj-loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
}

/* ===== 自定义 Modal（替代 Bootstrap modal） ===== */
.rfj-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow: hidden;
    outline: 0;
}

.rfj-modal.is-open {
    display: block;
}

.rfj-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.rfj-modal__dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 16px;
    pointer-events: none;
}

.rfj-modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    overflow: hidden;
}

.rfj-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.rfj-modal__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--rfj-text-primary);
    margin: 0;
    text-align: center;
    flex: 1;
}

.rfj-modal__close {
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: var(--rfj-text-tertiary);
    cursor: pointer;
    padding: 0 4px;
    flex: 0 0 auto;
}

.rfj-modal__close:hover,
.rfj-modal__close:focus {
    color: var(--rfj-text-tertiary);
    outline: none;
}

.rfj-modal__body {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}
/* Shared inline SVG icons replace external icon-font resources on light pages. */
.rfj-svg-icon {
    display: inline-block;
    fill: none;
    flex: 0 0 auto;
    height: 1em;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vertical-align: -0.15em;
    width: 1em;
}

/* Keep the AI gradient visible against a light hover and focus background. */
.right-nav-button.ai-subscription-button .icon svg {
    width: 28px;
    height: 17px;
}
.right-nav-button.ai-subscription-button:hover,
.right-nav-button.ai-subscription-button:focus-visible {
    background-color: #eef2ff;
    color: #4f46a5;
}
.right-nav-button.ai-subscription-button:hover .text,
.right-nav-button.ai-subscription-button:hover .icon,
.right-nav-button.ai-subscription-button:focus-visible .text,
.right-nav-button.ai-subscription-button:focus-visible .icon {
    color: #4f46a5;
}
.right-nav-button.ai-subscription-button:focus-visible {
    outline: 2px solid #8b80d5;
    outline-offset: 2px;
}
.right-nav-button.ai-subscription-button:active {
    background-color: #e3e8ff;
}
