/**
 * 企业宣传片触发器 + 视频弹层（首页、公司简介等共用）
 * 引用: index.html（直接 link）、about-company.html（经 about-company.css @import）
 */

/* —— 封面播放按钮 —— */
.about-company-video {
    width: 100%;
    max-width: 580px;
    justify-self: end;
}

.about-company-video__trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #0f3460;
    box-shadow: 0 8px 24px rgba(29, 81, 152, 0.18);
}

.about-company-video__trigger img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.about-company-video__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 52, 96, 0.35);
    transition: background 0.2s ease;
}

.about-company-video__play .bx {
    font-size: 56px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.about-company-video__trigger:hover .about-company-video__play,
.about-company-video__trigger:focus-visible .about-company-video__play {
    background: rgba(15, 52, 96, 0.5);
}

.about-company-video__caption {
    margin: 10px 0 0;
    font-size: 13px;
    color: #6c757d;
    text-align: center;
}

/* 首页侧栏：浅色说明文字 */
.home-about__side .about-company-video__caption {
    color: rgba(255, 255, 255, 0.75);
}

/* —— 视频弹层 —— */
.kh-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.kh-video-modal[hidden] {
    display: none !important;
}

.kh-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.kh-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

.kh-video-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kh-video-modal__close .bx {
    font-size: 28px;
    line-height: 1;
}

.kh-video-modal__body video {
    display: block;
    width: 100%;
    max-height: 80vh;
}

.kh-video-modal__message {
    padding: 32px 24px;
    text-align: center;
    color: #e2e8f0;
}

.kh-video-modal__message-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.kh-video-modal__message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.kh-video-modal__message code {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
