/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    overflow-anchor: none; /* 禁用滚动锚定：防止视频展开时页面自动下滚 */
}
body {
    font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", "Microsoft Yahei", Georgia, serif;
    background: #f0f1f3;
    color: #2c2c2c;
    line-height: 1.9;
    font-size: 19px;
    -webkit-font-smoothing: antialiased;
}

/* ===== 顶部装饰线 ===== */
.top-line {
    height: 3px;
    background: linear-gradient(90deg, #c0392b, #e74c3c, #c0392b);
}

/* ===== 文章头部 ===== */
.article-header {
    background-image: url('images/555.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 48px 24px 32px;
    text-align: center;
    position: relative;
}
.article-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #c0392b;
    border-radius: 2px;
}
.company-name {
    margin-bottom: 24px;
}
.company-cn {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 4px;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}
.company-en {
    display: block;
    font-size: 16px;
    color: #aaa;
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
}
.article-title {
    font-size: 26px;
    color: #1a1a1a;
    font-weight: 700;
    margin: 20px auto 24px;
    line-height: 1.5;
    max-width: 640px;
    letter-spacing: 1px;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}
.article-meta {
    font-size: 16px;
    color: #999;
    letter-spacing: 0.5px;
    padding-top: 4px;
}
.article-meta span {
    margin: 0 10px;
    position: relative;
}
.article-meta span::before {
    content: '|';
    margin-right: 10px;
    color: #ddd;
}
.article-meta span:first-child::before {
    display: none;
}

/* ===== 主内容区 ===== */
.main {
    position: relative;
    z-index: 0;
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 32px 60px;
    background: #fff;
}
.main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('images/888.png') center top repeat-y;
    background-size: 100% auto;
    opacity: 1;
    pointer-events: none;
    z-index: -1;
}

/* ===== 引言文字 ===== */
.intro-text {
    margin-bottom: 40px;
    padding: 28px 0 32px;
    border-bottom: 1px dashed #ddd;
    position: relative;
}
.intro-text p {
    margin: 10px 0;
    color: #444;
    text-indent: 2em;
}
.intro-highlight {
    color: #c0392b !important;
    font-weight: 700;
    text-align: center;
    font-size: 20px;
    text-indent: 0 !important;
    letter-spacing: 1px;
    position: relative;
    padding: 0 20px;
}
.intro-highlight::before,
.intro-highlight::after {
    content: '—';
    color: #ddd;
    margin: 0 8px;
}

/* ===== 方法区块 ===== */
.trap-section {
    margin-bottom: 44px;
}
.trap-header {
    font-size: 21px;
    color: #c0392b;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.6;
    padding-left: 16px;
    border-left: 3px solid #c0392b;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    letter-spacing: 0.5px;
}
.trap-body p {
    margin: 10px 0;
    color: #3a3a3a;
    font-size: 19px;
    text-indent: 2em;
    line-height: 2;
}
.trap-body strong {
    color: #1a1a1a;
    font-weight: 700;
    text-indent: 0;
    display: inline;
}
.trap-body p strong {
    text-indent: 0;
}
.trap-body strong.trap-label {
    color: #c0392b;
}
.trap-body p.truth-title {
    color: #c0392b;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-indent: 0;
    text-align: center;
    margin: 22px 0 10px;
    line-height: 1.8;
}
/* 让 strong 行不缩进 */
.trap-body p:has(> strong:first-child) {
    text-indent: 0;
}
.highlight-red {
    color: #c0392b !important;
    font-size: 23px !important;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 18px 0 8px !important;
    text-indent: 0 !important;
    text-align: center;
    display: block;
}

/* ===== 分隔装饰 ===== */
.section-divider {
    text-align: center;
    margin: 40px 0;
    color: #ddd;
    font-size: 16px;
    letter-spacing: 12px;
    user-select: none;
}

/* ===== 视频模块 ===== */
.video-module {
    margin: 36px 0;
    text-align: center;
}
.video-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}
.video-wrapper.is-playing {
    aspect-ratio: 9 / 16;
}
.video-module video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.fullscreen-btn {
    position: absolute;
    bottom: 50px;
    right: 14px;
    z-index: 1;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.fullscreen-btn:hover {
    background: rgba(0,0,0,0.8);
}
.video-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-wrapper.is-playing .video-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.video-play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    pointer-events: none; /* 点击事件交给 .video-cover，避免按钮本身拦截 */
}
.video-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

/* ===== 视频+图片2x2网格模块 ===== */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 36px 0;
}
.media-grid-item {
    min-width: 0;
}
.media-grid-item video,
.media-grid-item img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.media-grid-item .video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}
.media-grid-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .media-grid-item img {
        max-width: 60%;
        margin: 0 auto;
        display: block;
    }
}

/* ===== 图片模块 ===== */
.image-module {
    margin: 36px 0;
}
.image-module img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

/* ===== 结语区块 ===== */
.conclusion-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #c0392b;
    position: relative;
}
.conclusion-section::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #c0392b;
    border-radius: 50%;
}
.conclusion-img {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}
.conclusion-img img {
    flex: 1 1 0;
    max-width: calc(50% - 8px);
    aspect-ratio: 9 / 16;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    background: #fff;
}

/* ===== 图片点击放大（灯箱） ===== */
#lightboxOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    cursor: zoom-out;
    -webkit-tap-highlight-color: transparent;
}
#lightboxOverlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
}
#lightboxOverlay img {
    max-width: 96vw;
    max-height: 96vh;
    object-fit: contain;
    border-radius: 4px;
}
.img-zoomable {
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease;
}
.img-zoomable:active {
    transform: scale(0.97);
}

/* ===== 底部 ===== */
.footer {
    border-top: 1px solid #e8e8e8;
}
.footer-beian {
    text-align: center;
    padding: 28px 20px;
    color: #bbb;
    font-size: 16px;
    background: #fafafa;
    letter-spacing: 1px;
    font-family: "Georgia", "Times New Roman", serif;
}

/* ===== 返回顶部按钮 ===== */
.back-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #c0392b;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    z-index: 99;
    align-items: center;
    justify-content: center;
}
.back-top:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(192,57,43,0.3);
}

/* ===== 手机适配 ===== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.8;
    }
    .video-play-btn {
        width: 52px;
        height: 52px;
    }
    .video-play-btn svg {
        width: 22px;
        height: 22px;
    }
    .article-header {
        padding: 24px 16px 18px;
    }
    .company-name {
        margin-bottom: 12px;
    }
    .company-cn {
        font-size: 20px;
        letter-spacing: 1px;
        line-height: 1.4;
    }
    .company-en {
        font-size: 11px;
        margin-top: 4px;
        letter-spacing: 0.5px;
    }
    .article-title {
        font-size: 18px;
        margin: 12px auto 14px;
        line-height: 1.5;
        letter-spacing: 0.5px;
    }
    .article-meta {
        font-size: 12px;
        padding-top: 2px;
    }
    .article-meta span {
        display: inline-block;
        margin: 2px 5px;
        font-size: 12px;
    }
    .article-meta span::before {
        display: none;
    }
    .main {
        padding: 20px 14px 28px;
    }
    .intro-text {
        padding: 16px 0 18px;
        margin-bottom: 24px;
    }
    .intro-text p {
        font-size: 15px;
    }
    .intro-highlight {
        font-size: 16px;
        padding: 0 12px;
        letter-spacing: 0.5px;
    }
    .trap-section {
        margin-bottom: 26px;
    }
    .trap-header {
        font-size: 18px;
        padding-left: 10px;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    .trap-body p {
        font-size: 15px;
        line-height: 1.85;
        margin: 8px 0;
    }
    .trap-body p.truth-title {
        font-size: 17px;
        margin: 14px 0 8px;
        letter-spacing: 0.1em;
    }
    .highlight-red {
        font-size: 17px !important;
        letter-spacing: 1px;
    }
    .section-divider {
        margin: 24px 0;
        font-size: 14px;
        letter-spacing: 8px;
    }
    .video-module,
    .media-grid {
        margin: 20px 0;
    }
    .back-top {
        bottom: 18px;
        right: 14px;
        width: 36px;
        height: 36px;
    }
    .conclusion-img {
        gap: 8px;
    }
    .footer-beian {
        font-size: 13px;
        padding: 16px 14px;
    }
}
