/* 文德学校官网 补充样式（响应式适配 + 模板微调） */

/* 内容区通用容器在窄屏下的自适应 */
@media screen and (max-width: 768px) {
    .wd-main { width: 94% !important; margin-left: auto !important; margin-right: auto !important; }
    .wd-news-list .wd-item { height: auto !important; border-bottom: 1px solid #eeeeee; padding: 10px 0; }
    .wd-news-list .wd-item .wd-date { width: 70px !important; font-size: 1rem !important; line-height: 2rem !important; }
    .wd-news-list .wd-item .wd-text { width: 100% !important; float: none !important; }
    .wd-news-list .wd-item .wd-cover { width: 100% !important; float: none !important; height: auto !important; }
    .wd-news-list .wd-item .wd-cover img { width: 100% !important; height: auto !important; margin-top: 5px !important; }
    /* 图库移动端为原站 mobile-section 双列46vw结构(gallery.html), 不再用栅格化覆盖 */
    .wd-video-grid .wd-vcard { width: 94% !important; float: none !important; margin-left: auto !important; margin-right: auto !important; }
    .wd-teacher-grid .wd-tcard { width: 44% !important; margin-right: 3% !important; margin-bottom: 15px; }
    .wd-teacher-grid .wd-tcard img { width: 100% !important; height: auto !important; }
    .wd-tabs { display: block !important; text-align: center; }
    .wd-tabs > a, .wd-tabs > div { display: inline-block; margin: 4px 2px !important; float: none !important; }
    .wd-modal-body { width: 92% !important; }
    .WDModal { width: 94% !important; margin-left: -47% !important; height: 84% !important; overflow: auto; }
    .WDModalBody { width: 92% !important; }
    .wd-pagination { padding: 10px 0; }
    .wd-pagination li { float: none; display: inline-block; margin: 3px; }
    .wd-article-content img { max-width: 100% !important; height: auto !important; }
    .wd-detail-title { font-size: 1.2rem !important; line-height: 1.8 !important; }
}

/* 分页(bootstrap分页渲染为原站样式) */
.wd-pagination .pagination { margin: 20px 0; }
.wd-pagination .pagination > li > a,
.wd-pagination .pagination > li > span {
    color: #666;
    border: 1px solid #e0e0e0;
    margin: 0 3px;
    border-radius: 3px;
}
.wd-pagination .pagination > .active > a,
.wd-pagination .pagination > .active > a:focus,
.wd-pagination .pagination > .active > a:hover {
    background-color: #1c93ea;
    border-color: #1c93ea;
    color: #fff;
}

/* 页面主内容默认宽度 */
.wd-container { width: 1280px; margin-left: auto; margin-right: auto; position: relative; }

/* 文章正文 */
.wd-article-content { line-height: 2; color: #333; font-size: 16px; overflow: hidden; }
.wd-article-content p { margin: 0.5em 0; }
.wd-article-content img { max-width: 100%; height: auto; }

/* 详情页上一篇/下一篇 */
.wd-prevnext { border-top: 1px solid #eee; margin-top: 30px; padding: 12px 0; font-size: 14px; color: #888; }
.wd-prevnext a { color: #0f95fd; }

/* ===== 内页移动端适配 ===== */
@media screen and (max-width: 768px) {
    /* banner: 流式显示, 隐藏轮播克隆层 */
    .wd-banner-wrap .BannerDiv { height: auto !important; }
    .wd-banner-wrap .BannerDiv > div:first-child img { width: 100% !important; height: auto !important; }
    .wd-banner-wrap .banner_absolute { display: none !important; }
    /* 快捷条隐藏 */
    .wd-quickstrip { display: none !important; }
    /* 栏目标题 */
    .wd-main { width: 94% !important; }
    /* 信息页: banner流式 + 隐藏快捷条 + 容器流式 */
    .wd-info-content .BannerDiv { height: auto !important; }
    .wd-info-content .BannerDiv img { width: 100% !important; height: auto !important; }
    .wd-info-content .banner_absolute { display: none !important; }
    .wd-info-content div[style*="width:1042px"] { display: none !important; }
    .wd-info-content div[style*="width:1280px"],
    .wd-info-content div[style*="width:1225px"],
    .wd-info-content div[style*="width:1400px"],
    .wd-info-content div[style*="width:1000px"] { width: 96% !important; margin-left: auto !important; margin-right: auto !important; }
    .wd-info-content img { max-width: 100%; height: auto; }
    /* 首页桌面横幅隐藏(移动版有自己的内容) */
    .wd-home-banner { display: none !important; }
}

/* ===== 中英双语 ===== */

/* 英文版图片翻译: 全部采用 _en 后缀图片(GD生成, 仅替换文字区域), 模板内 wd_is_en() 三元切换;
   生成脚本 runtime/i18n/gen_quick_en.php(M1-M5) / gen_en_imgs2.php+fix_en_imgs3.php(banner/海报/占位图等) */

/* 英文版: PC导航项宽度自适应(原92px定宽装不下英文), 定位由wende.js按实际offset计算 */
body.lang-en .desktops-section .NavDiv > div[style*="width:92px"] {
    width: auto !important; padding: 0 10px;
}
body.lang-en .desktops-section .NavDiv > div[style*="width:92px"] > a { font-size: 15px; white-space: nowrap; }
/* 英文版: 下拉子栏目字号缩小, 避免超出206px单元格 */
body.lang-en .NavOverHid a { font-size: 15px; }

/* 英文版: 移动端顶栏/菜单文字无字距问题由模板内联处理; 校友/热点英文加长时防溢出 */
body.lang-en .wd-tabs { white-space: normal; }

@media screen and (max-width: 768px) {
    body.lang-en .desktops-section .NavDiv > div[style*="width:92px"] { padding: 0 4px; }
}

/* 图库卡片标题单行省略(超长英文精简展示, 全名在悬停提示与弹窗中完整展示);
   卡片高度归一后 float 行自然对齐, 消除因标题折行造成的错位与大留白 */
body.lang-en .wd-gtitle { font-size: 17px !important; }

/* PC弹窗可滚动(移动端768px断点已有), 竖版证书限高后长标题完整可见 */
.WDModal { overflow: auto; }

@media screen and (max-width: 768px) {
    body.lang-en .wd-gtitle { font-size: 0.72rem !important; }
}

/* 移动端首页轮播: 隐藏 FlexSlider 控制指示器(style.css 未加载, 默认 ol 序号+数字文字叠成 "1.1 2.2") */
.flexslider .flex-control-nav { display: none; }

/* 首页视频卡片封面统一按容器高度裁剪显示(源图比例不一时不再出现卡片高矮不一) */
.VideoDiv > a > img,
.VideoMore > a > img { height: 100%; object-fit: cover; }
