/* ==========================================
   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;
}

