/* 官网视频模块独立样式：视频列表/详情、播放列表/合集详情与播放器公共片段。
   横幅、面包屑、分页复用产品页既有组件（.pl-banner/.pl-crumbs/.pl-pager），
   此处只放 .vg-*（视频列表卡）、.vp-*（播放器）、.vd-*（视频详情）、
   .vpl-*（播放列表与合集详情）前缀的数值。
   方向属性全部使用逻辑属性（margin-inline / padding-inline / inset-inline），
   Arabic RTL 下由 dir="rtl" 自动镜像，无需单独规则。 */

/* ============ 播放器（fragments/public/player.html） ============ */
.vp {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a1a26;
    border-radius: 10px;
    overflow: hidden;
}
.vp__stage, .vp__facade {
    position: absolute;
    inset: 0;
}
.vp__video, .vp__facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    background: #0a1a26;
}
.vp__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vp__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.vp__play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}
.vp__play:hover .vp__play-btn { transform: scale(1.06); }
.vp__play-btn svg { fill: var(--site-primary-deep); margin-inline-start: 3px; }
.vp__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    background: linear-gradient(135deg, #123a55, #0e5a85 60%, #1a72ab);
}

/* ============ 视频列表页 ============ */
.vg-main {
    max-width: 1366px;
    margin: 0 auto;
    padding: 16px 24px 76px;
}
.vg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.vg-chip {
    border: 1px solid var(--site-neutral-200);
    color: var(--site-neutral-700);
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    transition: 0.15s;
}
.vg-chip:hover { border-color: var(--site-tint-300); color: var(--site-primary-hover); }
.vg-chip.is-current {
    background: var(--site-primary);
    border-color: var(--site-primary);
    color: #fff;
}
.vg-chip__count {
    font-weight: 400;
    opacity: 0.65;
    margin-inline-start: 4px;
}
.vg-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--site-neutral-500);
    margin-bottom: 18px;
}
.vg-filter__name { color: var(--site-primary-hover); font-weight: 600; }
.vg-filter__clear {
    color: var(--site-neutral-400);
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    padding: 2px 6px;
}
.vg-filter__clear:hover { color: var(--site-primary); }

.vg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.vg-card {
    border: 1px solid var(--site-neutral-200);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: 0.15s;
}
.vg-card:hover {
    border-color: var(--site-tint-300);
    box-shadow: 0 6px 18px rgba(10, 58, 92, 0.08);
}
.vg-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #123a55, #0e5a85 60%, #1a72ab);
    overflow: hidden;
}
.vg-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vg-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vg-card__play span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.vg-card__play svg { fill: var(--site-primary-deep); margin-inline-start: 2px; }
.vg-card__dur {
    position: absolute;
    inset-inline-end: 8px;
    inset-block-end: 8px;
    background: rgba(10, 30, 45, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: Consolas, monospace;
}
.vg-card__src {
    position: absolute;
    inset-inline-start: 8px;
    inset-block-start: 8px;
    background: rgba(10, 30, 45, 0.72);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.vg-card__body { padding: 12px 14px 14px; }
.vg-card__title {
    font-size: 14px;
    color: var(--site-neutral-900);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.vg-card__title a { color: inherit; text-decoration: none; }
.vg-card__title a:hover { color: var(--site-primary-hover); }
.vg-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--site-neutral-400);
}
.vg-card__cat { color: var(--site-primary-hover); font-weight: 600; }
.vg-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--site-neutral-400);
    font-size: 13.5px;
}

/* ============ 视频详情页 ============ */
.vd-main {
    max-width: 1366px;
    margin: 0 auto;
    padding: 20px 24px 76px;
}
.vd-title {
    font-size: 22px;
    color: var(--site-neutral-900);
    margin: 16px 0 6px;
    line-height: 1.4;
}
.vd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--site-neutral-400);
    padding-block-end: 14px;
    border-block-end: 1px solid var(--site-neutral-200);
}
.vd-meta__cat { color: var(--site-primary-hover); font-weight: 600; text-decoration: none; }
.vd-meta__cat:hover { text-decoration: underline; }
.vd-sec {
    font-size: 16px;
    color: var(--site-neutral-900);
    margin: 22px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vd-sec::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--site-primary);
}
.vd-body {
    font-size: 13.5px;
    color: var(--site-neutral-700);
    line-height: 1.9;
}
.vd-body p { margin: 0 0 8px; }
/* 关联产品卡：三列网格，与产品列表卡同款结构。 */
.vd-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.vd-product {
    border: 1px solid var(--site-neutral-200);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
}
.vd-product__img {
    width: 58px;
    height: 58px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--site-tint-100), var(--site-tint-300));
    flex: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vd-product__img img { width: 100%; height: 100%; object-fit: cover; }
.vd-product__name {
    font-size: 12.5px;
    color: var(--site-neutral-900);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vd-product__model {
    font-size: 11px;
    color: var(--site-neutral-400);
    font-family: Consolas, monospace;
    margin-top: 2px;
}
.vd-product__link {
    font-size: 11.5px;
    color: var(--site-primary);
    font-weight: 700;
    margin-top: 3px;
    display: inline-block;
    text-decoration: none;
}
.vd-product__link:hover { text-decoration: underline; }
/* 询盘 CTA：复用联系页/关于页同款深色渐变横幅（--site-gradient-panel）。 */
.vd-cta {
    background: var(--site-gradient-panel);
    border-radius: 12px;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 22px;
}
.vd-cta__text { flex: 1; }
.vd-cta__title { color: #fff; font-size: 18px; margin: 0; }
.vd-cta__desc { color: #b9cdd3; font-size: 12.5px; margin-top: 6px; }
.vd-cta__acts { display: flex; gap: 14px; flex: none; }
.vd-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 26px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.vd-cta__btn--pri { background: var(--site-primary); color: #fff; }
.vd-cta__btn--pri:hover { background: var(--site-primary-mid); }
.vd-cta__btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; }
.vd-cta__btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
/* 相关视频：三列小卡。 */
.vd-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.vd-related__item .vg-card__media { border-radius: 8px; }
.vd-related__title {
    font-size: 12.5px;
    color: var(--site-neutral-900);
    margin: 8px 0 0;
    line-height: 1.5;
}
.vd-related__title a { color: inherit; text-decoration: none; }
.vd-related__title a:hover { color: var(--site-primary-hover); }

/* ============ 播放列表页 ============ */
.vpl-main {
    max-width: 1366px;
    margin: 0 auto;
    padding: 16px 24px 76px;
}
.vpl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.vpl-card {
    border: 1px solid var(--site-neutral-200);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: 0.15s;
}
.vpl-card:hover {
    border-color: var(--site-tint-300);
    box-shadow: 0 6px 18px rgba(10, 58, 92, 0.08);
}
.vpl-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #123a55, #0e5a85 60%, #1a72ab);
    overflow: hidden;
}
.vpl-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vpl-card__count {
    position: absolute;
    inset-inline-start: 8px;
    inset-block-start: 8px;
    background: rgba(10, 30, 45, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 4px;
}
.vpl-card__total {
    position: absolute;
    inset-inline-end: 8px;
    inset-block-end: 8px;
    background: rgba(10, 30, 45, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: Consolas, monospace;
}
.vpl-card__body { padding: 12px 14px 14px; }
.vpl-card__title {
    font-size: 14px;
    color: var(--site-neutral-900);
    margin: 0;
    line-height: 1.5;
}
.vpl-card__title a { color: inherit; text-decoration: none; }
.vpl-card__title a:hover { color: var(--site-primary-hover); }
.vpl-card__summary {
    font-size: 12px;
    color: var(--site-neutral-500);
    margin-top: 5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ 合集详情页 ============ */
.vd-detail {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 20px;
    align-items: start;
}
.vpl-current__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--site-neutral-900);
    margin-block-end: 8px;
}
.vpl-side {
    border: 1px solid var(--site-neutral-200);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.vpl-side__hd {
    padding: 12px 14px;
    border-block-end: 1px solid var(--site-neutral-200);
}
.vpl-side__title { font-size: 14px; font-weight: 700; color: var(--site-neutral-900); }
.vpl-side__sub { font-size: 11.5px; color: var(--site-neutral-400); margin-top: 2px; }
.vpl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-block-end: 1px solid #f0f3f7;
    font-size: 12.5px;
    color: var(--site-neutral-700);
    cursor: pointer;
}
.vpl-item:last-child { border-block-end: 0; }
.vpl-item:hover { background: var(--site-tint-50); }
.vpl-item.is-current { background: var(--site-tint-50); }
.vpl-item__no {
    width: 18px;
    text-align: center;
    font-family: Consolas, monospace;
    font-size: 11.5px;
    color: var(--site-neutral-400);
    flex: none;
}
.vpl-item.is-current .vpl-item__no { color: var(--site-primary); font-weight: 700; }
.vpl-item__thumb {
    width: 64px;
    height: 38px;
    border-radius: 4px;
    flex: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #123a55, #0e5a85);
}
.vpl-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vpl-item__dur {
    position: absolute;
    inset-inline-end: 3px;
    inset-block-end: 3px;
    background: rgba(10, 30, 45, 0.85);
    color: #fff;
    font-size: 9px;
    padding: 0 4px;
    border-radius: 2px;
    font-family: Consolas, monospace;
}
.vpl-item__name {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vpl-item.is-current .vpl-item__name { color: var(--site-primary-deep); font-weight: 600; }
.vpl-item__now {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--site-primary);
    border-radius: 3px;
    padding: 1px 6px;
    flex: none;
}
.vpl-autoplay {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--site-neutral-600);
    margin-top: 12px;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .vg-grid, .vpl-grid, .vd-products, .vd-related { grid-template-columns: repeat(2, 1fr); }
    .vd-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .vg-grid, .vpl-grid, .vd-products, .vd-related { grid-template-columns: 1fr; }
    .vd-cta { flex-direction: column; align-items: flex-start; }
    .vg-main, .vpl-main, .vd-main { padding: 12px 16px 56px; }
}

/* ============ 首页视频模块（fragments/home/videos.html，与 News 模块同构） ============ */
.public-videos {
    background: #fff;
    padding: 56px 0 42px;
    position: relative;
}
.public-videos__inner {
    width: min(1270px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
}
.public-videos__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}
.public-videos__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--site-primary-hover);
    text-transform: uppercase;
}
.public-videos__title {
    margin: 6px 0 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 44px;
    color: #323232;
}
.public-videos__desc {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 24px;
    color: #646464;
    max-width: 640px;
}
/* View All 按钮：48 高描边胶囊，hover 填充主色（与 News 模块同款）。 */
.public-videos__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 28px;
    border: 1px solid var(--site-primary);
    border-radius: 24px;
    color: var(--site-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s;
}
.public-videos__all:hover { background: var(--site-primary); color: #fff; }
.public-videos__chevron { font-size: 13px; }
.public-videos__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.public-videos__card {
    width: calc((100% - 48px) / 3);
    margin-inline-end: 24px;
    margin-block-end: 24px;
}
.public-videos__card:nth-child(3n) { margin-inline-end: 0; }
.public-videos__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-decoration: none;
    color: #323232;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.public-videos__link:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}
.public-videos__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #123a55, #0e5a85 60%, #1a72ab);
    overflow: hidden;
}
.public-videos__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.public-videos__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.public-videos__play span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.public-videos__play svg { fill: var(--site-primary-deep); margin-inline-start: 2px; }
.public-videos__dur {
    position: absolute;
    inset-inline-end: 8px;
    inset-block-end: 8px;
    background: rgba(10, 30, 45, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: Consolas, monospace;
}
.public-videos__src {
    position: absolute;
    inset-inline-start: 8px;
    inset-block-start: 8px;
    background: rgba(10, 30, 45, 0.72);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.public-videos__card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    padding: 12px 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.public-videos__link:hover .public-videos__card-title { color: var(--site-primary); }
.public-videos__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 14px;
    font-size: 12px;
    line-height: 18px;
    color: #969696;
}
.public-videos__cat { color: var(--site-primary-hover); font-weight: 600; }

/* 首页视频模块响应式：≤1180 两列、≤920 头部纵排、≤640 单列（与 News 模块同断点）。 */
@media screen and (max-width: 1180px) {
    .public-videos__card { width: calc((100% - 24px) / 2); }
    .public-videos__card:nth-child(3n) { margin-inline-end: 24px; }
    .public-videos__card:nth-child(2n) { margin-inline-end: 0; }
}
@media screen and (max-width: 920px) {
    .public-videos__head { flex-direction: column; align-items: flex-start; }
}
@media screen and (max-width: 640px) {
    .public-videos { padding: 36px 0 28px; }
    .public-videos__card { width: 100%; margin-inline-end: 0; }
    .public-videos__card:nth-child(3n) { margin-inline-end: 0; }
    .public-videos__title { font-size: 26px; line-height: 36px; }
}
