.module-features-list {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.module-features-list .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-features-list-container {
    position: relative;
    z-index: 2;
}


.features-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 8px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.features-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.features-tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, rgba(37, 99, 235, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px;
}

.features-tab-btn .tab-icon,
.features-tab-btn .tab-text {
    position: relative;
    z-index: 1;
}

.features-tab-btn .tab-icon {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.features-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.features-tab-btn:hover .tab-icon {
    transform: scale(1.1);
}

.features-tab-btn.active {
    color: #fff;
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.features-tab-btn.active::before {
    opacity: 1;
}


.features-tabs-content {
    position: relative;
}

.features-tab-pane {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.features-tab-pane.active {
    display: block;
}



.features-grid {
    display: grid;
    gap: 24px;
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.features-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary, #2563eb), var(--color-primary-light, #60a5fa));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.2));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.feature-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}


html.dark-mode .features-tabs {
    background: rgba(30, 41, 59, 0.5);
}

html.dark-mode .features-tab-btn {
    color: var(--dm-text-muted);
}

html.dark-mode .features-tab-btn.active {
    color: #fff;
}

html.dark-mode .feature-card {
    background: var(--dm-bg-card, #1e293b);
    border-color: var(--dm-border, #334155);
}

html.dark-mode .feature-card:hover {
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
}

html.dark-mode .feature-title {
    color: var(--dm-text, #e2e8f0);
}

html.dark-mode .feature-desc {
    color: var(--dm-text-muted, #94a3b8);
}


@media (max-width: 1024px) {
    .features-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .module-features-list {
        padding: 60px 0;
    }

    .features-tabs {
        margin-bottom: 30px;
        padding: 6px;
        gap: 8px;
    }

    .features-tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .features-tab-btn .tab-icon {
        font-size: 1.1rem;
    }

    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .features-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .features-tab-btn {
        justify-content: center;
    }

    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: 1fr;
    }
}








.module-contact {
    position: relative;
}

.module-contact .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-contact .module-contact-container {
    position: relative;
    z-index: 2;
}

.module-contact .section-header {
    margin-bottom: 50px;
}

.module-contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.module-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.module-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.module-contact .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-contact .contact-icon svg {
    width: 22px;
    height: 22px;
}

.module-contact .contact-icon.icon-company {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.module-contact .contact-icon.icon-phone {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.module-contact .contact-icon.icon-email {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.module-contact .contact-icon.icon-address {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.module-contact .contact-icon.icon-hours {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.module-contact .contact-item-content h4 {
    margin: 0 0 4px;
    color: var(--dm-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.module-contact .contact-item-content p {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.5;
}

.module-contact .contact-item-content a {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.module-contact .contact-item-content a:hover {
    color: var(--color-primary, #2563eb);
}

.module-contact .contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.module-contact .contact-form .form-group {
    margin-bottom: 15px;
}

.module-contact .contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.module-contact .contact-form input,
.module-contact .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.module-contact .contact-form input:focus,
.module-contact .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary, #2563eb);
}

.module-contact .contact-form textarea {
    resize: vertical;
}

.module-contact .contact-form .btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-contact .contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.module-contact .contact-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.module-contact .contact-placeholder {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.module-contact .contact-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.module-contact .contact-placeholder h3 {
    color: #fff;
    font-weight: 600;
    margin: 0 0 10px;
}

.module-contact .contact-placeholder p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.module-contact .form-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 40px 60px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.module-contact .form-toast-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.module-contact .form-toast-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.module-contact .form-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

@media (max-width: 768px) {
    .module-contact .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .module-contact .section-header {
        margin-bottom: 40px;
    }

    .module-contact .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .module-contact .form-toast {
        padding: 30px 40px;
        width: 85%;
    }
}

html.dark-mode .module-contact {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-contact .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-contact .section-subtitle {
    color: var(--dm-text-muted);
}

html.dark-mode .module-contact .contact-item-content h4 {
    color: var(--dm-text-muted);
}

html.dark-mode .module-contact .contact-item-content p,
html.dark-mode .module-contact .contact-item-content a {
    color: var(--dm-text);
}

html.dark-mode .module-contact .contact-form {
    background: var(--dm-bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

html.dark-mode .module-contact .contact-form input,
html.dark-mode .module-contact .contact-form textarea {
    background: var(--dm-bg);
    border-color: var(--dm-border);
    color: #f1f5f9;
}

html.dark-mode .module-contact .contact-form input:focus,
html.dark-mode .module-contact .contact-form textarea:focus {
    border-color: #2563eb;
}

html.dark-mode .module-contact .contact-form input::placeholder,
html.dark-mode .module-contact .contact-form textarea::placeholder {
    color: #64748b;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


.module-experience-timeline {
    position: relative;
}

.module-experience-timeline .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-experience-timeline .exp-timeline-container {
    position: relative;
    z-index: 2;
}

.module-experience-timeline .section-header {
    margin-bottom: 50px;
}

.module-experience-timeline .exp-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.module-experience-timeline .exp-wrapper.layout-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
}

.module-experience-timeline .exp-group {
    margin-bottom: 40px;
}

.module-experience-timeline .exp-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 30px;
    color: #1e293b;
}

.module-experience-timeline .exp-group-icon {
    font-size: 1.5rem;
}

.module-experience-timeline .exp-list {
    --exp-line-color: var(--color-primary, #3b82f6);
    position: relative;
    padding-left: 30px;
}

.module-experience-timeline .exp-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--exp-line-color);
    opacity: 0.3;
}

.module-experience-timeline .exp-item {
    position: relative;
    padding-bottom: 30px;
}

.module-experience-timeline .exp-item:last-child {
    padding-bottom: 0;
}

.module-experience-timeline .exp-dot {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--exp-line-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--exp-line-color);
}

.module-experience-timeline .exp-dot.style-ring {
    background: #fff;
}

.module-experience-timeline .exp-dot.style-icon {
    width: 28px;
    height: 28px;
    left: -37px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.module-experience-timeline .exp-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.module-experience-timeline .exp-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--exp-line-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.module-experience-timeline .exp-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.module-experience-timeline .exp-company {
    font-size: 0.95rem;
    color: #64748b;
    margin: 4px 0 0;
}

.module-experience-timeline .exp-company a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.module-experience-timeline .exp-company a:hover {
    color: var(--exp-line-color);
}

.module-experience-timeline .exp-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin: 12px 0 0;
}

.module-experience-timeline .exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.module-experience-timeline .exp-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
}


@media (max-width: 768px) {
    .module-experience-timeline .exp-wrapper.layout-double {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .module-experience-timeline .section-header {
        margin-bottom: 40px;
    }
}


html.dark-mode .module-experience-timeline {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-experience-timeline .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-experience-timeline .section-subtitle {
    color: var(--dm-text-muted);
}

html.dark-mode .module-experience-timeline .exp-group-title,
html.dark-mode .module-experience-timeline .exp-title {
    color: #f1f5f9;
}

html.dark-mode .module-experience-timeline .exp-company {
    color: var(--dm-text-muted);
}

html.dark-mode .module-experience-timeline .exp-desc {
    color: #cbd5e1;
}

html.dark-mode .module-experience-timeline .exp-tag {
    background: #334155;
    color: var(--dm-text-muted);
}

html.dark-mode .module-experience-timeline .exp-dot {
    border-color: #1e293b;
}

html.dark-mode .module-experience-timeline .exp-period {
    background: rgba(59, 130, 246, 0.2);
}


.module-skills {
    --skills-bar-color: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --skills-bar-bg: #e2e8f0;
    --skills-bar-height: 10px;
    position: relative;
}

.module-skills .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-skills .skills-container {
    position: relative;
    z-index: 2;
}

.module-skills .section-header {
    margin-bottom: 40px;
}

.module-skills .skills-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.module-skills .skills-wrapper.layout-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
}

.module-skills .skills-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 24px;
    position: relative;
    padding-left: 16px;
    color: #1e293b;
}

.module-skills .skills-group-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--skills-bar-color);
    border-radius: 2px;
}

.module-skills .skill-item {
    margin-bottom: 20px;
}

.module-skills .skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.module-skills .skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

.module-skills .skill-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary, #3b82f6);
}

.module-skills .skill-bar-wrap {
    height: var(--skills-bar-height);
    background: var(--skills-bar-bg);
    border-radius: 999px;
    overflow: hidden;
}

.module-skills .skill-bar {
    height: 100%;
    background: var(--skills-bar-color);
    border-radius: 999px;
    transition: width 1.5s ease-out;
}

.module-skills[data-animate="1"] .skill-bar {
    width: 0 !important;
}

.module-skills.animated .skill-bar {
    width: var(--skill-percent) !important;
}

.module-skills .skills-circles {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.module-skills .skill-circle-item {
    text-align: center;
}

.module-skills .skill-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
}

.module-skills .skill-circle svg {
    transform: rotate(-90deg);
}

.module-skills .skill-circle-bg {
    fill: none;
    stroke: var(--skills-bar-bg);
    stroke-width: 8;
}

.module-skills .skill-circle-progress {
    fill: none;
    stroke: url(#skill-gradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out;
}

.module-skills .skill-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary, #3b82f6);
}

.module-skills .skill-circle-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}


@media (max-width: 768px) {
    .module-skills .skills-wrapper.layout-double {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .module-skills .section-header {
        margin-bottom: 30px;
    }
}


html.dark-mode .module-skills {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-skills .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-skills .section-subtitle {
    color: var(--dm-text-muted);
}

html.dark-mode .module-skills .skill-name,
html.dark-mode .module-skills .skill-circle-name,
html.dark-mode .module-skills .skills-group-title {
    color: #f1f5f9;
}

html.dark-mode .module-skills .skill-bar-wrap {
    background: #334155;
}

html.dark-mode .module-skills .skill-circle-bg {
    stroke: #334155;
}


.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}

.banner-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}


@media (max-width: 768px) {
    .banner-wave svg {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .banner-wave svg {
        height: 35px;
    }
}

/* ===== Software Ranking Module ===== */
.module-software-ranking {
    position: relative;
    /* padding handles dynamically, fallback: */
    /* padding: 60px 0; */
}

.module-software-ranking .module-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-color: #000;
}

/* Header */
.module-software-ranking .sr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.module-software-ranking .section-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.module-software-ranking .sr-type-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    border-radius: 20px;
    font-weight: 500;
    margin-left: 12px;
}

.module-software-ranking .section-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.module-software-ranking .sr-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    color: var(--color-primary, #2563eb);
    border: 1px solid var(--color-primary, #2563eb);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.module-software-ranking .sr-more-btn:hover {
    background: var(--color-primary, #2563eb);
    color: #fff;
}

/* List Layout */
.module-software-ranking.layout-list .sr-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-software-ranking.layout-list .sr-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    gap: 16px;
}

.module-software-ranking.layout-list .sr-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.module-software-ranking .sr-info {
    flex: 1;
    min-width: 0;
}

.module-software-ranking .sr-name {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-software-ranking .sr-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.module-software-ranking .sr-version {
    font-size: 0.75rem;
    color: var(--color-primary, #2563eb);
}

.module-software-ranking .sr-category {
    font-size: 0.75rem;
    color: var(--dm-text-muted);
}

.module-software-ranking .sr-stat {
    text-align: right;
    flex-shrink: 0;
}

.module-software-ranking .sr-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.module-software-ranking .sr-stat-label {
    font-size: 0.7rem;
    color: var(--dm-text-muted);
    display: block;
}

/* Rank Badge */
.module-software-ranking .sr-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Wrapper for Cards Layout */
.module-software-ranking.layout-cards .sr-top3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.module-software-ranking.layout-cards .sr-others {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.module-software-ranking.layout-cards .sr-card-wrapper {
    position: relative;
}

.module-software-ranking.layout-cards .sr-medal {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.module-software-ranking.layout-cards .sr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 22px;
    background: #ffffff;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid rgba(0, 0, 0, 0.04);
    position: relative;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.module-software-ranking.layout-cards .sr-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.module-software-ranking.layout-cards .sr-card-top1 {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.module-software-ranking.layout-cards .sr-card-top1:hover {
    transform: translateY(-8px) scale(1.04);
}

.module-software-ranking.layout-cards .sr-item-other {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    gap: 12px;
}

.module-software-ranking.layout-cards .sr-rank-num {
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #64748b;
    flex-shrink: 0;
}

.module-software-ranking.layout-cards .sr-item-other:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.module-software-ranking.layout-cards .sr-stat-mini {
    font-size: 0.8rem;
    color: #64748b;
    flex-shrink: 0;
}

.module-software-ranking.layout-cards .sr-version-badge {
    font-size: 0.75rem;
    color: var(--color-primary, #2563eb);
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Numbered Layout */
.module-software-ranking.layout-numbered .sr-numbered-list {
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.module-software-ranking.layout-numbered .sr-numbered-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 10px;
    gap: 14px;
}

.module-software-ranking.layout-numbered .sr-numbered-item+.sr-numbered-item {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.module-software-ranking.layout-numbered .sr-numbered-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.module-software-ranking.layout-numbered .sr-arrow {
    color: #cbd5e1;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.module-software-ranking.layout-numbered .sr-numbered-item:hover .sr-arrow {
    color: var(--color-primary, #2563eb);
    transform: translateX(4px);
}

.module-software-ranking.layout-numbered .sr-big-rank {
    font-weight: 800;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

/* Multi-column Layout */
.module-software-ranking.layout-multi-column .sr-multi-column {
    display: grid;
    gap: 24px;
}

.module-software-ranking.layout-multi-column .sr-column {
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.module-software-ranking.layout-multi-column .sr-col-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 8px;
    gap: 10px;
}

/* Icons */
.module-software-ranking .sr-icon {
    object-fit: contain;
    flex-shrink: 0;
}

.module-software-ranking .sr-icon-placeholder {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Dark Mode */
html.dark-mode .module-software-ranking .sr-item,
html.dark-mode .module-software-ranking .sr-card,
html.dark-mode .module-software-ranking .sr-item-other,
html.dark-mode .module-software-ranking .sr-numbered-list,
html.dark-mode .module-software-ranking .sr-column {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .module-software-ranking .sr-name,
html.dark-mode .module-software-ranking .sr-stat-value {
    color: #f1f5f9 !important;
}

html.dark-mode .module-software-ranking.layout-numbered .sr-numbered-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

html.dark-mode .module-software-ranking .sr-rank-num {
    background: #334155;
    color: var(--dm-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .module-software-ranking .sr-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .module-software-ranking.layout-list .sr-item {
        padding: 12px 14px !important;
    }

    .module-software-ranking.layout-cards .sr-top3 {
        grid-template-columns: 1fr !important;
    }

    .module-software-ranking.layout-cards .sr-others {
        grid-template-columns: 1fr !important;
    }

    .module-software-ranking.layout-cards .sr-card-top1 {
        transform: none !important;
    }

    .module-software-ranking.layout-multi-column .sr-multi-column {
        grid-template-columns: 1fr !important;
    }
}

.module-software-category {
    position: relative;
    background-color: var(--sc-bg-color, #f8fafc);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.module-software-category.has-bg-image {
    background-image: var(--sc-bg-image);
}

.module-software-category .module-bg-overlay {
    background-color: var(--sc-bg-overlay, transparent);
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Header Typography */
.module-software-category .section-title {
    color: var(--sc-title-color, #1e293b);
    font-size: var(--sc-title-size, 1.5rem);
    font-weight: 700;
    margin: 0;
}

.module-software-category .section-subtitle {
    color: var(--sc-subtitle-color, #64748b);
    font-size: var(--sc-subtitle-size, 0.95rem);
    margin: 8px 0 0;
}

/* Header Layout */
.module-software-category .sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.module-software-category .sc-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    color: var(--color-primary, #2563eb);
    border: 1px solid var(--color-primary, #2563eb);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.module-software-category .sc-more-btn:hover {
    background: var(--color-primary, #2563eb);
    color: #fff;
}

/* Common Card Styles */
.module-software-category .sc-card {
    background: var(--sc-card-bg, #ffffff);
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.module-software-category .sc-icon {
    width: var(--sc-icon-size, 56px);
    height: var(--sc-icon-size, 56px);
    object-fit: contain;
    border-radius: 14px;
    flex-shrink: 0;
}

.module-software-category .sc-icon-placeholder {
    width: var(--sc-icon-size, 56px);
    height: var(--sc-icon-size, 56px);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-software-category .sc-name {
    color: #1e293b;
    font-weight: 600;
}

.module-software-category .sc-desc {
    color: #64748b;
    line-height: 1.5;
}

/* Layout: Grid */
.module-software-category .sc-grid {
    display: grid;
    grid-template-columns: repeat(var(--sc-columns, 4), 1fr);
    gap: 20px;
}

.module-software-category .sc-card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.module-software-category .sc-card-grid:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.module-software-category .sc-card-grid .sc-name {
    margin: 14px 0 8px;
    font-size: 1rem;
    text-align: center;
}

.module-software-category .sc-card-grid .sc-desc {
    margin: 0 0 10px;
    font-size: 0.85rem;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.module-software-category .sc-card-grid .sc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
}

/* Layout: List */
.module-software-category .sc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-software-category .sc-card-list {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    gap: 20px;
}

.module-software-category .sc-card-list:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.module-software-category .sc-card-list:hover .sc-arrow {
    color: var(--color-primary, #2563eb);
    transform: translateX(4px);
}

.module-software-category .sc-card-list .sc-info {
    flex: 1;
    min-width: 0;
}

.module-software-category .sc-card-list .sc-name {
    margin: 0 0 6px;
    font-size: 1rem;
}

.module-software-category .sc-card-list .sc-desc {
    margin: 0;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-software-category .sc-card-list .sc-meta-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.module-software-category .sc-card-list .sc-arrow {
    color: #cbd5e1;
    transition: all 0.3s;
}

/* Layout: Compact */
.module-software-category .sc-compact-grid {
    display: grid;
    grid-template-columns: repeat(var(--sc-columns, 5), 1fr);
    gap: 12px;
}

.module-software-category .sc-card-compact {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    gap: 12px;
}

.module-software-category .sc-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary, #2563eb);
}

.module-software-category .sc-card-compact .sc-name {
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Layout: Horizontal */
.module-software-category .sc-horizontal-wrapper {
    position: relative;
}

.module-software-category .sc-horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.module-software-category .sc-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.module-software-category .sc-horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.module-software-category .sc-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.module-software-category .sc-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.module-software-category .sc-card-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    max-width: 150px;
    padding: 20px 16px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.module-software-category .sc-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.module-software-category .sc-card-horizontal .sc-name {
    margin: 12px 0 6px;
    font-size: 0.9rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Metadata Badges */
.module-software-category .sc-version {
    font-size: 0.75rem;
    color: var(--color-primary, #2563eb);
    background: rgba(37, 99, 235, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.module-software-category .sc-downloads {
    font-size: 0.75rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
}

.module-software-category .sc-date {
    font-size: 0.75rem;
    color: var(--dm-text-muted);
}


/* Scroll Fades */
.module-software-category .sc-scroll-fade-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, var(--sc-bg-color, #f8fafc) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.module-software-category .sc-scroll-fade-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(-90deg, var(--sc-bg-color, #f8fafc) 0%, transparent 100%);
    pointer-events: none;
}

/* Dark Mode */
html.dark-mode .module-software-category {
    background-color: var(--sc-bg-color, #0f172a);
}

html.dark-mode .module-software-category .sc-card {
    background: #1e293b !important;
    /* Force override variable default */
    border-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .module-software-category .sc-name {
    color: #f1f5f9;
}

html.dark-mode .module-software-category .sc-desc {
    color: var(--dm-text-muted);
}

html.dark-mode .module-software-category .sc-date {
    color: #64748b;
}

html.dark-mode .module-software-category .sc-horizontal-scroll::-webkit-scrollbar-track {
    background: #334155;
}

html.dark-mode .module-software-category .sc-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #475569;
}

html.dark-mode .module-software-category .sc-scroll-fade-left {
    background: linear-gradient(90deg, var(--sc-bg-color, #0f172a) 0%, transparent 100%);
}

html.dark-mode .module-software-category .sc-scroll-fade-right {
    background: linear-gradient(-90deg, var(--sc-bg-color, #0f172a) 0%, transparent 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .module-software-category .sc-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .module-software-category .sc-compact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .module-software-category .sc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .module-software-category .sc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-software-category .sc-compact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .module-software-category .sc-card-list {
        padding: 14px 16px;
    }

    .module-software-category .sc-meta-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .module-software-category .sc-grid {
        grid-template-columns: 1fr;
    }

    .module-software-category .sc-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.module-software-carousel {
    position: relative;
    background-color: var(--sc-bg-color, #ffffff);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.module-software-carousel.has-bg-image {
    background-image: var(--sc-bg-image);
}

.module-software-carousel .module-bg-overlay {
    background-color: var(--sc-bg-overlay, transparent);
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Header */
.module-software-carousel .sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.module-software-carousel .section-title {
    color: var(--sc-title-color, #1e293b);
    font-size: var(--sc-title-size, 1.5rem);
    font-weight: 700;
    margin: 0;
}

.module-software-carousel .section-subtitle {
    color: var(--sc-subtitle-color, #64748b);
    font-size: var(--sc-subtitle-size, 0.95rem);
    margin: 8px 0 0;
}

/* Ensure container sits above the overlay so links are clickable */
.module-software-carousel .container,
.module-software-category .container {
    position: relative;
    z-index: 2;
}

.module-software-carousel .sc-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary, #2563eb), #7c3aed);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.module-software-carousel .sc-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    color: #fff;
}

/* Scroll Wrapper */
.module-software-carousel .sc-scroll-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Space for shadow */
    margin: -20px 0;
}

.module-software-carousel .sc-scroll-track {
    display: flex;
    width: max-content;
    animation: softwareScroll var(--sc-scroll-speed, 30s) linear infinite;
}

.module-software-carousel .sc-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes softwareScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cards */
.module-software-carousel .sc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: var(--sc-card-bg, #ffffff);
    border-radius: 16px;
    min-width: 160px;
    max-width: 160px;
    margin: 0 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.module-software-carousel .sc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.module-software-carousel .sc-icon {
    width: var(--sc-icon-size, 64px);
    height: var(--sc-icon-size, 64px);
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 12px;
}

.module-software-carousel .sc-icon-placeholder {
    width: var(--sc-icon-size, 64px);
    height: var(--sc-icon-size, 64px);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-software-carousel .sc-name {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-software-carousel .sc-version {
    color: var(--color-primary, #2563eb);
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.module-software-carousel .sc-date {
    color: var(--dm-text-muted);
    font-size: 0.75rem;
}

/* Dark Mode */
html.dark-mode .module-software-carousel {
    background-color: #0f172a !important;
}

html.dark-mode .module-software-carousel .sc-card {
    background: #1e293b !important;
    /* Force override for dark mode default */
    border-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .module-software-carousel .sc-name {
    color: #f1f5f9;
}

html.dark-mode .module-software-carousel .sc-date {
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .module-software-carousel .sc-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .module-software-carousel .sc-card {
        min-width: 140px !important;
        max-width: 140px !important;
        padding: 20px 16px !important;
    }
}

/* =========================================
   Comparison Module
   ======================================== */

.module-comparison {
    position: relative;
    overflow: hidden;
}

.module-comparison .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-comparison .container {
    position: relative;
    z-index: 2;
}

.module-comparison .section-header {
    margin-bottom: 50px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

/* Header Cells */
.comparison-table th {
    padding: 25px 30px;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.comparison-table .th-feature {
    text-align: left;
    color: #64748b;
    background: #f8fafc;
    min-width: 180px;
    position: sticky;
    left: 0;
    z-index: 2;
}

.comparison-table .th-product {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 150px;
    color: #1e293b;
    background: #f8fafc;
}

.comparison-table .th-product.is-highlight {
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
    color: #fff;
    border-bottom: none;
    position: relative;
}

.comparison-table .highlight-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 4px;
}

/* Body Rows */
.comparison-table tr:nth-child(even) {
    background: #fafafa;
}

.comparison-table tr:hover td {
    background: rgba(37, 99, 235, 0.03);
}

/* Body Cells */
.comparison-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.comparison-table .td-feature {
    padding: 18px 30px;
    font-weight: 500;
    color: #334155;
    position: sticky;
    left: 0;
    background: inherit;
    /* Ensure sticky column has proper background */
    z-index: 1;
}

.comparison-table .td-value {
    text-align: center;
    color: #64748b;
}

.comparison-table .td-value.val-yes {
    color: #10b981;
    font-size: 1.3rem;
}

.comparison-table .td-value.val-no {
    color: #ef4444;
    font-size: 1.3rem;
}

.comparison-table .td-value.is-highlight {
    background: rgba(37, 99, 235, 0.05);
}

.comparison-table tr:hover .td-value.is-highlight {
    background: rgba(37, 99, 235, 0.08);
}

/* Dark Mode */
html.dark-mode .comparison-table {
    background: var(--dm-bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

html.dark-mode .comparison-table th {
    border-bottom-color: #334155;
    color: var(--dm-text-muted);
    background: var(--dm-bg);
}

html.dark-mode .comparison-table .th-product {
    color: var(--dm-text);
    background: var(--dm-bg);
}

html.dark-mode .comparison-table .th-product.is-highlight {
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
    color: #fff;
}

html.dark-mode .comparison-table td {
    border-bottom-color: #334155;
}

html.dark-mode .comparison-table .td-feature {
    color: var(--dm-text);
    background: var(--dm-bg-card);
    /* Fallback */
}

html.dark-mode .comparison-table tr:nth-child(even),
html.dark-mode .comparison-table tr:nth-child(even) .td-feature {
    background: #253045;
}

html.dark-mode .comparison-table tr:nth-child(odd) .td-feature {
    background: var(--dm-bg-card);
}

html.dark-mode .comparison-table .td-value {
    color: var(--dm-text-muted);
}

html.dark-mode .comparison-table .td-value.is-highlight {
    background: rgba(37, 99, 235, 0.1);
}

html.dark-mode .comparison-table tr:hover td {
    background: rgba(37, 99, 235, 0.05) !important;
}

/* Responsive */
@media (max-width: 768px) {

    .comparison-table th,
    .comparison-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .comparison-table .th-feature,
    .comparison-table .td-feature {
        min-width: 120px;
        padding-left: 15px;
        position: static;
        /* Disable sticky on small screens if needed, or keep for UX */
    }

    .comparison-table .th-product {
        min-width: 100px;
        font-size: 1rem;
    }
}

.module-accordion {
    position: relative;
    overflow: hidden;
}

.module-accordion .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-accordion .container {
    position: relative;
    z-index: 2;
}

.accordion-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Default Style */
.accordion-style-default .accordion-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Bordered Style */
.accordion-style-bordered .accordion-item {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

/* Minimal Style */
.accordion-style-minimal .accordion-item {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    margin-bottom: 0;
}

.accordion-style-minimal .accordion-item:last-child {
    border-bottom: none;
}

/* Header */
.accordion-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.accordion-style-minimal .accordion-header {
    padding: 20px 0;
}

.accordion-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.accordion-style-minimal .accordion-header:hover {
    background: transparent;
}

.accordion-title {
    flex: 1;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1e293b;
    padding-right: 15px;
}

.accordion-header-icon {
    font-size: 1.3rem;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    color: var(--color-primary, #2563eb);
}

/* Toggle Icon */
.accordion-toggle-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.3s;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.accordion-item.active .accordion-toggle-icon {
    background: var(--color-primary, #2563eb);
    color: #fff;
    transform: rotate(180deg);
}

/* Content */
.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-style-minimal .accordion-content {
    padding: 0;
}

.accordion-item.active .accordion-content {
    padding-bottom: 25px;
}

.accordion-inner {
    color: #64748b;
    line-height: 1.8;
}

/* Dark Mode */
html.dark-mode .accordion-style-default .accordion-item,
html.dark-mode .accordion-style-bordered .accordion-item {
    background: var(--dm-bg-card);
    border-color: var(--dm-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

html.dark-mode .accordion-style-minimal .accordion-item {
    border-color: var(--dm-border);
}

html.dark-mode .accordion-title {
    color: #f1f5f9;
}

html.dark-mode .accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

html.dark-mode .accordion-toggle-icon {
    background: #334155;
    color: var(--dm-text-muted);
}

html.dark-mode .accordion-item.active .accordion-toggle-icon {
    background: var(--color-primary, #2563eb);
    color: #fff;
}

html.dark-mode .accordion-inner {
    color: var(--dm-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .accordion-header {
        padding: 15px 20px;
    }

    .accordion-style-minimal .accordion-header {
        padding: 15px 0;
    }

    .accordion-title {
        font-size: 1rem;
    }
}

/* =========================================
   Tabs Module
   ======================================== */

.module-tabs {
    position: relative;
    overflow: hidden;
}

.module-tabs .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-tabs .container {
    position: relative;
    z-index: 2;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tabs-nav.align-left {
    justify-content: flex-start;
}

.tabs-nav.align-center {
    justify-content: center;
}

.tabs-nav.align-right {
    justify-content: flex-end;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    background: transparent;
    color: #64748b;
}

.tab-btn:hover {
    opacity: 0.85;
}

.tab-btn i,
.tab-btn span {
    font-size: 1.1em;
}

/* Default Style */
.tabs-style-default .tab-btn {
    background: #f1f5f9;
    color: #64748b;
    border-radius: 10px;
}

.tabs-style-default .tab-btn.active {
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
    color: #fff;
}

/* Pills Style */
.tabs-style-pills .tab-btn {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
}

.tabs-style-pills .tab-btn.active {
    background: var(--color-primary, #2563eb);
    color: #fff;
    border-color: var(--color-primary, #2563eb);
}

/* Underline Style */
.tabs-style-underline .tab-btn {
    background: transparent;
    color: #64748b;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    padding-bottom: 10px;
}

.tabs-style-underline .tab-btn.active {
    color: var(--color-primary, #2563eb);
    border-bottom-color: var(--color-primary, #2563eb);
}

/* Boxed Style */
.tabs-style-boxed .tab-btn {
    background: #f8fafc;
    color: #64748b;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: -1px;
}

.tabs-style-boxed .tab-btn.active {
    background: #fff;
    color: var(--color-primary, #2563eb);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--dm-text);
    border-bottom-color: transparent;
    /* Merge with content */
    z-index: 1;
}

/* Content Area */
.tabs-content {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.tabs-style-boxed .tabs-content {
    border-radius: 0 10px 10px 10px;
    border: 1px solid #e2e8f0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.tab-content-inner {
    color: #475569;
    line-height: 1.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-inner table {
    margin: 15px 0;
}

.tab-content-inner ul,
.tab-content-inner ol {
    padding-left: 20px;
    margin: 15px 0;
}

.tab-content-inner li {
    margin-bottom: 8px;
}

/* Dark Mode */
html.dark-mode .tabs-content {
    background: var(--dm-bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

html.dark-mode .tab-content-inner {
    color: var(--dm-text-muted);
}

html.dark-mode .tabs-style-default .tab-btn {
    background: #334155;
    color: var(--dm-text-muted);
}

html.dark-mode .tabs-style-default .tab-btn.active {
    color: #fff;
}

html.dark-mode .tabs-style-pills .tab-btn {
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

html.dark-mode .tabs-style-pills .tab-btn.active {
    background: var(--color-primary, #2563eb);
    border-color: var(--color-primary, #2563eb);
    color: #fff;
}

html.dark-mode .tabs-style-underline .tab-btn {
    color: var(--dm-text-muted);
}

html.dark-mode .tabs-style-underline .tab-btn.active {
    color: var(--color-primary, #2563eb);
    border-bottom-color: var(--color-primary, #2563eb);
}

html.dark-mode .tabs-style-boxed .tab-btn {
    background: var(--dm-bg);
    color: var(--dm-text-muted);
    border-bottom-color: #334155;
}

html.dark-mode .tabs-style-boxed .tab-btn.active {
    background: var(--dm-bg-card);
    border-color: var(--dm-border);
    border-bottom-color: transparent;
    color: var(--color-primary, #2563eb);
}

html.dark-mode .tabs-style-boxed .tabs-content {
    border-color: var(--dm-border);
}


/* Responsive */
@media (max-width: 768px) {
    .tabs-nav {
        justify-content: center !important;
    }

    .tab-btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        width: 100%;
        /* Optional: stack them? Or keep auto width */
        justify-content: center;
    }

    .tabs-content {
        padding: 25px !important;
    }
}


/* ===== Branches Module ===== */
.module-branches {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.module-branches .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-branches-container {
    position: relative;
    z-index: 2;
}

.branches-grid {
    display: grid;
    gap: 30px;
    align-items: stretch;
}

.branch-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.branch-image-wrapper {
    height: 160px;
    overflow: hidden;
}

.branch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.branch-card:hover .branch-image {
    transform: scale(1.05);
}

.branch-bar {
    height: 8px;
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
}

.branch-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.branch-name {
    margin: 0 0 15px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-icon-pin {
    font-size: 1.3em;
}

.branch-info-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.branch-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.branch-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.branch-info-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.branch-info-item a:hover {
    color: var(--color-primary, #2563eb);
    text-decoration: underline;
}

.branch-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.branch-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .branches-grid {
        gap: 20px;
    }

    .branch-card {
        border-radius: 12px;
    }
}

/* Dark Mode */
html.dark-mode .module-branches {
    background-color: #0f172a;
}

html.dark-mode .module-branches .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-branches .section-subtitle {
    color: var(--dm-text-muted);
}

html.dark-mode .branch-card {
    background: var(--dm-bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html.dark-mode .branch-name {
    color: #f1f5f9;
}

html.dark-mode .branch-info-list {
    color: var(--dm-text-muted);
}

html.dark-mode .branch-info-item a:hover {
    color: var(--color-primary-light, #60a5fa);
}


/* ===== Gallery Module ===== */
.module-gallery {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.module-gallery .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-gallery-container {
    position: relative;
    z-index: 2;
}

.gallery-grid {
    display: grid;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
}

.gallery-item .gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-item.is-lightbox {
    cursor: zoom-in;
}

/* Gallery Hover Overlay */
.gallery-info-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-info-overlay {
    opacity: 1;
}

.gallery-info-title {
    color: #fff;
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-info-desc {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    transform: translateY(10px);
    transition: transform 0.3s ease 0.05s;
}

.gallery-item:hover .gallery-info-title,
.gallery-item:hover .gallery-info-desc {
    transform: translateY(0);
}

/* ==========================================================================
   Qiling Image Guide Module
   灏忓浘寮曞�妯″潡鏍峰紡
   ========================================================================== */

.module-qiling-image-guide .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.qiling-guide-grid {
    display: grid;
    gap: var(--guide-gap, 20px);
}

/* 鍒楁暟閫傞厤 */
.guide-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.guide-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.guide-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.guide-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.guide-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.qiling-guide-item {
    position: relative;
    display: block;
    height: var(--guide-height, 160px);
    border-radius: var(--guide-radius, 8px);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    background: #f1f5f9;
}

.qiling-guide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.qiling-guide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.qiling-guide-item:hover .qiling-guide-bg img {
    transform: scale(1.1);
}

.qiling-guide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.qiling-guide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* 榛樿�閬�僵 */
    transition: background 0.3s ease;
}

.qiling-guide-item:hover .qiling-guide-overlay {
    background: rgba(0, 0, 0, 0.4);
    /* 鎮�仠鍔犳繁 */
}

.qiling-guide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    color: #fff;
}

.qiling-guide-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.qiling-guide-line {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    margin: 0 auto 10px;
    transition: width 0.3s ease, background 0.3s ease;
}

.qiling-guide-item:hover .qiling-guide-line {
    width: 40px;
    background: #fff;
}

.qiling-guide-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    font-weight: 300;
}

/* 鍝嶅簲寮忛€傞厤 */
@media (max-width: 1024px) {

    .guide-cols-4,
    .guide-cols-5,
    .guide-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .guide-cols-3,
    .guide-cols-4,
    .guide-cols-5,
    .guide-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .qiling-guide-item {
        height: calc(var(--guide-height, 160px) * 0.8);
        /* 绉诲姩绔�珮搴︾缉灏� */
    }

    .qiling-guide-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .qiling-guide-line {
        margin-bottom: 6px;
    }

    .qiling-guide-sub {
        font-size: 12px;
    }
}

/* Lightbox Styles */
.gallery-lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-modal.is-open {
    display: flex;
    opacity: 1;
}

.gallery-lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-lightbox-modal.is-open .gallery-lightbox-image {
    transform: scale(1);
}

.gallery-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .gallery-info-overlay {
        padding: 16px;
    }

    .gallery-info-title {
        font-size: 1rem;
    }

    .gallery-info-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Dark Mode */
html.dark-mode .module-gallery {
    background-color: #0f172a;
}

html.dark-mode .module-gallery .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-gallery .section-subtitle {
    color: var(--dm-text-muted);
}

html.dark-mode .gallery-item {
    background: var(--dm-bg-card);
}


/* ===== Team Module ===== */
.module-team {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.module-team .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-team-container {
    position: relative;
    z-index: 2;
}

.team-grid {
    display: grid;
    gap: 30px;
    width: 100%;
}

.team-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-text {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
}

.team-name {
    margin: 0 0 5px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.team-position {
    margin: 0 0 15px;
    color: var(--color-primary, #2563eb);
    font-weight: 500;
    font-size: 0.9rem;
}

.team-desc {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Social Icons */
.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-social-link {
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s;
    cursor: pointer;
}

.team-social-link:hover {
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
    color: #fff;
}

.team-icon {
    width: 18px;
    height: 18px;
}

/* WeChat QR */
.team-wechat-wrap {
    position: relative;
}

.team-wechat-qr {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.team-wechat-qr::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.team-wechat-wrap:hover .team-wechat-qr {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.team-qr-img {
    width: 120px;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .team-card {
        padding: 25px 20px;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
    }
}

/* Dark Mode */
html.dark-mode .module-team {
    background-color: #0f172a;
}

html.dark-mode .module-team .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-team .section-subtitle {
    color: var(--dm-text-muted);
}

html.dark-mode .team-card {
    background: var(--dm-bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html.dark-mode .team-name {
    color: #f1f5f9;
}

html.dark-mode .team-desc {
    color: var(--dm-text-muted);
}

html.dark-mode .team-social-link {
    background: #334155;
    color: var(--dm-text-muted);
}

html.dark-mode .team-social-link:hover {
    color: #fff;
}

html.dark-mode .team-wechat-qr {
    background: #334155;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark-mode .team-wechat-qr::after {
    border-color: #334155 transparent transparent;
}


/* ===== Multi-Image Text Module ===== */
.module-multi-image-text {
    position: relative;
    overflow: hidden;
}

.mit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mit-container.layout-right {
    direction: rtl;
}

.mit-container.layout-right .mit-image-area,
.mit-container.layout-right .mit-text-area {
    direction: ltr;
}

/* Image Area */
.mit-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.mit-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.mit-image.active {
    position: relative;
    opacity: 1;
    z-index: 2;
}

.mit-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.mit-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mit-placeholder-icon {
    font-size: 4rem;
}

/* Text Area */
.mit-item {
    margin-bottom: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border-left: 4px solid transparent;
}

.mit-item-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
}

.mit-item.active,
.mit-item:hover {
    background: rgba(var(--color-primary-rgb, 37, 99, 235), 0.08);
    border-left-color: var(--color-primary);
}

.mit-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    color: #fff;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.mit-item:hover .mit-icon,
.mit-item.active .mit-icon {
    transform: scale(1.1);
}

.mit-content {
    flex: 1;
}

.mit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1e293b;
}

.mit-title a {
    color: inherit;
    text-decoration: none;
}

.mit-desc {
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 991px) {

    .mit-container,
    .mit-container.layout-right {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 40px;
    }

    .mit-item-inner {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .mit-item-inner {
        flex-direction: column;
    }

    .mit-icon {
        margin-bottom: 8px;
    }
}

/* Dark Mode */
html.dark-mode .module-multi-image-text {
    background-color: #0f172a !important;
    background-image: none !important;
    /* Override potential light mode gradient */
}

html.dark-mode .module-multi-image-text .section-title {
    color: #f8fafc !important;
}

html.dark-mode .module-multi-image-text .section-subtitle {
    color: #94a3b8 !important;
}

html.dark-mode .mit-item.active,
html.dark-mode .mit-item:hover {
    background: rgba(255, 255, 255, 0.05);
    /* No !important needed here usually unless inline bg exists */
}

html.dark-mode .mit-title {
    color: #f1f5f9 !important;
}

html.dark-mode .mit-title a {
    color: #f1f5f9 !important;
}

html.dark-mode .mit-desc {
    color: #94a3b8 !important;
}

html.dark-mode .mit-image-wrapper {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* ===== Product Countdown Module ===== */
.module-countdown {
    position: relative;
    overflow: hidden;
}

.countdown-bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.circle-1 {
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    transform: rotate(-15deg);
}

.circle-2 {
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: rgba(255, 255, 255, 0.03);
}

.countdown-container {
    position: relative;
    z-index: 1;
}

.countdown-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.countdown-image-col {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.countdown-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.countdown-wrapper.no-image .countdown-image-col {
    display: none;
}

.countdown-wrapper.no-image .countdown-content-col {
    text-align: center;
}

.countdown-wrapper.no-image .countdown-timer {
    justify-content: center;
}

.countdown-image-col:hover .countdown-image-wrapper {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.countdown-image-wrapper img {
    width: 100%;
    display: block;
}

.image-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, transparent 100%);
    pointer-events: none;
}

.countdown-content-col {
    flex: 1;
    min-width: 300px;
}

.countdown-label div {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.countdown-label span {
    font-size: 0.9rem;
    font-weight: 500;
}

.countdown-title {
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.countdown-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 0 35px 0;
    max-width: 500px;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.countdown-item {
    border-radius: 16px;
    padding: 20px 25px;
    text-align: center;
    min-width: 90px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-unit {
    opacity: 0.7;
    font-size: 0.85rem;
    margin-top: 8px;
    color: inherit;
}

.countdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.countdown-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .countdown-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .countdown-image-col {
        max-width: 100%;
    }

    .countdown-image-wrapper {
        transform: none;
    }

    .countdown-image-col:hover .countdown-image-wrapper {
        transform: none;
    }

    .countdown-content-col {
        text-align: center;
    }

    .countdown-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .countdown-timer {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .countdown-item {
        min-width: 70px;
        padding: 15px;
    }

    .countdown-value {
        font-size: 1.8rem;
    }
}

/* Dark Mode */
html.dark-mode .module-countdown {
    background: var(--dm-bg) !important;
    /* Force dark background */
}

html.dark-mode .countdown-title {
    color: #f8fafc !important;
    /* Force light text */
}

html.dark-mode .countdown-desc {
    color: #94a3b8 !important;
    /* Force gray text */
}

html.dark-mode .decoration-circle {
    background: rgba(255, 255, 255, 0.03);
}

/* Ensure timer items are readable in dark mode if user set custom light colors */
html.dark-mode .countdown-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark-mode .countdown-value,
html.dark-mode .countdown-unit {
    color: #f8fafc !important;
}

/* ===== Testimonials Module ===== */
.module-testimonials {
    overflow: hidden;
    background: var(--tm-bg);
    /* Use locally scoped variable from inline style */
}

.testimonials-grid {
    display: grid;
    gap: 30px;
}

.testimonials-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.testimonial-card {
    padding: 40px;
    border-radius: 24px;
    background: #ffffff;
    /* Fallback */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* subtle base shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 4rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary-100) 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.testimonial-rating {
    margin-bottom: 20px;
    display: flex;
    gap: 2px;
}

.testimonial-rating .star {
    font-size: 1.1rem;
    color: #e5e7eb;
}

.testimonial-rating .star.filled {
    color: #fbbf24;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1) rotate(5deg);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar span {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Default Avatar Gradients */
.default-avatar-0 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.default-avatar-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.default-avatar-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.default-avatar-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.default-avatar-4 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-position {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonials-grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .testimonials-grid.grid-cols-3,
    .testimonials-grid.grid-cols-4 {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px !important;
    }
}

/* Dark Mode */
html.dark-mode .module-testimonials {
    background: var(--dm-bg);
    border-color: #1e293b;
}

html.dark-mode .testimonial-card {
    background: #1e293b !important;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html.dark-mode .testimonial-card:hover {
    background: #253045 !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

html.dark-mode .testimonial-quote-icon {
    opacity: 0.15;
}

html.dark-mode .testimonial-content {
    color: #cbd5e1 !important;
}

html.dark-mode .testimonial-author {
    border-top-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .testimonial-name {
    color: #f8fafc !important;
}

html.dark-mode .testimonial-position {
    color: #94a3b8 !important;
}

/* ===== Video Showcase Module ===== */
.module-video {
    position: relative;
    overflow: hidden;
}

.video-container {
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.video-container:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.video-container video,
.video-container iframe {
    width: 100%;
    height: 100%;
    /* Fill the wrapper */
    display: block;
    background: #000;
}

.video-aspect-ratio {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-aspect-ratio iframe,
.video-aspect-ratio video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container video:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .video-container {
        border-radius: 8px !important;
        /* Ensure width fits on mobile if user set fixed px width larger than screen */
        max-width: 100% !important;
    }
}

/* Dark Mode */
html.dark-mode .module-video {
    background: var(--dm-bg) !important;
    /* Force dark bg if no gradient set or to override light bg */
}

/* If user sets a gradient background, dark mode might want to keep it or dim it. 
   Currently assuming we want generic dark mode for uniform look unless specific override needed. 
*/

html.dark-mode .video-container {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    /* Stronger shadow in dark mode */
}

/* ===== Pricing Module ===== */
.module-pricing {
    overflow: hidden;
}

.pricing-grid {
    display: grid;
    gap: 30px;
    align-items: stretch;
}

/* Col classes are generally shared, but defined here for specificity if needed */
.pricing-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pricing-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pricing-card {
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Light mode shadow */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    /* Default background */
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.pricing-card.pricing-featured {
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(var(--color-primary-rgb), 0.1);
}

.pricing-card.pricing-featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.pricing-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--color-gray-600);
}

.pricing-price-box {
    margin-bottom: 25px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-period {
    color: var(--color-gray-500);
    font-size: 1rem;
    margin-left: 5px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
    /* color: handled by inline legacy or dark mode below */
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-icon {
    flex-shrink: 0;
    display: inline-flex;
}

.pricing-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 30px;
    /* background: handled by inline dynamic styles */
    background-color: var(--color-gray-100);
    /* Default */
    color: var(--color-dark);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.pricing-btn.btn-featured {
    /* Gradient fallback handled inline */
    color: #fff;
}

.pricing-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {

    .pricing-grid.grid-cols-3,
    .pricing-grid.grid-cols-4 {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 40px !important;
    }

    .pricing-card.pricing-featured {
        transform: none !important;
        margin: 10px 0;
    }

    .pricing-card:hover,
    .pricing-card.pricing-featured:hover {
        transform: translateY(-5px) !important;
    }
}

/* Dark Mode */
html.dark-mode .module-pricing {
    border-color: #1e293b;
}

/* Pricing Module Dark Mode Background & Typography Overrides */
html.dark-mode .module-pricing.bg-type-color {
    background: var(--dm-bg) !important;
    /* Force Dark Blue Background */
}

html.dark-mode .module-pricing .section-title {
    color: #f8fafc !important;
    /* Force White Title */
}

html.dark-mode .module-pricing .section-subtitle {
    color: #cbd5e1 !important;
    /* Force Light Gray Subtitle */
}

html.dark-mode .pricing-card {
    background: #1e293b !important;
    /* Force dark bg unless custom gradient override */
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html.dark-mode .pricing-card:hover {
    background: #253045 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

html.dark-mode .pricing-name {
    color: #f8fafc !important;
}

html.dark-mode .pricing-desc {
    color: #cbd5e1 !important;
}

html.dark-mode .pricing-period {
    color: #94a3b8 !important;
}

html.dark-mode .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: var(--dm-text);
    /* Default text color in dark mode */
}

/* Handle excluded items logic in dark mode via opacity or specific color override if needed, 
   but generalized color is safer. */

html.dark-mode .pricing-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

html.dark-mode .pricing-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


/* Process Module */
.module-process {
    position: relative;
    /* Default background handled by theme or specific settings */
}

.module-process .module-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.process-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.process-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    /* background is dynamic */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 2;
}

.process-item:hover .process-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.process-arrow {
    position: absolute;
    top: 45px;
    right: -30px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    z-index: 1;
}

.process-arrow div {
    position: absolute;
    right: 0;
    top: -4px;
    border: solid var(--color-primary);
    border-width: 0 2px 2px 0;
    padding: 4px;
    transform: rotate(-45deg);
}

.process-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-dark);
    /* Default for light mode */
}

.process-desc {
    color: #475569;
    /* var(--color-gray-600) replacement */
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .process-grid {
        flex-direction: column !important;
        align-items: center !important;
    }

    .process-item {
        max-width: 100% !important;
    }

    .process-arrow {
        display: none !important;
    }
}

/* Dark Mode */
html.dark-mode .module-process {
    background-color: #0f172a !important;
    /* Force dark background if no image/color set */
}


html.dark-mode .process-title {
    color: #f1f5f9;
}

html.dark-mode .process-desc {
    color: var(--dm-text-muted);
}

html.dark-mode .section-title {
    color: #f1f5f9;
}

html.dark-mode .section-subtitle {
    color: var(--dm-text-muted);
}

/* ===== Module Download ===== */
.module-downloads .downloads-list {
    max-width: 1000px;
    margin: 0 auto;
}

.module-downloads .downloads-grid {
    display: grid;
    gap: 20px;
}

.module-downloads .download-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.module-downloads .download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.module-downloads .download-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.module-downloads .download-icon {
    font-size: 2rem;
    line-height: 1;
}

.module-downloads .download-info {
    flex: 1;
}

.module-downloads .download-title {
    font-size: 1.05rem;
    color: #1e293b;
    margin: 0;
}

.module-downloads .download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.module-downloads .meta-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.module-downloads .meta-text {
    color: var(--dm-text-muted);
    font-size: 0.85rem;
}

.module-downloads .download-desc {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.module-downloads .download-action {
    margin-left: 15px;
    flex-shrink: 0;
}

.module-downloads .btn-download {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.module-downloads .btn-download:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.module-downloads .no-file {
    padding: 10px 20px;
    background: #f1f5f9;
    border-radius: 8px;
    color: var(--dm-text-muted);
    font-size: 0.9rem;
    display: inline-block;
}

/* Dark Mode */
html.dark-mode .module-downloads {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-downloads .download-item {
    background: var(--dm-bg-card);
    border-color: var(--dm-border);
}

html.dark-mode .module-downloads .download-title {
    color: #f1f5f9;
}

html.dark-mode .module-downloads .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-downloads .section-subtitle {
    color: var(--dm-text-muted);
}

html.dark-mode .module-downloads .download-desc {
    color: var(--dm-text-muted);
}

html.dark-mode .module-downloads .meta-tag {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

html.dark-mode .module-downloads .meta-text {
    color: #64748b;
}

html.dark-mode .module-downloads .no-file {
    background: var(--dm-bg);
    color: #64748b;
}

@media (max-width: 768px) {
    .module-downloads .download-item {
        flex-direction: column;
        gap: 15px;
    }

    .module-downloads .download-action {
        margin-left: 0;
        width: 100%;
    }

    .module-downloads .btn-download,
    .module-downloads .no-file {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Module FAQ ===== */
.module-faq .faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.module-faq .faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.module-faq .faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.module-faq .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s;
}

.module-faq .faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: transform 0.3s ease;
}

.module-faq .faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #2563eb;
}

.module-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.module-faq .faq-item.active .faq-answer {
    max-height: 500px;
    /* Approximate max height */
    transition: max-height 0.5s ease-in;
}

.module-faq .faq-answer-content {
    padding: 0 24px 24px;
    color: #64748b;
    line-height: 1.6;
}

/* Dark Mode */
html.dark-mode .module-faq {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-faq .faq-item {
    background: var(--dm-bg-card);
    border-color: var(--dm-border);
}

html.dark-mode .module-faq .faq-question {
    background: var(--dm-bg-card);
    color: #f1f5f9;
}

html.dark-mode .module-faq .faq-answer {
    background: var(--dm-bg-card);
}

html.dark-mode .module-faq .faq-answer-content {
    color: var(--dm-text-muted);
}

html.dark-mode .module-faq .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-faq .section-subtitle {
    color: var(--dm-text-muted);
}


/* ===== Module Timeline ===== */
.module-timeline .timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.module-timeline .timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary, #3b82f6);
    transform: translateX(-50%);
}

.module-timeline .timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.module-timeline .timeline-item.timeline-right {
    flex-direction: row-reverse;
}

.module-timeline .timeline-content {
    width: 45%;
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.module-timeline .timeline-item.timeline-left .timeline-content {
    text-align: right;
}

.module-timeline .timeline-item.timeline-right .timeline-content {
    text-align: left;
}

.module-timeline .timeline-marker {
    position: absolute;
    left: 50%;
    top: 25px;
    /* Adjust based on content padding */
    width: 16px;
    height: 16px;
    background: var(--color-primary, #3b82f6);
    border: 4px solid #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px var(--color-primary, #3b82f6);
    z-index: 2;
}

.module-timeline .timeline-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary, #3b82f6);
    margin-bottom: 8px;
    opacity: 0.9;
}

.module-timeline .timeline-title {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0 0 10px;
}

.module-timeline .timeline-desc {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Timeline Dark Mode */
html.dark-mode .module-timeline {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-timeline .timeline-content {
    background: var(--dm-bg-card);
    border: 1px solid #334155;
}

html.dark-mode .module-timeline .timeline-marker {
    border-color: #0f172a;
    /* Match section background */
}

html.dark-mode .module-timeline .timeline-title {
    color: #f1f5f9;
}

html.dark-mode .module-timeline .timeline-desc {
    color: var(--dm-text-muted);
}

html.dark-mode .module-timeline .section-title {
    color: #f1f5f9;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .module-timeline .timeline-line {
        left: 20px;
    }

    .module-timeline .timeline-item {
        flex-direction: row !important;
        /* Force items to same direction */
        justify-content: flex-start;
    }

    .module-timeline .timeline-marker {
        left: 20px;
    }

    .module-timeline .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
        text-align: left !important;
    }

    .module-timeline .timeline-year {
        text-align: left;
    }
}


/* ===== Module Columns ===== */
.module-columns .columns-grid {
    display: grid;
    gap: 30px;
}

.module-columns .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.module-columns .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.module-columns .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.module-columns .column-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.module-columns a.column-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.module-columns .column-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.module-columns .column-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.module-columns a.column-item:hover .column-image img {
    transform: scale(1.05);
}

.module-columns .column-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.module-columns .column-content {
    color: #64748b;
    line-height: 1.6;
}

/* Columns Dark Mode */
html.dark-mode .module-columns {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-columns .column-item {
    background: var(--dm-bg-card);
    border-color: var(--dm-border);
    box-shadow: none;
}

html.dark-mode .module-columns a.column-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: #252f41;
}

html.dark-mode .module-columns .column-title {
    color: #f1f5f9;
}

html.dark-mode .module-columns .column-content {
    color: var(--dm-text-muted);
}

html.dark-mode .module-columns .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-columns .section-subtitle {
    color: var(--dm-text-muted);
}

/* Responsive Columns */
@media (max-width: 992px) {
    .module-columns .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .module-columns .grid-cols-3,
    .module-columns .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .module-columns .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}


/* ===== Module Image Text ===== */
.module-image-text .image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.module-image-text .image-text-grid.layout-right .image-text-image {
    order: 2;
}

.module-image-text .image-text-grid.layout-right .image-text-content {
    order: 1;
}

.module-image-text .image-text-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.module-image-text .image-text-image:hover img {
    transform: translateY(-5px);
}

.module-image-text .placeholder-image {
    aspect-ratio: 4/3;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dm-text-muted);
    font-size: 1.1rem;
    border: 2px dashed #cbd5e1;
}

.module-image-text .module-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.2;
}

.module-image-text .module-subtitle {
    font-size: 1.1rem;
    color: var(--color-primary, #3b82f6);
    margin-bottom: 20px;
    font-weight: 600;
}

.module-image-text .module-desc {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.module-image-text .module-action {
    display: flex;
    gap: 15px;
}

/* Image Text Dark Mode */
html.dark-mode .module-image-text {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-image-text .module-title {
    color: #f1f5f9;
}

html.dark-mode .module-image-text .module-desc {
    color: var(--dm-text-muted);
}

html.dark-mode .module-image-text .placeholder-image {
    background: var(--dm-bg-card);
    border-color: var(--dm-border);
    color: #64748b;
}

/* Responsive Image Text */
@media (max-width: 992px) {
    .module-image-text .image-text-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .module-image-text .image-text-grid.layout-right .image-text-image {
        order: unset;
        /* Revert order on mobile if we want image always top */
        /* Or keep order if we want to maintain the specific flow */
    }

    .module-image-text .image-text-grid.layout-right .image-text-content {
        order: unset;
    }

    /* Standard Practice: Image on Top for Mobile */
    .module-image-text .image-text-image {
        order: -1 !important;
    }

    .module-image-text .module-title {
        font-size: 1.75rem;
    }
}


/* ===== Module CTA ===== */
.module-cta {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.module-cta.has-bg-image {
    color: #fff;
}

.module-cta .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1;
    pointer-events: none;
}

.module-cta .cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.module-cta .cta-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.module-cta .cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.module-cta .btn-cta {
    background: #fff;
    color: var(--color-primary, #3b82f6);
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.module-cta .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

/* CTA Dark Mode */
html.dark-mode .module-cta:not(.has-bg-image) {
    /* If purely color based, let CSS gradient or user color take precedence */
    /* But if default color logic applies, we might want a dark override if no custom color */
}

/* Responsive CTA */
@media (max-width: 768px) {
    .module-cta .cta-title {
        font-size: 2rem;
    }

    .module-cta .cta-subtitle {
        font-size: 1.1rem;
    }

    .module-cta .btn-cta {
        padding: 14px 36px;
        font-size: 1rem;
    }
}


/* CTA Default Background (when no inline style is present) */
.module-cta:not(.has-bg-image) {
    background: linear-gradient(135deg, var(--color-primary, #3b82f6) 0%, var(--color-primary-dark, #1d4ed8) 100%);
}

/* CTA Dark Mode Override */
html.dark-mode .module-cta:not(.has-bg-image) {
    background: var(--dm-bg) !important;
    /* Force Theme Dark Background */
}

/* Ensure text remains visible/appropriate in Dark Mode */
html.dark-mode .module-cta .cta-title {
    color: #f1f5f9;
}

html.dark-mode .module-cta .cta-subtitle {
    color: var(--dm-text-muted);
}

/* If Dark Mode + Background Image, we might want to darken the overlay slightly more? */
html.dark-mode .module-cta.has-bg-image .cta-overlay {
    /* Optional: could increase opacity if needed, but keeping user setting is usually safer */
}


/* ===== Module Statistics ===== */
.module-stats {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    color: #fff;
    /* Default text color for stats is usually white on colored/img bg */
}

.module-stats .stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1;
    pointer-events: none;
}

.module-stats .container {
    position: relative;
    z-index: 2;
}

.module-stats .stats-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: inherit;
}

.module-stats .stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.module-stats .stat-item {
    min-width: 180px;
    padding: 10px;
}

.module-stats .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: inherit;
}

.module-stats .stat-plus {
    font-size: 2rem;
    vertical-align: super;
    margin-left: 5px;
    opacity: 0.8;
}

.module-stats .stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Stats Dark Mode */
html.dark-mode .module-stats:not(.has-bg-image) {
    background: var(--dm-bg) !important;
    /* Force Theme Dark Background if using color */
}

/* If the user selected a color mode (which likely defaults to the blue gradient or custom),
   the above rule forces it to dark slate in dark mode.
   But if they chose an image, we keep the image.
*/

html.dark-mode .module-stats:not(.has-bg-image) .stat-number,
html.dark-mode .module-stats:not(.has-bg-image) .stats-title {
    color: #f1f5f9;
}

html.dark-mode .module-stats:not(.has-bg-image) .stat-label {
    color: var(--dm-text-muted);
}

/* Responsive Stats */
@media (max-width: 768px) {
    .module-stats .stats-grid {
        justify-content: center !important;
        text-align: center !important;
    }

    .module-stats .stat-item {
        width: 100%;
        min-width: auto;
    }

    .module-stats .stat-number {
        font-size: 3rem;
    }
}


/* ===== Module Clients/Partners ===== */
.module-clients .clients-scroll-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Space for shadow */
}

.module-clients .clients-scroll-track {
    display: flex;
    width: max-content;
    animation: clientsScroll 30s linear infinite;
}

.module-clients .clients-scroll-track:hover {
    animation-play-state: paused;
}

.module-clients .clients-grid {
    display: grid;
    gap: 20px;
    align-items: stretch;
}

.module-clients .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.module-clients .grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.module-clients .grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.module-clients .client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background: #fff;
    border-radius: 12px;
    min-height: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 15px;
    /* For scroll mode spacing */
    min-width: 160px;
    /* For scroll mode min-width */
}

/* Reset margin for grid mode */
.module-clients .clients-grid .client-item {
    margin: 0;
    min-width: 0;
}

.module-clients .client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.module-clients .client-logo {
    max-width: 100%;
    object-fit: contain;
    transition: filter 0.3s;
}

.module-clients .client-logo.is-grayscale {
    filter: grayscale(100%);
    opacity: 0.8;
}

.module-clients .client-item:hover .client-logo.is-grayscale {
    filter: grayscale(0%);
    opacity: 1;
}

.module-clients .client-name {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 500;
}

.module-clients .client-name-placeholder {
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
}

@keyframes clientsScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Clients Dark Mode */
html.dark-mode .module-clients {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-clients .client-item {
    background: #1e293b !important;
    /* Force card bg to dark if user didn't override, or ensure contrast */
    box-shadow: none;
    border: 1px solid #334155;
}

html.dark-mode .module-clients .client-item:hover {
    background: #252f41 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html.dark-mode .module-clients .client-name,
html.dark-mode .module-clients .client-name-placeholder {
    color: var(--dm-text-muted);
}

html.dark-mode .module-clients .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-clients .section-subtitle {
    color: var(--dm-text-muted);
}

/* Responsive Clients */
@media (max-width: 1200px) {

    .module-clients .grid-cols-6,
    .module-clients .grid-cols-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {

    .module-clients .grid-cols-4,
    .module-clients .grid-cols-5,
    .module-clients .grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .module-clients .grid-cols-3,
    .module-clients .grid-cols-4,
    .module-clients .grid-cols-5,
    .module-clients .grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .module-clients .grid-cols-2,
    .module-clients .grid-cols-3,
    .module-clients .grid-cols-4,
    .module-clients .grid-cols-5,
    .module-clients .grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-clients .client-item {
        padding: 15px 10px;
        min-height: 80px;
    }
}


/* ===== Module Features (Advantages) ===== */
.module-features .features-grid {
    display: grid;
    grid-template-columns: repeat(var(--f-cols, 4), 1fr);
    gap: 30px;
    align-items: stretch;
}

.module-features .feature-item {
    position: relative;
    padding: 30px;
    border-radius: var(--f-card-radius, 12px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.module-features .feature-item.style-card {
    background: var(--f-card-bg, #fff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.module-features .feature-item.style-border {
    border: 1px solid #e2e8f0;
}

.module-features .feature-item.style-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Hover Effects */
.module-features .feature-item.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.module-features .feature-item.hover-scale:hover {
    transform: scale(1.03);
}

/* Icon Position: TOP (Vertical) */
.module-features .icon-pos-top .feature-item {
    flex-direction: column;
}

/* Icon Position: LEFT (Horizontal) */
.module-features .icon-pos-left .feature-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    border-radius: 20px;
    /* Explicit radius as requested */
}

/* Alignment */
.module-features .text-center .feature-item {
    text-align: center;
    align-items: center;
}

.module-features .text-right .feature-item {
    text-align: right;
    align-items: flex-end;
}

.module-features .text-left .feature-item {
    text-align: left;
}

/* Icon Wrapper */
.module-features .feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--f-icon-size, 48px);
    height: var(--f-icon-size, 48px);
    font-size: var(--f-icon-font-size, 24px);
    color: var(--f-icon-color, #4f46e5);
    background: var(--f-icon-bg, #e0e7ff);
    border-radius: var(--f-icon-radius, 12px);
    flex-shrink: 0;
    margin-bottom: 20px;
    /* Default for top/vertical */
}

/* Reset margin for Left layout */
.module-features .icon-pos-left .feature-icon-wrapper {
    margin-bottom: 0;
}

.module-features .feature-icon-wrapper.style-simple {
    background: transparent !important;
    width: auto;
    height: auto;
    padding: 0;
}

/* Content */
.module-features .feature-content {
    flex: 1;
}

.module-features .feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.module-features .feature-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Link Overlay */
.module-features .feature-item.has-link {
    cursor: pointer;
}

.module-features .feature-item>a {
    color: inherit;
    text-decoration: none;
    display: block;
    /* If wrapping everything */
}

/* If using overlay link */
.module-features a[href] {
    display: block;
    color: inherit;
    text-decoration: none;
}

.module-features .feature-item a {
    text-decoration: none;
}


/* Responsive */
@media (max-width: 992px) {
    .module-features .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .module-features .features-grid {
        grid-template-columns: 1fr !important;
    }

    .module-features .icon-pos-left .feature-item {
        flex-direction: column;
        /* Stack on mobile usually better ? Or keep row if small icons */
        align-items: center;
        text-align: center;
    }

    .module-features .icon-pos-left .feature-icon-wrapper {
        margin-bottom: 15px;
    }
}

/* Features Dark Mode */
html.dark-mode .module-features {
    background: var(--dm-bg) !important;
}

html.dark-mode .module-features .feature-item.style-card {
    background: #1e293b !important;
    box-shadow: none;
    border: 1px solid #334155;
}

html.dark-mode .module-features .feature-item.style-border {
    border-color: var(--dm-border);
}

html.dark-mode .module-features .feature-title {
    color: #f1f5f9;
}

html.dark-mode .module-features .feature-desc {
    color: var(--dm-text-muted);
}

html.dark-mode .module-features .section-title {
    color: #f1f5f9;
}

html.dark-mode .module-features .section-subtitle {
    color: var(--dm-text-muted);
}

/* ===== Module Services (Enhanced) ===== */
.module-services {
    background: var(--s-bg-color, #ffffff);
}

.module-services.section-padding {
    padding: var(--s-padding, 80px 0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(var(--s-cols, 4), 1fr);
    gap: 30px;
}

.module-services .service-item {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    border: 2px solid #f1f5f9;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.module-services .service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary, #2563eb), var(--color-primary-light, #60a5fa));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.module-services .service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.module-services .service-item:hover::before {
    transform: scaleX(1);
}



.module-services .service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 12px;
}

.module-services .service-title {
    font-size: var(--s-title-size, 1.125rem);
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--s-title-color, #1e293b);
}

.module-services .service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.module-services .service-title a:hover {
    color: var(--color-primary);
}

.module-services .service-desc {
    color: var(--s-sub-color, #475569);
    font-size: var(--s-sub-size, 0.9rem);
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Dark Mode */
html.dark-mode .module-services {
    background: var(--dm-bg) !important;
    /* Force dark bg if user selected light */
}

html.dark-mode .module-services .service-item {
    background: var(--dm-bg-card);
    border-color: var(--dm-border);
}

html.dark-mode .module-services .service-title {
    color: #f1f5f9;
}

html.dark-mode .service-desc {
    color: var(--dm-text-muted);
}

/* ===== Module Decorations (SVGs) ===== */
.module-decor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    /* Rely on SVG opacity */
    color: currentColor;
    /* Inherit text color for blending */
    transition: all 0.5s ease;
}

.module-decor.d-left {
    left: 0;
}

.module-decor.d-right {
    right: 0;
}

.module-decor svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Specific Adjustments */
.module-stats .module-decor,
.module-cta .module-decor {
    color: #fff;
    /* Default to white for blending on dark/colored backgrounds */
}

/* Move content above decorations */
.module-stats .container,
.module-cta .container,
.module-cta .cta-overlay,
.module-stats .stats-overlay {
    position: relative;
    z-index: 2;
}

/* Animations */
.module-decor svg circle,
.module-decor svg path,
.module-decor svg rect {
    transform-origin: center;
    transition: all 1s ease;
}

.module-stats:hover .module-decor.d-left svg circle,
.module-cta:hover .module-decor.d-left svg path {
    transform: scale(1.1);
    opacity: 0.8;
}

.module-stats:hover .module-decor.d-right svg circle,
.module-cta:hover .module-decor.d-right svg rect {
    transform: translateY(-5px);
}

/* Responsive Hide */
@media (max-width: 1024px) {
    .module-decor {
        opacity: 0.05 !important;
        transform: translateY(-50%) scale(0.7);
    }
}

@media (max-width: 768px) {
    .module-decor {
        display: none !important;
    }
}

/* ===== Module Software Ranking ===== */
.module-software-ranking {
    position: relative;
    overflow: hidden;
}

/* Ranking Dark Mode */
html.dark-mode .module-software-ranking {
    background: var(--dm-bg) !important;
    /* Override inline styles */
}

html.dark-mode .module-software-ranking .section-title {
    color: #f1f5f9 !important;
}

html.dark-mode .module-software-ranking .section-subtitle {
    color: #94a3b8 !important;
}

html.dark-mode .module-software-ranking .sr-item,
html.dark-mode .module-software-ranking .sr-card,
html.dark-mode .module-software-ranking .sr-numbered-list,
html.dark-mode .module-software-ranking .sr-column {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-mode .module-software-ranking .sr-name {
    color: #f1f5f9;
}

html.dark-mode .module-software-ranking .sr-meta,
html.dark-mode .module-software-ranking .sr-desc {
    color: var(--dm-text-muted);
}

/* ===== Module Software Category ===== */
.module-software-category {
    position: relative;
    overflow: hidden;
}

/* Category Dark Mode */
html.dark-mode .module-software-category {
    background: var(--dm-bg) !important;
    /* Override inline styles */
}

html.dark-mode .module-software-category .section-title {
    color: #f1f5f9 !important;
}

html.dark-mode .module-software-category .section-subtitle {
    color: #94a3b8 !important;
}

html.dark-mode .module-software-category .sc-card {
    background: #1e293b !important;
    border-color: var(--dm-border);
    box-shadow: none;
}

html.dark-mode .module-software-category .sc-card:hover {
    background: #252f41 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html.dark-mode .module-software-category .sc-name {
    color: #f1f5f9;
}

html.dark-mode .module-software-category .sc-desc,
html.dark-mode .module-software-category .sc-date {
    color: var(--dm-text-muted);
}

html.dark-mode .module-software-category .sc-icon-placeholder {
    background: #334155;
}

/* ===== Module Blog Layout ===== */
.module-blog .blog-posts.blog-layout-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.module-blog .blog-posts.blog-layout-card,
.module-blog .blog-posts.blog-layout-grid {
    display: grid;
    gap: 24px;
}

.module-blog .blog-posts.blog-layout-large {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.module-blog .blog-post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.module-blog .blog-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}


.module-blog .blog-layout-list .blog-post-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.module-blog .blog-layout-list .post-thumbnail {
    flex-shrink: 0;
    width: 260px;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.module-blog .blog-layout-list .post-thumbnail img,
.module-blog .blog-layout-list .post-thumbnail .video-cover-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.module-blog .blog-layout-list .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.module-blog .blog-layout-card .blog-post-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.module-blog .blog-layout-card .blog-post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.module-blog .blog-layout-card .post-thumbnail {
    border-radius: 16px 16px 0 0;
}

.module-blog .blog-layout-grid .blog-post-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.module-blog .blog-layout-grid .blog-post-item:hover {
    transform: none;
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 0 0 1px var(--color-primary, #2563eb);
}

.module-blog .blog-layout-grid .post-content {
    padding: 16px;
}

.module-blog .blog-layout-grid .post-title {
    font-size: 1rem;
}

.module-blog .blog-layout-grid .post-excerpt {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.module-blog .post-thumbnail {
    display: block;
    overflow: hidden;
}

.module-blog .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.module-blog .blog-post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.module-blog .post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.module-blog .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
}

.module-blog .post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.module-blog .post-category {
    background: linear-gradient(135deg, var(--color-primary, #2563eb), #7c3aed);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
}

.module-blog .post-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.module-blog .post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.module-blog .post-title a:hover {
    color: var(--color-primary, #2563eb);
}

.module-blog .post-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.module-blog .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.module-blog .post-tags a {
    background: #f1f5f9;
    color: #475569;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.module-blog .post-tags a:hover {
    background: var(--color-primary, #2563eb);
    color: #fff;
}

.module-blog .post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary, #2563eb);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

.module-blog .post-read-more:hover {
    gap: 10px;
}

.module-blog .blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.module-blog .sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.module-blog .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.module-blog .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, var(--color-primary, #2563eb), #7c3aed);
}

@media (max-width: 992px) {
    .module-blog .blog-layout-wrapper.has-sidebar {
        grid-template-columns: 1fr !important;
    }

    .module-blog .blog-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .module-blog .blog-layout-list .blog-post-item {
        flex-direction: column;
    }

    .module-blog .blog-layout-list .post-thumbnail {
        width: 100%;
        min-height: 200px;
    }

    .module-blog .blog-posts.blog-layout-grid.grid-cols-3,
    .module-blog .blog-posts.blog-layout-card.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {

    .module-blog .blog-posts.blog-layout-grid,
    .module-blog .blog-posts.blog-layout-card {
        grid-template-columns: 1fr !important;
    }
}

.module-blog .blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.module-blog .blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.module-blog .blog-pagination .page-numbers:hover {
    background: #f1f5f9;
    border-color: var(--color-primary, #2563eb);
    color: var(--color-primary, #2563eb);
}

.module-blog .blog-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--color-primary, #2563eb), #7c3aed);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.module-blog .blog-pagination .page-numbers.prev,
.module-blog .blog-pagination .page-numbers.next {
    gap: 6px;
    padding: 0 16px;
}

.module-blog .blog-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: var(--dm-text-muted);
    min-width: auto;
    padding: 0 4px;
}

.module-blog .blog-pagination .page-numbers.dots:hover {
    background: transparent;
}

.module-blog .pagination-info {
    text-align: center;
    margin-top: 16px;
    color: #64748b;
    font-size: 14px;
}

html.dark-mode .module-blog .blog-pagination .page-numbers {
    background: var(--dm-bg-card);
    color: #cbd5e1;
    border-color: var(--dm-border);
}

html.dark-mode .module-blog .blog-pagination .page-numbers:hover {
    background: #334155;
    border-color: var(--color-primary, #2563eb);
    color: #fff;
}

html.dark-mode .module-blog .blog-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--color-primary, #2563eb), #7c3aed);
    color: #fff;
    border-color: transparent;
}

html.dark-mode .module-blog .blog-pagination .page-numbers.dots {
    background: transparent;
    color: #64748b;
}

html.dark-mode .module-blog .pagination-info {
    color: var(--dm-text-muted);
}

html.dark-mode .module-blog {
    background: var(--dm-bg) !important;
    /* Force Module BG Dark */
}

html.dark-mode .module-blog .blog-post-item {
    background: #1e293b !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

html.dark-mode .module-blog .post-title a {
    color: #f1f5f9;
}

html.dark-mode .module-blog .post-title a:hover {
    color: var(--color-primary, #2563eb);
}

html.dark-mode .module-blog .post-excerpt,
html.dark-mode .module-blog .post-meta {
    color: var(--dm-text-muted);
}

html.dark-mode .module-blog .post-tags a {
    background: #334155;
    color: #cbd5e1;
}

html.dark-mode .module-blog .post-tags a:hover {
    background: var(--color-primary, #2563eb);
    color: #fff;
}

html.dark-mode .module-blog .sidebar-widget {
    background: #1e293b !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

html.dark-mode .module-blog .widget-title {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

html.dark-mode .module-blog .blog-layout-grid .blog-post-item {
    border-color: #334155 !important;
}

html.dark-mode .module-blog .blog-no-posts {
    background: #1e293b !important;
}

html.dark-mode .module-blog .section-title {
    color: #f1f5f9 !important;
}

html.dark-mode .module-blog .section-subtitle {
    color: #94a3b8 !important;
}

.module-featured-posts .fp-wrapper {
    display: flex;
    gap: 16px;
}

.module-featured-posts .fp-wrapper.fp-layout-full .fp-slider-wrapper {
    width: 100%;
}

.module-featured-posts .fp-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 200px;
}

.module-featured-posts .fp-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
}

.module-featured-posts .fp-slide.active {
    position: relative;
    opacity: 1;
    z-index: 1;
}

.module-featured-posts .fp-slide-link {
    display: block;
    position: relative;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.module-featured-posts .fp-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.module-featured-posts .fp-slide:hover .fp-slide-image {
    transform: scale(1.05);
}

.module-featured-posts .fp-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.module-featured-posts .fp-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.module-featured-posts .fp-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-featured-posts .fp-slide-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.module-featured-posts .fp-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.module-featured-posts .fp-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.module-featured-posts .fp-slide-excerpt {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0 0 15px;
    line-height: 1.5;
}

.module-featured-posts .fp-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-featured-posts .fp-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.module-featured-posts .fp-author-name {
    font-size: 0.9rem;
    opacity: 0.9;
}

.module-featured-posts .fp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.module-featured-posts .fp-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.module-featured-posts .fp-arrow-prev {
    left: 20px;
}

.module-featured-posts .fp-arrow-next {
    right: 20px;
}

.module-featured-posts .fp-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.module-featured-posts .fp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-featured-posts .fp-dot.active,
.module-featured-posts .fp-dot:hover {
    background: #fff;
    transform: scale(1.2);
}

.module-featured-posts .fp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 400px;
    /* Default Fallback */
}

.module-featured-posts .fp-list-item {
    position: relative;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.module-featured-posts .fp-list-item-featured {
    flex: 2;
}

.module-featured-posts .fp-list-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.module-featured-posts .fp-list-item:hover .fp-list-image {
    transform: scale(1.08);
}

.module-featured-posts .fp-list-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.module-featured-posts .fp-list-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 2;
}

.module-featured-posts .fp-list-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-primary, #2563eb);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 8px;
}

.module-featured-posts .fp-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.module-featured-posts .fp-list-item-featured .fp-list-title {
    font-size: 1.1rem;
}

.module-featured-posts .fp-list-date {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 6px;
    display: block;
}

@media (max-width: 992px) {
    .module-featured-posts .fp-wrapper {
        flex-direction: column;
    }

    .module-featured-posts .fp-wrapper.fp-layout-dual .fp-slider-wrapper,
    .module-featured-posts .fp-list-wrapper {
        width: 100% !important;
    }

    .module-featured-posts .fp-list {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto !important;
        /* Override inline height */
    }

    .module-featured-posts .fp-list-item {
        flex: 1 1 calc(50% - 6px);
        min-height: 150px;
    }

    .module-featured-posts .fp-list-item-featured {
        flex: 1 1 100%;
        min-height: 180px;
    }
}

@media (max-width: 576px) {
    .module-featured-posts .fp-slide-title {
        font-size: 1.2rem;
    }

    .module-featured-posts .fp-slide-content {
        padding: 20px;
    }

    .module-featured-posts .fp-arrow {
        width: 36px;
        height: 36px;
    }

    .module-featured-posts .fp-arrow svg {
        width: 18px;
        height: 18px;
    }

    .module-featured-posts .fp-list-item {
        flex: 1 1 100%;
    }
}

/* Dark Mode Support */
html.dark-mode .module-featured-posts {
    background: var(--dm-bg) !important;
    /* Override inline bg */
}

html.dark-mode .module-featured-posts .section-title {
    color: #f1f5f9 !important;
}

html.dark-mode .module-featured-posts .section-subtitle {
    color: #94a3b8 !important;
}

/* Ensure empty state is dark */
html.dark-mode .module-featured-posts .fp-empty {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

/* Banner Image Left styles (Auto-Added) */
.banner-flex[style*='row-reverse'] .banner-text {
    text-align: right !important;
}

@media (max-width: 768px) {
    .banner-flex[style*='row-reverse'] .banner-text {
        text-align: center !important;
    }
}

/* Category Tabs Module Style */
.module-category-tabs .cat-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.module-category-tabs .cat-tab-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.module-category-tabs .cat-tab-btn:hover {
    color: var(--primary-color, #2563eb);
    border-color: var(--primary-color, #2563eb);
    transform: translateY(-1px);
}

.module-category-tabs .cat-tab-btn.active {
    background: var(--primary-color, #2563eb);
    color: #fff;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Grid Layout */
.module-category-tabs .cat-tabs-grid {
    display: grid;
    gap: 30px;
    min-height: 200px;
}

.module-category-tabs .cat-tabs-grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.module-category-tabs .cat-tabs-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.module-category-tabs .cat-tabs-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.module-category-tabs .cat-tabs-grid.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Post Item */
.module-category-tabs .cat-tab-post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.module-category-tabs .cat-tab-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.module-category-tabs .post-media {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Aspect Ratios */
.module-category-tabs .post-thumbnail-link {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.module-category-tabs .ratio-16-9 .post-thumbnail-link {
    padding-top: 56.25%;
}

.module-category-tabs .ratio-4-3 .post-thumbnail-link {
    padding-top: 75%;
}

.module-category-tabs .ratio-1-1 .post-thumbnail-link {
    padding-top: 100%;
}

.module-category-tabs .ratio-3-4 .post-thumbnail-link {
    padding-top: 133.33%;
}

.module-category-tabs .post-thumbnail-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.module-category-tabs .cat-tab-post-item:hover .post-thumbnail-link img {
    transform: scale(1.05);
}

.module-category-tabs .video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.module-category-tabs .post-cat-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.module-category-tabs .post-cat-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.module-category-tabs .post-cat-badge:hover {
    background: var(--primary-color, #2563eb);
    color: #fff;
}

.module-category-tabs .post-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.module-category-tabs .post-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.module-category-tabs .post-title a {
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.module-category-tabs .post-title a:hover {
    color: var(--primary-color, #2563eb);
}

.module-category-tabs .post-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
    gap: 15px;
}

.module-category-tabs .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Load More */
.module-category-tabs .cat-tabs-load-more {
    text-align: center;
    margin-top: 40px;
}

.module-category-tabs .btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.module-category-tabs .btn-load-more:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.module-category-tabs .btn-load-more.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Loading Spinner */
.module-category-tabs .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary-color, #2563eb);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.module-category-tabs .loading-spinner-wrapper {
    grid-column: 1 / -1;
    padding: 40px 0;
    text-align: center;
}

.module-category-tabs .no-posts,
.module-category-tabs .error-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {

    .module-category-tabs .cat-tabs-grid.grid-cols-5,
    .module-category-tabs .cat-tabs-grid.grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .module-category-tabs .cat-tabs-grid.grid-cols-5,
    .module-category-tabs .cat-tabs-grid.grid-cols-4,
    .module-category-tabs .cat-tabs-grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-category-tabs .cat-tabs-nav {
        gap: 10px;
        margin-bottom: 30px;
    }

    .module-category-tabs .cat-tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .module-category-tabs .cat-tabs-grid.grid-cols-5,
    .module-category-tabs .cat-tabs-grid.grid-cols-4,
    .module-category-tabs .cat-tabs-grid.grid-cols-3,
    .module-category-tabs .cat-tabs-grid.grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Blog Resource Stats Module */
.module-resource-stats {
    position: relative;
    overflow: hidden;
}

.module-resource-stats.has-bg-image {
    background-size: cover;
    background-position: center;
}

.module-resource-stats .rs-header {
    margin-bottom: 50px;
}

.module-resource-stats .rs-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.module-resource-stats .rs-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.module-resource-stats .rs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Stat Item */
.module-resource-stats .rs-stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-resource-stats .rs-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
}

.module-resource-stats .rs-stat-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color, #2563eb);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-resource-stats .rs-stat-icon .dashicons {
    width: auto;
    height: auto;
    font-size: 40px;
}

.module-resource-stats .rs-stat-number-wrap {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.module-resource-stats .rs-stat-plus {
    font-size: 1.5rem;
    vertical-align: super;
    margin-top: -10px;
    color: var(--primary-color, #2563eb);
}

.module-resource-stats .rs-stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .module-resource-stats .rs-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .module-resource-stats .rs-header {
        margin-bottom: 30px;
    }

    .module-resource-stats .rs-title {
        font-size: 1.8rem;
    }

    .module-resource-stats .rs-stats-grid {
        gap: 15px;
    }

    .module-resource-stats .rs-stat-item {
        padding: 20px 15px;
    }

    .module-resource-stats .rs-stat-number-wrap {
        font-size: 2rem;
    }

    .module-resource-stats .rs-stat-icon {
        font-size: 32px;
        margin-bottom: 15px;
        height: 40px;
    }

    .module-resource-stats .rs-stat-icon .dashicons {
        font-size: 32px;
    }
}


/* Video Cover Support for Category Tabs */
.cat-tab-post-item .post-media.has-video-cover .post-thumbnail-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.cat-tab-post-item .video-cover-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.cat-tab-post-item .video-poster {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s;
}

.cat-tab-post-item:hover .video-poster {
    opacity: 0;
}

.cat-tab-post-item .video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #fff;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cat-tab-post-item:hover .video-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}


/* ===== App Hero Module ===== */
.module-app-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.module-app-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-app-hero .container {
    position: relative;
    z-index: 2;
}

.app-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Content Side */
.app-hero-content {
    max-width: 600px;
}

.app-hero-content .hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: inherit;
    letter-spacing: -0.02em;
}

.app-hero-content .hero-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
}

.app-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.app-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-btn-icon svg,
.app-btn-icon i {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.app-btn-icon svg {
    fill: currentColor;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-btn-text .btn-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.app-btn-text .btn-main {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Button Styles */
.app-btn.style-light {
    background: #fff;
    color: #0f172a;
}

.app-btn.style-light:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.app-btn.style-dark {
    background: #0f172a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-btn.style-dark:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
    background: #1e293b;
}

.app-btn.style-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.app-btn.style-outline:hover {
    background: #fff;
    color: #0f172a;
    border-color: #fff;
}

/* QR Card */
.hero-qr-card {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 450px;
}

.qr-card-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qr-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
}

.qr-text-wrap {
    display: flex;
    flex-direction: column;
}

.qr-sub {
    font-size: 0.7rem;
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.qr-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff;
}

.qr-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.qr-code-img {
    width: 80px;
    height: 80px;
    background: #fff;
    padding: 4px;
    border-radius: 12px;
    flex-shrink: 0;
}

.qr-code-img img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Media Side */
.app-hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.media-wrapper {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.media-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.device-mockup {
    position: relative;
    z-index: 2;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: heroFloat 6s ease-in-out infinite;
}

.device-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.device-mockup img,
.device-mockup video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Video specific mockup style */
.device-mockup.video-mode video {
    border: 8px solid #000;
    background: #000;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: heroFloat 5s ease-in-out infinite reverse;
}

/* Animations */
@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(-10deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-10deg);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .app-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .app-hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-qr-card {
        margin: 0 auto;
        text-align: left;
    }

    .app-hero-media {
        margin-top: 20px;
    }

    .device-mockup {
        transform: none;
        /* Simplify on mobile */
        animation: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem !important;
    }

    .app-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-qr-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .qr-card-info {
        flex-direction: column;
    }

    .qr-text-wrap {
        align-items: center;
    }
}

/* Dark Mode Adaptation - If module has no background set (transparent), adapt text */
html.dark-mode .module-app-hero:not([style*='background']) .hero-title,
html.dark-mode .module-app-hero:not([style*='background']) .hero-desc {
    color: #fff;
    /* Keep white if hero is usually dark, or adapt */
}

/* Note: usually Hero sections have their own backgrounds, so text color inherits from that. 
   The default style assumes a dark/gradient background with white text. */

/* Floating Badges (App Hero) */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 16px;
    border-radius: 16px;
    /* Squircle */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 5;
    min-width: 140px;
    transition: transform 0.3s ease;
    animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge .float-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
    flex-shrink: 0;
}

.floating-badge .float-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    /* Reset hero img shadow */
}

.floating-badge .float-text {
    display: flex;
    flex-direction: column;
}

.floating-badge .float-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.floating-badge .float-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

/* Positions */
.floating-badge.pos-top-left {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.floating-badge.pos-top-right {
    top: 15%;
    right: -20px;
    animation-delay: 1.5s;
}

.floating-badge.pos-center-left {
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    animation: floatBadgeVertical 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.floating-badge.pos-center-right {
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    animation: floatBadgeVertical 5s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-badge.pos-bottom-left {
    bottom: 20%;
    left: -10px;
    animation-delay: 1s;
}

.floating-badge.pos-bottom-right {
    bottom: 25%;
    right: -30px;
    animation-delay: 2.5s;
}

/* Specific Badge Animations */
@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatBadgeVertical {

    0%,
    100% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(0, calc(-50% - 10px));
    }
}

/* Mobile: Adjust or hide floating badges if too crowded */
@media (max-width: 576px) {
    .floating-badge {
        transform: scale(0.8) !important;
        /* Scale down */
        animation: none !important;
        /* specific animation might overlap */
    }

    .floating-badge.pos-top-left {
        left: 0;
        top: 0;
    }

    .floating-badge.pos-top-right {
        right: 0;
        top: 5%;
    }

    .floating-badge.pos-center-left {
        display: none;
    }

    /* Hide center ones on mobile */
    .floating-badge.pos-center-right {
        display: none;
    }

    .floating-badge.pos-bottom-left {
        display: none;
    }

    .floating-badge.pos-bottom-right {
        right: 0;
        bottom: 0;
    }
}

/* =========================================
   Tabbed Carousel Module Styles (Tab切换轮播)
   ========================================= */
.module-tabbed-carousel {
    position: relative;
    overflow: hidden;
}

/* Tab 导航部分 */
.tc-tabs-wrapper {
    position: relative;
    margin-bottom: 60px;
}

.tc-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* 移动端横向滚动优化 */
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    white-space: nowrap;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tc-tabs::-webkit-scrollbar {
    display: none;
}

.tc-tab-item {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--tc-tab-color, #94a3b8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tc-tab-item.active {
    color: var(--tc-tab-active, #1e293b);
    font-weight: 600;
}

.tc-tab-item i {
    font-size: 1.25rem;
}

/* 动态下划线 */
.tc-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--tc-bar-color, #f59e0b);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    pointer-events: none;
}

/* 轮播部分 */
.tc-carousel-wrapper {
    padding: 20px 0 60px;
    perspective: 1000px;
}

.tc-swiper {
    width: 100%;
    padding-bottom: 40px !important;
}

.tc-swiper .swiper-slide {
    width: var(--tc-img-width, 800px);
    /* 高度自适应 */
    height: auto;
    transition: all 0.3s;
}

/* Slide 内容 */
.tc-slide-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--tc-slide-bg, #ffffff);
    box-shadow: var(--tc-shadow, 0 10px 30px -10px rgba(0, 0, 0, 0.1));
}

.tc-slide-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* 描述文字 */
.tc-slide-desc {
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #475569;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

/* 占位符 */
.tc-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #94a3b8;
}

.tc-placeholder span {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Swiper 分页器优化 */
.tc-swiper .swiper-pagination {
    bottom: 0 !important;
}

.tc-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s;
}

.tc-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: var(--tc-bar-color, #f59e0b);
}

/* 响应式 */
@media (max-width: 992px) {
    .tc-swiper .swiper-slide {
        width: 80%;
    }
}

@media (max-width: 576px) {
    .tc-tabs {
        justify-content: flex-start;
        gap: 25px;
    }

    .tc-swiper .swiper-slide {
        width: 90%;
    }

    .tc-slide-desc {
        font-size: 0.95rem;
        padding: 15px;
    }
}


/* =========================================
   Full Screen Video Module Styles (全屏视频首屏)
   ========================================= */
.module-fullscreen-video {
    position: relative;
    width: 100%;
    height: 100vh;
    /* 全屏高度 */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-sizing: border-box;
    /* 确保内边距不撑大容器 */
}

/* 背景层 */
.fsv-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fsv-video,
.fsv-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.fsv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: var(--fsv-overlay, 0.3);
    z-index: 2;
}

.fsv-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
}

/* 控制按钮 */
.fsv-controls {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 20;
    display: flex;
    gap: 15px;
}

.fsv-ctrl-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fsv-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 标题内容区 */
.fsv-content {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 50px;
}

.fsv-title {
    font-size: 5rem;
    font-weight: 200;
    margin: 0;
    line-height: 1.2;
    color: #fff;
    /* 呼吸光晕动画在这里应用 */
}

.fsv-subtitle {
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

/* 呼吸光晕动画 */
.glow-animation {
    animation: glow-breathe 4s ease-in-out infinite;
    text-shadow: 0 0 var(--fsv-blur) var(--fsv-glow-color);
}

@keyframes glow-breathe {

    0%,
    100% {
        text-shadow: 0 0 15px var(--fsv-glow-color), 0 0 30px var(--fsv-glow-color);
        opacity: 0.95;
    }

    50% {
        text-shadow: 0 0 25px var(--fsv-glow-color), 0 0 50px var(--fsv-glow-color), 0 0 80px var(--fsv-glow-color);
        opacity: 1;
    }
}

/* 字幕淡入 */
.tracking-in-expand {
    animation: tracking-in-expand 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@keyframes tracking-in-expand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* 底部导航 */
.fsv-bottom-nav {
    position: absolute;
    bottom: 12%;
    /* 使用百分比，确保在不同高度屏幕上可见 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0;
    /* 连在一起 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.fsv-nav-item {
    position: relative;
}

.fsv-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 40px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.fsv-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.fsv-nav-link i {
    font-size: 1.1em;
}

/* 二维码悬停卡片 */
.fsv-qr-card {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 140px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 30;
    margin-bottom: 20px;
}

.fsv-nav-item:hover .fsv-qr-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.fsv-qr-box img {
    width: 100%;
    height: auto;
    display: block;
}

.fsv-qr-text {
    color: #333;
    font-size: 12px;
    margin-top: 8px;
}

/* 小三角 */
.fsv-qr-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .fsv-title {
        font-size: 3rem;
    }

    .fsv-subtitle {
        font-size: 1rem;
    }

    .fsv-controls {
        top: 20px;
        right: 20px;
    }

    .fsv-bottom-nav {
        width: 90%;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
        bottom: 30px;
    }

    .fsv-nav-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* =========================================
   Circle Wheel Module (Added)
   ========================================= */
.module-circle-wheel {
    position: relative;
    overflow: hidden;
    color: #fff;
    /* Default dark blue bg just in case */
    background-color: #0f172a;
}

.module-circle-wheel .wheel-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-circle-wheel .wheel-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.module-circle-wheel .wheel-header {
    text-align: center;
    margin-bottom: 60px;
    z-index: 10;
}

.module-circle-wheel .wheel-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}

.module-circle-wheel .wheel-sub-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.module-circle-wheel .wheel-wrapper {
    position: relative;
    width: 100%;
    /* Ensure enough space for the wheel */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Details Panels (Left/Right) */
.wheel-details-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    transition: all 0.4s ease-out;
    opacity: 0;
    /* Controlled by JS */
}

.wheel-details-panel.detail-left {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

.wheel-details-panel.detail-right {
    right: 0;
    text-align: left;
    padding-left: 40px;
}

.wheel-details-panel .detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4ffbdf;
    /* Cyan Highlight */
    margin: 0 0 16px;
    text-shadow: 0 0 20px rgba(79, 251, 223, 0.3);
}

.wheel-details-panel .detail-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Center Stage */
.wheel-center-stage {
    width: 500px;
    height: 500px;
    position: relative;
    border-radius: 50%;
}

/* Decorative Ring Borders */
.wheel-ring-border {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.wheel-ring-inner-border {
    position: absolute;
    inset: 80px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Rotating Items Ring */
.wheel-items-ring {
    position: absolute;
    inset: 0;
    animation: slowSpin 60s linear infinite;
}

.wheel-items-ring:hover {
    animation-play-state: paused;
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Individual Item */
.wheel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    /* Rotation controlled by vars, radius by translateY */
    /* Radius = 250px */
    transform: rotate(var(--item-angle)) translateY(-250px);
    display: flex;
    justify-content: center;
    cursor: pointer;
}

/* Item Content (Text + Dot) */
.wheel-item-content {
    position: absolute;
    bottom: 0;
    border: 2px solid rgba(79, 251, 223, 0.2);
    animation: corePulse 2s infinite;
}

@keyframes corePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .module-circle-wheel .wheel-wrapper {
        min-height: auto;
        flex-direction: column;
        gap: 60px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .wheel-details-panel {
        position: relative;
        top: auto;
        transform: none !important;
        opacity: 1 !important;
        width: 100%;
        max-width: 600px;
        text-align: center !important;
        padding: 0 !important;
        left: auto !important;
        right: auto !important;
        order: 2;
        display: none;
    }

    /* Hide Wheel on Mobile, show Grid instead */
    .wheel-center-stage {
        display: none;
    }

    .module-circle-wheel .wheel-wrapper {
        display: block;
    }

    .wheel-items-ring {
        position: relative;
        animation: none;
        inset: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wheel-item {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .wheel-item-content {
        position: relative;
        bottom: auto;
        left: auto;
        width: auto;
        transform: none;
        opacity: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .wheel-item .ring-text {
        font-size: 1.1rem;
        margin-bottom: 5px;
        color: #fff;
    }

    .wheel-item .ring-dot {
        display: none;
    }

    /* Show description on mobile directly */
    .wheel-item::after {
        content: attr(data-desc);
        display: block;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.6);
        margin-top: 10px;
        line-height: 1.5;
    }

    .wheel-item.active {
        background: rgba(79, 251, 223, 0.1);
        border-color: #4ffbdf;
    }

    .wheel-details-panel {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .wheel-items-ring {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Circle Wheel Module (Added)
   ========================================= */
.module-circle-wheel {
    position: relative;
    overflow: hidden;
    color: #fff;
    /* Default dark blue bg */
    background-color: #0f172a;
}

.module-circle-wheel .wheel-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-circle-wheel .wheel-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.module-circle-wheel .wheel-header {
    text-align: center;
    margin-bottom: 60px;
    z-index: 10;
}

.module-circle-wheel .wheel-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}

.module-circle-wheel .wheel-sub-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.module-circle-wheel .wheel-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Details Panels (Left/Right) */
.wheel-details-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    transition: all 0.4s ease-out;
    opacity: 0;
}

.wheel-details-panel.detail-left {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

.wheel-details-panel.detail-right {
    right: 0;
    text-align: left;
    padding-left: 40px;
}

.wheel-details-panel .detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4ffbdf;
    margin: 0 0 16px;
    text-shadow: 0 0 20px rgba(79, 251, 223, 0.3);
}

.wheel-details-panel .detail-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Center Stage */
.wheel-center-stage {
    width: 500px;
    height: 500px;
    position: relative;
    border-radius: 50%;
}

/* Decorative Ring Borders */
.wheel-ring-border {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.wheel-ring-inner-border {
    position: absolute;
    inset: 80px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Rotating Items Ring */
.wheel-items-ring {
    position: absolute;
    inset: 0;
    animation: slowSpin 60s linear infinite;
}

.wheel-items-ring:hover {
    animation-play-state: paused;
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Individual Item */
.wheel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    /* Rotation controlled by inline styles (PHP) */
    display: flex;
    justify-content: center;
    cursor: pointer;
}

/* Item Content (Text + Dot) */
.wheel-item-content {
    position: absolute;
    bottom: 0;
    left: -100px;
    width: 200px;
    text-align: center;
    /* Rotation controlled by inline styles (PHP) */
    transition: all 0.3s;
    opacity: 0.6;
}

.wheel-item:hover .wheel-item-content,
.wheel-item.active .wheel-item-content {
    opacity: 1;
    transform: rotate(var(--counter-angle)) scale(1.1);
    /* Fallback if var exists, but PHP inline style overrides this? No, CSS class overrides attribute unless !important. */
    /* Wait, inline style has highest specificity. We need to be careful. */
    /* The hover effect might break logic if we rely purely on inline style for static rotation. */
    /* Solution: Use !important in inline style or simply don't rely on hover transform for rotation, only scale? */
    /* Let's use a nested span for scale to avoid conflicting with rotation transform */
}

/* We need to restructure HTML slightly or use specific targeting. 
   Currently: .wheel-item-content { transform: rotate(-Adeg); }
   Hover: transform: rotate(var(--counter-angle)) scale(1.1);
   This is tricky.
   Better approach:
   .wheel-item-content { transform: rotate(-Adeg); transition: opacity 0.3s; }
   .wheel-item-content-inner { transition: transform 0.3s; }
   Hover .wheel-item-content-inner { transform: scale(1.1); }
   
   However, I cannot easily change PHP structure right now without another step.
   For now, I'll trust the PHP inline style. 
   The hover effect `scale` in CSS currently attempts to OVERWRITE the transform.
   This will BREAK the rotation on hover!
   
   FIX: Remove the hover transform scale from CSS entirely for now to prioritize correctness of rotation.
   Or apply scale to the text/dot elements instead.
*/

.wheel-item:hover .wheel-item-content,
.wheel-item.active .wheel-item-content {
    opacity: 1;
    /* Removed transform here to avoid breaking inline rotation */
}

.wheel-item .ring-text {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    transition: transform 0.3s, color 0.3s, text-shadow 0.3s;
}

.wheel-item:hover .ring-text,
.wheel-item.active .ring-text {
    color: #4ffbdf;
    text-shadow: 0 0 10px rgba(79, 251, 223, 0.5);
    transform: scale(1.1);
}

.wheel-item .ring-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s;
}

.wheel-item:hover .ring-dot,
.wheel-item.active .ring-dot {
    background: #4ffbdf;
    box-shadow: 0 0 10px #4ffbdf;
    transform: scale(1.5);
}

/* Center Core */
.wheel-center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wheel-center-core .core-center-point {
    width: 12px;
    height: 12px;
    background: #4ffbdf;
    border-radius: 50%;
    box-shadow: 0 0 15px #4ffbdf;
    position: relative;
    z-index: 2;
}

.wheel-center-core .core-pulse {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(79, 251, 223, 0.2);
    animation: corePulse 2s infinite;
}

@keyframes corePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .module-circle-wheel .wheel-wrapper {
        min-height: auto;
        flex-direction: column;
        gap: 60px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .wheel-details-panel {
        display: none !important;
    }

    .wheel-center-stage {
        display: none;
    }

    .module-circle-wheel .wheel-wrapper {
        display: block;
    }

    .wheel-items-ring {
        position: relative;
        animation: none;
        inset: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wheel-item {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        transform: none !important;
        /* Override inline styles */
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wheel-item-content {
        position: relative;
        bottom: auto;
        left: auto;
        width: auto;
        transform: none !important;
        /* Override inline styles */
        opacity: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .wheel-item .ring-text {
        font-size: 1.1rem;
        margin-bottom: 5px;
        color: #fff;
    }

    .wheel-item .ring-dot {
        display: none;
    }

    .wheel-item::after {
        content: attr(data-desc);
        display: block;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.6);
        margin-top: 10px;
        line-height: 1.5;
    }

    .wheel-item.active {
        background: rgba(79, 251, 223, 0.1);
        border-color: #4ffbdf;
    }
}

@media (max-width: 600px) {
    .wheel-items-ring {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Circle Wheel Module (Cleaned & Reset)
   ========================================= */
.module-circle-wheel {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: #0f172a;
}

.module-circle-wheel .wheel-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.module-circle-wheel .wheel-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.module-circle-wheel .wheel-header {
    text-align: center;
    margin-bottom: 60px;
    z-index: 10;
}

.module-circle-wheel .wheel-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}

.module-circle-wheel .wheel-sub-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.module-circle-wheel .wheel-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-details-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    transition: all 0.4s ease-out;
    opacity: 0;
}

.wheel-details-panel.detail-left {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

.wheel-details-panel.detail-right {
    right: 0;
    text-align: left;
    padding-left: 40px;
}

.wheel-details-panel .detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4ffbdf;
    margin: 0 0 16px;
    text-shadow: 0 0 20px rgba(79, 251, 223, 0.3);
}

.wheel-details-panel .detail-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.wheel-center-stage {
    width: 500px;
    height: 500px;
    position: relative;
    border-radius: 50%;
}

.wheel-ring-border {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.wheel-ring-inner-border {
    position: absolute;
    inset: 80px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.wheel-items-ring {
    position: absolute;
    inset: 0;
    animation: slowSpin 60s linear infinite;
}

.wheel-items-ring:hover {
    animation-play-state: paused;
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.wheel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

/* Fix for User Issue: Remove unwanted border and animation from text content */
.wheel-item-content {
    position: absolute;
    bottom: 0;
    left: -100px;
    width: 200px;
    text-align: center;
    transition: all 0.3s;
    opacity: 0.8;
    /* Increased opacity for better visibility */

    /* RESET overrides */
    border: 0 !important;
    animation: none !important;
    background: transparent !important;
}

.wheel-item:hover .wheel-item-content,
.wheel-item.active .wheel-item-content {
    opacity: 1;
}

.wheel-item .ring-text {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    transition: transform 0.3s, color 0.3s, text-shadow 0.3s;
}

.wheel-item:hover .ring-text,
.wheel-item.active .ring-text {
    color: #4ffbdf;
    text-shadow: 0 0 10px rgba(79, 251, 223, 0.5);
    /* Scale effect on hover */
    transform: scale(1.1);
}

.wheel-item .ring-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s;
}

.wheel-item:hover .ring-dot,
.wheel-item.active .ring-dot {
    background: #4ffbdf;
    box-shadow: 0 0 10px #4ffbdf;
    transform: scale(1.5);
}

.wheel-center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wheel-center-core .core-center-point {
    width: 12px;
    height: 12px;
    background: #4ffbdf;
    border-radius: 50%;
    box-shadow: 0 0 15px #4ffbdf;
    position: relative;
    z-index: 2;
}

.wheel-center-core .core-pulse {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(79, 251, 223, 0.2);
    animation: corePulse 2s infinite;
}

@keyframes corePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

@media (max-width: 1024px) {
    .module-circle-wheel .wheel-wrapper {
        min-height: auto;
        flex-direction: column;
        gap: 60px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .wheel-details-panel {
        display: none !important;
    }

    .wheel-center-stage {
        display: none;
    }

    .module-circle-wheel .wheel-wrapper {
        display: block;
    }

    .wheel-items-ring {
        position: relative;
        animation: none;
        inset: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wheel-item {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        transform: none !important;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wheel-item-content {
        position: relative;
        bottom: auto;
        left: auto;
        width: auto;
        transform: none !important;
        opacity: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none !important;
    }

    .wheel-item::after {
        content: attr(data-desc);
        display: block;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.6);
        margin-top: 10px;
        line-height: 1.5;
    }

    .wheel-item.active {
        background: rgba(79, 251, 223, 0.1);
        border-color: #4ffbdf;
    }
}

@media (max-width: 600px) {
    .wheel-items-ring {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Interact Hero Module
   ========================================= */
.module-interact-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--ih-bg-color, #ebf7f8);
    color: var(--ih-text-color, #333);
    padding-top: var(--ih-pt, 100px);
    padding-bottom: var(--ih-pb, 80px);
}

.module-interact-hero::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.ql-ih-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ql-ih-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 480px;
    margin-bottom: 60px;
}

.ql-ih-content-col {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
    animation: ql_ih_fadeUp 0.8s ease-out forwards;
}

.ql-ih-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ql-ih-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.ql-ih-subtitle {
    font-size: 18px;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.ql-ih-actions {
    display: flex;
    gap: 15px;
}

.ql-ih-btn {
    padding: 12px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ql-ih-btn-primary {
    background: var(--ih-main-color, #00e09f);
    color: #000;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.ql-ih-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.ql-ih-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: currentColor;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ql-ih-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.ql-ih-media-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.ql-ih-media-wrapper {
    position: relative;
    max-width: 100%;
    width: auto;
    animation: ql_ih_fadeLeft 1s ease-out 0.2s forwards;
    opacity: 0;
}

.ql-ih-media-wrapper.anim-float {
    animation: ql_ih_fadeLeft 1s ease-out 0.2s forwards, ql_ih_float 6s ease-in-out infinite 1.2s;
}

.ql-ih-media-img,
.ql-ih-media-video {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 20px;
    display: block;
}

.ql-ih-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    opacity: 0;
    animation: ql_ih_fadeUp 0.8s ease-out 0.6s forwards;
}

.ql-ih-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.ql-ih-card:hover {
    background: #fff;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--ih-main-color, #00e09f);
}

.ql-ih-card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s;
}

.ql-ih-card:hover .ql-ih-card-icon img {
    transform: scale(1.1);
}

.ql-ih-card-info h4 {
    font-size: 16px;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.ql-ih-card-info p {
    font-size: 13px;
    margin: 0;
    opacity: 0.7;
    line-height: 1.4;
}

@keyframes ql_ih_float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes ql_ih_fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ql_ih_fadeLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 991px) {
    .ql-ih-top-row {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        justify-content: center;
        gap: 40px;
    }

    .ql-ih-content-col {
        max-width: 100%;
        padding-right: 0;
        margin-top: 30px;
    }

    .ql-ih-title {
        font-size: 32px;
    }

    .ql-ih-actions {
        justify-content: center;
    }

    .ql-ih-media-img,
    .ql-ih-media-video {
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .ql-ih-features-grid {
        grid-template-columns: 1fr;
    }
}

.ql-ih-btn .btn-icon {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* =========================================
   New Module: Menu / Price List
   ========================================= */
.module-menu {
    position: relative;
    padding: var(--module-padding, 80px 0);
}

.qiling-menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Grid Layout (2 Columns) */
.qiling-menu-grid-2 .qiling-menu-item {
    width: calc(50% - 15px);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qiling-menu-grid-2 .qiling-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

/* List Layout (Simple List) */
.qiling-menu-list {
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.qiling-menu-list .qiling-menu-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 20px;
}

.qiling-menu-list .qiling-menu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Menu Item Content */
.qiling-menu-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
}

.qiling-menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qiling-menu-content {
    flex: 1;
    min-width: 0;
}

.qiling-menu-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 6px;
}

.qiling-menu-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    position: relative;
    padding-right: 10px;
}

.qiling-menu-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--menu-accent, #eab308);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: normal;
}

.qiling-menu-dots {
    flex: 1;
    border-bottom: 1px dotted #d1d5db;
    margin: 0 10px;
    position: relative;
    top: -5px;
}

/* Hide dots in grid card view, show in list/simple view */
.qiling-menu-grid-2 .qiling-menu-dots {
    display: none;
}

.qiling-menu-grid-2 .qiling-menu-header {
    justify-content: space-between;
}

.qiling-menu-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--menu-accent, #eab308);
}

.qiling-menu-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .qiling-menu-grid-2 .qiling-menu-item {
        width: 100%;
    }
}


/* =========================================
   New Module: Curriculum / Accordion
   ========================================= */
.module-curriculum {
    padding: var(--module-padding, 80px 0);
}

.qiling-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.qiling-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.qiling-accordion-item:last-child {
    border-bottom: none;
}

.qiling-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}

.qiling-accordion-header:hover {
    background: #f9fafb;
}

.qiling-accordion-info {
    flex: 1;
}

.qiling-accordion-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.qiling-accordion-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.875rem;
    color: #6b7280;
}

.qiling-accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    margin-left: 16px;
    flex-shrink: 0;
}

.qiling-accordion-icon::before,
.qiling-accordion-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--curr-primary, #2563eb);
    transition: transform 0.3s ease;
}

.qiling-accordion-icon::before {
    width: 16px;
    height: 2px;
}

.qiling-accordion-icon::after {
    width: 2px;
    height: 16px;
}

/* Open State */
.qiling-accordion-item.is-open .qiling-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    /* "+" becomes "-" or just rotate */
    opacity: 0;
    /* Let's just fade out vertical line to make it minus */
}

.qiling-accordion-item.is-open .qiling-accordion-header {
    background: #f8fafc;
}

.qiling-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.qiling-accordion-item.is-open .qiling-accordion-content {
    max-height: 500px;
    /* Approximate max height */
}

.qiling-accordion-body {
    padding: 0 24px 24px;
    color: #4b5563;
    line-height: 1.6;
}

/* =========================================
   New Module: Pet Profile / Adoption
   ========================================= */
.module-pet-profile {
    padding: var(--module-padding, 80px 0);
    position: relative;
}

.qiling-pet-grid {
    display: grid;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.qiling-pet-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.qiling-pet-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Pet Card */
.qiling-pet-card {
    background: var(--pet-card-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    /* If anchor */
    display: flex;
    flex-direction: column;
}

.qiling-pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Image Area */
.qiling-pet-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio (Square) usually looks best for profile grids */
    background: #f8f8f8;
    overflow: hidden;
}

.qiling-pet-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.qiling-pet-card:hover .qiling-pet-image img {
    transform: scale(1.05);
}

.qiling-pet-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e5e5;
}

.qiling-pet-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

/* Status Badge */
.qiling-pet-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.status-available .qiling-pet-status {
    background: var(--pet-primary, #ec4899);
}

.status-reserved .qiling-pet-status {
    background: #f59e0b;
    /* Amber */
}

.status-adopted .qiling-pet-status {
    background: #9ca3af;
    /* Grey */
    content: "已回??;

}

/* Content Area */
.qiling-pet-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.qiling-pet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.qiling-pet-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qiling-pet-gender {
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.qiling-pet-gender.male {
    background: #3b82f6;
}

.qiling-pet-gender.female {
    background: #ec4899;
}

.qiling-pet-price {
    font-weight: 700;
    color: var(--pet-primary, #ec4899);
    font-size: 1.1rem;
}

.qiling-pet-meta {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.qiling-pet-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qiling-pet-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.qiling-pet-tags {
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qiling-pet-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* Adopted State: Dim the card slightly */
.qiling-pet-card.status-adopted {
    opacity: 0.8;
}

.qiling-pet-card.status-adopted .qiling-pet-image img {
    filter: grayscale(100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .qiling-pet-grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .qiling-pet-grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .qiling-pet-grid.grid-cols-4,
    .qiling-pet-grid.grid-cols-3 {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .qiling-pet-card {
        flex-direction: column;
    }
}

/* --- Products Module (Manual) Styles --- */
.pm-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pm-card:hover {
    transform: translateY(-5px);
}

.pm-thumb {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.pm-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.pm-card:hover .pm-bg {
    transform: scale(1.1);
}

.pm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.pm-card:hover .pm-overlay {
    opacity: 1;
}

.pm-btn {
    border: none;
    background: #fff;
    color: #333;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s;
}

.pm-card:hover .pm-btn {
    transform: translateY(0);
}

.pm-info {
    padding: 20px;
    text-align: center;
    flex: 1;
}

.pm-name {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}

.pm-desc {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.pm-grid {
    display: grid;
    gap: 30px;
}

.pm-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pm-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pm-carousel-wrapper {
    overflow: hidden;
    padding-bottom: 40px;
}

.pm-swiper {
    padding: 10px;
    margin: -10px;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
}

/* --- NEW MODAL STYLES --- */
.pm-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.pm-modal-mask.open {
    display: flex;
    animation: pmFadeIn 0.3s;
}

.pm-modal-box {
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    background: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.pm-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 32px;
    color: #333;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pm-close:hover {
    background: #f00;
    color: #fff;
}

/* Flex Layout */
.pm-modal-layout {
    display: flex;
    height: 100%;
}

/* Sidebar (Left) */
.pm-modal-sidebar {
    width: 380px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.pm-ms-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.pm-mh-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pm-mh-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.pm-mh-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.pm-mh-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.pm-mh-specs li {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #475569;
    display: flex;
    justify-content: space-between;
}

.pm-mh-specs li:last-child {
    border-bottom: none;
}

.pm-mh-specs strong {
    color: #1e293b;
    font-weight: 600;
    margin-right: 10px;
}

.pm-mh-actions {
    margin-top: auto;
}

.pm-inquire-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    background: var(--color-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}

.pm-inquire-btn:hover {
    background: #1a45a2;
    color: #fff;
    transform: translateY(-2px);
}

/* Main Content (Right) */
.pm-modal-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: #fff;
    position: relative;
}

/* Loader */
.pm-loader {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #999;
    display: none;
}

.pm-spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    border: 3px solid #eee;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: pmSpin 0.8s linear infinite;
}

@keyframes pmFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pmSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media(max-width: 992px) {
    .pm-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pm-modal-sidebar {
        width: 300px;
        padding: 20px;
    }
}

@media(max-width: 768px) {

    /* Mobile Layout Switch */
    .pm-grid.cols-3,
    .pm-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .pm-modal-box {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .pm-modal-layout {
        flex-direction: column;
    }

    .pm-modal-sidebar {
        width: 100%;
        height: auto;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 20px;
    }

    .pm-ms-thumb {
        width: 120px;
        height: 120px;
        float: left;
        margin-bottom: 10px;
        margin-right: 15px;
    }

    .pm-ms-info {
        overflow: hidden;
        /* clear float format */
    }

    .pm-mh-title {
        font-size: 20px;
        margin-top: 0;
    }

    .pm-mh-actions {
        margin-top: 15px;
        clear: both;
    }

    .pm-modal-main {
        padding: 20px;
    }
}

/* ========================================
   旅行社专用模块样式 (v1.0.3)
   前缀: ql-travel- 确保不与其他模块冲突
   ======================================== */

/* ----------------------------------------
   通用网格布局
   ---------------------------------------- */
.ql-travel-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ql-travel-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ql-travel-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ----------------------------------------
   旅游线路模块 (tour-package)
   ---------------------------------------- */
.ql-travel-tour-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ql-travel-tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* 图片区域 */
.ql-travel-tour-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.ql-travel-tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ql-travel-tour-card:hover .ql-travel-tour-image img {
    transform: scale(1.08);
}

/* 标签 */
.ql-travel-tour-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    border-radius: 20px;
    z-index: 2;
}

.ql-travel-badge-hot {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.ql-travel-badge-recommend {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.ql-travel-badge-discount {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.ql-travel-badge-new {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* 行程天数 */
.ql-travel-tour-days {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
}

.ql-travel-tour-days svg {
    opacity: 0.9;
}

/* 信息区域 */
.ql-travel-tour-info {
    padding: 20px;
}

.ql-travel-tour-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.ql-travel-tour-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.ql-travel-tour-title a:hover {
    color: var(--color-primary, #2563eb);
}

/* 出发/目的地 */
.ql-travel-tour-route {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.ql-travel-tour-departure,
.ql-travel-tour-destination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ql-travel-tour-departure svg {
    color: var(--color-primary, #2563eb);
}

.ql-travel-tour-arrow {
    color: #94a3b8;
}

/* 行程亮点 */
.ql-travel-tour-highlights {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ql-travel-tour-highlights li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #475569;
}

.ql-travel-tour-highlights li svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* 价格区域 */
.ql-travel-tour-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.ql-travel-tour-price-label {
    font-size: 1rem;
    font-weight: 600;
    color: #f43f5e;
}

.ql-travel-tour-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f43f5e;
}

.ql-travel-tour-price-unit {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: 2px;
}

.ql-travel-tour-price-original {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

/* 图片叠加样式 */
.ql-travel-style-overlay .ql-travel-tour-image {
    height: 280px;
}

.ql-travel-style-overlay .ql-travel-tour-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.ql-travel-style-overlay .ql-travel-tour-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
}

.ql-travel-style-overlay .ql-travel-tour-title a {
    color: #fff;
}

.ql-travel-style-overlay .ql-travel-tour-route {
    color: rgba(255, 255, 255, 0.8);
}

.ql-travel-style-overlay .ql-travel-tour-highlights li {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.ql-travel-style-overlay .ql-travel-tour-price {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------
   行程规划模块 (itinerary)
   ---------------------------------------- */
.ql-travel-itinerary {
    position: relative;
    padding-left: 50px;
}

/* 时间线 */
.ql-travel-itinerary-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary, #2563eb) 0%, #8b5cf6 100%);
    border-radius: 3px;
}

/* 单日卡片 */
.ql-travel-itinerary-day {
    position: relative;
    margin-bottom: 30px;
}

.ql-travel-itinerary-day:last-child {
    margin-bottom: 0;
}

/* 时间点标记 */
.ql-travel-itinerary-marker {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #8b5cf6 100%);
    border-radius: 50%;
    z-index: 2;
}

.ql-travel-itinerary-day-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

/* 内容卡片 */
.ql-travel-itinerary-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.ql-travel-itinerary-content:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* 卡片头部 */
.ql-travel-itinerary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ql-travel-itinerary-day-badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.ql-travel-itinerary-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
}

/* 当日配图 */
.ql-travel-itinerary-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.ql-travel-itinerary-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 日程安排 */
.ql-travel-itinerary-schedule {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.ql-travel-schedule-item {
    padding-left: 16px;
    border-left: 3px solid #e2e8f0;
}

.ql-travel-schedule-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary, #2563eb);
    margin-bottom: 6px;
}

.ql-travel-schedule-time svg {
    opacity: 0.8;
}

.ql-travel-schedule-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

/* 途经景点 */
.ql-travel-itinerary-attractions {
    margin-bottom: 20px;
}

.ql-travel-attractions-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}

.ql-travel-attractions-label svg {
    color: var(--color-primary, #2563eb);
}

.ql-travel-attractions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ql-travel-attraction-tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

/* 餐饮住宿 */
.ql-travel-itinerary-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.ql-travel-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.ql-travel-footer-item svg {
    color: var(--color-primary, #2563eb);
    opacity: 0.8;
}

/* 交替布局 */
.ql-travel-layout-alternate {
    padding-left: 0;
}

.ql-travel-layout-alternate .ql-travel-itinerary-line {
    left: 50%;
    transform: translateX(-50%);
}

.ql-travel-layout-alternate .ql-travel-itinerary-day {
    width: 50%;
    padding-right: 50px;
}

.ql-travel-layout-alternate .ql-travel-itinerary-day.ql-travel-left {
    margin-left: 0;
}

.ql-travel-layout-alternate .ql-travel-itinerary-day.ql-travel-right {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 50px;
}

.ql-travel-layout-alternate .ql-travel-itinerary-day .ql-travel-itinerary-marker {
    left: auto;
    right: -20px;
}

.ql-travel-layout-alternate .ql-travel-itinerary-day.ql-travel-right .ql-travel-itinerary-marker {
    right: auto;
    left: -20px;
}

/* 卡片列表布局 */
.ql-travel-layout-cards {
    padding-left: 0;
}

.ql-travel-layout-cards .ql-travel-itinerary-line {
    display: none;
}

.ql-travel-layout-cards .ql-travel-itinerary-day {
    display: inline-block;
    width: calc(33.333% - 20px);
    margin-right: 30px;
    margin-bottom: 30px;
    vertical-align: top;
}

.ql-travel-layout-cards .ql-travel-itinerary-day:nth-child(3n) {
    margin-right: 0;
}

/* ----------------------------------------
   景点门票模块 (ticket-showcase)
   ---------------------------------------- */
.ql-travel-ticket-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ql-travel-ticket-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* 图片区域 */
.ql-travel-ticket-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.ql-travel-ticket-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ql-travel-ticket-card:hover .ql-travel-ticket-image img {
    transform: scale(1.05);
}

.ql-travel-ticket-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    border-radius: 16px;
}

/* 内容区域 */
.ql-travel-ticket-content {
    padding: 20px;
}

/* 头部 */
.ql-travel-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ql-travel-ticket-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.ql-travel-ticket-badge-inline {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    border-radius: 12px;
}

/* 描述 */
.ql-travel-ticket-desc {
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* 票务信息 */
.ql-travel-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.ql-travel-ticket-audience,
.ql-travel-ticket-type,
.ql-travel-ticket-validity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #64748b;
}

.ql-travel-ticket-meta svg {
    color: var(--color-primary, #2563eb);
    opacity: 0.8;
}

/* 包含项目 */
.ql-travel-ticket-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ql-travel-ticket-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
}

.ql-travel-ticket-features li svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* 底部价格和按钮 */
.ql-travel-ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.ql-travel-ticket-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ql-travel-ticket-price-current {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f43f5e;
}

.ql-travel-ticket-price-original {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.ql-travel-ticket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ql-travel-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: #fff;
}

/* 简约风格 */
.ql-travel-style-minimal {
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.ql-travel-style-minimal:hover {
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 突出价格风格 */
.ql-travel-style-featured .ql-travel-ticket-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.ql-travel-style-featured .ql-travel-ticket-price {
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 100%);
    border-radius: 12px;
    margin: -16px -20px 0;
}

.ql-travel-style-featured .ql-travel-ticket-price-current {
    font-size: 1.75rem;
}

.ql-travel-style-featured .ql-travel-ticket-btn {
    width: 100%;
}

/* ----------------------------------------
   旅行社模块暗黑模式
   ---------------------------------------- */
html.dark-mode .ql-travel-tour-card,
html.dark-mode .ql-travel-itinerary-content,
html.dark-mode .ql-travel-ticket-card {
    background: var(--dm-bg-card, #1e293b);
    border-color: var(--dm-border, #334155);
}

html.dark-mode .ql-travel-tour-title a,
html.dark-mode .ql-travel-itinerary-title,
html.dark-mode .ql-travel-ticket-name {
    color: var(--dm-text, #e2e8f0);
}

html.dark-mode .ql-travel-tour-route,
html.dark-mode .ql-travel-schedule-desc,
html.dark-mode .ql-travel-ticket-desc,
html.dark-mode .ql-travel-footer-item,
html.dark-mode .ql-travel-ticket-features li {
    color: var(--dm-text-muted, #94a3b8);
}

html.dark-mode .ql-travel-tour-highlights li {
    background: var(--dm-bg, #0f172a);
    color: var(--dm-text-muted, #94a3b8);
}

html.dark-mode .ql-travel-tour-price,
html.dark-mode .ql-travel-itinerary-footer,
html.dark-mode .ql-travel-ticket-footer {
    border-top-color: var(--dm-border, #334155);
}

html.dark-mode .ql-travel-schedule-item {
    border-left-color: var(--dm-border, #334155);
}

html.dark-mode .ql-travel-attraction-tag {
    background: var(--dm-bg, #0f172a);
    color: var(--color-primary, #3b82f6);
}

html.dark-mode .ql-travel-style-minimal {
    border-color: var(--dm-border, #334155);
}

html.dark-mode .ql-travel-style-featured .ql-travel-ticket-price {
    background: var(--dm-bg, #0f172a);
}

/* ----------------------------------------
   旅行社模块响应式
   ---------------------------------------- */
@media (max-width: 1024px) {
    .ql-travel-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ql-travel-layout-alternate .ql-travel-itinerary-day {
        width: 100%;
        padding-right: 0;
        padding-left: 50px;
        margin-left: 0 !important;
    }

    .ql-travel-layout-alternate .ql-travel-itinerary-line {
        left: 20px;
        transform: none;
    }

    .ql-travel-layout-alternate .ql-travel-itinerary-day .ql-travel-itinerary-marker {
        left: -30px;
        right: auto;
    }

    .ql-travel-layout-cards .ql-travel-itinerary-day {
        width: calc(50% - 15px);
    }

    .ql-travel-layout-cards .ql-travel-itinerary-day:nth-child(3n) {
        margin-right: 30px;
    }

    .ql-travel-layout-cards .ql-travel-itinerary-day:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 768px) {

    .ql-travel-cols-2,
    .ql-travel-cols-3,
    .ql-travel-cols-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ql-travel-tour-image {
        height: 200px;
    }

    .ql-travel-itinerary {
        padding-left: 40px;
    }

    .ql-travel-itinerary-marker {
        left: -40px;
        width: 32px;
        height: 32px;
    }

    .ql-travel-itinerary-day-num {
        font-size: 0.6rem;
    }

    .ql-travel-itinerary-content {
        padding: 20px;
    }

    .ql-travel-layout-cards .ql-travel-itinerary-day {
        width: 100%;
        margin-right: 0 !important;
    }

    .ql-travel-ticket-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ql-travel-ticket-price {
        justify-content: center;
    }

    .ql-travel-ticket-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
 * 酒店模块样式 - Hotel Modules
 * 前缀: ql-hotel-
 * ============================================ */

/* ----------------------------------------
 * 房型展示模块 - Room Showcase Module
 * ---------------------------------------- */

/* 房型网格 */
.ql-hotel-room-grid {
    display: grid;
    gap: 30px;
}

.ql-hotel-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ql-hotel-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 房型卡片 */
.ql-hotel-room-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: ql-hotel-fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.ql-hotel-room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

@keyframes ql-hotel-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 房型图片 */
.ql-hotel-room-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ql-hotel-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ql-hotel-room-card:hover .ql-hotel-room-image img {
    transform: scale(1.08);
}

/* 房型标签 */
.ql-hotel-room-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 2;
}

.ql-hotel-badge-luxury {
    background: linear-gradient(135deg, #b8860b, #ffd700);
}

.ql-hotel-badge-seaview {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
}

.ql-hotel-badge-cityview {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
}

.ql-hotel-badge-garden {
    background: linear-gradient(135deg, #2d6a4f, #52b788);
}

.ql-hotel-badge-discount {
    background: linear-gradient(135deg, #dc2626, #f87171);
}

.ql-hotel-badge-recommend {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

/* 房型内容 */
.ql-hotel-room-content {
    padding: 24px;
}

.ql-hotel-room-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

/* 房型信息 */
.ql-hotel-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.ql-hotel-room-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #64748b;
}

.ql-hotel-room-meta svg {
    color: #94a3b8;
}

/* 房型描述 */
.ql-hotel-room-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 房间设施 */
.ql-hotel-room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.ql-hotel-amenity-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #475569;
}

.ql-hotel-amenity-item svg,
.ql-hotel-amenity-item .ql-hotel-icon {
    width: 12px;
    height: 12px;
    color: #10b981;
    fill: #10b981;
}

/* 房型底部 */
.ql-hotel-room-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* 价格显示 */
.ql-hotel-room-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.ql-hotel-price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
}

.ql-hotel-price-unit {
    font-size: 0.875rem;
    color: #94a3b8;
}

.ql-hotel-price-original {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

/* 预订按钮 */
.ql-hotel-room-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ql-hotel-room-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 横向布局 */
.ql-hotel-style-horizontal .ql-hotel-room-card {
    display: grid;
    grid-template-columns: 350px 1fr;
}

.ql-hotel-style-horizontal .ql-hotel-room-image {
    aspect-ratio: auto;
    height: 100%;
}

.ql-hotel-style-horizontal .ql-hotel-room-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ----------------------------------------
 * 酒店设施模块 - Hotel Amenities Module
 * ---------------------------------------- */

/* 设施网格 */
.ql-hotel-amenity-grid {
    display: grid;
    gap: 24px;
}

.ql-hotel-amenity-grid.ql-hotel-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ql-hotel-amenity-grid.ql-hotel-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ql-hotel-amenity-grid.ql-hotel-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.ql-hotel-amenity-grid.ql-hotel-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* 设施项目 */
.ql-hotel-amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: ql-hotel-fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.ql-hotel-amenity-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* 网格布局 */
.ql-hotel-layout-grid .ql-hotel-amenity-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* 卡片布局 */
.ql-hotel-layout-card .ql-hotel-amenity-item {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 简约布局 */
.ql-hotel-layout-minimal .ql-hotel-amenity-item {
    background: transparent;
    padding: 20px 10px;
}

.ql-hotel-layout-minimal .ql-hotel-amenity-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 设施图标 */
.ql-hotel-amenity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #3b82f6;
    fill: #3b82f6;
}

.ql-hotel-amenity-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ql-hotel-icon {
    width: 100%;
    height: 100%;
}

.ql-hotel-icon-default {
    color: #3b82f6;
}

/* 设施名称 */
.ql-hotel-amenity-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

/* 设施描述 */
.ql-hotel-amenity-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

/* 开放时间 */
.ql-hotel-amenity-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 20px;
}

.ql-hotel-amenity-time svg {
    color: #94a3b8;
}


/* ----------------------------------------
 * 预订入口模块 - Booking Entry Module
 * ---------------------------------------- */

/* 背景遮罩 */
.ql-hotel-booking-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 预订包装器 */
.ql-hotel-booking-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.ql-hotel-layout-card .ql-hotel-booking-wrapper,
.ql-hotel-layout-fullwidth .ql-hotel-booking-wrapper {
    flex-direction: column;
    align-items: center;
}

.ql-hotel-layout-sidebar .ql-hotel-booking-wrapper {
    flex-direction: row;
    align-items: flex-start;
}

/* 表单主体 */
.ql-hotel-booking-form {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.ql-hotel-layout-fullwidth .ql-hotel-booking-form {
    width: 100%;
    max-width: none !important;
}

/* 占位提示 */
.ql-hotel-booking-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: #94a3b8;
    text-align: center;
}

.ql-hotel-booking-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.ql-hotel-booking-placeholder p {
    margin: 0;
    font-size: 0.95rem;
}

/* 侧边栏 */
.ql-hotel-booking-sidebar {
    flex-shrink: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.ql-hotel-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

/* 侧边列表 */
.ql-hotel-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.ql-hotel-sidebar-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.ql-hotel-sidebar-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #10b981;
}

/* 联系方式 */
.ql-hotel-sidebar-contact {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.ql-hotel-contact-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ql-hotel-contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.ql-hotel-contact-phone:hover {
    color: #1d4ed8 !important;
}

.ql-hotel-contact-hours {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 8px;
}


/* ========================================
 * 暗黑模式支持
 * ======================================== */

/* 房型展示 - 暗黑模式 */
html.dark-mode .ql-hotel-room-card {
    background: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html.dark-mode .ql-hotel-room-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

html.dark-mode .ql-hotel-room-name {
    color: #f1f5f9;
}

html.dark-mode .ql-hotel-room-meta span {
    color: #94a3b8;
}

html.dark-mode .ql-hotel-room-desc {
    color: #94a3b8;
}

html.dark-mode .ql-hotel-room-amenities {
    border-bottom-color: #334155;
}

html.dark-mode .ql-hotel-amenity-item {
    background: #334155;
    color: #cbd5e1;
}

html.dark-mode .ql-hotel-price-current {
    color: #f87171;
}

/* 酒店设施 - 暗黑模式 */
html.dark-mode .ql-hotel-amenity-item {
    background: #1e293b;
}

html.dark-mode .ql-hotel-layout-minimal .ql-hotel-amenity-item {
    background: transparent;
}

html.dark-mode .ql-hotel-layout-minimal .ql-hotel-amenity-item:hover {
    background: rgba(30, 41, 59, 0.5);
}

html.dark-mode .ql-hotel-amenity-name {
    color: #f1f5f9;
}

html.dark-mode .ql-hotel-amenity-desc {
    color: #94a3b8;
}

html.dark-mode .ql-hotel-amenity-time {
    background: #334155;
    color: #94a3b8;
}

/* 预订入口 - 暗黑模式 */
html.dark-mode .ql-hotel-booking-form {
    background: #1e293b;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

html.dark-mode .ql-hotel-booking-placeholder {
    color: #64748b;
}

html.dark-mode .ql-hotel-booking-sidebar {
    background: rgba(30, 41, 59, 0.95);
}

html.dark-mode .ql-hotel-sidebar-title {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

html.dark-mode .ql-hotel-sidebar-list li {
    color: #cbd5e1;
}

html.dark-mode .ql-hotel-sidebar-contact {
    background: linear-gradient(135deg, #1e3a5f, #1e293b);
}

html.dark-mode .ql-hotel-contact-phone {
    color: #60a5fa !important;
}


/* ========================================
 * 响应式布局
 * ======================================== */

@media (max-width: 1024px) {

    /* 房型展示 */
    .ql-hotel-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ql-hotel-style-horizontal .ql-hotel-room-card {
        grid-template-columns: 280px 1fr;
    }

    /* 酒店设施 */
    .ql-hotel-amenity-grid.ql-hotel-cols-5,
    .ql-hotel-amenity-grid.ql-hotel-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 预订入口 */
    .ql-hotel-layout-sidebar .ql-hotel-booking-wrapper {
        flex-direction: column;
    }

    .ql-hotel-booking-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* 房型展示 */
    .ql-hotel-cols-2,
    .ql-hotel-cols-3 {
        grid-template-columns: 1fr;
    }

    .ql-hotel-style-horizontal .ql-hotel-room-card {
        grid-template-columns: 1fr;
    }

    .ql-hotel-room-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .ql-hotel-room-price {
        justify-content: center;
    }

    .ql-hotel-room-btn {
        width: 100%;
    }

    /* 酒店设施 */
    .ql-hotel-amenity-grid.ql-hotel-cols-3,
    .ql-hotel-amenity-grid.ql-hotel-cols-4,
    .ql-hotel-amenity-grid.ql-hotel-cols-5,
    .ql-hotel-amenity-grid.ql-hotel-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ql-hotel-amenity-item {
        padding: 20px 15px;
    }

    /* 预订入口 */
    .ql-hotel-booking-form {
        padding: 24px;
        border-radius: 16px;
    }

    .ql-hotel-booking-sidebar {
        padding: 24px;
    }
}


/* ============================================
 * 客户评价模块增强样式
 * 前缀: ql-testimonial-
 * ============================================ */

/* 评分统计 */
.ql-testimonial-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.ql-testimonial-summary-score {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ql-testimonial-score-num {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.ql-testimonial-score-stars {
    display: flex;
    gap: 4px;
}

.ql-testimonial-score-stars .star {
    font-size: 1.5rem;
    color: #e2e8f0;
}

.ql-testimonial-score-stars .star.filled {
    color: #fbbf24;
}

.ql-testimonial-score-stars .star.half {
    background: linear-gradient(90deg, #fbbf24 50%, #e2e8f0 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ql-testimonial-summary-count {
    font-size: 0.9rem;
    color: #64748b;
}

/* 评价来源和日期 */
.ql-testimonial-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-size: 0.8rem;
}

.ql-testimonial-source {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
}

.ql-source-dianping {
    background: #fff4e5;
    color: #ff6b00;
}

.ql-source-ctrip {
    background: #e6f4ff;
    color: #0066cc;
}

.ql-source-meituan {
    background: #fffbe6;
    color: #ffb800;
}

.ql-source-fliggy {
    background: #fff0f0;
    color: #ff4d4f;
}

.ql-source-booking {
    background: #e6f7ff;
    color: #003580;
}

.ql-source-tripadvisor {
    background: #f0fff4;
    color: #00aa6c;
}

.ql-source-google {
    background: #f3f4f6;
    color: #4285f4;
}

.ql-source-weibo {
    background: #fff0f0;
    color: #e6162d;
}

.ql-source-xiaohongshu {
    background: #fff0f5;
    color: #fe2c55;
}

.ql-testimonial-date {
    color: #94a3b8;
}

/* 认证标识 */
.ql-testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    vertical-align: middle;
}

.ql-badge-verified {
    background: #dcfce7;
    color: #16a34a;
}

.ql-badge-vip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.ql-badge-guest {
    background: #dbeafe;
    color: #2563eb;
}

/* 轮播布局 */
.ql-testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.ql-testimonial-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.ql-testimonial-carousel .testimonial-card {
    flex: 0 0 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.ql-testimonial-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.ql-testimonial-carousel-btn:hover {
    background: #3b82f6;
    color: #ffffff;
}

.ql-testimonial-prev {
    left: 0;
}

.ql-testimonial-next {
    right: 0;
}

.ql-testimonial-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.ql-testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ql-testimonial-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

/* 列表布局 */
.ql-testimonial-list .testimonial-card {
    display: flex;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 24px;
}

.ql-testimonial-list .testimonial-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

/* 大卡片布局 */
.ql-testimonial-large .testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.ql-testimonial-large .testimonial-content {
    font-size: 1.25rem;
    line-height: 1.8;
}

.ql-testimonial-large .testimonial-author {
    justify-content: center;
}


/* ============================================
 * 画廊相册模块增强样式
 * 前缀: ql-gallery-
 * ============================================ */

/* 分类筛选 */
.ql-gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.ql-gallery-filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ql-gallery-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.ql-gallery-filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* 6列支持 */
.ql-gallery-cols-6 {
    grid-template-columns: repeat(6, 1fr) !important;
}

/* 全宽布局 */
.gallery-fullwidth {
    display: flex;
    flex-wrap: wrap;
}

.gallery-fullwidth .gallery-item {
    flex: 1 1 300px;
    min-height: 250px;
}

/* Lightbox增强 - 注意：不要覆盖基础的 display: none */
.ql-gallery-lightbox.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ql-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #1e293b;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.ql-gallery-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.ql-gallery-prev {
    left: 24px;
}

.ql-gallery-next {
    right: 24px;
}

/* 图片计数器 */
.ql-gallery-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.9rem;
    z-index: 1001;
}


/* ========================================
 * 暗黑模式
 * ======================================== */

html.dark-mode .ql-testimonial-summary {
    background: rgba(30, 41, 59, 0.8);
}

html.dark-mode .ql-testimonial-score-num {
    color: #f1f5f9;
}

html.dark-mode .ql-testimonial-source {
    background: #334155;
}

html.dark-mode .ql-testimonial-carousel-btn {
    background: #334155;
    color: #f1f5f9;
}

html.dark-mode .ql-testimonial-dot {
    background: #475569;
}

html.dark-mode .ql-gallery-filter-btn {
    border-color: #475569;
    color: #94a3b8;
}

html.dark-mode .ql-gallery-filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
}

html.dark-mode .ql-gallery-nav {
    background: rgba(30, 41, 59, 0.9);
    color: #f1f5f9;
}


/* ========================================
 * 响应式
 * ======================================== */

@media (max-width: 1024px) {
    .ql-testimonial-carousel .testimonial-card {
        flex: 0 0 50%;
    }

    .ql-gallery-cols-6 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .ql-testimonial-carousel {
        padding: 0 40px;
    }

    .ql-testimonial-carousel .testimonial-card {
        flex: 0 0 100%;
    }

    .ql-testimonial-carousel-btn {
        width: 36px;
        height: 36px;
    }

    .ql-testimonial-list .testimonial-card {
        flex-direction: column;
        text-align: center;
    }

    .ql-gallery-cols-6 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ql-gallery-nav {
        width: 44px;
        height: 44px;
    }

    .ql-gallery-prev {
        left: 12px;
    }

    .ql-gallery-next {
        right: 12px;
    }
}


/* ============================================
 * 特价促销模块样式
 * 前缀: ql-promo-
 * ============================================ */

/* 模块容器 */
.module-ql-promotion {
    position: relative;
    overflow: hidden;
}

.ql-promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.ql-promo-container {
    position: relative;
    z-index: 2;
}

/* 头部区域 */
.ql-promo-header {
    text-align: center;
    margin-bottom: 48px;
}

.ql-promo-title {
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.ql-promo-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 24px;
}

/* 倒计时样式 */
.ql-promo-countdown-wrap {
    display: inline-block;
    padding: 16px 32px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.ql-promo-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ql-promo-countdown-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.ql-promo-countdown-boxes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ql-promo-countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ql-promo-countdown-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ef4444;
    line-height: 1;
}

.ql-promo-countdown-unit {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

.ql-promo-countdown-sep {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.ql-promo-expired {
    padding: 20px 40px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 促销产品列表 */
.ql-promo-items {
    display: grid;
    gap: 24px;
}

.ql-promo-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ql-promo-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ql-promo-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 产品卡片 */
.ql-promo-item {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ql-promo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* 折扣标签 */
.ql-promo-badge {
    position: absolute;
    top: 16px;
    left: 0;
    padding: 8px 20px 8px 16px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%);
}

/* 产品图片 */
.ql-promo-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ql-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ql-promo-item:hover .ql-promo-image img {
    transform: scale(1.08);
}

.ql-promo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 产品信息 */
.ql-promo-info {
    padding: 20px;
}

.ql-promo-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ql-promo-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 价格区域 */
.ql-promo-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.ql-promo-sale-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
}

.ql-promo-original-price {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* 行动按钮 */
.ql-promo-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ql-promo-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}


/* ========================================
 * 布局样式变体
 * ======================================== */

/* 横幅式布局 */
.ql-promo-layout-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.ql-promo-layout-banner .ql-promo-title,
.ql-promo-layout-banner .ql-promo-subtitle {
    color: #ffffff;
}

/* 卡片式布局 */
.ql-promo-layout-cards {
    background: #f8fafc;
}

.ql-promo-layout-cards .ql-promo-countdown-wrap {
    background: rgba(30, 41, 59, 0.08);
}

.ql-promo-layout-cards .ql-promo-countdown-sep {
    color: #1e293b;
}

/* 全屏式布局 */
.ql-promo-layout-fullscreen {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.ql-promo-layout-fullscreen .ql-promo-container {
    width: 100%;
}

.ql-promo-layout-fullscreen .ql-promo-items {
    max-width: 1000px;
    margin: 0 auto;
}

.ql-promo-layout-fullscreen .ql-promo-title {
    font-size: 3rem;
}


/* ========================================
 * 暗黑模式
 * ======================================== */

html.dark-mode .ql-promo-layout-cards {
    background: #0f172a;
}

html.dark-mode .ql-promo-layout-cards .ql-promo-countdown-wrap {
    background: rgba(255, 255, 255, 0.08);
}

html.dark-mode .ql-promo-item {
    background: #1e293b;
}

html.dark-mode .ql-promo-name {
    color: #f1f5f9;
}

html.dark-mode .ql-promo-desc {
    color: #94a3b8;
}

html.dark-mode .ql-promo-countdown-box {
    background: rgba(30, 41, 59, 0.95);
}

html.dark-mode .ql-promo-countdown-num {
    color: #f87171;
}

html.dark-mode .ql-promo-countdown-unit {
    color: #94a3b8;
}


/* ========================================
 * 响应式
 * ======================================== */

@media (max-width: 1024px) {
    .ql-promo-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ql-promo-layout-fullscreen .ql-promo-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ql-promo-header {
        margin-bottom: 32px;
    }

    .ql-promo-countdown-wrap {
        padding: 12px 20px;
    }

    .ql-promo-countdown-box {
        min-width: 50px;
        padding: 10px 12px;
    }

    .ql-promo-countdown-num {
        font-size: 1.5rem;
    }

    .ql-promo-cols-2,
    .ql-promo-cols-3,
    .ql-promo-cols-4 {
        grid-template-columns: 1fr;
    }

    .ql-promo-item {
        display: flex;
        flex-direction: row;
    }

    .ql-promo-image {
        width: 120px;
        height: auto;
        flex-shrink: 0;
    }

    .ql-promo-info {
        flex: 1;
        padding: 16px;
    }

    .ql-promo-layout-fullscreen {
        min-height: auto;
    }

    .ql-promo-layout-fullscreen .ql-promo-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .ql-promo-countdown-boxes {
        gap: 4px;
    }

    .ql-promo-countdown-box {
        min-width: 44px;
        padding: 8px 10px;
    }

    .ql-promo-countdown-num {
        font-size: 1.25rem;
    }

    .ql-promo-item {
        flex-direction: column;
    }

    .ql-promo-image {
        width: 100%;
        height: 160px;
    }
}

/* ===============================
 * Qiling Universal Recommend Module
 * =============================== */
.module-qiling-universal-recommend {
    position: relative;
    --qur-rank-1: #f59e0b;
    --qur-rank-2: #94a3b8;
    --qur-rank-3: #c2410c;
}

.module-qiling-universal-recommend .ql-ur-header {
    margin-bottom: 40px;
}

.module-qiling-universal-recommend .ql-ur-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--qur-title-color, #1e293b);
}

.module-qiling-universal-recommend .ql-ur-subtitle {
    margin: 12px 0 0;
    font-size: 1rem;
    color: var(--qur-meta-color, #64748b);
}

.module-qiling-universal-recommend .ql-ur-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--qur-gap, 24px);
    margin-bottom: 40px;
}

.module-qiling-universal-recommend .ql-ur-topic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--qur-card-border, #e2e8f0);
    background: var(--qur-card-bg, #ffffff);
    box-shadow: var(--qur-card-shadow, 0 10px 30px rgba(0, 0, 0, 0.08));
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.module-qiling-universal-recommend .ql-ur-topic-card:hover {
    transform: translateY(-6px);
    border-color: var(--qur-accent, var(--color-primary, #2563eb));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}

.module-qiling-universal-recommend .ql-ur-topic-media {
    width: 100%;
    border-radius: 12px;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
}

.module-qiling-universal-recommend .ql-ur-topic-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
}

.module-qiling-universal-recommend .ql-ur-topic-content h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--qur-title-color, #1e293b);
}

.module-qiling-universal-recommend .ql-ur-topic-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--qur-text-color, #475569);
}

.module-qiling-universal-recommend .ql-ur-list.layout-grid {
    display: grid;
    gap: var(--qur-gap, 24px);
}

.module-qiling-universal-recommend .ql-ur-list.layout-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.module-qiling-universal-recommend .ql-ur-list.layout-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.module-qiling-universal-recommend .ql-ur-list.layout-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.module-qiling-universal-recommend .ql-ur-list.layout-list {
    display: flex;
    flex-direction: column;
    gap: var(--qur-gap, 24px);
}

.module-qiling-universal-recommend .ql-ur-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--qur-card-bg, #ffffff);
    border: 1px solid var(--qur-card-border, #e2e8f0);
    border-radius: var(--qur-card-radius, 16px);
    box-shadow: var(--qur-card-shadow, 0 10px 30px rgba(0, 0, 0, 0.08));
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.module-qiling-universal-recommend .ql-ur-card:hover {
    transform: translateY(-6px);
    border-color: var(--qur-accent, var(--color-primary, #2563eb));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}

.module-qiling-universal-recommend .ql-ur-list.layout-list .ql-ur-card {
    flex-direction: row;
    align-items: stretch;
}

.module-qiling-universal-recommend .ql-ur-list.no-image .ql-ur-card {
    flex-direction: column;
}

.module-qiling-universal-recommend .ql-ur-media {
    position: relative;
    display: block;
    width: 100%;
    background: #f1f5f9;
    overflow: hidden;
}

.module-qiling-universal-recommend .ql-ur-list.layout-list .ql-ur-media {
    flex: 0 0 260px;
    max-width: 260px;
}

.module-qiling-universal-recommend .ql-ur-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.module-qiling-universal-recommend .ql-ur-media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
}

.module-qiling-universal-recommend .ql-ur-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--qur-accent, var(--color-primary, #2563eb));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.module-qiling-universal-recommend .ql-ur-badge.badge-inline {
    position: relative;
    top: auto;
    left: auto;
    display: inline-flex;
    margin-bottom: 10px;
}

.module-qiling-universal-recommend .ql-ur-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.module-qiling-universal-recommend .ql-ur-meta {
    font-size: 0.85rem;
    color: var(--qur-meta-color, #64748b);
}

.module-qiling-universal-recommend .ql-ur-card-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.module-qiling-universal-recommend .ql-ur-card-title a {
    color: var(--qur-title-color, #1e293b);
    text-decoration: none;
}

.module-qiling-universal-recommend .ql-ur-card-title a:hover {
    color: var(--qur-accent, var(--color-primary, #2563eb));
}

.module-qiling-universal-recommend .ql-ur-excerpt {
    margin: 0;
    color: var(--qur-text-color, #475569);
    font-size: 0.95rem;
    line-height: 1.7;
}

.module-qiling-universal-recommend .ql-ur-more {
    margin-top: 40px;
    text-align: center;
}

.module-qiling-universal-recommend .ql-ur-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--qur-meta-color, #94a3b8);
}

.module-qiling-universal-recommend .ql-ur-ranking {
    display: flex;
    flex-direction: column;
    gap: var(--qur-gap, 24px);
}

.module-qiling-universal-recommend .ql-ur-ranking-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--qur-gap, 24px);
}

.module-qiling-universal-recommend .ql-ur-rank-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--qur-card-bg, #ffffff);
    border: 1px solid var(--qur-card-border, #e2e8f0);
    border-radius: var(--qur-card-radius, 16px);
    box-shadow: var(--qur-card-shadow, 0 10px 30px rgba(0, 0, 0, 0.08));
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.module-qiling-universal-recommend .ql-ur-rank-card:hover {
    transform: translateY(-6px);
    border-color: var(--qur-accent, var(--color-primary, #2563eb));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}

.module-qiling-universal-recommend .ql-ur-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--qur-accent, var(--color-primary, #2563eb));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.module-qiling-universal-recommend .ql-ur-rank-card .ql-ur-rank-number {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.module-qiling-universal-recommend .ql-ur-rank-card.rank-1 .ql-ur-rank-number {
    background: var(--qur-rank-1, #f59e0b);
}

.module-qiling-universal-recommend .ql-ur-rank-card.rank-2 .ql-ur-rank-number {
    background: var(--qur-rank-2, #94a3b8);
}

.module-qiling-universal-recommend .ql-ur-rank-card.rank-3 .ql-ur-rank-number {
    background: var(--qur-rank-3, #c2410c);
}

.module-qiling-universal-recommend .ql-ur-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-qiling-universal-recommend .ql-ur-rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--qur-card-bg, #ffffff);
    border: 1px solid var(--qur-card-border, #e2e8f0);
    border-radius: 12px;
    box-shadow: var(--qur-card-shadow, 0 10px 30px rgba(0, 0, 0, 0.08));
}

.module-qiling-universal-recommend .ql-ur-rank-row .ql-ur-rank-number {
    flex-shrink: 0;
}

.module-qiling-universal-recommend .ql-ur-rank-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.module-qiling-universal-recommend .ql-ur-rank-title {
    font-weight: 600;
    color: var(--qur-title-color, #1e293b);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-qiling-universal-recommend .ql-ur-rank-title:hover {
    color: var(--qur-accent, var(--color-primary, #2563eb));
}

@media (max-width: 1024px) {
    .module-qiling-universal-recommend .ql-ur-list.layout-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-qiling-universal-recommend .ql-ur-list.layout-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-qiling-universal-recommend .ql-ur-list.layout-list .ql-ur-media {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .module-qiling-universal-recommend .ql-ur-ranking-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .module-qiling-universal-recommend .ql-ur-list.layout-grid.cols-4,
    .module-qiling-universal-recommend .ql-ur-list.layout-grid.cols-3,
    .module-qiling-universal-recommend .ql-ur-list.layout-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .module-qiling-universal-recommend .ql-ur-list.layout-list .ql-ur-card {
        flex-direction: column;
    }

    .module-qiling-universal-recommend .ql-ur-list.layout-list .ql-ur-media {
        max-width: 100%;
    }

    .module-qiling-universal-recommend .ql-ur-ranking-top {
        grid-template-columns: 1fr;
    }

    .module-qiling-universal-recommend .ql-ur-rank-row {
        flex-direction: column;
        align-items: flex-start;
    }
}