/* ==========================================
   重庆市社会保险“三进三送”专题网页样式表
   1:1 像素级还原 PC 端首页
   ========================================== */

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-box: border-box;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333333;
    line-height: 1.5;
    /* 页面背景与底部背景统一挂到 body 上 */
    background:
        url("../images/pc/bottom_bg.png") no-repeat center bottom,
        #e6f3ff url("../images/pc/pc_bg.png") no-repeat center top;
    min-width: 1350px; /* 内容宽度，适配不同大小的PC屏幕 */
    position: relative;
    overflow-x: auto; /* 仅在屏幕宽度小于内容宽度 1350px 时产生横向滚动条 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    display: block;
    max-width: 100%;
}

/* 核心版面容器 - 1920px 视口下宽度为 1350px 居中 */
.page-container {
    width: 1350px;
    margin: 0 auto;
    position: relative;
}

/* ==========================================
   1. 页头与 Banner 区域 (Top - 1160px)
   ========================================== */

/* Logo定位 - BBox (78, 46, 439, 132) -> 相对于居中容器的负值定位以在大屏小屏下完美对齐 */
.logo {
    position: absolute;
    top: 46px;
    left: -150px; /* 1350px 居中容器左侧向外偏 207px (即 285 - 78 = 207px) */
    width: 361px;
    height: 86px;
    z-index: 10;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.02);
}

/* Banner 标题 - BBox (273, 201, 1641, 441) */
.banner-title {
    position: absolute;
    top: 201px;
    left: -12px; /* 相对于 1350px 容器微调 */
    width: 1376px;
    height: 244px;
    z-index: 5;
    pointer-events: none;
}

/* Banner 人物插画 - BBox (1319, 551, 1572, 1043) */
.banner-person {
    position: absolute;
    top: 551px;
    right: -63px; /* 1350px 居中容器右侧向外偏 63px (即 1920 - 1572 - 285 = 63px) */
    width: 253px;
    height: 492px;
    z-index: 4;
    transition: transform 0.5s ease;
}
.banner-person:hover {
    transform: translateY(-8px);
}

/* 海豚 IP 公仔 - BBox (195, 890, 398, 1117) -> 相对前言框绝对定位 */
.dolphin-ip {
    position: absolute;
    top: -7px; /* 890 - 897 = -7px */
    left: -89px; /* 195 - 284 = -89px，使海豚前置在框最左侧，超出前言框 */
    width: 203px;
    height: 227px;
    z-index: 7;
    animation: floatIp 4s ease-in-out infinite alternate;
}

@keyframes floatIp {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-6px) rotate(1deg); }
}

/* 前言半透明文本框 - BBox (284, 897, 1635, 1092) */
.preface-box {
    position: absolute;
    top: 897px;
    left: 0;
    width: 1350px;
    height: 195px;
    /* 采用从 PSD 中精确采样提取的蓝色渐变与高亮白色描边 */
    background: linear-gradient(to bottom, #bde5fe, #7ac6f8);
    border: 2px solid #ffffff;
    border-radius: 16px; /* 圆角半径改为 16px */
    box-shadow: 0 8px 30px rgba(28, 93, 199, 0.15);
    z-index: 6;
}

/* “前言”二字印章效果 - 蓝色渐变与白色描边，精确绝对定位 */
.preface-tag {
    position: absolute;
    top: 25px; /* 922 - 897 = 25px */
    left: 154px; /* 438 - 284 = 154px */
    width: 48px;
    height: 118px;
    background: linear-gradient(to bottom, #63b7e7, #345fd3); /* 印章蓝色渐变 */
    border: 2px solid #ffffff;
    border-radius: 6px; /* 圆角改为 6px */
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(51, 97, 215, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.25;
    z-index: 8;
    /* 关键属性：让文字从上到下、从右到左排列 */
    writing-mode: vertical-rl;
}

/* 前言文本段落 - 精确绝对定位 */
.preface-text {
    position: absolute;
    top: 12px; /* 930 - 897 = 33px */
    left: 234px; /* 518 - 284 = 234px */
    width: 1076px;
    color: #0b376b; /* 使用深蓝色文字 */
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    font-weight: 500;
}
.preface-text p:first-child {
    font-size: 18px;
    color: #0b376b;
    margin-bottom: 4px;
}

/* ==========================================
   2. 要闻即时达 (1160px - 1729px)
   ========================================== */

.section-news {
    position: absolute;
    top: 1160px;
    left: 0;
    width: 1350px;
    height: 569px;
    z-index: 2;
}

/* 板块通用标题栏 */
.section-title {
    width: 1350px; /* BBox 宽约 1350px */
    pointer-events: none;
}

/* 要闻核心内容区 */
.news-body {
    display: flex;
    justify-content: space-between;
    margin-top: 51px; /* 1337 - 1286 = 51px */
    height: 392px;
}

/* 左侧大图轮播/视频图 - 幻灯片样式 */
.news-visual {
    width: 684px;
    height: 392px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 55, 107, 0.15);
    position: relative;
}
.slide-track {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s ease-in-out, transform 0.5s ease;
}
.slide-img.active {
    opacity: 1;
    z-index: 2;
}
.news-visual:hover .slide-img.active {
    transform: scale(1.03);
}

/* 轮播点指示器 */
.news-dots {
    position: absolute;
    right: 32px;
    bottom: 25px;
    display: flex;
    gap: 4px;
    z-index: 10;
}
.news-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.news-dot.active {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}

/* 右侧新闻列表 */
.news-list-wrapper {
    width: 627px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px; /* 符合间距 22-30px 左右的分布 */
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(26, 79, 141, 0.2);
    position: relative;
    padding-left: 18px;
}
/* 新闻前方的星号/小点 */
.news-item::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #e06435;
    font-size: 14px;
}

.news-link {
    font-size: 17px;
    color: #0b376b;
    font-weight: 500;
    width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-item:hover .news-link {
    color: #e06435;
}

/* 点击详情按钮 */
.btn-detail {
    font-size: 14px;
    color: #e06435;
    font-weight: bold;
    border: 1px solid rgba(224, 100, 53, 0.4);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(224, 100, 53, 0.05);
}
.news-item:hover .btn-detail {
    background: #e06435;
    color: #ffffff;
    border-color: #e06435;
    box-shadow: 0 4px 10px rgba(224, 100, 53, 0.2);
}

/* 更多按钮 - 对应 more_btn.png */
.more-btn-container {
    align-self: flex-end;
    margin-bottom: 8px;
}
.more-btn {
    display: block;
    width: 191px;
    height: 38px;
    background: url("../images/pc/more_btn.png") no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.more-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* ==========================================
   3. 直播零时差 (1812px - 2730px)
   ========================================== */

.section-live {
    position: absolute;
    top: 1812px;
    left: 0;
    width: 1350px;
    height: 980px;
    z-index: 2;
}

/* 直播视频内容区 */
.live-body {
    margin-top: 35px; /* 1970 - 1935 = 35px */
    width: 1350px;
    height: 730px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(11, 55, 107, 0.2);
    position: relative;
    cursor: pointer;
}

/* 直播视频大图背景 */
.live-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.live-body:hover .live-cover {
    transform: scale(1.03);
}

/* 视频区域半透明遮罩 */
.live-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 30% 半透明暗角遮罩，突出播放按钮 */
    z-index: 5;
    transition: background-color 0.4s ease;
}
.live-body:hover .live-mask {
    background: rgba(0, 0, 0, 0.15); /* 悬停时遮罩变淡，增强可点击感 */
}

/* 播放按钮 - 绝对居中偏左（匹配 bbox 354, 2525） */
/* 视频框左上角在 (285, 1970)，播放按钮在 (354, 2525)。
   相对播放按钮 top: 2525 - 1970 = 555px; left: 354 - 285 = 69px; */
.live-play-btn {
    position: absolute;
    top: 555px;
    left: 69px;
    width: 137px;
    height: 137px;
    cursor: pointer;
    z-index: 8;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}
.live-play-btn::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 8px solid #ffffff;
    border-radius: 50%;
    background: transparent;
}
.live-play-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 27px solid transparent;
    border-bottom: 27px solid transparent;
    border-left: 44px solid #ffffff;
    transform: translate(-38%, -50%);
}
.live-play-btn:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.55));
}

.live-body.is-playing .live-cover,
.live-body.is-playing .live-mask,
.live-body.is-playing .live-play-btn {
    opacity: 0;
    pointer-events: none;
}

.live-player {
    position: absolute;
    inset: 0;
    z-index: 12;
    background: #000000;
}

.live-player-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.live-more-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ==========================================
   4. 区县在行动 (2802px - 3465px)
   ========================================== */

.section-districts {
    position: absolute;
    top: 2802px;
    left: 0;
    width: 1350px;
    height: 715px;
    z-index: 2;
}

/* 区县网格布局 - 两列四行 */
.districts-grid {
    margin-top: 70px; /* 3001 - 2931 = 70px */
    display: grid;
    grid-template-columns: 659px 659px;
    grid-template-rows: repeat(4, 103px);
    column-gap: 32px; /* 1350 - 2*659 = 32px */
    row-gap: 18px; /* 3121 - (3001 + 103) = 17px */
    height: 466px;
}

.districts-more-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

/* 网格卡片 */
.district-card {
    position: relative;
    width: 659px;
    height: 103px;
    display: flex;
    align-items: center;
    padding-right: 25px;
    transition: all 0.3s ease;
}

/* 卡片的半透明毛玻璃背景（圆角矩形 3）*/
/* bbox (300, 3011, 941, 3091) -> 左侧空出 300 - 282 = 18px 容纳多边形 Tag */
.district-card-bg {
    position: absolute;
    top: 10px; /* 3011 - 3001 = 10px */
    left: 18px; /* 容纳左边凸出的圆形 Tag */
    width: 641px;
    height: 80px;
    background: linear-gradient(90deg, #2f66d7 0%, #4fa0ff 52%, #7dc7ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 40px; /* 高度为80px，完美的圆角矩形 */
    box-shadow: 0 10px 24px rgba(47, 102, 215, 0.18);
    z-index: 1;
    transition: all 0.3s ease;
}
.district-card:hover .district-card-bg {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 28px rgba(47, 102, 215, 0.28);
    transform: translateY(-2px);
}

/* 左侧圆形区县Tag标签（多边形 1）*/
/* bbox (282, 3001, 396, 3104) -> 宽高 114x103 */
.district-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 114px;
    height: 103px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
   text-indent: -0.5em;
    z-index: 3;
    transition: transform 0.3s ease;
}
/* 橙红Tag底色（单数卡片）- 引入 city_bg 城市剪影背景 */
.district-card:nth-child(odd) .district-tag {
    background: url("../images/pc/city_bg.png") no-repeat center/contain;
   
}
/* 蓝色Tag底色（双数卡片交替）- 引入 city_bg 城市剪影背景 */
.district-card:nth-child(even) .district-tag {
    background: url("../images/pc/city_bg.png") no-repeat center/contain;
   
}

.district-card:hover .district-tag {
    transform: scale(1.08) rotate(3deg);
}

/* 卡片文本内容 */
.district-text {
    position: relative;
    z-index: 2;
    margin-left: 133px; /* 避开左侧的圆形 Tag */
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 卡片右侧“点击详情”按钮 */
/* bbox (820, 3036, 922, 3067) -> 宽高 102x31 */
/* 相对卡片右侧定位 */
.district-btn {
    position: absolute;
    right: 25px; /* 941 - 922 = 19px 左右 */
    top: 36px; /* 居中定位 */
    width: 102px;
    height: 31px;
    background: #f1ba6b; /* PSD按钮颜色 */
    color: #8c4e00;
    font-size: 13px;
    font-weight: bold;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(241, 186, 107, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}
.district-card:hover .district-btn {
    background: #ffffff;
    color: #e06435;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ==========================================
   5. 瞬间暖心集 (3534px - 4339px)
   ========================================== */

.section-moments {
    position: absolute;
    top: 3534px;
    left: 0;
    width: 1350px;
    height: 805px;
    z-index: 2;
}

/* 瞬间照片合集内容区 */
.moments-body {
    margin-top: 48px; /* 3714 - 3666 = 48px */
    display: flex;
    justify-content: space-between;
    height: 625px;
}

/* 左侧大图 */
.moments-big {
    width: 1082px;
    height: 623px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(11, 55, 107, 0.18);
    position: relative;
}
.moments-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.moments-big:hover img {
    transform: scale(1.03);
}

.moments-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.moments-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(11, 55, 107, 0.15);
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.moments-dot.active {
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.55);
    transform: scale(1.12);
}

/* 右侧4张小图列表 */
.moments-small-viewport {
    width: 254px;
    height: 625px;
    overflow: hidden;
    position: relative;
    user-select: none;
    cursor: ns-resize;
}

.moments-small-list {
    width: 254px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    will-change: auto;
}

.moments-small-item {
    width: 254px;
    height: 149px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(11, 55, 107, 0.12);
    position: relative;
    opacity: 0.72;
    transform: scale(0.985);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.moments-small-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}
.moments-small-item:hover,
.moments-small-item.active {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(224, 100, 53, 0.35);
    border: 2px solid rgba(224, 100, 53, 0.85); /* 激活与悬停时高亮橙色边框 */
}
.moments-small-item:hover img,
.moments-small-item.active img {
    transform: scale(1.06);
    filter: saturate(1.06);
}

/* ==========================================
   6. 底部区域与社保宣传车
   ========================================== */

/* 宣传车飘浮定位 - BBox (29, 4448, 772, 4773) -> 相对于居中容器的定位以完美对齐 */
.bottom-car {
    position: absolute;
    bottom: 0px; /* 4760 - 4773 = 0px 左右贴底 */
    left: -256px; /* 1350px 居中容器左侧向外偏 256px (即 285 - 29 = 256px) */
    width: 743px;
    height: 312px; /* 切图高度是 312px */
    background: url("../images/pc/bottom_car.png") no-repeat center;
    background-size: contain;
    z-index: 10;
    animation: carMove 5s ease-in-out infinite alternate;
}

@keyframes carMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px) translateX(2px); }
}
