/* ============================================================
   GEO SaaS — 全局基础样式
   ============================================================ */

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    position: relative;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
html, body { max-width: 100%; width: 100%; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Reveal 入场动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    background: var(--primary-gradient, var(--primary));
    color: white;
    border: none; border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
    z-index: 99;
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
}

/* ============================================================
   Section 通用
   ============================================================ */
.section { padding: 5.5rem 0; position: relative; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 3.2rem; }
.section-header h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}
.section-divider {
    width: 56px; height: 4px;
    background: var(--primary-gradient);
    margin: 0.8rem auto 0;
    border-radius: 4px;
}

/* ============================================================
   Hero 轮播
   ============================================================ */
.hero-slider {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 21 / 9 !important;
    max-height: 500px !important;
    min-height: 280px !important;
    background: #0f172a;
    overflow: hidden !important;
    display: block !important;
}
.hero-slider .hero-slide {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
    animation: none !important;
}
.hero-slider .hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.hero-slider .hero-slide img {
    width: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-slider .hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, #1e293b 8%, #2c3e57 18%, #1e293b 33%);
    background-size: 200% 100%;
    animation: heroShimmer 1.6s linear infinite;
    z-index: -1;
}
@keyframes heroShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ============================================================
   相册横向无缝滚动
   ============================================================ */
.gallery-marquee {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    max-width: 100%;
}
.gallery-track {
    display: flex;
    gap: 1.4rem;
    width: max-content;
    animation: galleryScroll linear infinite;
    animation-duration: 40s;
    will-change: transform;
}
.gallery-marquee:hover .gallery-track,
.gallery-marquee:focus-within .gallery-track {
    animation-play-state: paused;
}
@keyframes galleryScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.gallery-item {
    flex: 0 0 auto;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease;
}
.gallery-item:hover { transform: translateY(-6px); }
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: var(--gray-100);
    transition: box-shadow 0.4s ease;
}
.gallery-item:hover img { box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.gallery-title {
    font-size: 0.92rem;
    color: var(--gray-700);
    font-weight: 500;
    text-align: center;
    padding: 0 0.4rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}
.gallery-item:hover .gallery-title { color: var(--primary); }

/* ============================================================
   案例卡片
   ============================================================ */
.news-card:has(.case-list-img) .news-content p,
.news-card:has(.case-image) .news-content p,
.news-card.case-card p,
.case-card .news-content p {
    display: none !important;
}

/* ============================================================
   多语言切换器
   ============================================================ */
.lang-switcher { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: 1rem; }
.lang-switcher a.lang-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.lang-switcher a.lang-link.active-link {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}
.lang-switcher a.lang-link:hover:not(.active-link) {
    background-color: var(--gray-100);
    color: var(--primary);
}
@media (max-width: 768px) { .lang-switcher { margin-left: 0; margin-top: 0.5rem; } }

/* ============================================================
   通用工具类
   ============================================================ */
.entity-tag-group { position: relative; display: inline-block; }
.entity-dropdown {
    display: none;
    position: absolute;
    top: 110%; left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 180px;
    z-index: 10;
    padding: 0.5rem 0;
}
.entity-dropdown.show { display: block; }
.entity-tag-btn:hover { background: #e0f2fe; }
.link-plain { text-decoration: none; color: inherit; }
.link-plain:hover { color: var(--primary); }
.display-none { display: none; }
.display-block { display: block; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.6rem; }
.gap-2 { gap: 0.5rem; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-400); }
.v-align-middle { vertical-align: middle; margin-right: 2px; }
.v-align-middle-mr-4 { vertical-align: middle; margin-right: 4px; }
.price-tag { color: var(--primary); font-weight: 700; }
.price-tag-primary { color: var(--color-primary); font-weight: 700; }
.product-card-img { width: 100%; object-fit: cover; border-radius: 8px; }
.case-list-img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.team-detail-avatar { width: 200px; height: auto; border-radius: 50%; margin: 1rem 0; }
.detail-main-img { max-width: 100%; margin: 1rem 0; }
.detail-main-img-center { max-width: 100%; height: auto; }
.service-title-icon { margin-right: 0.5rem; }

/* ---------- 视频 ---------- */
.video-wrapper { margin-bottom: 1.5rem; }
.video-description { color: #333; font-size: 1.1rem; }
.video-placeholder {
    background: #f0f0f0; height: 300px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; color: var(--gray-500);
}
.video-placeholder svg { width: 64px; height: 64px; margin-right: 0.5rem; }
.video-list-placeholder {
    background: #f0f0f0; height: 200px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500);
}
.video-list-placeholder svg { width: 48px; height: 48px; margin-right: 0.5rem; }
.transcript-content {
    white-space: pre-wrap;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.video-meta { margin-top: 2rem; color: #666; }

/* ---------- Citation ---------- */
.citation-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.citation-section h3 {
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.25rem;
}
.citation-list { list-style: none; padding: 0; }
.citation-item {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #3b82f6;
}
.citation-item .citation-model { font-weight: 600; color: #1e40af; }
.citation-item .citation-model .citation-time { font-weight: 400; color: #6b7280; font-size: 0.9rem; }
.citation-item .citation-url { font-size: 0.85rem; color: #4b5563; margin-top: 0.25rem; }
.citation-item .citation-url a { color: var(--primary); text-decoration: none; }
.citation-item .citation-url a:hover { text-decoration: underline; }
.citation-item .citation-text {
    margin-top: 0.25rem;
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #374151;
}

/* ---------- Entity Tags ---------- */
.entity-tags-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #ddd; }
.entity-tags-section h3 { font-size: 1rem; color: #666; margin-bottom: 0.8rem; }
.entity-tags-wrap { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.entity-tag-btn {
    display: inline-flex; align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.entity-tag-btn:hover { background: #e0f2fe; }
.entity-dropdown .dropdown-link {
    display: block;
    padding: 0.4rem 1rem;
    color: #0369a1;
    text-decoration: none;
    font-size: 0.85rem;
}
.entity-dropdown .dropdown-link:hover { background: #f0f9ff; }
.entity-dropdown .no-links { display: block; padding: 0.4rem 1rem; color: #999; font-size: 0.85rem; }

/* ---------- Stats ---------- */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark, #1e293b), var(--primary, #4f46e5));
    padding: 4rem 0;
    color: white;
}
.stats-section .section-header h2 { color: white; }

/* ---------- 搜索结果 ---------- */
.search-results-container { display: none; margin-top: 1rem; }
.search-results-container.show { display: block; }
.search-results-container .results-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.search-results-container .results-list { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* ---------- 视频列表项 ---------- */
.video-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 1rem;
    background: white;
    transition: box-shadow 0.2s;
}
.video-item:hover { box-shadow: var(--shadow-md); }
.video-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.video-item h3 a { text-decoration: none; color: inherit; }
.video-item h3 a:hover { color: var(--primary); }
.video-item video { width: 100%; border-radius: 4px; margin-bottom: 0.5rem; }
.video-item p { color: var(--gray-600); font-size: 0.9rem; margin: 0.5rem 0; }
.video-item small { color: var(--gray-400); font-size: 0.75rem; }

/* ============================================================
   Grid / Flex 溢出根治
   ============================================================ */
.services-grid,
.news-grid,
.team-grid,
.gallery-grid,
.advantages-grid,
.faq-grid,
.contact-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.news-card,
.news-card > *,
.news-content,
.news-content > *,
.case-card,
.case-card > * {
    min-width: 0;
    max-width: 100%;
}

.news-content h3,
.news-content h3 a,
.news-content p,
.news-date,
.news-date small,
h1, h2, h3, h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.case-list-img, .case-image {
    flex-shrink: 0;
    max-width: 100%;
}

/* ============================================================
   平板适配（<= 1024px）
   ============================================================ */
@media (max-width: 1024px) {
    .hero-slider {
        aspect-ratio: 16 / 9 !important;
        min-height: 260px !important;
        max-height: 460px !important;
    }
    .gallery-track > .gallery-item:nth-child(n+7) { display: none; }
    .gallery-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
        animation: none;
        width: 100%;
    }
    .gallery-item { width: 100%; }
    .gallery-marquee {
        mask-image: none; -webkit-mask-image: none;
        overflow: visible;
        padding: 0;
    }
    .case-list-img { width: 100px; height: 75px; }
    .video-placeholder { height: 240px; }
}

/* ============================================================
   移动端适配（<= 768px）
   ============================================================ */
@media (max-width: 768px) {

    .hero-slider {
        aspect-ratio: 16 / 9 !important;
        min-height: 200px !important;
        max-height: 340px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .site-header { overflow-x: clip; max-width: 100%; }
    @supports not (overflow-x: clip) {
        .site-header { overflow-x: hidden; }
    }
    .site-header .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.4rem !important;
        padding: 0 0.7rem !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .site-header .container > * {
        min-width: 0;
        max-width: 100%;
    }
    .site-header .site-logo {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 38% !important;
        overflow: hidden !important;
    }
    .site-header .site-logo-img { max-width: 100% !important; height: auto !important; }
    .site-header .site-logo-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    #searchWidget {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 0.4rem !important;
        padding: 0 !important;
        position: static !important;
        display: flex !important;
        align-items: center !important;
    }
    #searchWidget .search-trigger { display: none !important; }
    #searchWidget .search-panel {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        overflow: visible !important;
    }
    #searchWidget .search-form-inline {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    #searchWidget .search-input {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0.4rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    #searchWidget .search-submit {
        flex: 0 0 auto !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }
    .site-header .site-menu-btn {
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0.3rem !important;
    }

    .section { padding: 3rem 0; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header { margin-bottom: 2rem; }

    .services-grid,
    .advantages-grid,
    .news-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .team-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 0.9rem !important;
    }
    .team-avatar { height: 170px; }
    .gallery-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }
    .stats-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 1.2rem !important;
    }
    .stat-num { font-size: 2.2rem; }

    .news-card:has(.case-list-img),
    .news-card:has(.case-image) {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
    }
    .news-card:has(.case-list-img) .case-list-img,
    .news-card:has(.case-image) .case-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
        margin-bottom: 0.8rem !important;
    }
    .news-card:has(.case-list-img) .news-content,
    .news-card:has(.case-image) .news-content {
        padding: 0 !important;
    }

    .news-card:not(:has(.case-list-img)):not(:has(.case-image)) {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
        padding: 1rem !important;
    }
    .news-card:not(:has(.case-list-img)):not(:has(.case-image)) .news-date {
        flex: 0 0 auto !important;
        min-width: 54px !important;
        font-size: 1.15rem !important;
        padding: 0.5rem 0.4rem !important;
        text-align: center !important;
    }
    .news-card:not(:has(.case-list-img)):not(:has(.case-image)) .news-content {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        text-align: left !important;
    }
    .news-card:not(:has(.case-list-img)):not(:has(.case-image)) .news-content h3 {
        font-size: 0.92rem !important;
        margin: 0 0 0.4rem 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.45 !important;
    }
    .news-card:not(:has(.case-list-img)):not(:has(.case-image)) .news-content h3 a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
    .news-card:not(:has(.case-list-img)):not(:has(.case-image)) .news-content p {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }

    @supports not selector(:has(*)) {
        .news-card { flex-direction: column !important; align-items: stretch !important; }
        .news-card .case-list-img,
        .news-card .case-image {
            width: 100% !important;
            height: 180px !important;
        }
    }

    .gallery-marquee {
        mask-image: none !important;
        -webkit-mask-image: none !important;
        overflow: hidden !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    .gallery-track {
        animation: none !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .gallery-track > .gallery-item:nth-child(n+7) { display: none !important; }
    .gallery-item,
    .gallery-marquee .gallery-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .gallery-item img { height: 130px; border-radius: 8px; }
    .gallery-title { font-size: 0.8rem; }

    .team-detail-avatar { width: 120px; }
    .citation-item .citation-url { font-size: 0.75rem; word-break: break-all; }
    .video-placeholder { height: 200px; }
    .video-placeholder svg { width: 40px; height: 40px; }

    .mobile-bottom-nav {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* ============================================================
   超窄屏（<= 400px）
   ============================================================ */
@media (max-width: 400px) {
    .team-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
    .services-grid,
    .advantages-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .stats-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
    .gallery-track { grid-template-columns: 1fr 1fr !important; }
    .hero-slider { aspect-ratio: 4 / 3 !important; min-height: 220px !important; }
    .page-title { font-size: 1.3rem; }
}

/* ============================================================
   超窄屏（<= 380px）
   ============================================================ */
@media (max-width: 380px) {
    .site-header .site-logo { max-width: 32% !important; }
    #searchWidget { margin: 0 0.25rem !important; }
    #searchWidget .search-input {
        padding: 0.35rem 0.4rem !important;
        font-size: 0.76rem !important;
    }
}

/* ============================================================
   ★ 服务优势 · 图文展示区（保持不变：轻盈卡片 · 图片上标题下）
   ============================================================ */
.service-gallery-block {
    margin-top: 3rem;
}

.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--sg-cols, 4), minmax(0, 1fr));
    gap: 1.25rem;
}

.service-gallery-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.service-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb, 2, 132, 199), 0.18);
}

.sg-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: var(--gray-100, #f3f4f6);
}

.sg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sg-thumb-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.service-gallery-card:hover .sg-thumb img {
    transform: scale(1.06);
}

.sg-title {
    margin: 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary, #0284c7);
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    border-radius: 0 0 10px 10px;
    transition: background 0.3s ease;
}

.service-gallery-card:hover .sg-title {
    background: var(--primary-dark, #0369a1);
}

@media (max-width: 1024px) {
    .service-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1rem;
    }
}
@media (max-width: 768px) {
    .service-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.85rem;
    }
    .sg-title {
        font-size: 0.85rem;
        padding: 0.5rem 0.55rem;
    }
}
@media (max-width: 400px) {
    .service-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.7rem;
    }
    .sg-title {
        font-size: 0.78rem;
        padding: 0.45rem 0.4rem;
    }
}

/* ============================================================
   ★ 品牌实力 · 轮播展示区（本次重做：侧栏 175px · 中间 906px · 宽高比 1.78≈16:9）
   计算：1280(容器) - 175×2(左右) - 12×2(间隙) = 906px；906 ÷ 508 = 1.78
   与 16:9 横图完全匹配 → 图片 contain 显示时 上下无空白
   序号 ①-⑧ 由 CSS counter 自动生成（跨左右连续递增）
   颜色跟随用户后台选的主色，不写死
   ============================================================ */
.brand-slider-block {
    margin-top: 3.5rem;
    counter-reset: bs-num;
}

.brand-slider-wrap {
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr) 175px;
    gap: 12px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.brand-slider-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.brand-slider-item {
    counter-increment: bs-num;
    flex: 1 1 0;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.7rem 0.6rem;
    background: var(--primary, #0284c7);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.25s ease;
    outline: none;
    position: relative;
    border-radius: 0;
    overflow: visible;
    box-sizing: border-box;
}

/* 自动序号（1-8 连续） */
.brand-slider-item::before {
    content: counter(bs-num);
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.98);
    letter-spacing: -0.02em;
}

.brand-slider-item:hover,
.brand-slider-item:focus-visible {
    background: var(--primary-dark, #0369a1);
}

.brand-slider-item.active {
    background: var(--primary-dark, #0369a1);
}

.brand-slider-item .bs-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    width: 100%;
}

.brand-slider-item .bs-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    margin: 0.3rem 0 0;
    padding: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    width: 100%;
}

/* 中间图片区：高度与两侧对齐（stretch），宽度 906px，宽高比 1.78 */
.brand-slider-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 508px;
    overflow: hidden;
    background: #f6f7f9;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand-slider-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-slider-img.active {
    opacity: 1;
    pointer-events: auto;
}

/* 关键：图片宽度撑满容器（适配宽度），高度自适应 → 上下不出现空白 */
.brand-slider-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ---------- 品牌轮播响应式（按比例同步缩放，保持宽高比一致） ---------- */
@media (max-width: 1200px) {
    .brand-slider-wrap {
        grid-template-columns: 155px minmax(0, 1fr) 155px;
        gap: 10px;
    }
    .brand-slider-side { gap: 10px; }
    .brand-slider-item {
        min-height: 108px;
        padding: 0.6rem 0.55rem;
    }
    .brand-slider-item::before { font-size: 1.5rem; margin-bottom: 0.3rem; }
    .brand-slider-item .bs-title { font-size: 0.86rem; }
    .brand-slider-item .bs-desc  { font-size: 0.7rem; }
    .brand-slider-stage { min-height: 468px; }
}

@media (max-width: 1024px) {
    .brand-slider-wrap {
        grid-template-columns: 140px minmax(0, 1fr) 140px;
        gap: 8px;
    }
    .brand-slider-side { gap: 8px; }
    .brand-slider-item {
        min-height: 98px;
        padding: 0.55rem 0.5rem;
    }
    .brand-slider-item::before { font-size: 1.3rem; margin-bottom: 0.25rem; }
    .brand-slider-item .bs-title { font-size: 0.82rem; }
    .brand-slider-item .bs-desc  { font-size: 0.66rem; }
    .brand-slider-stage { min-height: 424px; }
}

/* 单列堆叠：图片在上，8 个色块 2 列网格 */
@media (max-width: 900px) {
    .brand-slider-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .brand-slider-stage {
        order: -1;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
    .brand-slider-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .brand-slider-item {
        min-height: 88px;
        padding: 0.55rem 0.6rem;
    }
    .brand-slider-item::before { font-size: 1.25rem; margin-bottom: 0.25rem; }
    .brand-slider-item .bs-title { font-size: 0.85rem; }
    .brand-slider-item .bs-desc  { font-size: 0.68rem; }
}

@media (max-width: 560px) {
    .brand-slider-side {
        grid-template-columns: minmax(0, 1fr);
    }
    .brand-slider-item {
        min-height: 78px;
        padding: 0.55rem 0.75rem;
        flex-direction: row;
        gap: 0.6rem;
        justify-content: flex-start;
        text-align: left;
    }
    .brand-slider-item::before {
        font-size: 1.3rem;
        margin-bottom: 0;
        min-width: 1.4rem;
        text-align: center;
    }
    .brand-slider-item .bs-title { font-size: 0.85rem; width: auto; flex: 1; }
    .brand-slider-item .bs-desc  { font-size: 0.7rem; margin-top: 0; width: auto; }
}

@media (max-width: 400px) {
    .brand-slider-item {
        min-height: 70px;
        padding: 0.5rem 0.6rem;
    }
    .brand-slider-item::before { font-size: 1.15rem; }
    .brand-slider-item .bs-title { font-size: 0.8rem; }
    .brand-slider-item .bs-desc  { font-size: 0.65rem; }
    .brand-slider-stage { aspect-ratio: 4 / 3; }
}

/* ============================================================
   ★ 无标题模块：减少上下 padding，避免模块间出现大段空白
   ============================================================ */
.section.section-no-header {
    padding: 1rem 0;
}

@media (max-width: 1024px) {
    .section.section-no-header {
        padding: 0.8rem 0;
    }
}

@media (max-width: 768px) {
    .section.section-no-header {
        padding: 0.5rem 0;
    }
}

/* 无标题时，容器内第一个子元素不需要额外的顶部间距 */
.section.section-no-header > .container > *:first-child {
    margin-top: 0;
}

        /* 详情页视频封面 */
        .case-detail-video-wrap {
            position: relative;
            display: inline-block;
            max-width: 100%;
            cursor: pointer;
            border-radius: 8px;
            overflow: hidden;
        }
        .case-detail-cover {
            display: block;
            max-width: 100%;
            height: auto;
            margin: 0 auto;
        }
        .case-detail-video-wrap .case-play-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: none;
            background: rgba(0, 0, 0, 0.55);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            transition: background 0.25s, transform 0.25s;
        }
        .case-detail-video-wrap .case-play-btn:hover {
            background: rgba(0, 0, 0, 0.75);
            transform: translate(-50%, -50%) scale(1.06);
        }
        .case-detail-video-wrap video {
            width: 100%;
            display: block;
            background: #000;
            border-radius: 8px;
        }
        
/* ============================================================
   ★ 前台留言表单
   ============================================================ */
.front-message-form-wrap {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
    box-sizing: border-box;
}

.front-message-form {
    width: 100%;
}

/* 姓名 + 联系方式：PC 一行两列 */
.front-message-form .front-msg-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

/* 咨询事项 */
.front-message-form .form-row {
    margin-bottom: 1.2rem;
}

.front-message-form label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.front-message-form .form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
    color: #111827;
}

.front-message-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
    outline: none;
}

.front-message-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 12px 16px;
    background: #fafbff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.front-message-topic-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    white-space: nowrap;
}

.front-message-topic-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
}

.front-message-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}

.front-message-submit:hover {
    background: var(--primary-dark, var(--primary));
    transform: translateY(-1px);
}

.front-message-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- 前台 Toast ---------- */
.front-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 24px;
    background: #16a34a;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 99999;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.95rem;
    max-width: 360px;
    line-height: 1.5;
    font-weight: 500;
}
.front-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.front-toast-error { background: #dc2626; }
.front-toast-info  { background: #0284c7; }

/* ---------- 移动端：姓名/联系方式一行一个 ---------- */
@media (max-width: 640px) {
    .front-message-form .front-msg-name-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .front-message-form-wrap {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }
    .front-toast {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        font-size: 0.88rem;
        padding: 12px 16px;
    }
}

/* ============================================================
   ★ 全站默认主题色（页面上的一行 :root 会覆盖这些默认值）
   ============================================================ */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --primary-subtle: rgba(2, 132, 199, 0.08);
    --primary-rgb: 2, 132, 199;
    --primary-gradient: linear-gradient(135deg, #0284c7, #06b6d4);
    --color-primary: #0284c7;
}

/* 主色渐变统一应用 */
.section-divider,
.site-nav a::after,
.site-footer h4::after {
    background: var(--primary-gradient) !important;
}

/* ============================================================
   ★ 站点 Logo 图片尺寸限制（全站通用）
   ============================================================ */
.site-logo-img {
    max-height: 44px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}
@media (max-width: 768px) {
    .site-logo-img {
        max-height: 34px;
        max-width: 130px;
    }
}

/* ============================================================
   ★ 通用页容器 / 标题（所有内页通用）
   ============================================================ */
.page-title {
    margin: 0 0 0.5rem 0;
}
.page-subtitle {
    margin: 0.5rem 0 2rem 0;
    font-size: 1.05rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.6;
    text-align: center;
}
.page-subtitle + .page-intro,
.page-subtitle + .news-grid,
.page-subtitle + .services-grid,
.page-subtitle + .video-grid,
.page-subtitle + .faq-grid,
.page-subtitle + .team-grid,
.page-subtitle + .gallery-grid,
.page-subtitle + .contact-grid,
.page-subtitle + .filter-tags {
    margin-top: 1.5rem;
}

/* ============================================================
   ★ 案例列表页 · 卡片化（图片上 + 标题下）
   ============================================================ */
.case-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.case-card-lite {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    transition: transform .3s ease, box-shadow .3s ease;
    background: #fff;
}
.case-card-lite:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.case-card-lite .case-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
}
.case-card-lite .news-content {
    padding: 12px 14px;
}
.case-card-lite .case-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: #111;
    word-break: break-word;
    min-height: calc(0.95rem * 1.5 * 2);
}

/* ============================================================
   ★ 案例详情页 · 媒体 / 来源
   ============================================================ */
.case-main-img-wrap {
    text-align: center;
    margin: 1.5rem 0 2rem;
}
.case-main-img-wrap img.detail-main-img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.case-meta-source a {
    color: var(--primary);
    text-decoration: none;
}
.case-meta-source a:hover {
    text-decoration: underline;
}
.case-source-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #6b7280;
}
.case-source-footer a {
    color: var(--primary);
    text-decoration: none;
}
.case-source-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   ★ 团队详情页（PC 左头像右信息 + 移动端堆叠）
   ============================================================ */
.team-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}
.team-hero-avatar-wrap {
    display: flex;
    flex-direction: column;
}
.team-detail-avatar {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    height: auto;
    margin: 0;
}
.team-hero-info {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}
.team-name-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.team-name-row h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    text-align: left;
    width: 10%;
}
.team-name-row .team-position {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.3;
}
.team-hero-info .team-social h2,
.team-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.team-hero-info .team-social ul,
.team-section ul {
    padding-left: 1.2rem;
    line-height: 1.9;
    color: #374151;
    margin: 0;
}
.team-hero-info .team-social ul li,
.team-section ul li {
    margin-bottom: 6px;
}
.team-section {
    margin-top: 2.5rem;
}
.team-section ul li a {
    color: var(--primary);
    text-decoration: none;
}
.team-section ul li a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .team-hero {
        display: block;
        margin-bottom: 32px;
    }
    .team-hero-avatar-wrap {
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }
    .team-detail-avatar {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
    .team-hero-info {
        align-items: center;
        text-align: center;
        padding-top: 0;
    }
    .team-name-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 24px;
    }
    .team-name-row h1 { font-size: 1.5rem; }
    .team-hero-info .team-social { width: 100%; text-align: left; }
    .team-hero-info .team-social h2,
    .team-section h2 { display: block; }
    .team-hero-info .team-social h2 { text-align: center; }
    .team-hero-info .team-social ul { text-align: left; }
}

/* ============================================================
   ★ Banner 贴合顶部：页面内存在 hero-slider 时，取消容器上边距
   ============================================================ */
.page-container:has(.hero-slider),
.front-page-container:has(.hero-slider) {
    padding-top: 0;
}


/* ============================================================
   页面内容块（page-blocks）
   ============================================================ */

/* ---------- 通用 ---------- */
.pblock {
    padding: 4rem 0;
    position: relative;
}
.pblock .section-header { text-align: center; margin-bottom: 2.5rem; }
.pblock .section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900, #111827);
    letter-spacing: -0.5px;
}
.pblock .section-subtitle {
    color: var(--gray-500, #6b7280);
    margin-top: 0.5rem;
    font-size: 1rem;
}
.pblock .section-divider {
    width: 56px; height: 4px;
    background: var(--primary-gradient, var(--primary, #0284c7));
    margin: 0.8rem auto 0;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .pblock { padding: 2.5rem 0; }
    .pblock .section-header { margin-bottom: 1.75rem; }
    .pblock .section-header h2 { font-size: 1.4rem; }
    .pblock .section-subtitle { font-size: 0.9rem; }
}

/* ---------- Banner ---------- */
.pblock-banner .pblock-banner-img {
    width: 100%;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 21 / 9;
    background: var(--gray-100, #f3f4f6);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}
.pblock-banner .pblock-banner-img-link {
    display: block;
    transition: transform 0.3s ease;
}
.pblock-banner .pblock-banner-img-link:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .pblock-banner .pblock-banner-img {
        aspect-ratio: 16 / 9;
        border-radius: 10px;
    }
}

/* ---------- Grid ---------- */
.pblock-grid--cols-3 { --pblock-cols: 3; }
.pblock-grid--cols-4 { --pblock-cols: 4; }
.pblock-grid--cols-5 { --pblock-cols: 5; }
.pblock-grid--cols-6 { --pblock-cols: 6; }

.pblock-grid .pblock-grid-wrap {
    display: grid;
    grid-template-columns: repeat(var(--pblock-cols, 4), minmax(0, 1fr));
    gap: 1.25rem;
}
.pblock-grid-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pblock-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.pblock-grid-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100, #f3f4f6);
}
.pblock-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pblock-grid-card:hover .pblock-grid-thumb img {
    transform: scale(1.06);
}
.pblock-grid-title {
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800, #1f2937);
    text-align: center;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
    .pblock-grid .pblock-grid-wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .pblock-grid .pblock-grid-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    .pblock-grid-title { font-size: 0.88rem; padding: 0.6rem 0.75rem; }
}
@media (max-width: 480px) {
    .pblock-grid .pblock-grid-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .pblock-grid-title { font-size: 0.82rem; }
}

/* ---------- Split ---------- */
.pblock-split .pblock-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.pblock-split-grid--right .pblock-split-media { order: 2; }
.pblock-split-grid--right .pblock-split-body { order: 1; }

.pblock-split-media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.pblock-split-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700, #374151);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.pblock-split-body h1,
.pblock-split-body h2,
.pblock-split-body h3,
.pblock-split-body h4 {
    margin: 1rem 0 0.5rem;
    color: var(--gray-900, #111827);
    line-height: 1.3;
}
.pblock-split-body p { margin-bottom: 0.9rem; }
.pblock-split-body ul,
.pblock-split-body ol { padding-left: 1.5rem; margin-bottom: 0.9rem; }
.pblock-split-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.5rem 0; }
.pblock-split-body a { color: var(--primary, #0284c7); }

@media (max-width: 900px) {
    .pblock-split .pblock-split-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .pblock-split-grid--right .pblock-split-media,
    .pblock-split-grid--right .pblock-split-body {
        order: 0;
    }
    .pblock-split-media img { border-radius: 10px; }
    .pblock-split-body { font-size: 0.95rem; }
}

/* ---------- Marquee ---------- */
.pblock-marquee { overflow: hidden; }
.pblock-marquee-wrap {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.pblock-marquee-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: pblockMarqueeScrollHalf linear infinite;
    will-change: transform;
}
.pblock-marquee-track--speed-slow   { animation-duration: 60s; }
.pblock-marquee-track--speed-normal { animation-duration: 40s; }
.pblock-marquee-track--speed-fast   { animation-duration: 24s; }

.pblock-marquee-track--repeat-half    { animation-name: pblockMarqueeScrollHalf; }
.pblock-marquee-track--repeat-quarter { animation-name: pblockMarqueeScrollQuarter; }
.pblock-marquee-track--repeat-sixth   { animation-name: pblockMarqueeScrollSixth; }

.pblock-marquee-wrap:hover .pblock-marquee-track {
    animation-play-state: paused;
}

@keyframes pblockMarqueeScrollHalf {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes pblockMarqueeScrollQuarter {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}
@keyframes pblockMarqueeScrollSixth {
    from { transform: translateX(0); }
    to   { transform: translateX(-16.6666%); }
}

.pblock-marquee-item {
    flex: 0 0 auto;
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100, #f3f4f6);
}
.pblock-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .pblock-marquee-track { gap: 0.75rem; }
    .pblock-marquee-item { width: 160px; height: 160px; }
}
@media (max-width: 480px) {
    .pblock-marquee-item { width: 140px; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    .pblock-marquee-track { animation: none !important; }
}

/* ============================================================
   Page-Block 明细补充：grid 描述 / marquee 标题 / 预览防撑开
   ============================================================ */

/* Grid 描述 */
.pblock-grid-desc {
    padding: 0 0.9rem 0.85rem;
    font-size: 0.85rem;
    color: var(--gray-500, #6b7280);
    line-height: 1.55;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

/* Marquee：item 改为纵向 flex（图片 + 标题），宽度不变但高度自适应 */
.pblock-marquee-track {
    align-items: flex-start;
}
.pblock-marquee-item {
    display: flex;
    flex-direction: column;
    width: 220px;
    flex: 0 0 auto;
    /* 去掉固定 height: 220px，改由内部结构决定 */
}
.pblock-marquee-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    background: var(--gray-100, #f3f4f6);
    /* 覆盖之前 height:100% 的设置 */
}
.pblock-marquee-title {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-700, #374151);
    text-align: center;
    line-height: 1.4;
    padding: 0 0.25rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

/* 预览专用：不重复不撑开的 marquee（用于后台编辑器内） */
.pblock-marquee-track--preview {
    animation: none !important;
    width: 100% !important;
    overflow: hidden;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .pblock-marquee-item { width: 160px; }
    .pblock-marquee-title { font-size: 0.78rem; }
}
@media (max-width: 480px) {
    .pblock-marquee-item { width: 140px; }
    .pblock-marquee-title { font-size: 0.72rem; }
}

/* ============================================================
   Marquee 前台：标题与图片分离，轨道宽度自适应
   ============================================================ */
.pblock-marquee-track {
    display: flex;
    align-items: flex-start;
    width: max-content;
    animation: pblockMarqueeScrollHalf linear infinite;
}
.pblock-marquee-item {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 220px;
}
.pblock-marquee-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.pblock-marquee-title {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-700, #374151);
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

/* ============================================================
   ★ 修复：marquee 前台动画 duration 被重置为 0s 的问题
   （上一轮的 animation 简写重置了 duration）
   ============================================================ */
.pblock-marquee-track--speed-slow   { animation-duration: 60s !important; }
.pblock-marquee-track--speed-normal { animation-duration: 40s !important; }
.pblock-marquee-track--speed-fast   { animation-duration: 24s !important; }

.pblock-marquee-track--repeat-half    { animation-name: pblockMarqueeScrollHalf !important; }
.pblock-marquee-track--repeat-quarter { animation-name: pblockMarqueeScrollQuarter !important; }
.pblock-marquee-track--repeat-sixth   { animation-name: pblockMarqueeScrollSixth !important; }

/* 确保 animation 各子属性恢复正确 */
.pblock-marquee-track {
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-fill-mode: none !important;
    animation-direction: normal !important;
    animation-delay: 0s !important;
    animation-play-state: running !important;
}

/* 预览轨道永远不播放动画 */
.pblock-marquee-track--preview {
    animation: none !important;
}