/*!
 * 亚洲玉都网 - 优化补丁样式表
 * 用途：集中承载从模板内联提取的样式 + 兼容性/响应式修复
 * 原则：不覆盖既有视觉，仅补齐与规范化；按 eyouCMS 模板加载顺序置于主样式之后
 * @version 1.0
 */

/* ========== 1. 头部搜索框（原 head.htm 内联 style=height:29px） ========== */
input.search-keyword {
    height: 29px;
    box-sizing: border-box;
}

/* ========== 2. 滚动公告（原 head.htm marquee 内联样式） ========== */
.noticTipTxt marquee {
    line-height: 30px;
    width: 100%;
    height: 30px;
}

/* ========== 3. 首页内联 <style> 提取（原 index.htm body 内 style 块） ========== */
strong {
    font-weight: normal;
}
.nowrap {
    display: inline-block;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
}

/* ========== 4. Swiper 容器宽度（原模板内联 style 块） ========== */
.swiper-container2 {
    width: 310px;
}
.swiper-container {
    width: 100%;
}

/* ========== 5. 页脚文字颜色（原 footer.htm <font color="#FFFFFF">） ========== */
#footer .footer .linkb_1 a,
#footer .footer .linkb_1 {
    color: #FFFFFF;
}
.linkb_1 a {
    color: #FFFFFF;
}

/* ========== 6. 通用工具样式（替代散落的内联 text-align:center 等） ========== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
.hide { display: none !important; }

/* ========== 7. 响应式基线：为固定 986px 布局提供小屏横向滚动，避免版式崩塌 ========== */
/* 老站为 986px 定宽设计，小屏不做重排（会破坏既有视觉），改为容器横向可滚动 */
@media screen and (max-width: 1000px) {
    html, body {
        min-width: 986px;
    }
}

/* ========== 8. 可访问性与渲染优化 ========== */
img {
    max-width: 100%;
    height: auto;
}
/* 注：img 全局 max-width 可能影响广告位固定尺寸图片，如发现异常可移除本条 */

/* ========== 9. 平滑滚动（锚点） ========== */
html {
    scroll-behavior: smooth;
}


/* ========== 10. DedeCMS legacy list/search result styles ========== */
/* These classes relied on 404 dedecms.css; now defined here (additive only). */
.w960 { width: 960px; }
.center { margin: 0 auto; }
.clear { clear: both; }
.mt1 { margin-top: 10px; }
.channel-nav { height: 34px; line-height: 34px; background: #f7f7f7; border: 1px solid #e2e2e2; padding: 0 10px; }
.channel-nav .sonnav { float: right; }
.pleft { float: left; width: 960px; }
.place { padding: 8px 0; color: #666; border-bottom: 1px solid #eee; margin-bottom: 8px; }
.place strong { color: #cf205c; }
.listbox { width: 100%; float: left; }
.listbox ul.e2 { list-style: none; }
.listbox ul.e2 li { clear: both; overflow: hidden; padding: 12px 0; border-bottom: 1px dashed #e0dede; }
.listbox ul.e2 li a.preview { float: left; margin-right: 12px; }
.listbox ul.e2 li a.preview img { width: 120px; height: 82px; object-fit: cover; border: 1px solid #e9e9e9; padding: 1px; }
.listbox ul.e2 li > a:not(.preview) { color: #cf205c; font-size: 14px; font-weight: bold; line-height: 22px; }
.listbox ul.e2 li > a:not(.preview):hover { color: #87002e; text-decoration: underline; }
.listbox .intro { font-size: 12px; line-height: 20px; color: #777; margin: 4px 0; }
.listbox .info { font-size: 12px; color: #999; line-height: 22px; }
.listbox .info a { color: #666; }
.listbox .info a:hover { color: #cf205c; }
.dede_pages { height: auto; clear: both; overflow: hidden; margin: 16px 0; text-align: center; }
.dede_pages ul { list-style: none; display: inline-block; }
.dede_pages li { float: left; margin: 0 2px; }
.dede_pages li a { display: block; padding: 4px 10px; border: 1px solid #ddd; background: #fff; color: #cf205c; }
.dede_pages li a:hover { background: #cf205c; color: #fff; text-decoration: none; }
.fc_03c { color: #cf205c; }

/* ========== 11. 页脚文章标题单行截断（防止长标题溢出遮挡相邻栏目） ========== */
/* 说明：页脚"最新文章/热点文章"标题原设置 titlelen=50，过长会撑破 260px 栏宽，
   盖住相邻栏目。以下让标题单行显示，超长部分以省略号结尾。 */
#site-link .newsbtm li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#site-link .newsbtm li a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}


/* ========== 12. 栏目页新闻列表标题单行截断（防止换行/溢出） ========== */
/* 说明：栏目页右侧/焦点区列表 #Ppqb_Cont / .Jd02 等容器宽度有限，
   长标题会换行撑破版面。以下统一单行省略号，保留 title 属性可悬停看全文。 */
#Ppqb_Cont li,
#Ppqb_Cont li a,
.Jd02 li,
.Jd02 li a,
#DjPh_Cont li a,
.ZxTj_Cont li a,
#List_Text li a,
.JcZt_Text li a {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}


/* ========== 13. 图片统一显示控制（缩略图策略配套） ========== */
/* 说明：上传图片由CSS统一约束显示尺寸；缩略图按240px生成，高清屏2x够用。
   正文大图保持原图，仅限制不超出容器。 */
#BigCont img,
.articleview img,
.content img {
    max-width: 100%;
    height: auto;
}
img[src*="_thumb"] {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
