/**
* home.css
* 首页
* 作者：莫哥
* 日期：2026/06/01
* 版本：1.0.0
*/
.hero-video {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}
.hero-video-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
.hero-video-item.active {
    opacity: 1;
    z-index: 2;
}

/* =========================================================
 * 核心修改：遮罩文字容器与动画
 * ========================================================= */
.hero-overlay {
    position: absolute;
    bottom: 2%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    pointer-events: none;
    z-index: 10;
}

/* 包裹层：负责整体向下滑走动画 (10秒循环) */
.overlay-content {
    display: inline-block;
    animation: containerDrop 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* 主标题：从左侧滑入 + 香槟色铂金流光效果 */
.overlay-content h1 {
    font-size: 1.88rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 5px;
    
    /* ===== 香槟色铂金渐变文字 ===== */
    /* 白(铂金) -> 浅香槟 -> 银灰(铂金) -> 亮金(香槟) -> 白 */
    background: linear-gradient(90deg, #ffffff, #f7e7a8, #d7d7d7, #f5d76e, #ffffff);
    background-size: 200% auto; /* 放大背景以实现流光滚动 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none; /* 清除父级阴影，防止透明字发黑 */
    
    /* 同时执行：滑入动画 + 流光动画 */
    animation: 
        slideFromLeft 10s infinite cubic-bezier(0.25, 1, 0.5, 1),
        shine 4s linear infinite;
}

/* 副标题：从右侧滑入 + 香槟色铂金流光效果 */
.overlay-content p {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0;
    
    /* ===== 香槟色铂金渐变文字 (稍暗，增加层次感) ===== */
    background: linear-gradient(90deg, #f0f0f0, #e8cf8e, #e0e0e0, #c9a227, #f0f0f0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    
    /* 同时执行：滑入动画 + 流光动画 */
    animation: 
        slideFromRight 10s infinite cubic-bezier(0.25, 1, 0.5, 1),
        shine 4s linear infinite;
}

/* =========================================================
 * 动画时间轴定义
 * ========================================================= */

/* 整体下沉消失动画 (10秒周期) */
@keyframes containerDrop {
    0%, 60% {
        transform: translateY(0);
        opacity: 1;
    }
    70%, 100% {
        transform: translateY(150px);
        opacity: 0;
    }
}

/* 主标题从左侧滑入 */
@keyframes slideFromLeft {
    0% {
        transform: translateX(-50vw);
        opacity: 0;
    }
    10%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 副标题从右侧滑入 */
@keyframes slideFromRight {
    0% {
        transform: translateX(50vw);
        opacity: 0;
    }
    10%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 金属流光扫过动画 */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ===== 首页循环弹窗卡片：关于我们 / 企业文化 ===== */
.hero-popup {
    position: absolute;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 20px 38px 20px 34px;
    text-decoration: none !important;
    color: #fff !important;
    
    /* 背景半透明 */
    background: linear-gradient(135deg, rgba(22, 24, 34, 0.20), rgba(8, 10, 16, 0.0));
    
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 14px;
    
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    white-space: nowrap;
    transition:
        opacity 0.5s ease,
        visibility 0.5s,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    will-change: transform, opacity;
}

/* 左侧金色装饰条 */
.hero-popup::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #f5d76e, #c9a227);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
}

.hero-popup .popup-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.2;
    background: linear-gradient(90deg, #ffffff 0%, #f7e7a8 50%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-popup .popup-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}

/* 悬浮时稍微加深一点点背景 */
.hero-popup:hover {
    background: linear-gradient(135deg, rgba(42, 44, 58, 0.55), rgba(20, 22, 32, 0.45));
    border-color: rgba(245, 215, 110, 0.85);
    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(212, 175, 55, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.hero-popup:hover .popup-sub {
    color: #f5d76e;
}

/* =========================================================
 * 关于我们：从屏幕右侧外滑入，停在屏幕偏左侧 (left: 30%)
 * ========================================================= */
#popupAbout {
    left: 18%;
    top: 65%;
    transform: translate(120vw, -50%); 
}
#popupAbout.popup-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%); 
}
#popupAbout.popup-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(120vw, -50%);
}

/* =========================================================
 * 企业文化：从左下角向上滑入，停在高度 30% 处
 * ========================================================= */
#popupCulture {
    left: 12%;
    bottom: 30%;
    transform: translateY(70vh);
}
#popupCulture.popup-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
#popupCulture.popup-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(70vh);
}

/* 移动端适配 */
@media (max-width: 768px) {
    #popupAbout {
        left: 25%;
    }
    .hero-popup {
        padding: 14px 26px 14px 24px;
    }
    .hero-popup .popup-title {
        font-size: 17px;
        letter-spacing: 2px;
    }
    .hero-popup .popup-sub {
        font-size: 11px;
        letter-spacing: 2px;
    }
     .overlay-content h1 {
        font-size: 12px;
        margin-bottom: 5px;
        letter-spacing: 1.5px;
    }
    .overlay-content p {
        font-size: 10px;
        letter-spacing: 1px;
    }

    /* ---------- 弹窗卡片：关于我们 / 企业文化 ---------- */
    #popupAbout {
        left: 25%;
    }
    .hero-popup {
        gap: 3px;
        padding: 8px 16px 8px 12px;
        border: 0.5px solid rgba(212, 175, 55, 0.5);
        border-radius: 5px;
        box-shadow:
            0 6px 16px rgba(0, 0, 0, 0.25),
            0 0 0 0.5px rgba(255, 255, 255, 0.04) inset,
            0 0.5px 0 rgba(255, 255, 255, 0.08) inset;
    }
    .hero-popup:hover {
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.35),
            0 0 12px rgba(212, 175, 55, 0.28),
            0 0.5px 0 rgba(255, 255, 255, 0.1) inset;
    }
    .hero-popup::before {
        top: 9%;
        bottom: 9%;
        width: 1.5px;
        border-radius: 0 1.5px 1.5px 0;
        box-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
    }
    .hero-popup .popup-title {
        font-size: 10px;
        letter-spacing: 2px;
    }
    .hero-popup .popup-sub {
        gap: 3px;
        font-size: 8px;
        letter-spacing: 1.5px;
    }
}

/* ===== 友情链接样式 ===== */
.friendship-links-section { background: #f8f9fa; }
.friend-link { color: #0f171f; font-size: 12px; padding: 1px 8px; border-radius: 4px; transition: all 0.2s; position: relative; }
.friend-link:hover { color: #1024a2; text-decoration: underline !important; background: #e9ecef; }
.friend-link:not(:last-child)::after { content: '|'; color: #ccc; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
@media (max-width: 576px) {
    .friend-link { font-size: 10px; padding: 1px 10px; }
    .friend-link:not(:last-child)::after { right: -6px; }
}

/* ===== 旗下品牌卡片 ===== */
.brand-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; display: flex; flex-direction: column; }
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.brand-card .brand-image { width: 100%; height: 120px; overflow: hidden; background: #f8f9fa; }
.brand-card .brand-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-card .brand-info { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.brand-card .brand-title { font-size: 16px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; text-align: center; }
.brand-card .brand-label { font-size: 14px; color: #4A90D9; background: #e8f0fe; display: inline-block; padding: 0 10px; border-radius: 12px; margin-bottom: 6px; align-self: flex-start; }
.brand-card .brand-description { font-size: 12px; line-height: 1.6; color: #666; flex: 1; margin-bottom: 0; }

/* ===== 品牌故事 ===== */
.brand-story-section .brand-story-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: #1a1a2e; }
.brand-story-section .brand-story-content { font-size: 14px; line-height: 1.8; color: #555; }
.brand-story-section .brand-story-image { width: 500px; height: 500px; object-fit: cover; border-radius: 8px; max-width: 100%; }

/* ===== 公司案例 ===== */
.company-case-section .company-case-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #1a1a2e; }
.company-case-section .company-case-content { font-size: 14px; line-height: 1.8; color: #555; }
.company-case-section .company-case-meta { font-size: 14px; color: #999; margin-top: 10px; }
.company-case-section .company-case-image { width: 500px; height: 500px; object-fit: cover; border-radius: 8px; max-width: 100%; }