﻿/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #003366;
    --primary-orange: #ff8000;
    --text-dark: #333;
    --text-gray: #666;
    --bg-light: #f4f4f4;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text-dark);
    /* background-color: #f5f5f5; */
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: transparent;
    /* Initially transparent */
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    /* No shadow initially */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: #525354;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-list {
    /* Initially transparent */
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* No shadow initially */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-list.scrolled {
    background-color: #525354;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 1200px;
    max-width: 95%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 5px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
    width: 120px;
}

.logo-cn {
    color: var(--white);
    font-size: 26px;
    font-weight: bold;
    line-height: 1.2;
    opacity: 0.8;
}

.logo-en {
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    font-size: 20px;
    padding: 10px 0;
    transition: color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-orange);
    opacity: 1.0;
}

/* Box border effect for nav items as seen in screenshot (optional, looks like just text in screenshot) */
/* Screenshot shows text with possibly an outline box or just text. Let's stick to text color for simplicity and elegance. */

.header-right {
    margin-top: 5px;
    align-items: end;
    flex: 1;
    text-align: right;
}

.qr-code {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    padding: 2px;
    border-radius: 10%;
}

/* Hero Carousel */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full screen height */
    margin-top: 0;
    padding-top: 0;
    /* Remove padding so content starts at top */
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    /* Width will be set by JS */
}

.carousel-slide {
    height: 100%;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    /* Essential for Ken Burns to stay within bounds */
    /* Width will be set by JS */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transform: scale(1);
    transition: transform 1s ease;
    /* Smooth reset when class is removed */
}

.carousel-slide.active-slide img {
    animation: kenBurns 15s linear forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darken for text readability */
    /* background: rgba(0,0,0,0.3);  */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    /* Hidden by default */
    transform: translateY(30px);
}

.hero-title span {
    color: var(--primary-orange);
}

.hero-subtitle {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--primary-orange);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
}

/* Active slide animations */
.carousel-slide.active-slide .hero-title {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.carousel-slide.active-slide .hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

/* 4th Slide Features */
.mini-features {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 60px;
    margin-top: 30px;
}

.mini-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

/* Staggered animation for mini features */
.carousel-slide.active-slide .mini-feature-item:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.7s forwards;
}

.carousel-slide.active-slide .mini-feature-item:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.carousel-slide.active-slide .mini-feature-item:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

.carousel-slide.active-slide .mini-feature-item:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 1.0s forwards;
}

.carousel-slide.active-slide .mini-feature-item:nth-child(5) {
    animation: fadeInUp 0.6s ease-out 1.1s forwards;
}

.carousel-slide.active-slide .mini-feature-item:nth-child(6) {
    animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

/* Slide 2 Specific Animations */
.slide-2-mask {
    position: absolute;
    top: 0;
    left: 0;
    /* Final position will be left: 0 */
    width: 50%;
    /* Half screen */
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transform: translateX(200%);
    /* Initially off-screen right (100% is right edge, 200% is safe margin) */
    opacity: 0;
}

.carousel-slide.active-slide .slide-2-mask {
    /* Animate from Right to Left (stopping at Left side) */
    animation: slideLeftInFromRight 1s ease-out forwards;
}

.carousel-slide.slide-2-container .hero-content {
    /* Restrict content to left half */
    width: 50%;
    margin-left: 0;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 8%;
    /* Increased padding from center line */
    text-align: right;
    /* Align text right (towards center screen) */
    position: relative;
    z-index: 2;
    align-items: flex-end;
    /* Align flex items to right */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Override general animations for Slide 2 text to come from LEFT */
.carousel-slide.active-slide.slide-2-container .hero-title {
    animation: slideRightIn 0.8s ease-out 0.5s forwards;
    /* Delay to sync with mask */
    transform: translateX(-50px);
    /* Start from left */
}

.carousel-slide.active-slide.slide-2-container .hero-subtitle {
    animation: slideRightIn 0.8s ease-out 0.7s forwards;
    transform: translateX(-50px);
}

@keyframes slideLeftInFromRight {
    0% {
        transform: translateX(200%);
        /* Start from far right */
        opacity: 0;
    }

    1% {
        opacity: 1;
        /* Visible immediately when moving */
    }

    100% {
        transform: translateX(0);
        /* Stop at left:0 */
        opacity: 1;
    }
}

@keyframes slideRightIn {
    0% {
        transform: translateX(-100px);
        /* Start from left */
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.mini-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.mini-feature-item:hover .mini-feature-icon {
    transform: scale(1.1);
    background: var(--primary-orange);
}

.mini-feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.mini-feature-text {
    color: #000;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 153, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    flex: 0 0 50px;
    width: 50px;
    height: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 1.0);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    box-shadow: 0 0 0 1px rgba(0, 51, 102, 0.85);
}

.indicator.active {
    background: var(--primary-orange);
    transform: scale(1.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Core Services Section */
.space20 {
    padding: 10px 0 10px 0;
    background-color: var(--white);
}

.services-section {
    padding: 92px 0 0 0;
    background-color: var(--white);
    scroll-margin-top: 36px;
}

.home-page .services-section {
    padding-top: 56px;
}

.container {
    width: 1200px;
    max-width: 95%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-orange);
    margin: 15px auto 0;
}

.left-placeholder {
    flex: 1;
}

.section-info {
    display: flex;
    font-size: 16px;
    align-items: center;
    justify-content: space-between;
    color: #666;
}

.section-desc {
    max-width: 600px;
    flex-grow: 1;
    text-align: center;
    margin: 0 auto;
}

.right-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 5px;
}

.section-info a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-info a span {
    font-size: 14px;
}

.section-info a:hover {
    color: var(--primary-orange);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.section-info a:hover .arrow-icon {
    transform: translateX(4px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    display: block;
    /* Make anchor act as block */
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-title {
    color: var(--primary-orange);
}

.service-icon {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff8f0;
    border-radius: 50%;
    color: var(--primary-orange);
    transition: background-color 0.3s, color 0.3s;
}

.service-card:hover .service-icon {
    background-color: var(--primary-orange);
    color: var(--white);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

.service-icon-image {
    position: absolute;
    inset: 0;
    width: 40px;
    height: 40px;
    margin: auto;
    object-fit: contain;
}

.service-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


/* Case List */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 22px;
}

.list-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: start; gap: 12px 18px; margin: 24px 0; }
.filter-tabs { display: flex; min-width: 0; flex-wrap: wrap; align-content: flex-start; gap: 7px; padding: 2px 1px 7px; }
.filter-tabs button { flex: 0 0 auto; border: 1px solid #e2e7ed; border-radius: 999px; background: #fff; color: #526174; padding: 6px 12px; font-size: 13px; line-height: 1.35; white-space: nowrap; cursor: pointer; transition: .18s ease; }
.filter-tabs button:hover, .filter-tabs button.active { border-color: var(--primary-blue); background: var(--primary-blue); color: #fff; }
.search-box { display: flex; align-items: center; gap: 9px; box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid #dfe4eb; border-radius: 6px; background: #fff; color: #8793a2; }
.search-box:focus-within { border-color: var(--primary-orange); box-shadow: 0 0 0 3px rgba(255,128,0,.1); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text-dark); }
.list-status { grid-column: 1 / -1; padding: 30px 12px; color: #788596; text-align: center; }
.list-status.error { color: #a23d32; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.pagination button { min-width: 38px; height: 38px; border: 1px solid #e2e7ed; border-radius: 5px; background: #fff; color: #526174; font: inherit; cursor: pointer; }
.pagination button:hover:not(:disabled), .pagination button.active { border-color: var(--primary-blue); background: var(--primary-blue); color: #fff; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.pagination-status { color: #7b8795; font-size: 13px; margin: 0 8px; }
.section-more { color: var(--text-gray); }
.section-more:hover { color: var(--primary-orange); }
.detail-image { display: block; max-width: min(100%, 680px); max-height: 480px; object-fit: contain; margin: 0 auto 22px; }
.module-loading { padding: 34px 12px; text-align: center; color: #788596; }
.module-loading.error { color: #a23d32; }
.case-tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.case-tag-list .case-tag { margin: 0; padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 1.45; }
.back-to-top { position: fixed; right: max(22px, calc((100vw - 1240px) / 2)); bottom: 28px; z-index: 80; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(23,54,94,.88); color: #fff; box-shadow: 0 8px 24px rgba(24,49,79,.22); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-orange); }
.back-to-top svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
    .list-tools { grid-template-columns: minmax(0, 1fr); }
    .search-box { width: 100%; }
}

@media (max-width: 680px) {
    .filter-tabs { width: 100%; flex: none; }
    .case-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .case-img { height: 145px; }
    .case-img-contain { height: 126px; padding: 4px 14px 0; }
    .case-info { padding: 11px 15px 15px; }
    .search-box { width: 100%; }
    .filter-tabs { gap: 7px; }
    .filter-tabs button { padding: 6px 11px; font-size: 12px; }
    .pagination { gap: 6px; }
    .pagination-status { flex-basis: 100%; text-align: center; order: 2; }
    .back-to-top { right: 16px; bottom: 18px; width: 42px; height: 42px; }
}

.case-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-item:hover .case-info .case-title {
    color: var(--primary-orange);
}

.case-img-contain {
    display: block;
    width: 100%;
    height: 142px;
    object-fit: contain;
    padding: 6px 16px 0;
}

.case-img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.case-info {
    padding: 12px 16px 16px;
}

.case-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-light);
    color: var(--primary-blue);
    font-size: 12px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.case-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 3px;
    color: var(--text-dark);
    min-height: 3em;
    min-height: 2lh;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.case-date {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 3px;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Partners Carousel Section */
.partners-section {
    padding: 80px 0 20px 0;
    overflow: hidden;
    scroll-margin-top: 92px;
}

.home-page .partners-section {
    padding-top: 56px;
    padding-bottom: 16px;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.partner-logo {
    width: 150px;
    height: 80px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    background-color: #222;
    color: #bbb;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-orange);
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid var(--text-dark);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
}

.footer-bottom img {
    vertical-align: middle;
    margin: auto 3px;
    width: 16px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}


/* Mobile Navigation Styles */
.togglemenu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 20px;
}

.togglemenu span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation when menu is activated (turns into an X) */
.togglemenu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-orange);
}

.togglemenu.active span:nth-child(2) {
    opacity: 0;
}

.togglemenu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-orange);
}

@media (max-width: 900px) {
    .header-container {
        padding: 0 20px;
        position: relative;
    }

    .togglemenu {
        display: flex;
        order: 3;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 20%;
        height: 100vh;
        background-color: rgba(30, 30, 30, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav.active {
        right: 0;
    }

    .nav-item {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease;
    }

    .nav.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav.active .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav.active .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav.active .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav.active .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav.active .nav-item:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav.active .nav-item:nth-child(7) {
        transition-delay: 0.7s;
    }


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

    .hero-subtitle {
        font-size: 38px;
    }

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

    .section-info a span {
        width: 30px;
    }

    .carousel-slide.slide-2-container .hero-content {
        width: 100%;
        text-align: center;
        align-items: center;
        padding: 0;
    }
}

/* detail */
.section-padding {
    padding: 100px 0 0 0;
}

/* Exhibition Detail */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.detail-main {
    background: var(--white);
}

.detail-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.detail-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.detail-info-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-info-box[hidden],
.info-item[hidden] {
    display: none !important;
}

.info-item h4 {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.info-item p {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
}

.detail-content {
    line-height: 1.8;
    color: #444;
}

.detail-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-orange);
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-orange);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

.contact-btn:hover {
    background: #e67300;
}

/* Back Navigation Styles */
.back-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.detail-back-search {
    display: flex;
    align-items: center;
    width: 320px;
    max-width: 100%;
}

.detail-back-search .search-box {
    flex: 1 1 100%;
    width: auto;
    min-width: 0;
    min-height: 42px;
}

.back-link {
    color: var(--text-gray); /* 默认灰色 */
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.back-link:hover {
    color: var(--primary-orange); /* 悬停橙色 */
    transform: translateX(-5px); /* 悬停时微弱向左移动，增加交互感 */
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .back-nav {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .back-link {
        align-self: flex-start;
    }

    .detail-back-search {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .detail-back-search {
        width: 290px;
    }
}

@media (max-width: 600px) {
    .home-page .services-section,
    .home-page .partners-section {
        padding-top: 42px;
    }
    .home-page .services-section {
        scroll-margin-top: 50px;
    }
}
/* Related List Styles */
.related-list li {
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 8px;
}

.related-list li:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-list li a {
    display: flex;
    gap: 12px;
    align-items: center;
}

.related-list li img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #eee;
    background: #fff;
    transition: transform 0.3s ease;
}

.related-list li:hover img {
    transform: scale(1.05);
    border-color: var(--primary-orange);
}

.related-list li h4 {
    font-size: 14px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.related-list li:hover h4 {
    color: var(--primary-orange);
}

.related-list li p {
    font-size: 12px;
    color: #999;
}

/* ============================================
   手机模式优化 (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    /* 1. 主容器布局改为单列 */
    .detail-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        /* 改为单列布局，咨询参展和相关展会移到内容下方 */
    }

    /* 2. 详情信息框改为单列 */
    .detail-info-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px;
        /* 从2列改为1列，减少每行内容宽度 */
    }

    /* 3. 侧边栏取消粘性定位，改为正常流 */
    .detail-sidebar {
        position: static;
        top: auto;
        /* 取消 sticky 定位，让其跟随内容流 */
    }

    /* 4. 侧边栏小部件全宽显示 */
    .sidebar-widget {
        width: 100%;
        padding: 20px;
        margin-bottom: 25px;
        /* 确保全宽显示 */
    }

    /* 5. 标题字体缩小 */
    .detail-title {
        font-size: 22px;
        margin-bottom: 15px;
        /* 从28px缩小到22px，适应小屏幕 */
    }

    /* 6. 小部件标题调整 */
    .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 8px;
        /* 字体稍小，间距减少 */
    }

    /* 7. 咨询按钮优化 */
    .contact-btn {
        padding: 14px;
        font-size: 16px;
        margin-top: 12px;
        border-radius: 6px;
        /* 增加按钮高度，提高可点击性 */
    }

    /* 8. 相关展会列表优化 */
    .related-list li {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
        border: 1px solid #f0f0f0;
        /* 添加边框和间距，提高可读性 */
    }

    /* 9. 相关展会卡片图片调整 */
    .related-list li img {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
        /* 增大图片尺寸，确保清晰度 */
    }

    /* 10. 相关展会卡片文字容器 */
    .related-list li div {
        flex: 1;
        min-width: 0;
        /* 确保文字不会溢出 */
    }

    /* 11. 相关展会标题和时间 */
    .related-list li h4 {
        font-size: 14px;
        margin-bottom: 6px;
        white-space: normal;
        overflow: visible;
        /* 允许标题换行 */
    }

    .related-list li p {
        font-size: 12px;
        color: #999;
        /* 时间文字保持较小 */
    }

    /* 12. 详情内容区域调整 */
    .detail-main {
        padding: 0;
        /* 移除内边距，让内容更紧凑 */
    }

    /* 13. 详情内容标题调整 */
    .detail-content h3 {
        font-size: 18px;
        margin: 25px 0 12px;
        padding-left: 8px;
        /* 缩小标题，减少上下间距 */
    }

    /* 14. 详情内容段落调整 */
    .detail-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
        /* 缩小字体，减少行高和间距 */
    }

    /* 15. 返回链接调整 */
    .back-link {
        font-size: 14px;
        /* 缩小返回链接字体 */
    }

    /* 16. 详情元信息调整 */
    .detail-meta {
        flex-direction: column;
        gap: 10px;
        /* 改为竖向排列 */
    }

    /* 17. 信息项调整 */
    .info-item h4 {
        font-size: 13px;
        /* 缩小标签字体 */
    }

    .info-item p {
        font-size: 14px;
        /* 缩小内容字体 */
    }
}

/* ============================================
   超小屏幕优化 (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    /* 1. 超小屏幕标题进一步缩小 */
    .detail-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* 2. 详情信息框进一步压缩 */
    .detail-info-box {
        padding: 15px;
        gap: 12px;
    }

    /* 3. 小部件标题 */
    .widget-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    /* 4. 咨询按钮 */
    .contact-btn {
        padding: 12px;
        font-size: 14px;
        margin-top: 10px;
    }

    /* 5. 相关展会卡片进一步优化 */
    .related-list li {
        padding: 10px;
        margin-bottom: 10px;
    }

    .related-list li img {
        width: 60px;
        height: 60px;
    }

    /* 6. 相关展会文字 */
    .related-list li h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .related-list li p {
        font-size: 11px;
    }

    /* 7. 侧边栏小部件间距 */
    .sidebar-widget {
        padding: 15px;
        margin-bottom: 20px;
    }

    /* 8. 详情内容调整 */
    .detail-content h3 {
        font-size: 16px;
        margin: 20px 0 10px;
    }

    .detail-content p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    /* 9. 返回链接 */
    .back-link {
        font-size: 13px;
    }

    /* 10. 信息项 */
    .info-item h4 {
        font-size: 12px;
    }

    .info-item p {
        font-size: 13px;
    }
}

/* ============================================
   平板模式优化 (768px < width <= 1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    /* 1. 平板模式下的侧边栏宽度调整 */
    .detail-container {
        grid-template-columns: 1fr 300px;
        gap: 30px;
        /* 侧边栏从350px改为300px */
    }

    /* 2. 侧边栏小部件 */
    .sidebar-widget {
        padding: 18px;
    }

    /* 3. 标题调整 */
    .detail-title {
        font-size: 24px;
    }

    /* 4. 详情信息框 */
    .detail-info-box {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px;
    }
}


/* Visitor consultation form */
.contact-btn { appearance: none; -webkit-appearance: none; border: 0; font-family: inherit; cursor: pointer; }
.contact-btn:focus-visible { outline: 3px solid #172b49; outline-offset: 3px; }
.contact-btn:disabled { opacity: .65; cursor: wait; }
.home-expo-search { position: absolute; top: 98px; left: 50%; z-index: 20; width: min(560px, calc(100% - 40px)); margin: 0; transform: translateX(-50%); opacity: .30; transition: opacity .22s ease; }
.home-expo-search:hover, .home-expo-search:focus-within { opacity: 1; }
@media (hover: none) { .home-expo-search { opacity: .68; } .home-expo-search:focus-within { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .home-expo-search { transition: none; } }
.home-expo-search-control { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 7px 6px 18px; border: 1px solid #ffffffd9; border-radius: 12px; background: #fffffff2; box-shadow: 0 14px 40px #071c3d4d; backdrop-filter: blur(10px); }
.home-expo-search-control svg { flex: 0 0 21px; width: 21px; height: 21px; fill: none; stroke: #718096; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-expo-search-control input { flex: 1; min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: #26364d; font: inherit; font-size: 15px; }
.home-expo-search-control input::placeholder { color: #8793a2; }
.home-expo-search-control:focus-within { border-color: #ff9a32; box-shadow: 0 0 0 3px #ff800033, 0 14px 40px #071c3d4d; }
.home-expo-search-control button { flex: 0 0 auto; min-height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--primary-orange); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s ease; }
.home-expo-search-control button:hover { background: #e67300; }
.home-expo-search-control button:focus-visible { outline: 3px solid #17365d; outline-offset: 2px; }
.home-inquiry-trigger { position: fixed; right: 28px; bottom: 26px; z-index: 999; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 21px; border: 1px solid #ff9a32; border-radius: 999px; background: linear-gradient(135deg, #ff9229, #f27600); color: #fff; box-shadow: 0 10px 28px #a94d0052; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.home-inquiry-trigger:hover { transform: translateY(-3px); box-shadow: 0 14px 32px #a94d0066; background: linear-gradient(135deg, #ffa342, #e96b00); }
.home-inquiry-trigger:focus-visible { outline: 3px solid #17365d; outline-offset: 4px; }
.home-inquiry-trigger svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inquiry-dialog { width: min(680px, calc(100vw - 32px)); max-width: 680px; max-height: min(92vh, 860px); overflow: auto; border: 0; padding: 0; border-radius: 14px; color: var(--text-dark); box-shadow: 0 24px 90px #061a353d; }
.inquiry-dialog::backdrop { background: #0b1a3599; backdrop-filter: blur(3px); }
.inquiry-dialog[open] { margin: auto; }
.inquiry-result-dialog { width: min(420px, calc(100vw - 32px)); border: 0; padding: 0; border-radius: 14px; color: var(--text-dark); box-shadow: 0 24px 90px #061a353d; }
.inquiry-result-dialog::backdrop { background: #0b1a3599; backdrop-filter: blur(3px); }
.inquiry-result-dialog[open] { margin: auto; }
.inquiry-result-shell { padding: 28px; background: #fff; text-align: center; }
.inquiry-result-shell h2 { margin: 10px 0; color: var(--primary-blue); font-size: 22px; }
.inquiry-result-shell p { margin: 0 0 22px; color: #788394; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.inquiry-result-shell h2[hidden] { display: none; }
.inquiry-result-dialog.is-error .inquiry-result-shell p { margin: 8px 0 22px; padding: 14px 16px; border: 1px solid #f3c9c3; border-radius: 8px; background: #fff1ef; color: #b84242; font-size: 15px; font-weight: 600; }
.inquiry-result-shell .inquiry-submit { min-width: 120px; }
.inquiry-dialog-shell { padding: 0; background: #fff; }
.inquiry-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 30px 20px; border-bottom: 1px solid #edf0f3; }
.inquiry-dialog-header h2 { margin: 7px 0; color: var(--primary-blue); font-size: 24px; }
.inquiry-dialog-header p { color: #788394; font-size: 13px; }
.inquiry-eyebrow { color: var(--primary-orange); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.inquiry-dialog-close { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #e5e9ef; border-radius: 50%; background: #fff; color: #687487; font-size: 24px; line-height: 1; cursor: pointer; }
.inquiry-dialog-close:hover { border-color: #ffbf84; color: var(--primary-orange); }
.inquiry-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px 30px 6px; }
.inquiry-field { display: grid; gap: 7px; min-width: 0; color: #425066; font-size: 13px; font-weight: 600; }
.inquiry-field > span b, .inquiry-field > label b { color: #d65142; }
.select-ui-field-label { display: block; color: inherit; font: inherit; cursor: pointer; }
.inquiry-field .select-ui-trigger { min-height: 42px; padding: 10px 18px 10px 12px; border-radius: 6px; color: #273246; font-size: 13px; }
.inquiry-field .select-ui-trigger[aria-invalid="true"] { border: 2px solid #d94b43; background: #fff5f3; box-shadow: 0 0 0 3px #d94b4326; }
.inquiry-field .select-ui-trigger[aria-invalid="true"]:focus-visible { border-color: #c93630; box-shadow: 0 0 0 4px #d94b4333; }
.inquiry-field input, .inquiry-field select, .inquiry-field textarea { box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe4eb; border-radius: 6px; background: #fff; color: #273246; font: inherit; font-size: 13px; font-weight: 400; outline: none; }
.inquiry-field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.inquiry-field input:focus, .inquiry-field select:focus, .inquiry-field textarea:focus { border-color: var(--primary-orange); box-shadow: 0 0 0 3px #ff80001a; }
.inquiry-field input.inquiry-invalid, .inquiry-field select.inquiry-invalid, .inquiry-field textarea.inquiry-invalid { border: 2px solid #d94b43; background: #fff5f3; box-shadow: 0 0 0 3px #d94b4326; }
.inquiry-field input.inquiry-invalid:focus, .inquiry-field select.inquiry-invalid:focus, .inquiry-field textarea.inquiry-invalid:focus { border-color: #c93630; box-shadow: 0 0 0 4px #d94b4333; }
.inquiry-field input::placeholder, .inquiry-field textarea::placeholder { color: #a3abb6; }
.inquiry-field[hidden] { display: none !important; }
.inquiry-field-wide { grid-column: 1 / -1; }
.inquiry-feedback { margin: 8px 30px 0; padding: 10px 12px; border-radius: 6px; background: #eef8f1; color: #28734d; font-size: 13px; line-height: 1.55; }
.inquiry-feedback.error { background: #fff1ef; color: #b84242; }
.inquiry-feedback[hidden] { display: none !important; }
.inquiry-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 30px 24px; }
.inquiry-cancel, .inquiry-submit { min-height: 42px; padding: 0 20px; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.inquiry-cancel { border: 1px solid #dfe4eb; background: #fff; color: #596576; }
.inquiry-submit { border: 1px solid var(--primary-orange); background: var(--primary-orange); color: #fff; font-weight: 700; }
.inquiry-submit:hover { background: #e67300; }
.inquiry-submit:disabled { opacity: .6; cursor: wait; }
.inquiry-cancel:focus-visible, .inquiry-submit:focus-visible, .inquiry-dialog-close:focus-visible { outline: 3px solid #172b49; outline-offset: 2px; }
@media (max-width: 600px) {
    .inquiry-dialog { width: calc(100vw - 20px); max-height: 94vh; border-radius: 10px; }
    .inquiry-result-dialog { width: calc(100vw - 32px); border-radius: 10px; }
    .home-inquiry-trigger { right: 16px; bottom: 18px; min-height: 48px; padding: 0 17px; font-size: 14px; }
    .home-expo-search { top: 92px; width: calc(100% - 32px); }
    .home-expo-search-control { gap: 8px; min-height: 52px; padding: 5px 5px 5px 13px; border-radius: 10px; }
    .home-expo-search-control input { height: 40px; font-size: 14px; }
    .home-expo-search-control button { min-height: 40px; padding: 0 13px; font-size: 13px; }
    .inquiry-dialog-header { padding: 21px 20px 16px; }
    .inquiry-dialog-header h2 { font-size: 21px; }
    .inquiry-form-grid { grid-template-columns: 1fr; gap: 13px; padding: 18px 20px 4px; }
    .inquiry-field-wide { grid-column: auto; }
    .inquiry-feedback { margin: 8px 20px 0; }
    .inquiry-form-actions { padding: 16px 20px 20px; }
}

/* Rich text content rendered in published detail pages */
.detail-content ul,.detail-content ol { padding-left:26px; margin:0 0 16px; color:#555; line-height:1.8; }
.detail-content li { margin:4px 0; }
.detail-content blockquote { margin:16px 0; padding:12px 18px; border-left:3px solid var(--primary-orange); background:#fff8f1; color:#596578; }
.detail-content h2,.detail-content h4 { margin:18px 0 10px; color:var(--text-dark); }
.detail-content a { color:var(--primary-orange); text-decoration:underline; }
.footer-col .about-rich-text { margin-bottom:10px; font-size:14px; line-height:1.7; }
.footer-col .about-rich-text p { margin-bottom:8px; }
.footer-col .about-rich-text ul,.footer-col .about-rich-text ol { padding-left:20px; margin:0 0 8px; font-size:14px; }
.detail-content img:not(.detail-image),.service-text img { display:block; max-width:100%; height:auto; margin:12px auto; border-radius:5px; }

/* Detail image treatment: keep the original item fields and contain logo-style lead images. */
.detail-container { align-items: start; grid-template-columns: minmax(0,1fr) 320px; gap: 30px; margin-bottom: 42px; }
.detail-main { min-width: 0; padding: clamp(20px,3vw,36px); border: 1px solid #e7ebf0; border-radius: 18px; box-shadow: 0 14px 38px rgba(24,48,78,.06); }
.detail-header { margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid #e9edf2; }
.detail-title { margin: 0; color: #173452; font-size: clamp(26px,3vw,36px); line-height: 1.35; letter-spacing: -.02em; }
.detail-hero { display: grid; grid-template-columns: minmax(190px,.68fr) minmax(0,1.32fr); overflow: hidden; margin: 0 0 24px; border: 1px solid #e6ebf0; border-radius: 16px; background: linear-gradient(135deg,#f3f7fb 0%,#fff8f0 100%); }
.detail-hero[hidden] { display: none !important; }
.detail-hero-media { position: relative; min-height: 250px; overflow: hidden; background: radial-gradient(ellipse at center,#fff 0%,rgba(255,255,255,.82) 55%,rgba(234,241,247,.75) 100%); }
.detail-hero .detail-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; max-height: none; margin: 0; object-fit: contain; border-radius: 10px; }
.detail-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(18px,2.2vw,26px); }
.detail-hero-summary { margin: 0 0 12px; color: #647286; font-size: 14px; line-height: 1.75; }
.detail-hero-facts { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; }
.detail-hero-fact { display: flex; min-width: 0; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 10px; border: 1px solid rgba(221,228,235,.82); border-radius: 8px; background: rgba(255,255,255,.72); font-size: 13px; line-height: 1.5; }
.detail-hero-fact span { flex: 0 0 auto; color: #718096; }
.detail-hero-fact strong { min-width: 0; flex: 1; color: #173452; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.detail-hero-dense .detail-hero-copy { background: rgba(255,255,255,.48); }
.detail-hero-dense .detail-hero-summary { color: #4b5d70; }
.detail-hero-dense .detail-hero-facts { gap: 3px; }
.detail-hero-dense .detail-hero-fact { padding: 5px 0; border: 0; border-radius: 0; background: transparent; }
.detail-hero-dense .detail-hero-fact span { flex: 0 0 auto; }
.detail-hero-dense .detail-hero-fact span { color: #5d6e80; }
.detail-hero-dense .detail-hero-fact strong { min-width: 0; flex: 1; color: #173452; font-weight: 700; text-align: right; }
.detail-hero-image-only { display: block; padding: 0; background: #f4f7fa; }
.detail-hero-image-only .detail-hero-media { display: block; min-height: 0; padding: 0; background: transparent; }
.detail-hero-image-only .detail-image { position: static; inset: auto; width: 100%; max-width: none; height: auto; max-height: min(72vh,640px); object-fit: contain; border-radius: 0; }
.detail-hero-image-standalone { grid-template-columns: minmax(0,1fr); }
.detail-hero-image-standalone .detail-hero-media { display: grid; min-height: 0; padding: 0; place-items: center; background: #f4f7fa; }
.detail-hero-image-standalone .detail-image { position: relative; inset: auto; width: 100%; height: auto; max-width: 100%; max-height: min(72vh,720px); object-fit: contain; border-radius: 0; }
.detail-hero-image-standalone .detail-hero-copy { padding: 18px clamp(18px,2.2vw,26px); border-top: 1px solid #e6ebf0; background: #fff; }
.detail-hero-image-standalone .detail-hero-facts { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; row-gap: 4px; }
.detail-hero-image-standalone .detail-hero-fact { display: grid; grid-template-columns: auto minmax(0,1fr); justify-content: stretch; gap: 8px; padding: 8px 4px; border: 0; border-radius: 0; background: transparent; }
.detail-hero-image-standalone .detail-hero-fact span { color: #718096; }
.detail-hero-image-standalone .detail-hero-fact strong { text-align: left; }
.detail-hero-no-image { grid-template-columns: minmax(0,1fr); }
.detail-info-box { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 15px; margin: 0 0 28px; padding: 20px; border: 1px solid #e8edf2; border-radius: 14px; background: #f8fafc; }
.info-item { min-width: 0; padding: 2px 4px; }
.info-item h4 { margin-bottom: 6px; color: #8793a2; font-size: 12px; font-weight: 600; }
.info-item p { color: #253a53; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.detail-content { color: #465366; font-size: 15px; line-height: 1.9; }
.detail-content h3 { margin: 30px 0 14px; padding: 0 0 9px; border-left: 0; border-bottom: 1px solid #e9edf2; color: #173452; font-size: 20px; }
.detail-content h3:first-child { margin-top: 0; }
.detail-sidebar { position: sticky; align-self: start; top: 96px; }
.detail-sidebar > .sidebar-widget:last-child { margin-bottom: 0; }
.detail-hero-fact strong .detail-hero-status { font-weight: 700; font-size: 12px; }
.detail-hero-fact strong .detail-hero-status-ongoing { color: #176843; }
.detail-hero-fact strong .detail-hero-status-ended { color: #667085; }
.case-status { display: inline; margin: 0; padding: 0; background: transparent; font-size: 12px; font-weight: 700; line-height: inherit; letter-spacing: 0; }
.case-status-ongoing { color: #176843; }
.case-status-ended { color: #667085; }
.sidebar-widget { padding: 22px; border-color: #e7ebf0; border-radius: 16px; box-shadow: 0 12px 32px rgba(24,48,78,.05); }
.widget-title { color: #173452; }

@media (max-width: 900px) {
  .detail-container { grid-template-columns: minmax(0,1fr) 290px; gap: 20px; }
  .detail-hero { grid-template-columns: minmax(160px,.65fr) minmax(0,1.35fr); }
}
@media (max-width: 768px) {
  .detail-container { grid-template-columns: 1fr; gap: 22px; }
  .detail-main { padding: 20px; border-radius: 15px; }
  .detail-header { margin-bottom: 18px; padding-bottom: 15px; }
  .detail-title { font-size: clamp(23px,6vw,30px); }
  .detail-hero { grid-template-columns: 1fr; margin-bottom: 20px; }
  .detail-hero-media { display: grid; min-height: 220px; place-items: center; padding: 22px; }
  .detail-hero .detail-image { position: relative; inset: auto; width: auto; height: auto; max-width: 100%; max-height: 205px; }
  .detail-hero-image-only .detail-hero-media { min-height: 0; }
  .detail-hero-image-only .detail-image { max-height: min(65vh,440px); }
  .detail-hero-copy { padding: 20px 22px 22px; }
  .detail-info-box { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 16px; }
  .detail-content { font-size: 14px; }
  .detail-sidebar { position: static; }
}
@media (max-width: 420px) {
  .detail-main { padding: 16px; }
  .detail-hero-media { min-height: 190px; }
  .detail-hero .detail-image { max-height: 175px; }
  .detail-hero-image-only .detail-image { max-height: min(65vh,400px); }
  .detail-info-box { gap: 10px; padding: 13px; }
  .info-item p { font-size: 13px; }
}

/* Consistent select arrow for front-end forms */
.inquiry-field select {
  -webkit-appearance: auto;
  appearance: auto;
  padding-right: 12px !important;
  background-image: none;
  cursor: pointer;
}
.inquiry-field select option { color: #334257; background-color: #fff; }
.inquiry-field select option:checked { color: #b76109; background-color: #fff4e8; }

/* Let standalone lead images use their natural aspect ratio rather than letterboxing inside a capped box. */
.detail-hero-image-standalone .detail-hero-media { display:block; }
.detail-hero-image-standalone .detail-image { display:block; width:100%; height:auto; max-width:100%; max-height:none; object-fit:initial; }

.case-title mark.search-hit {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary-orange);
    box-shadow: none;
    text-decoration: none;
}
