/* ifa.css - 验厂模块专用样式 */
.verify-module-simple * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.verify-module-simple {
    background: #ffffff;
}
.hero-simple {
    background: linear-gradient(135deg, #0b3b3f 0%, #1b6b6b 100%);
    padding: 2rem;
    color: white;
}
.hero-simple h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.hero-simple .sub {
    font-size: 0.95rem;
    opacity: 0.9;
    border-left: 3px solid #ffcd7e;
    padding-left: 1rem;
    margin: 0.5rem 0 1rem;
    color: #f8f9fa !important;
}
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.badge-list span {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    color: white !important;
}
.content-simple {
    padding: 2rem;
}
.two-col-simple {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.8rem;
    margin-bottom: 2rem;
}
.core-card-simple {
    background: #fefcf5;
    border-radius: 1.5rem;
    padding: 1.4rem;
    border: 1px solid #eef2f9;
}
.core-card-simple h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b6b6b;
    border-left: 4px solid #1b6b6b;
    padding-left: 0.8rem;
    margin-bottom: 1rem;
}
.info-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e9edf2;
}
.info-label {
    width: 110px;
    font-weight: 600;
    color: #2c5a6e;
}
.info-value {
    flex: 1;
    color: #1f3b46;
}
.info-value .code-line {
    display: block;
    line-height: 1.6;
}
.valid-note {
    background: #eef3fc;
    border-radius: 30px;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    display: inline-block;
    margin-top: 0.8rem;
}
.dim-card-simple {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.4rem;
    border: 1px solid #eef2f9;
}
.dim-card-simple h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b6b6b;
    margin-bottom: 1rem;
}
.dim-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.dim-item {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f7fb;
    padding-bottom: 0.5rem;
}
.dim-num {
    font-weight: 700;
    color: #1b6b6b;
    min-width: 28px;
}
/* 工商信息卡片样式 */
.business-card-simple {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.4rem;
    border: 1px solid #eef2f9;
    margin-bottom: 1.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.business-card-simple h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b6b6b;
    border-left: 4px solid #1b6b6b;
    padding-left: 0.8rem;
    margin-bottom: 1rem;
}
.business-card-simple .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
}
.business-card-simple .info-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0.4rem 0;
    border-bottom: none;
    align-items: baseline;
}
.business-card-simple .info-label {
    width: 110px;
    font-weight: 600;
    color: #2c5a6e;
    flex-shrink: 0;
}
.business-card-simple .info-value {
    flex: 1;
    color: #1f3b46;
}
.section-sub {
    font-size: 1rem;
    font-weight: 600;
    color: #2c5a6e;
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #eef2f9;
}
.section-sub:first-of-type {
    margin-top: 0;
}
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.tag {
    background: #eff6f8;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #1b6b6b;
}
.license-link {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0 0.5rem;
}
.btn-outline-sm {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #cbdde9;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    color: #1b6b6b;
    text-decoration: none;
    transition: 0.2s;
}
.btn-outline-sm:hover {
    background: #eef3fc;
    border-color: #9bb7c8;
}
.agency-box-simple {
    background: #f8fafd;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 1.8rem 0;
    border: 1px solid #e2edf2;
}
.agency-box-simple h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b6b6b;
    margin-bottom: 1rem;
}
.agency-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}
.agency-item {
    background: white;
    border-radius: 1.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid #eef2f8;
}
.agency-item strong {
    display: block;
    font-size: 1rem;
    color: #166b5e;
    margin-bottom: 0.3rem;
}
.agency-item p {
    font-size: 0.8rem;
    color: #2a5b6e;
    line-height: 1.4;
}
/* 工厂/设备展厅区域样式 */
.strength-gallery {
    margin: 2rem 0 1.8rem;
}
.gallery-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b6b6b;
    border-left: 4px solid #1b6b6b;
    padding-left: 0.8rem;
    margin-bottom: 1.2rem;
}
.gallery-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
}
.gallery-scroll::-webkit-scrollbar {
    height: 6px;
    background: #e9edf2;
    border-radius: 10px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
    background: #bdd3e0;
    border-radius: 10px;
}
.gallery-track {
    display: flex;
    gap: 1.2rem;
    width: fit-content;
}
.gallery-item {
    flex: 0 0 auto;
    width: 190px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #eef2f8;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.12);
    border-color: #d0e2ef;
}
.gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #f5f9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover .gallery-img img {
    transform: scale(1.03);
}
.gallery-caption {
    padding: 0.7rem 0.5rem 0.9rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #2c5e6e;
    border-top: 1px solid #f0f4fa;
    background: #ffffff;
    white-space: normal;
    word-break: keep-all;
}
@media (max-width: 640px) {
    .gallery-item {
        width: 160px;
    }
    .gallery-caption {
        font-size: 0.7rem;
        padding: 0.5rem 0.3rem;
    }
    .business-card-simple .info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .business-card-simple .info-label {
        width: 100%;
        margin-bottom: 4px;
    }
    .business-card-simple .info-row {
        flex-direction: column;
        margin-bottom: 0.5rem;
    }
}
.reports-row-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0 1.5rem;
}
.report-card-simple {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid #eef2f9;
    overflow: hidden;
    transition: 0.2s;
}
.report-card-simple:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px -12px rgba(0,0,0,0.1);
}
.report-img {
    background: #fafcff;
    text-align: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #eff2f7;
}
.report-img img {
    width: 100%;
    height: auto;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.report-body {
    padding: 1.2rem 1.5rem 1.8rem;
}
.report-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1c6f62;
    margin-bottom: 0.2rem;
}
.report-meta {
    font-size: 0.7rem;
    color: #6f8eaa;
    margin-bottom: 1rem;
    border-left: 2px solid #cbdde9;
    padding-left: 0.6rem;
}
.btn-down-simple {
    display: inline-block;
    background: #1c7a6e;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: 0.2s;
}
.btn-down-simple:hover {
    background: #0f5f54;
}
.value-block-simple {
    background: #fef6e6;
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    font-size: 0.85rem;
    margin: 1rem 0;
    border-left: 4px solid #f0b429;
    color: #5a4a2a;
}
.contact-footer-simple {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #eef2f9;
    padding-top: 1.2rem;
    color: #5e7e97;
}
.contact-footer-simple a {
    color: #1c7a6e;
    text-decoration: none;
}
@media (max-width: 760px) {
    .two-col-simple {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .reports-row-simple {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero-simple h1 {
        font-size: 1.5rem;
    }
    .content-simple {
        padding: 1.2rem;
    }
}
@media (max-width: 480px) {
    .info-label {
        width: 100%;
        margin-bottom: 4px;
    }
    .info-row {
        flex-direction: column;
    }
}

/* ========== ifa.css 新增/修正：视频栏目样式 ========== */

/* 视频栏目整体容器 */
.video-section-simple {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 24px 28px 20px;
    margin-bottom: 24px;
    border: 1px solid #f0efe9;
    transition: box-shadow 0.3s ease;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    font-family: system-ui, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.video-section-simple:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

/* 视频栏目头部 */
.video-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.video-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #3d3929;
    letter-spacing: 0.02em;
}

.video-title-icon {
    color: #c49b4a;
    flex-shrink: 0;
}

.video-section-badge {
    font-size: 0.8rem;
    color: #8b7e5c;
    background: #faf7ef;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* 视频播放器包装器 */
.video-player-wrapper {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a1a;
    /* 16:9 宽高比 */
    aspect-ratio: 16 / 9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 兼容不支持 aspect-ratio 的浏览器 */
@supports not (aspect-ratio: 16 / 9) {
    .video-player-wrapper {
        padding-bottom: 56.25%;
        height: 0;
    }

    .video-player-wrapper video,
    .video-player-wrapper .factory-video,
    .video-player-wrapper .edui-upload-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* 视频元素 —— 同时匹配 .factory-video 与 edui-upload-video 等类名 */
.video-player-wrapper video,
.video-player-wrapper .factory-video,
.video-player-wrapper .edui-upload-video,
.video-player-wrapper .video-js {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    outline: none;
    margin: 0;
    /* 重置可能的 video.js 默认样式 */
    background: #1a1a1a;
}

/* 确保 video.js 皮肤不破坏布局 */
.video-player-wrapper .vjs-default-skin,
.video-player-wrapper .video-js {
    padding: 0;
    font-size: inherit;
}

.video-player-wrapper .vjs-poster {
    border-radius: 14px;
    background-size: cover;
}

/* 自定义中央播放按钮 */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(196, 155, 74, 0.88);
    border: 3px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: videoPulse 2.4s ease-in-out infinite;
    /* 确保在 video.js 控件之上 */
    pointer-events: auto;
}

.video-play-btn:hover {
    background: rgba(196, 155, 74, 1);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.video-play-btn:active {
    transform: translate(-50%, -50%) scale(0.96);
}

/* 播放按钮脉冲动画 */
@keyframes videoPulse {
    0%,
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(196, 155, 74, 0.5);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 18px rgba(196, 155, 74, 0);
    }
}

/* 视频播放中隐藏中央播放按钮 */
.video-player-wrapper.is-playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

/* 更换视频按钮 */
.video-change-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    pointer-events: auto;
}

.video-change-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.video-change-btn:active {
    transform: scale(0.95);
}

.video-change-btn svg {
    flex-shrink: 0;
}

/* 上传状态提示Toast */
.video-upload-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 30;
    padding: 12px 22px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    pointer-events: none;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.video-upload-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-upload-toast.success {
    background: #e8f5e9;
    color: #2e7d32;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.2);
}

.video-upload-toast.error {
    background: #fce4ec;
    color: #c62828;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.2);
}

.video-upload-toast.loading {
    background: #fff3e0;
    color: #e65100;
    box-shadow: 0 4px 16px rgba(230, 81, 0, 0.2);
}

/* 视频信息条 */
.video-info-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 0 4px;
    font-size: 0.8rem;
    color: #8b7e5c;
    letter-spacing: 0.03em;
}

.video-info-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c49b4a;
    flex-shrink: 0;
    animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .video-section-simple {
        padding: 16px 14px 14px;
        border-radius: 16px;
    }

    .video-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 12px;
    }

    .video-section-title {
        font-size: 0.95rem;
    }

    .video-section-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .video-player-wrapper {
        border-radius: 12px;
    }

    .video-player-wrapper video,
    .video-player-wrapper .factory-video,
    .video-player-wrapper .edui-upload-video,
    .video-player-wrapper .video-js {
        border-radius: 12px;
    }

    .video-player-wrapper .vjs-poster {
        border-radius: 12px;
    }

    .video-play-btn {
        width: 48px;
        height: 48px;
    }

    .video-play-btn svg {
        width: 22px;
        height: 22px;
    }

    .video-change-btn {
        bottom: 8px;
        right: 8px;
        padding: 6px 10px;
        font-size: 0.7rem;
        gap: 3px;
        border-radius: 18px;
    }

    .video-change-btn svg {
        width: 14px;
        height: 14px;
    }

    .video-upload-toast {
        font-size: 0.75rem;
        padding: 10px 16px;
        border-radius: 20px;
    }

    .video-info-bar {
        font-size: 0.72rem;
        gap: 6px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .video-section-simple {
        padding: 12px 10px 10px;
        border-radius: 14px;
    }

    .video-player-wrapper {
        border-radius: 10px;
    }

    .video-player-wrapper video,
    .video-player-wrapper .factory-video,
    .video-player-wrapper .edui-upload-video,
    .video-player-wrapper .video-js {
        border-radius: 10px;
    }

    .video-player-wrapper .vjs-poster {
        border-radius: 10px;
    }

    .video-play-btn {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .video-play-btn svg {
        width: 18px;
        height: 18px;
    }

    .video-change-btn span {
        display: none;
    }

    .video-change-btn {
        padding: 7px 9px;
        border-radius: 50%;
        bottom: 8px;
        right: 8px;
    }

    .video-change-btn svg {
        width: 15px;
        height: 15px;
    }
}

/* 播放状态下隐藏中央按钮 */
.video-player-wrapper.is-playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

/* 其他样式保持不变（参考之前提供的完整CSS） */

/* B站iframe适配 */
.video-player-wrapper iframe {
    border: none;
    border-radius: 14px;
    background: #000;
}

/* 兼容不支持aspect-ratio的设备 */
@supports not (aspect-ratio: 16 / 9) {
    .video-player-wrapper {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
    }
    .video-player-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}