/**
 * pinpai.css - 经典品牌页面样式
 */

/* ================= 基础重置 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: #fff;
    color: #555;
    font-size: 13px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { border: 0; vertical-align: middle; max-width: 100%; display: block; }

/* ================= 主容器 ================= */
.container {
    width: 72vw;
    margin: 0 auto;
    position: relative;
}

/* ================= 通用组件 ================= */
.section-wrapper {
    margin-bottom: 60px;
}

/* 标题图片样式 */
.header-box {
    margin-bottom: 30px; 
}
.header-box .title-img {
    height: auto;
}

/* 红色按钮 */
.btn-red {
    display: inline-block;
    background-color: #e43d30;
    color: #fff;
    padding: 8px 36px;
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.3s;
    box-shadow: 0 4px 8px rgba(228, 61, 48, 0.25);
}
.btn-red:hover { background-color: #c62828; }

/* ================= 布局模式 A (上白下灰) ================= */
.layout-type-a {
    position: relative;
    min-height: 520px; 
    display: flex;
    justify-content: space-between;
}

/* 全屏灰色背景 */
.layout-type-a .bg-layer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 200px; 
    background-color: #e6e6e6; 
    z-index: 0;
}

.layout-type-a .col-text,
.layout-type-a .col-poster,
.layout-type-a .col-logo {
    position: relative;
    z-index: 2;
}

/* 左侧文字 */
.layout-type-a .col-text {
    width: 30%;
    display: flex;
    align-items: flex-start; 
    padding-right: 30px;
    padding-top: 60px; 
}
.layout-type-a .col-text p {
    text-align: justify;
    color: #444;
    font-size: 13px;
    line-height: 2;
}

/* 中间海报 */
.layout-type-a .col-poster {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding-top: 10px;
}

.layout-type-a .poster-frame {
    width: 340px; 
    height: 440px;
    background: #ccc;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    perspective: 1000px; /* 3D透视效果 */
    overflow: hidden;
}

.layout-type-a .poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: right bottom; /* 从右下角开始变换 */
}

/* 海报翻页动画 - 从右下角翻页进入 */
@keyframes posterFlipIn {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(30deg) rotateY(-15deg) translateX(50px) translateY(50px) scale(0.8);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateX(0) translateY(0) scale(1);
    }
}

/* 反向翻页进入（向前翻页时使用） */
@keyframes posterFlipInReverse {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(-30deg) rotateY(15deg) translateX(-50px) translateY(-50px) scale(0.8);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateX(0) translateY(0) scale(1);
    }
}

/* 退出动画 */
@keyframes posterFlipOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

/* 文字渐入动画 */
@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.layout-type-a .poster-frame img.poster-flip-in {
    animation: posterFlipIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.layout-type-a .poster-frame img.poster-flip-in-reverse {
    animation: posterFlipInReverse 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.layout-type-a .poster-frame img.poster-flip-out {
    animation: posterFlipOut 0.2s ease-out forwards;
}

.layout-type-a .col-text .desc-text.text-fade-in {
    animation: textFadeIn 0.5s ease-out forwards;
}

.layout-type-a .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
}

/* 右侧 Logo & 按钮 */
.layout-type-a .col-logo {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    padding: 50px 0 60px 0;
}

.layout-type-a .logo-clean-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px; 
}

.layout-type-a .logo-clean-container img {
    max-width: 198px;
    max-height: 198px;
    width: auto;
    height: auto;
    display: block;
}

/* ★★★ 分页样式调整 (大小一致) ★★★ */
.pagination {
    position: absolute;
    bottom: 20px; 
    left: 0;
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.pagination .page-nums {
    margin-right: 50px; 
    display: flex;
    align-items: center;
}

/* 当前页码：01 (白色) */
.pagination .page-nums .current {
    color: #fff; 
    font-weight: bold;
    font-size: 20px; 
    line-height: 1;
}

/* 竖线 */
.pagination .page-nums .vert-line {
    display: inline-block;
    width: 2px;
    height: 18px; 
    background-color: #333;
    margin: 0 8px; 
    vertical-align: middle;
}

/* 总页码：03 (黑色) */
.pagination .page-nums .total {
    color: #333; 
    font-weight: bold; 
    font-size: 20px; 
    line-height: 1;
}

/* 箭头 */
.pagination .page-arrows {
    display: flex;
    align-items: center;
}

.pagination .page-arrows img {
    width: auto;
    height: 18px; 
    cursor: pointer;
    margin: 0 15px; 
    opacity: 0.8;
    transition: opacity 0.2s;
}
.pagination .page-arrows img:hover { opacity: 1; }


/* ================= 布局模式 B (横幅) ================= */
.layout-type-b {
    position: relative;
}

.layout-type-b .banner-area {
    width: 100%;
    height: 380px;
    background: #ddd;
    overflow: hidden;
}

.layout-type-b .banner-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-type-b .content-overlay {
    width: 800px;
    margin: -70px auto 0;
    background: #fff;
    position: relative;
    z-index: 10;
    padding: 40px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.layout-type-b .overlay-logo-clean {
    width: 200px;
    border: none; 
    padding: 0; 
    background: none;
    box-shadow: none;
    margin-right: 40px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout-type-b .overlay-logo-clean img {
    max-width: 100%;
    height: auto;
    display: block;
}

.layout-type-b .overlay-text {
    flex: 1;
}

.layout-type-b .overlay-text p {
    text-align: justify;
    margin-bottom: 20px;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.layout-type-b .btn-align-right {
    text-align: right;
}

/* ================= 手机端适配 ================= */
.mobile-nav {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

@media screen and (max-width: 768px) {
    /* 隐藏 PC 端 Header */
    .header-component-wrapper {
        display: none !important;
    }
    
    /* Banner 适配 */
    .banner {
        display: flex !important;
        height: 230px;
        margin-top: 90px; /* 紧接在 header 下方 */
        background-size: cover;
        position: relative;
    }

    .banner img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }

    .banner-text-container {
        width: 100%;
        padding: 0 20px;
        justify-content: flex-start;
    }

    .banner-title-group {
        height: 40px;
        transform: translateY(0);
    }

    .banner-red-line {
        height: 80%;
        margin-right: 15px;
        width: 4px;
    }

    .banner-main-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    /* 显示手机端导航 */
    .mobile-nav {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        height: 90px;
        background-color: rgba(174, 31, 3, 0.9); /* #ae1f03 at 90% opacity */
        position: fixed;
        top: 0; left: 0; z-index: 1000;
        padding: 0 15px;
    }

    .mobile-menu-btn, .mobile-search-btn {
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        width: 40px;
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-right-tools {
        display: flex;
        height: 90px;
        align-items: center;
    }

    .mobile-lang-btn {
        color: #fff;
        font-size: 12px;
        font-weight: bold;
        cursor: pointer;
        border: 1px solid #fff;
        border-radius: 2px;
        padding: 3px 6px;
        margin-left: 10px;
        height: auto;
        width: auto;
        display: inline-block;
        line-height: 1;
    }

    .mobile-logo-box {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        background-color: transparent;
        height: 90px;
        width: 160px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: none;
        z-index: 1001;
    }

    .mobile-logo-box img {
        max-width: 80%;
        max-height: 80%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    /* 手机端全屏菜单样式 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 2000;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
    }

    .mobile-menu-content {
        width: 100%;
        background-color: transparent;
        max-height: 80vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-header {
        display: flex;
        height: 90px;
        width: 100%;
    }

    .mobile-menu-close {
        width: 70px;
        height: 90px;
        background-color: #ae1f03; /* 使用指定的红色 */
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .mobile-menu-close i {
        color: #fff;
        font-size: 50px;
    }

    .mobile-menu-logo {
        flex: 1;
        min-width: 0;
        background-color: #000;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0 20px;
    }

    .mobile-menu-logo img {
        height: auto;
        max-height: 100px;
        width: 100%;
    }

    .mobile-menu-list {
        background-color: #000;
        padding-left: 20px;
        display: flex;
        flex-direction: column;
        margin-left: 70px;
    }

    .mm-item {
        width: 100%;
        border-bottom: 1px solid #333;
    }

    .mm-link, .mm-link-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        color: #fff;
        font-size: 18px;
        text-decoration: none;
        cursor: pointer;
        background-color: #000;
        transition: background-color 0.3s;
    }

    .mm-link:hover, .mm-link-wrapper:hover {
        background-color: #1a1a1a;
    }

    .mm-item.active .mm-link-wrapper {
        background-color: #606060;
    }

    .mm-link-text {
        font-weight: normal;
    }

    .mm-arrow-box {
        padding-left: 15px;
        border-left: 1px solid #999;
        display: flex;
        align-items: center;
        height: 14px;
    }

    .mm-item.active .mm-arrow-box {
        border-left-color: #000;
    }

    .mm-arrow {
        font-size: 14px;
        color: #fff;
        transition: transform 0.3s;
    }

    .mm-item.active .mm-arrow {
        transform: rotate(180deg);
        color: #fdb933;
    }

    .mm-submenu {
        display: none;
        background-color: #212121;
        padding: 0;
        border-right: 15px solid #606060;
    }

    .mm-item.active .mm-submenu {
        display: block;
    }

    .mm-sub-link {
        display: block;
        padding: 12px 20px;
        color: #ccc;
        font-size: 16px;
        text-decoration: none;
        border-bottom: 1px solid #444;
    }

    .mm-sub-link:last-child {
        border-bottom: none;
    }

    .mm-sub-link.active {
        color: #fdb933;
    }

    body {
        padding-top: 0;
    }

    /* 面包屑适配 */
    .breadcrumb {
        padding: 16px 15px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        font-size: 0;
        color: #333;
        width: calc(100% + 30px);
        margin-left: -15px;
        background-color: #fff;
        position: relative;
        z-index: 5;
    }

    .breadcrumb a:first-child {
        display: inline-block;
        width: 32px;
        height: 32px;
        background: url('../img/icon-27.png') no-repeat center center;
        background-size: contain;
        font-size: 0;
        margin-right: 15px;
        position: relative;
    }

    .breadcrumb a:first-child::after {
        content: '';
        position: absolute;
        right: -15px;
        top: 3px;
        height: 26px;
        width: 2px;
        background-color: #ddd;
    }

    .breadcrumb span,
    .breadcrumb a {
        font-size: 18px;
        color: #333;
        font-family: 'SourceHanSansCN', 'CustomArial', 'CustomArialUnicode', sans-serif;
    }

    .breadcrumb span {
        margin-left: 0;
        font-weight: normal;
    }

    .breadcrumb span:first-of-type {
        margin-left: 15px;
    }

    .breadcrumb span:not(:last-child)::after {
        content: '>';
        margin-left: 8px;
        margin-right: 8px;
        color: #666;
        font-weight: normal;
        display: inline-block;
        vertical-align: middle;
        width: auto;
        height: auto;
        background-color: transparent;
    }

    /* 容器适配 */
    .container {
        width: 100%;
        padding: 0 15px;
    }

    /* ================= 页面内容适配 ================= */
    .header-box {
        margin-bottom: 15px;
    }
    .header-box .title-img {
        height: 45px; /* 缩小标题图片 */
        width: 100%;
        object-fit: cover;
        object-position: left center;
    }

    /* Layout Type A 适配 */
    .layout-type-a {
        display: grid;
        grid-template-columns: 1fr auto; /* 左侧自适应，右侧由内容决定 */
        grid-template-rows: auto 1fr;
        grid-template-areas: 
            "text text"
            "poster logo";
        position: relative;
        min-height: auto;
        padding-bottom: 20px;
        gap: 0;
    }

    /* 文字部分在最上方 */
    .layout-type-a .col-text {
        grid-area: text;
        order: unset;
        width: 100%;
        padding: 0 0 20px 0;
        display: block;
    }
    .layout-type-a .col-text p {
        font-size: 16px; /* 增大文字 */
        line-height: 1.8;
        text-align: justify;
        text-indent: 2em;
    }

    /* 恢复背景层 */
    .layout-type-a .bg-layer {
        display: block;
        height: 180px; /* 稍微增高背景 */
        bottom: 0;
        z-index: 1;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }

    /* 海报区域 */
    .layout-type-a .col-poster {
        grid-area: poster;
        order: unset;
        width: 100%;
        display: flex;
        justify-content: flex-start; /* 海报左对齐 */
        align-items: flex-end; /* 底部对齐 */
        padding: 0;
        padding-left: 0; /* 左侧留白 */
        padding-right: 0; 
        padding-bottom: 60px; /* 留出分页器空间 */
        z-index: 2;
        margin: 0;
        position: static;
    }

    .layout-type-a .poster-frame {
        width: 100%;
        max-width: 320px; /* 增大最大宽度限制，让图片尽可能大 */
        height: auto;
        aspect-ratio: 478/530;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    /* Logo 和 按钮区域 */
    .layout-type-a .col-logo {
        grid-area: logo;
        order: unset;
        width: auto; /* 宽度由内容决定 */
        min-width: 130px; /* 保证按钮最小宽度 */
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* 上下分布：Logo在上，按钮在下 */
        align-items: flex-end; /* 右对齐 */
        z-index: 2;
        padding-left: 10px; /* 与左侧图片的间距 */
        padding-bottom: 60px; /* 略微调整底部距离 */
        padding-top: 50px; /* 增加顶部距离，使Logo下移 */
        position: static;
        height: auto;
        right: auto;
        bottom: auto;
    }
    
    /* Logo 图片容器 */
    .layout-type-a .logo-clean-container {
        min-height: auto;
        margin-bottom: 0;
        width: 100%;
        display: flex;
        justify-content: flex-end; /* Logo居中 */
        align-items: flex-start;
    }
    
    .layout-type-a .logo-clean-container img {
        max-width: 100%;
        max-height: 100px; /* 稍微减小Logo高度以防挤占太多空间 */
        width: auto;
        display: block;
    }

    .btn-red {
        padding: 6px 20px; /* 调整按钮内边距 */
        font-size: 13px;
        width: auto;
        white-space: nowrap; /* 防止文字换行 */
        transform: scale(1);
        transform-origin: center center;
    }

    /* 恢复分页器 */
    .pagination {
        display: flex;
        position: absolute;
        bottom: 15px;
        left: 0;
        width: 100%;
        justify-content: center;
        z-index: 3;
        padding: 0;
    }
    
    .pagination .page-nums .current {
        color: #fff; /* 手机端背景是灰色，改为深色字 */
        font-size: 16px;
    }
    
    .pagination .page-nums .total {
        color: #333; /* 手机端背景是灰色，改为深色字 */
        font-size: 16px;
    }
    
    .pagination .page-nums .vert-line {
        background-color: #666;
        height: 14px;
    }
    
    .pagination .page-arrows img {
        height: 14px;
    }

    /* Layout Type B 适配 */
    .layout-type-b {
        display: flex;
        flex-direction: column;
    }

    .layout-type-b .banner-area {
        height: auto;
        aspect-ratio: 16/9;
        width: calc(100% + 30px); /* 抵消 container padding: 15px * 2 */
        margin-left: -15px; 
    }

    .layout-type-b .content-overlay {
        width: calc(100% - 20px); /* 两侧留 10px margin */
        margin: -40px auto 0; /* 上移 40px */
        padding: 20px 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* 添加阴影增加层次感 */
        flex-direction: column;
        align-items: center; 
        background: #fff;
        position: relative;
        z-index: 10;
        border-radius: 4px; /* 可选：增加一点圆角 */
    }

    .layout-type-b .overlay-logo-clean {
        width: 100px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .layout-type-b .overlay-text {
        width: 100%;
    }
    
    .layout-type-b .overlay-text p {
        margin-bottom: 15px;
        font-size: 16px; /* 增大字体 */
        line-height: 1.8;
        text-align: justify;
    }

    .layout-type-b .btn-align-right {
        text-align: center;
    }

    /* 搜索栏适配 */
    .header-search-bar {
        position: fixed; /* 确保固定在视口顶部 */
        top: 90px; /* 移动端 header 高度 */
        background-color: rgba(31, 31, 31, 0.95);
        height: auto;
        padding: 30px 0;
        z-index: 999;
    }

    .header-search-bar .search-container {
        width: 90%;
        max-width: none;
    }
    
    .header-search-bar .search-input {
        font-size: 16px;
    }
    
    .header-search-bar .search-submit {
        font-size: 18px;
    }
}