@charset "UTF-8";
@import "https://www.c114.com.cn/topic/css/basic2.css";
/* ============================================================
   上海联通专题  
   ============================================================ */

/* ============ Reset ============ */
div, p, h1, h2, h3, h4, h5, h6, span, i, a, li, ul, body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #656565;
}
ul, ol, li { list-style: none; }
a { text-decoration: none; }
a:hover, a:link { text-decoration: none; }
img { border: 0; }
.img_block { display: block; width: 100%; }
body, html {
    background: #f7f5ef;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
}
*, *:before, *:after { box-sizing: border-box; }
.page { width: 100%; overflow: hidden; position: relative; }

/* ============ 栅格容器 ============ */
.container { margin: 0 auto; width: 1200px; }
@media screen and (min-width: 768px)  { .container { width: 750px; } }
@media screen and (min-width: 992px)  { .container { width: 970px; } }
@media screen and (min-width: 1200px) { .container { width: 1170px; } }
@media screen and (min-width: 1220px) { .container { width: 1200px; } }

/* ============ 断点显隐 ============ */
@media (min-width: 1200px) { .hidden-lg { display: none !important; } }
@media (max-width: 1199px) and (min-width: 992px) { .hidden-md { display: none !important; } }
@media (max-width: 991px) and (min-width: 768px) { .hidden-sm { display: none !important; } }
@media (max-width: 767px) { .hidden-xs { display: none !important; } }

/* ============================================================
   Banner
   ============================================================ */
.banner-pc {
    background: url(banner.jpg) no-repeat center 0;
    height: 600px;
    background-size: cover;
    position: relative;
}
.banner-m { display: block; width: 100%; }
.banner-inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 194px;
    text-align: center;
    pointer-events: none;
}
.banner-title {
    font-family: "SourceHanSansCN-Bold", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-weight: bold;
    font-size: 74px;
    line-height: 1;
    color: #e50000;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* ============================================================
   开篇引言
   ============================================================ */
.intro { padding: 80px 0 70px; }
.intro-wrap { display: flex; align-items: flex-start; justify-content: space-between; }
.intro-pic {
    flex: 0 0 590px;
    width: 590px;
    height: 423px;
    border-radius: 4px;
    overflow: hidden;
    background: #ece9e1;
}
.intro-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-text { flex: 1; padding-left: 40px; }
.intro-title {
    font-size: 36px;
    line-height: 1;
    color: #a5000d;
    font-weight: bold;
    margin-bottom: 28px;
}
.intro-text p {
    font-size: 18px;
    line-height: 27px;
    color: #333333;
    margin-bottom: 10px;
}
.intro-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 38px;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    border-radius: 26px;
    background: #a5000d;
    cursor: pointer;
    transition: all .25s ease;
}

/* ============================================================
   四大赛道
   ============================================================ */
.tracks {
    background: #a5000d;
    padding: 70px 0 62px;
}
.tracks-title {
    position: relative;
    text-align: center;
    font-size: 36px;
    line-height: 1;
    font-weight: bold;
    color: #ffffff;
    padding-bottom: 34px;
}
.tracks-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 82px;
    height: 11px;
    margin-left: -41px;
    background: #d29e36;
}
.track-list {
    display: flex;
    justify-content: space-between;
    border-radius: 12px;
    margin-top: 46px;
}
.track-item { width: 23%; border: 1px solid #b93529; text-align: center; background: #ab1320; padding: 30px 0 40px; border-radius: 20px; box-sizing: border-box;}
.track-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.track-icon img { display: block; width: 48px; height: 48px; }
.track-item p { font-size: 20px; line-height: 24px; color: #ffffff; }

/* ============================================================
   章节公共
   ============================================================ */
.chapter { padding: 90px 0 30px; }
.chapter-head { display: flex; align-items: stretch; margin-bottom: 36px; }
.chap-bar { flex: 0 0 49px; width: 49px; background: #a5000d; border-radius: 2px; }
.chap-head-text { flex: 1; padding-left: 22px; }
.chap-tag {
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
    color: #d29e36;
    margin-bottom: 18px;
}
.chap-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: bold;
    color: #a5000d;
    margin-bottom: 14px;
}
.chap-desc { font-size: 18px; line-height: 27px; color: #656565; }

/* ============================================================
   第一章 · 三栏卡片
   ============================================================ */
.cards-3 { display: flex; justify-content: space-between; }
.card-item { width: 32%; }
.card-pic img { display: block; width: 100%; }
.card-text { padding: 20px 20px 0; background: #fff; min-height: 420px; box-sizing: border-box;}
.card-text h4 {
    font-size: 20px;
    line-height: 30px;
    font-weight: bold;
    color: #a5000d;
    margin-bottom: 14px;
}
.card-text p { font-size: 16px; line-height: 26px; color: #656565; }

/* ============================================================
   第二章 · 左右交替行
   ============================================================ */
.chapter-rows { display: block; }
.row-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 25px;
}
.row-card.reverse { flex-direction: row-reverse; }
.row-pic {
    flex: 0 0 50%;
    width: 50%;
    height: 240px;
    overflow: hidden;
}
.row-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.row-text {
    flex: 0 0 50%;
    width: 50%;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.row-text h4 {
    font-size: 20px;
    line-height: 30px;
    font-weight: bold;
    color: #a5000d;
    margin-bottom: 14px;
}
.row-text p { font-size: 16px; line-height: 24px; color: #656565; }

/* ============================================================
   第三章 · 左列表 + 右三图
   ============================================================ */
.ch3-grid { display: flex; justify-content: space-between; align-items: flex-start; }
.ch3-list { flex: 0 0 63.5%; width: 63.5%; }
.ch3-item {
    background: #ffffff;
    border-radius: 6px;
    padding: 16px 22px 18px;
    margin-bottom: 14px;
    height: 139px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ch3-item:last-child { margin-bottom: 0; }
.ch3-item h4 {
    font-size: 20px;
    line-height: 30px;
    font-weight: bold;
    color: #a5000d;
    margin-bottom: 8px;
}
.ch3-item p { font-size: 16px; line-height: 26px; color: #656565; }
.ch3-pics { flex: 0 0 34%; width: 34%; }
.ch3-pic {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #ece9e1;
    margin-bottom: 15px;
}
.ch3-pic:last-child { margin-bottom: 0; }
.ch3-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   第四章 · 左图 + 右上文两段
   ============================================================ */
.ch4-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #ffffff;
}
.ch4-pic {
    flex: 0 0 48%;
    width: 48%;
    height: 484px;
    overflow: hidden;
    background: #ece9e1;
}
.ch4-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ch4-text {
    flex: 1;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ch4-block h4 {
    font-size: 20px;
    line-height: 30px;
    font-weight: bold;
    color: #a5000d;
    margin-bottom: 12px;
}
.ch4-block p { font-size: 16px; line-height: 24px; color: #656565; }
.ch4-divider { display: block; width: 100%; height: 1px; background: #f7f5ef; margin: 22px 0; }

/* ============================================================
   结尾
   ============================================================ */
.outro { background: #860009; padding: 62px 0 80px; margin-top: 60px; }
.outro-title {
    text-align: center;
    font-size: 36px;
    line-height: 1;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
}
.outro-text { max-width: 1042px; margin: 0 auto; }
.outro-text p {
    font-size: 18px;
    line-height: 27px;
    color: #ffffff;
    text-indent: 36px;
    margin-bottom: 10px;
}

/* ============================================================
   分享海报弹窗（配合 inc/topic_wxchat.asp + js/wechat.js）
   !! 关键：绝不能用 display:none 隐藏 .dialog-wrapper-post ！！
   wechat.js 用 #myCanvas 的 clientWidth/clientHeight 计算 canvas 尺寸，
   父元素一旦 display:none，取到的就是 0，canvas 变成 0×0，海报全白。
   改用 pointer-events 避免透明层挡住页面点击。
   ============================================================ */
/* 显式锁定 canvas 尺寸，不依赖 basic2.css 是否加载成功 */
.dialog-wrapper-post #myCanvas { display: block; width: 300px; height: 480px; }
/* 生成完成前 pointer-events:none —— 既不挡点击，clientWidth 又能正常取值 */
.dialog-wrapper-post { pointer-events: none; background: #ffffff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* wechat.js 的 .show() 会写入内联 display:block，此时恢复可点击 */
.dialog-wrapper-post[style*="display: block"],
.dialog-wrapper-post[style*="display:block"] { pointer-events: auto; }
.dialog-wrapper-post .share-post { text-align: center; }
/* 海报图容器：给足宽度，图片按 300×480 等比撑开（覆盖 JS 写入的 height:100%） */
.dialog-wrapper-post #h { display: block; width: 100%; margin: 0 auto; }
.dialog-wrapper-post #h img { display: block; width: 100% !important; height: auto !important; margin: 0 auto; }
/* 二维码容器移出可视区：既不占位，也不影响 canvas 渲染 */
.dialog-wrapper-post #qrcode { position: absolute; left: -9999px; top: 0; }
.wxcode {
    background: #a5000d;
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    padding: 8px 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* ============================================================
   响应式
   ============================================================ */
@media screen and (max-width: 1219px) {
    .banner-title { font-size: 62px; }
    .intro-pic { flex: 0 0 470px; width: 470px; height: 340px; }
    .row-pic { height: 220px; }
    .ch4-pic { height: 420px; }
    .ch3-pic { height: 210px; }
}
@media screen and (max-width: 1199px) {
    .intro-text{padding-left: 30px;}
    .intro-title{font-size: 30px; margin-bottom: 20px;}
    .tracks-title{font-size: 30px; padding-bottom: 25px;}
    .tracks-title::after{width: 60px; height: 8px; margin-left: -30px; }
    .chap-title,.outro-title{font-size: 30px;}
    .chap-bar { flex: 0 0 40px; width: 40px; }
    .card-text{min-height: 500px;}
    .chapter{padding: 60px 0 0;}
    .row-card{margin-bottom: 20px;}
    .row-pic, .ch3-pic,.ch4-pic { height: auto; }
    .ch3-item h4{font-size: 18px; line-height: 27px;}
    .ch3-item p{line-height: 24px;}
    .ch4-text{padding: 0 20px;}
    .ch4-divider{margin: 15px 0;}
    .ch4-block h4{margin-bottom: 10px;}
    .outro-text p{font-size: 16px; line-height: 24px;}
    .outro{padding: 50px 0;}
}

@media screen and (max-width: 991px) {
    .banner-title { font-size: 48px; }
    .banner-pc { height: 420px; }
    /* 992px 以下使用完整版 banner-m.jpg（已含标题），隐藏叠加文字 */
    .banner-inner { display: none; }

    .intro { padding: 50px 0 40px; }
    .intro-wrap { display: block; }
    .intro-pic { width: 100%; height: auto; margin-bottom: 25px; }
    .intro-pic img { height: auto; }
    .intro-text { padding-left: 0; }
    .intro-title { font-size: 28px; }
    .intro-text p { font-size: 16px; line-height: 24px; }

    .tracks { padding: 45px 0 40px; }
    .tracks-title { font-size: 28px; padding-bottom: 24px; }
    .tracks-title::after { width: 60px; height: 6px; margin-left: -30px; }
    .track-list { padding: 30px 0 26px; margin-top: 10px; }
    .track-item p { font-size: 16px; line-height: 22px; }
    .track-icon { width: 72px; height: 72px; margin-bottom: 14px; }
    .track-icon img { width: 38px; height: 38px; }

    .chapter { padding: 50px 0 20px; }
    .chap-bar { flex: 0 0 34px; width: 34px; }
    .chap-head-text { padding-left: 16px; }
    .chap-tag { font-size: 20px; margin-bottom: 12px; }
    .chap-title { font-size: 24px; margin-bottom: 10px; }
    .chap-desc { font-size: 16px; line-height: 24px; }
    .chapter-head{margin-bottom: 20px;}

    .cards-3 { display: block; }
    .card-item { width: 100%; margin-bottom: 25px; }
    .card-pic { height: auto; }
    .card-text{min-height: auto; padding: 20px;}
    .card-text h4 { font-size: 18px; line-height: 26px; }
    .card-text p { font-size: 15px; line-height: 24px; }

    .row-card { display: block; margin-bottom: 20px; }
    .row-card.reverse { flex-direction: row; }
    .row-pic { width: 100%; height: auto; }
    .row-pic img { height: auto; }
    .row-text { width: 100%; padding: 20px; }
    .row-text h4 { font-size: 18px; line-height: 26px; }

    .ch3-grid { display: block; }
    .ch3-list { width: 100%; }
    .ch3-item { padding: 14px 18px; height: auto;}
    .ch3-item h4 { font-size: 18px; line-height: 26px; }
    .ch3-item p { font-size: 15px; line-height: 24px; }
    .ch3-pics { width: 100%; margin-top: 20px; display: flex; justify-content: space-between; }
    .ch3-pic { width: 32%; height: auto; margin-bottom: 0; }
    .ch3-pic img { height: 150px; }

    .ch4-card { display: block; padding: 16px; }
    .ch4-pic { width: 100%; height: auto; }
    .ch4-pic img { height: auto; }
    .ch4-text { padding: 20px 4px 4px; }
    .ch4-block h4 { font-size: 18px; line-height: 26px; }
    .ch4-block p { font-size: 15px; line-height: 24px; }
    .ch4-divider { margin: 18px 0; }

    .outro { padding: 40px 0 50px; margin-top: 40px; }
    .outro-title { font-size: 28px; margin-bottom: 20px; }
    .outro-text p { font-size: 16px; line-height: 24px; text-indent: 32px; }
}

@media screen and (max-width: 767px) {
    .container { width: auto; margin: 0 15px; }
    .banner-pc { display: none !important; }
    .banner-m { display: block !important; }
    .banner-inner { display: none; }

    .intro { padding: 30px 0 25px; }
    .intro-title { font-size: 22px; margin-bottom: 18px; text-align: center;}
    .intro-text p { font-size: 14px; line-height: 24px; text-indent: 28px;}
    .intro-btn { padding: 10px 28px; font-size: 16px; margin-top: 18px; display: block; width: 120px; margin: 0 auto;
     box-sizing: border-box;}
    .intro-pic img { max-height: 240px; }

    .tracks-title { font-size: 22px; }
    .track-list { flex-wrap: wrap; padding: 20px 0 10px; }
    .track-item { flex: 0 0 48%; width: 48%; margin-bottom: 15px; }
    .track-icon { width: 60px; height: 60px; }
    .track-icon img { width: 32px; height: 32px; }
    .track-item p { font-size: 14px; }

    .chapter { padding: 35px 0 15px; }
    .chap-title { font-size: 20px; }
    .chap-tag { font-size: 16px; }
    .chap-desc { font-size: 14px; line-height: 24px; }
    .chap-bar { flex: 0 0 24px; width: 24px; }

    .card-text h4, .row-text h4, .ch3-item h4, .ch4-block h4 { font-size: 17px; line-height: 25px; }
    .card-text p, .row-text p, .ch3-item p, .ch4-block p { font-size: 14px; line-height: 23px; }

    .ch3-pics { flex-wrap: wrap; }
    .ch3-pic { width: 100%; margin-bottom: 12px; }
    .ch3-pic img { height: auto; }

    .outro { padding: 30px 0 35px; margin-top: 25px; }
    .outro-title { font-size: 22px; }
    .outro-text p { font-size: 14px; line-height: 23px; }
}
