/* 墨韵堂 补充样式：用于原模板未覆盖的内页自建区块。主色 #e5011a */
:root { --myt-red: #e5011a; }

/* 分页 */
.page-bar { text-align: center; padding: 30px 0; }
.page-bar .pagination { display: inline-flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.page-bar .pagination li { display: inline-block; }
.page-bar .pagination li a,
.page-bar .pagination li span { display: block; min-width: 38px; height: 38px; line-height: 38px; padding: 0 12px; border: 1px solid #e5e5e5; color: #555; border-radius: 4px; text-decoration: none; }
.page-bar .pagination li.active span,
.page-bar .pagination li a:hover { background: var(--myt-red); border-color: var(--myt-red); color: #fff; }

/* 关于页 */
.ny-about .about-sec { padding: 60px 0; }
.ny-about .about-sec.bg-gray { background: #f7f7f7; }
.ny-about .about-cont { font-size: 16px; line-height: 2; color: #555; max-width: 1000px; margin: 0 auto; text-align: justify; }
.about-stat { justify-content: center; gap: 40px; }
.about-stat li { text-align: center; }
.about-stat .num { font-size: 46px; color: var(--myt-red); font-weight: bold; font-family: "DINPro-Medium", Arial; }
.about-stat .num sup { font-size: 20px; }
.about-stat h4 { font-size: 16px; color: #333; margin-top: 8px; }

/* 加盟页 */
.ny-join .join-top { background: url(/template/default/static/images/index-jm-bg.jpg) center/cover no-repeat; padding: 70px 0; }
.ny-join .join-top .jiameng { text-align: center; color: #fff; }
.ny-join .join-top .jiameng h4 { font-size: 34px; line-height: 1.4; }
.ny-join .join-top .jiameng p { font-size: 18px; margin: 14px 0 24px; }
.ny-join .join-top .jiameng .zixun { display: inline-block; padding: 12px 40px; background: var(--myt-red); color: #fff; border-radius: 30px; text-decoration: none; }
.ny-join .jiameng-list { justify-content: space-between; flex-wrap: wrap; padding: 10px 0 50px; }
.ny-join .jiameng-list .item { width: 23%; text-align: center; }
.ny-join .jiameng-list .box { padding: 30px 16px; border: 1px solid #eee; border-radius: 8px; transition: .3s; }
.ny-join .jiameng-list .box:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-4px); }
.ny-join .jiameng-list .pic img { height: 64px; }
.ny-join .jiameng-list h5 { font-size: 18px; color: #281f20; margin: 16px 0 6px; }
.ny-join .jiameng-list p { color: #999; font-size: 14px; }
.join-form-wrap { padding: 60px 0; }
.join-form { max-width: 760px; margin: 0 auto; }
.join-form .jf-row, .ny-message-form .cf-row { display: flex; gap: 16px; }
.join-form .jf-row .el-form-item, .ny-message-form .cf-row .el-form-item { flex: 1; }

/* 联系页 */
.ny-contact-page .ny-contact { padding: 60px 0; }
.ny-contact-list { justify-content: space-between; flex-wrap: wrap; }
.ny-contact-list .item { width: 24%; text-align: center; padding: 24px 10px; height: auto; background: none; }
/* 覆盖 ny.css 为印章图设计的负 margin，避免微信二维码上移压住「微信咨询」标题 */
.ny-contact-list .item img { margin-top: 0; }
.ny-contact-list .item i { font-size: 40px; color: var(--myt-red); }
.ny-contact-list .item h4 { font-size: 18px; margin: 12px 0 8px; color: #281f20; }
.ny-contact-list .item p { color: #666; }
/* 百度地图瓦片/信息窗不受全站 img max-width 限制 */
.map-dh img, .map-dh .BMap_shadow, .BMap_bubble_content img { max-width: none !important; max-height: none !important; }
.ny-message { padding: 60px 0; }
.ny-message-form { max-width: 760px; margin: 0 auto; }
.ny-city { padding: 60px 0; }
.map-city { justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.map-city .city-item { width: 31%; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.map-city .city-item .pic { height: 200px; }
.map-city .city-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.map-city .city-item h4 { font-size: 18px; color: #281f20; padding: 16px 16px 6px; }
.map-city .city-item p { color: #777; padding: 0 16px 6px; font-size: 14px; }
.map-city .city-item p i { color: var(--myt-red); margin-right: 6px; }

/* 课程列表自建样式补充 */
.myt-course-list .item.flex { display: flex; gap: 30px; padding: 30px 0; border-bottom: 1px solid #eee; align-items: center; }
.myt-course-list .item .pic { width: 360px; flex: 0 0 360px; height: 220px; overflow: hidden; border-radius: 6px; }
.myt-course-list .item .pic img { width: 100%; height: 100%; object-fit: cover; }
.myt-course-list .item .cont { flex: 1; }
.myt-course-list .item .cont h4 { font-size: 24px; color: #281f20; }
.myt-course-list .item .cont h5 { font-size: 16px; color: var(--myt-red); margin: 8px 0; }
.myt-course-list .item .cont .des { color: #777; line-height: 1.9; }
.myt-course-list .item .cont .tags { color: #999; margin: 10px 0; }

/* 历史沿革时间轴：统一每个年份配图尺寸（3:2），保证同行图片等高、底边对齐、不变形 */
.history-list .item .pic { margin-top: 30px; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.history-list .item .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.history-list .item p { min-height: 60px; }

/* 通用内页留白兜底 */
.ny .no-data { width: 100%; }

/* 内页列表「查看更多」加载更多按钮（对齐原站常驻 ajax-more，灰色药丸，红色 hover） */
.zixun-wrap2 { width: 100%; text-align: center; padding: 45px 0 15px; }
.zixun-wrap2 .ajax-more { display: inline-block; min-width: 180px; padding: 0 44px; height: 50px; line-height: 50px; border-radius: 25px; background: #8a8a8a; color: #fff; font-size: 16px; text-decoration: none; transition: .3s; }
.zixun-wrap2 .ajax-more:hover { background: var(--myt-red); }
.zixun-wrap2 .ajax-more.is-loading { opacity: .6; cursor: wait; }
.zixun-wrap2 .ajax-more.is-done { background: #cfcfcf; cursor: default; }

/* 联系页移动端自适应：自建区块在手机上堆叠为单列，避免横向溢出。
   用 .ny-contact-page 前缀提高特异性，确保覆盖 ny.css 同名 .ny-contact-list 的断点。 */
@media (max-width: 768px) {
    .ny-contact-page .ny-contact,
    .ny-contact-page .ny-message,
    .ny-contact-page .ny-city { padding: 40px 0; }
    .ny-contact-page .ny-contact-list { justify-content: center; }
    .ny-contact-page .ny-contact-list .item { width: 50%; padding: 16px 6px; }
    .ny-contact-page .ny-contact-list .item p { word-break: break-all; }
    .join-form .jf-row, .ny-message-form .cf-row { flex-direction: column; gap: 0; }
    .ny-contact-page .map-city .city-item { width: 100%; }
    .ny-contact-page .map-dh { height: 300px; }
}
@media (max-width: 480px) {
    .ny-contact-page .ny-contact-list .item { width: 100%; }
}