/* === Topic Page Base === */
.topic-page { overflow: hidden; }
.topic-section { padding: 80px 0; }
.topic-section__title { text-align: center; font-size: 2rem; margin-bottom: 1rem; }
.topic-section__desc { text-align: center; max-width: 600px; margin: 0 auto 4rem; color: #666; }
.container .topic-section__title{
    text-align: left;
}
/* === Hero: Banner + Overlay (breadcrumb + tabs) === */
.topic-hero {
    position: relative;
    overflow: hidden;
}
.topic-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}
.topic-hero__overlay .breadcrumb,
.topic-hero__overlay .topic-tabs {
    pointer-events: auto;
}
/* Breadcrumb on banner — same semi-transparent background as tabs */
.topic-hero__overlay .breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 0;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.topic-hero__overlay .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}
.topic-hero__overlay .breadcrumb a:hover {
    color: #fff;
}
.topic-hero__overlay .breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* === Tab Navigation (sticky, centered, semi-transparent) === */
.topic-tabs {
    position: sticky;
    top: var(--header-height, 70px);
    z-index: 99;
    margin-top: -50px; /* overlap banner bottom */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: none;
    padding: 0;
}
.topic-tabs .container {
    position: relative;
}
.topic-tabs__scroll-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.topic-tabs__scroll-wrapper::-webkit-scrollbar { display: none; }
.topic-tabs__track {
    display: inline-flex;
    gap: 0;
    scroll-snap-type: x mandatory;
    max-width: 100%;
}
.topic-tabs__item {
    flex-shrink: 0;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    scroll-snap-align: center;
    transition: color 0.2s, border-color 0.2s;
}
.topic-tabs__item:hover { color: #fff; }
.topic-tabs__item.is-active { color: #fff; border-bottom-color: var(--primary-green); font-weight: 700; }
.topic-tabs__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s;
    opacity: 0;
}
.topic-tabs__fade--left { left: 0; background: linear-gradient(to right, rgba(0,0,0,0.4), transparent); }
.topic-tabs__fade--right { right: 0; background: linear-gradient(to left, rgba(0,0,0,0.4), transparent); }

/* === Banner === */
.topic-section--banner { padding: 0; }
.topic-banner-swiper { width: 100%; position: relative; }
.topic-banner-slide {
    height: 550px;
    background-size: cover;
    background-position: center;
    /* display: flex; */
    align-items: center;
    position: relative;
}
.topic-banner-slide__content {
    color: #fff;
    text-align: left;
    position: relative;
    z-index: 1;
    padding: 4rem 0 3rem;
}
.topic-banner-slide__content-container{
    height: 100%;
}

/* 1. eyebrow (h3, 小字 light weight) */
.topic-banner-slide__eyebrow {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 2. tagline (p italic, 在 title 上方) */
.topic-banner-slide__tagline {
    font-size: 1.1rem;
    font-style: italic;
    margin: 0 0 10px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 3. title (h1, BIG 金色) — 从 3rem white 改为 4rem 金色 */
.topic-banner-slide__title {
    font-size: 4rem;
    font-weight: 700;
    color: #0C8652;
    margin: 0 0 10px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 4. sub_heading (h2, 中号) */
.topic-banner-slide__sub-heading {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 5. subtitle/description (p italic, 在底部) — 加 italic */
.topic-banner-slide__subtitle {
    font-size: 1.1rem;
    font-style: italic;
    margin: 0 0 1.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.topic-banner-slide__cta {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-green);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}
.topic-banner-slide__cta:hover { background: #a50d25; color: #fff; }

/* Hero features row (absolute 定位在 slide 底部) */
.topic-banner-slide__features {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}
.topic-banner-slide__features-inner {
    display: flex;
    gap: 40px;
}
.topic-banner-slide__feature {
    text-align: center;
    color: #fff;
    /* width: 80px; */
    max-width: 200px;
    pointer-events: auto;
}
.topic-banner-slide__feature i,
.topic-banner-slide__feature svg {
    display: block;
    font-size: 20px;
    color: #fff;
    margin: 0 auto 5px;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 33px;
    box-sizing: border-box;
}
.topic-banner-slide__feature svg {
    padding: 7px;
    line-height: 1;
}
.topic-banner-slide__feature-label {
    display: block;
    font-size: 0.625rem;
    line-height: 1.3;
}

/* Hero features 响应式（≤768px） */
@media (max-width: 768px) {
    .topic-banner-slide__features { bottom: 20px; }
    .topic-banner-slide__features-inner { gap: 20px; }
    .topic-banner-slide__feature { width: 50px; }
    .topic-banner-slide__feature i,
    .topic-banner-slide__feature svg {
        width: 30px;
        height: 30px;
        line-height: 28px;
        font-size: 16px;
        padding: 6px;
    }
    .topic-banner-slide__feature svg {
        padding: 5px;
    }
    .topic-banner-slide__feature-label { font-size: 0.55rem; }

    /* Text hierarchy scaling — prevent overflow on small viewports */
    .topic-banner-slide__title { font-size: 2.4rem; letter-spacing: 1px; }
    .topic-banner-slide__sub-heading { font-size: 1.2rem; }
    .topic-banner-slide__eyebrow { font-size: 1rem; }
    .topic-banner-slide__tagline,
    .topic-banner-slide__subtitle { font-size: 0.95rem; }
}

/* === VR Section Layout === */
.topic-section--vr {
    background-color: #f6f6f6;
    padding: 80px 0 80px;
}

.topic-vr-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
}

.topic-vr-content {
    position: relative;
    /* max-width: 900px; */
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.topic-vr-display {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* Panels */
.topic-vr-panel { display: none; }
.topic-vr-panel.is-active { display: block; }

/* === Color Sidebar === */
.topic-vr-colors {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background-color: #f3eeee;
    border-radius: 35px;
    border: 1px solid #b0b0b0;
    padding: 12px 10px;
    align-self: center;
}

.topic-vr-color {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    padding: 3px;
}

.topic-vr-color:hover { transform: scale(1.1); }
.topic-vr-color.is-active { border-width: 3px; transform: scale(1.1); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* === 360° Viewer === */
.topic-vr-360 {
    max-width: 100%;
    margin: 0 auto;
    cursor: grab;
    user-select: none;
    position: relative;
}
.topic-vr-360:active { cursor: grabbing; }
.topic-vr-360__image {
    width: 100%;
    display: block;
    pointer-events: none;
    border-radius: 8px;
}

.topic-vr-360__badge {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-green);
    pointer-events: none;
}

/* === Panorama === */
.topic-vr-panorama {
    width: 100%;
    height: 500px;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
}
/* Ensure height persists after Pannellum adds .pnlm-container */
.topic-vr-panorama.pnlm-container {
    height: 600px !important;
}

/* === Capsule Toggle === */
.topic-vr-toggle {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.topic-vr-toggle__wrap {
    display: inline-flex;
    background: #e0e0e0;
    border-radius: 25px;
    padding: 5px 6px;
    height: 48px;
    align-items: center;
}

.topic-vr-toggle__item {
    padding: 0 28px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 16px;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
}

.topic-vr-toggle__item.is-active {
    background: #fff;
    color: #C3002C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* === Bottom Tip === */
.topic-vr-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #DE1515;
}

/* === VR Responsive === */
@media (max-width: 1366px) {
    .topic-vr-title { font-size: 28px; }
    .topic-vr-color { width: 36px; height: 36px; }
    .topic-vr-toggle__item { font-size: 14px; padding: 0 20px; }
    .topic-vr-360__badge { width: 50px; height: 50px; bottom: 16px; }
}

@media (max-width: 768px) {
    .topic-section--vr { padding: 50px 0 60px; }
    .topic-vr-content { flex-direction: column; }
    .topic-vr-colors {
        flex-direction: row;
        border-radius: 25px;
        padding: 8px 12px;
    }
    .topic-vr-color { width: 32px; height: 32px; }
    .topic-vr-tip { font-size: 14px; }
}

/* === Video === */
.topic-section--video { padding: 0; }
.topic-video__player { width: 100%; display: block; background: #000; }

/* === Features (Redesigned) === */
.topic-section--features {
    background: #fff;
}

.topic-feature {
    display: flex;
    align-items: stretch;
    margin-bottom: 16px;
    max-height: 500px;
}

.topic-feature:last-child {
    margin-bottom: 0;
}

/* 左侧块：平行四边形（右侧 \ 形对角线，斜切深度 100px） */
.topic-feature__image {
    width: calc(55% + 40px);
    clip-path: polygon(0 0, 100% 0, calc(100% - 100px) 100%, -100px 100%);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.topic-feature__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧块：平行四边形（左侧 \ 形对角线，斜切深度 100px，与左侧块对角线形成 20px 平行间隙） */
.topic-feature__content {
    width: calc(45% + 40px);
    margin-left: -80px;
    background: #F2F2F2;
    clip-path: polygon(100px 0, calc(100% + 100px) 0, 100% 100%, 0% 100%);
    padding: 40px 32px 40px 122px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* 标题装饰线 */
.topic-feature__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #222;
    /* border-bottom: 3px solid var(--primary-green); */
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin: 0 0 12px;
    display: inline-block;
}

.topic-feature__title-line {
    display: block;
    width: 100px;
    height: 5px;
    background: var(--primary-green);
    margin: -15px auto 30px;
}

/* 要点条目 */
.topic-feature__items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-feature__item {
    margin-bottom: 12px;
}

.topic-feature__item:last-child {
    margin-bottom: 0;
}

.topic-feature__item-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 3px;
}

.topic-feature__item-desc {
    font-size: 0.6875rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 反向行：内容与图片视觉顺序互换 */
.topic-feature.is-reversed {
    flex-direction: row-reverse;
}

/* 反向行：交换 clip-path 让切角面对面咬合（平行四边形版，斜切 100px）
   正向行：图片右侧 \ 切 + 文字左侧 \ 切
   反向行：文字右侧 \ 切 + 图片左侧 \ 切 */
.topic-feature.is-reversed .topic-feature__image {
    clip-path: polygon(100px 0, calc(100% + 100px) 0, 100% 100%, 0% 100%);
}

.topic-feature.is-reversed .topic-feature__content {
    clip-path: polygon(0 0, 100% 0, calc(100% - 100px) 100%, -100px 100%);
    margin-left: 0;
    margin-right: -80px;
    padding: 40px 122px 40px 32px;
}

/* 响应式：移动端取消对角线 */
@media (max-width: 768px) {
    .topic-feature {
        flex-direction: column;
    }

    .topic-feature__image,
    .topic-feature__content {
        width: 100%;
        clip-path: none;
        margin: 0;
    }

    .topic-feature__content {
        padding: 24px 20px;
        border-radius: 0 0 8px 8px;
    }

    .topic-feature__image img {
        border-radius: 8px 8px 0 0;
    }

    .topic-feature.is-reversed {
        flex-direction: column;
    }
}

/* === Gallery === */
.topic-section--gallery .swiper-wrapper { align-items: stretch; }
.topic-gallery-slide { height: auto; }
.topic-gallery-slide__img { overflow: hidden; }
.topic-gallery-slide__img a { display: block; text-decoration: none; }
.topic-gallery-slide__img img {
    width: 100%; height: auto; display: block;
    transition: transform 0.3s;
}
.topic-gallery-slide__img:hover img { transform: scale(1.1); }

/* Gallery pagination */
.topic-gallery-pagination {
    position: relative !important;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 11px;
}
.topic-gallery-pagination .swiper-pagination-bullet {
    width: 13px; height: 13px;
    background: #636363;
    opacity: 1;
    transition: background 0.3s;
}
.topic-gallery-pagination .swiper-pagination-bullet-active {
    background: var(--primary-green);
}

/* === Contact === */
.topic-section--contact {
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 72px;
}

/* 白色卡片容器：含 title + desc + form */
.topic-contact-inner {
    width: 45%;
    margin-left: auto;
    margin-right: 0;
}

.topic-contact-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: #333;
}

.topic-contact-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #777;
    margin-bottom: 30px;
}

.topic-contact-form { 
    width: 100%; 
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* CF7 默认每个字段包裹一个 <p>，覆盖其默认 margin */
.topic-contact-form p {
    margin-bottom: 20px;
}
.topic-contact-form p:last-of-type {
    margin-bottom: 0;
}

/* Label 在 input 上方（参考 .form-group label） */
.topic-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

/* Inputs / Textarea / Select — 矮款样式 */
.topic-contact-form input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
.topic-contact-form textarea,
.topic-contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    display: block;
    margin-bottom: 0;
}
.topic-contact-form textarea {
    height: auto;
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

.topic-contact-form input::placeholder,
.topic-contact-form textarea::placeholder,
.topic-contact-form select::placeholder {
    color: #c5c5c5;
}

/* 提交按钮：全宽 */
.topic-contact-form input[type="submit"],
.topic-contact-form button[type="submit"] {
    width: 100%;
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    border-radius: 5px;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}
.topic-contact-form input[type="submit"]:hover,
.topic-contact-form button[type="submit"]:hover {
    opacity: 0.9;
}

/* CF7 specific overrides */
.topic-contact-form .wpcf7-form { margin: 0; }
.topic-contact-form .wpcf7-response-output { margin: 16px 0 0; }

@media (max-width: 1366px) {
    .topic-contact-title { font-size: 24px; }
    .topic-contact-desc { font-size: 14px; }
}

@media (max-width: 950px) {
    .topic-section--contact { padding: 50px 0 40px; }
    .topic-contact-inner { width: 100%; padding: 32px; }
}

/* === Specs Table === */
.topic-specs__note { font-size: 0.85rem; color: #888; margin-bottom: 1rem; }
.topic-specs-table-wrap { overflow: auto; -webkit-overflow-scrolling: touch;max-height: 500px; }
.topic-specs-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.topic-specs-table-wrap th { background-color: var(--color-primary, #1a1a2e); color: #fff; font-weight: 600; padding: 12px 16px; text-align: center; white-space: nowrap; }
.topic-specs-table-wrap td { padding: 10px 16px; border-bottom: 1px solid #eee; }
.topic-specs-table-wrap td[colspan] { background-color: #f5f5f5; font-weight: 600; text-align: left; }
.topic-specs-table-wrap td:first-child { font-weight: 500; color: #333; white-space: nowrap; }
.topic-specs-table-wrap tbody tr:hover { background-color: #fafafa; }
.topic-specs-table-wrap tbody tr:nth-child(even) { background-color: #fcfcfc; }
@media (max-width: 768px) {
    .topic-specs-table-wrap { margin: 0 -16px; }
    .topic-specs-table-wrap table { font-size: 13px; }
    .topic-specs-table-wrap th,
    .topic-specs-table-wrap td { padding: 8px 10px; }
    .topic-banner-slide__content{
        padding: 4rem 0 1rem;
    }
}
