/*=============================================
 * special-exhibition.css - 专题展会页面样式
 * 7个专题展会共用，通过 CSS 变量切换配色
 * 首页 hero-banner 改红色背景，其他样式直接复用 home.css
 *=============================================*/

/* ===== 专题页根变量（默认红色主题 - ATME） ===== */
.special-page {
    --se-theme-primary: #cc061a;
    --se-theme-color: #c41e2a;
    --se-theme-dark: #a01822;
    --se-theme-light: #e0303c;
    --se-accent-color: #ffd700;
    --se-accent-text: #1a1a2e;
    --se-nav-bg: #cc061a;
    --se-hero-bg: #cc061a;
}

/* ===== 专题展会介绍区域 ===== */
.special-page .intro-section {
    background: #f7f7f8 url(../../zhjs_bg.png) no-repeat 47% 67%;
    background-size: 48%;
    padding: 100px 0;
}

.special-page .intro-image video,
.special-page .intro-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

/* ===== 专题展会介绍标题颜色 ===== */
.special-page .intro-section .highlight {
    color: #29415c;
}

/* ===== 展会介绍文字两端对齐 ===== */
.special-page .intro-text,
.special-page .intro-text p,
.special-page .intro-text div,
.special-page .intro-text li {
    text-align: justify;
}

/* 防御：介绍正文若含 &nbsp;/超长连续内容（无断点 run），允许在任意处断行，
   避免 grid 首列被 min-content 撑爆、把 .intro-image 视频/封面列压缩成 0 宽而不可见 */
.special-page .intro-text {
    min-width: 0;
}
.special-page .intro-text p,
.special-page .intro-text div,
.special-page .intro-text li {
    overflow-wrap: break-word;
    word-break: break-word;
}
.special-page .intro-image {
    min-width: 0;
}

/* ===== 中间 Banner 图 ===== */
.se-banner-section {
    background: #f5f5f7;
    padding: 0;
}

.se-banner-full {
    width: 100%;
    display: block;
}

/* Banner 跳转链接（后台配置 banner_link 后整图可点击） */
.se-banner-link {
    display: block;
    width: 100%;
    transition: opacity .25s ease;
}
.se-banner-link:hover {
    opacity: .9;
}
.se-banner-link:hover .se-banner-full {
    cursor: pointer;
}

/* ===== Scope of Exhibits ===== */
.se-scope-section {
    background: #f5f5f7;
    padding: 100px 0;
}

.scope-header {
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: visible;
}

.scope-header .bg-word {
    position: absolute;
    left: -10%;
    bottom: -20px;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(0,0,0,0.04);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    text-align: left;
}

.scope-header .bg-word-line {
    position: absolute;
    left: -10%;
    bottom: -20px;
    height: auto;
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

.scope-header .section-desc {
    font-size: 2.6rem;
    font-weight: 700;
    color: #29415c;
    letter-spacing: 1px;
    display: block;
    text-align: left;
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
}

.scope-header .section-desc::after {
    display: none;
}

.se-scope-grid {
    /* display: grid; */
    /* grid-template-columns: 1fr 1fr; */
    /* gap: 60px; */
}

.se-scope-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.se-scope-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 18px;
    font-size: 1rem;
    color: #0b243f;
    line-height: 1.5;
}

.se-scope-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid #0b243f;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* 展品范围两级列表：一级项 + 二级子项 */
.se-scope-list .scope-parent-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 18px;
    padding-left: 20px;
    list-style: none;
}
/* 一级：恢复原有小箭头样式 */
.se-scope-list .scope-parent-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid #0b243f;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
.se-scope-list .scope-parent-text {
    display: block;
    font-size: 1rem;
    color: #0b243f;
    margin-bottom: 10px;
}
/* 二级：缩进显示在一级下面 */
.se-scope-list .scope-child-item {
    display: block;
    position: relative;
    padding-left: 30px;
    font-size: 0.95rem;
    color: #0b243f;
    line-height: 1.5;
    margin-bottom: 9px;
}
.se-scope-list .scope-child-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0b243f;
}

/* ===== Renowned Exhibitors（覆盖首页样式） ===== */
.special-page .exhibitors-section {
    background: #f5f5f7;
    padding: 10px 0 100px;
}

.special-page .exhibitors-header .bg-word {
    color: rgba(0,0,0,0.04);
}

.special-page .exhibitors-header .bg-word-line {
    opacity: 0.6;
}

.special-page .exhibitors-header .section-desc {
    color: #29415c;
}

@media (max-width: 768px) {
    .se-scope-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .se-scope-header::before {
        font-size: 2rem;
    }
}

/* ===== 顶部工具栏 - 覆盖 header.css 背景色 ===== */
.special-page .header-toolbar {
    background: var(--se-hero-bg);
}

/* ===== Hero Banner - 整块大图背景（logo 与文字直接做进 banner 图内） ===== */
.special-page .hero-banner {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    aspect-ratio: 447 / 100;   /* 4.47:1，跟随 1920x430 设计图，桌面完整不裁图 */
    margin-top: 50px;          /* 从 header-toolbar（fixed 高50px）下方开始，整图完整露出不被遮挡 */
    margin-bottom: 0;
    padding-top: 0;            /* 覆盖 home.css 的 padding-top:50px */
    overflow: hidden;          /* 覆盖 home.css 的 margin-bottom:-36px 造成的溢出 */
}

/* 移动端：16:9 比例 + cover 居中裁剪，高度跟随宽度自适应（375宽→约210px），核心内容居中可见 */
@media (max-width: 768px) {
    .special-page .hero-banner {
        aspect-ratio: 16 / 9;
        background-position: center center;
    }
}

/* ===== 导航栏覆盖 ===== */
/* 8 个专题页导航栏统一为首页导航色 #103682（不再跟随各主题的 --se-nav-bg） */
.special-page .site-header {
    position: sticky;
    top: 50px;
    z-index: 999;
    background: #103682;
    border-top: 1px solid #fff;
}

/* ===== 专题内容区 ===== */
.se-page-main {
    padding-top: 0;
}

.se-section {
    padding: 60px 0;
}

.se-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.se-section-title {
    font-family: 'MiSans', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--se-theme-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.se-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--se-theme-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.se-section-desc {
    font-family: 'MiSans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== 主题配色覆盖（通过 body class 切换） ===== */

/* 紫色主题 - ACE */
.theme-purple {
    --se-theme-primary: #6a1bae;
    --se-hero-bg: #6a1bae;
    --se-nav-bg: #6a1bae;
}
.theme-purple .hero-banner::after {
    background: url('/static/images/sp_banner-bgpurple.png') no-repeat right center;
    background-size: auto 100%;
}

/* 绿色主题 - APE */
.theme-green {
    --se-theme-primary: #0d8e22;
    --se-hero-bg: #0d8e22;
    --se-nav-bg: #0d8e22;
}
.theme-green .hero-banner::after {
    background: url('/static/images/sp_banner-bggreen.png') no-repeat right center;
    background-size: auto 100%;
}

/* 棕色主题 - ASE */
.theme-brown {
    --se-theme-primary: #a38b43;
    --se-hero-bg: #a38b43;
    --se-nav-bg: #a38b43;
}
.theme-brown .hero-banner::after {
    background: url('/static/images/sp_banner-bgbrown.png') no-repeat right center;
    background-size: auto 100%;
}

/* 灰银渐变主题 - ALE */
.theme-silver {
    --se-theme-primary: #a4b4c3;
    --se-hero-bg: linear-gradient(to right, #a4b4c3, #d4dce2);
    --se-nav-bg: #a4b4c3;
}
.theme-silver .hero-banner::after {
    background: url('/static/images/sp_banner-bgsilver-gray.png') no-repeat right center;
    background-size: auto 100%;
}

/* 蓝色主题 - ATE */
.theme-blue {
    --se-theme-primary: #2671dc;
    --se-hero-bg: #2671dc;
    --se-nav-bg: #2671dc;
}
.theme-blue .hero-banner::after {
    background: url('/static/images/sp_banner-bgblue.png') no-repeat right center;
    background-size: auto 100%;
}

/* 灰色主题 - AME */
.theme-gray {
    --se-theme-primary: #78899a;
    --se-hero-bg: #78899a;
    --se-nav-bg: #78899a;
}
.theme-gray .hero-banner::after {
    background: url('/static/images/sp_banner-bggray.png') no-repeat right center;
    background-size: auto 100%;
}

/* 深蓝主题 - Robotics */
.theme-navy {
    --se-theme-primary: #0a2463;
    --se-hero-bg: #0a2463;
    --se-nav-bg: #0a2463;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .special-page .hero-bottom {
        height: auto;
        padding: 12px 0;
    }

    .special-page .hero-bottom-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .special-page .hero-btn {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .se-section {
        padding: 40px 0;
    }

    .se-section-title {
        font-size: 1.6rem;
    }
}
