/* =====================================================================
   WatsinCMS 前台样式（watsin.com.cn 风格：白底 · 医疗科技蓝 #2384d8 · 规整卡片）
   零外部依赖，纯原生 CSS
   ===================================================================== */

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333; background: #fff; font-size: 14px; line-height: 1.8;
}
a { color: #333; text-decoration: none; }
a:hover { color: #2384d8; }
img { border: 0; vertical-align: middle; }
ul { list-style: none; }

.wt-container { width: 1200px; max-width: 96%; margin: 0 auto; }
[hidden] { display: none !important; }

/* ---------- 顶部欢迎条 ---------- */
.wt-welcome {
    background: #f5f6f7; border-bottom: 1px solid #e8e8e8;
    font-size: 12px; color: #f60; line-height: 34px;
}

/* ---------- 头部：logo + 导航（桌面横排 / 移动汉堡；滚动时吸顶） ---------- */
.wt-header {
    background: #fff; border-bottom: 2px solid #e8e8e8;
    position: sticky; top: 0; z-index: 100;      /* 滚动时导航固定显示 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.wt-header-in { display: flex; align-items: center; justify-content: space-between; height: 92px; flex-wrap: wrap; }
.wt-logo { display: flex; align-items: center; }
.wt-logo img { height: 62px; width: auto; max-width: 60vw; }

/* 汉堡按钮（仅移动端显示） */
.wt-nav-toggle {
    display: none; width: 44px; height: 44px; flex: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: #fff; border: 1px solid #d8e2ec; border-radius: 4px; cursor: pointer; padding: 0;
}
.wt-nav-toggle span { display: block; width: 22px; height: 2px; background: #2384d8; border-radius: 1px; transition: transform .2s, opacity .2s; }
.wt-nav-toggle.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wt-nav-toggle.on span:nth-child(2) { opacity: 0; }
.wt-nav-toggle.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.wt-nav { display: flex; }
.wt-nav > li { position: relative; flex: none; }
.wt-nav > li > a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 0 24px; height: 92px;
    font-size: 16px; color: #333; text-align: center; line-height: 1.2;
}
.wt-nav > li > a em { font-size: 11px; font-style: normal; color: #999; letter-spacing: 0; }
.wt-nav > li > a:hover, .wt-nav > li > a.cur { background: #2384d8; color: #fff; }
.wt-nav > li > a:hover em, .wt-nav > li > a.cur em { color: #cfe6f8; }

/* 下拉子菜单 */
.wt-drop {
    display: none; position: absolute; top: 92px; left: 0; z-index: 99;
    min-width: 128px; background: #fff; border: 1px solid #e8e8e8; border-top: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
}
.wt-nav > li:hover .wt-drop { display: block; }
.wt-drop a { display: block; padding: 10px 18px; font-size: 14px; color: #333; white-space: nowrap; }
.wt-drop a:hover { background: #2384d8; color: #fff; }

/* ---------- 栏目页通栏 banner（后台可维护，叠加栏目标题） ---------- */
.wt-banner { position: relative; height: 230px; overflow: hidden; background: #2384d8; }
.wt-banner > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-banner::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15, 80, 140, .62) 0%, rgba(15, 80, 140, .30) 70%, rgba(15, 80, 140, .18) 100%);
}
/* 标题包一层 wt-container，与页面主内容同宽（PC 1200px）对齐，不贴浏览器边缘 */
.wt-banner-title { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; }
.wt-banner-title .wt-container { display: flex; align-items: center; }
.wt-banner-title h2 {
    color: #fff; font-size: 30px; font-weight: 700; letter-spacing: 3px;
    display: flex; align-items: baseline; gap: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.wt-banner-title h2 span { font-size: 14px; font-weight: 400; color: #cfe6f8; letter-spacing: 0; text-shadow: none; }

/* ---------- 蓝色栏目标题条（无 banner 素材时的兑底） ---------- */
.wt-bar { background: #2384d8; }
.wt-bar h2 {
    color: #fff; font-size: 24px; font-weight: 700; line-height: 64px; letter-spacing: 1px;
    display: flex; align-items: baseline; gap: 12px;
}
.wt-bar h2 span { font-size: 14px; font-weight: 400; color: #cfe6f8; letter-spacing: 0; }

/* ---------- 子分类标签条 ---------- */
.wt-subnav { background: #f5f6f7; border-bottom: 1px solid #e8e8e8; }
.wt-subnav .wt-container { display: flex; }
.wt-subnav a {
    display: block; padding: 0 30px; line-height: 46px; font-size: 14px; color: #333;
    border-right: 1px solid #e8e8e8;
}
.wt-subnav a:first-child { border-left: 1px solid #e8e8e8; }
.wt-subnav a:hover { color: #2384d8; }
.wt-subnav a.cur { background: #fff; color: #2384d8; font-weight: 700; border-bottom: 2px solid #fff; margin-bottom: -1px; }

/* ---------- 内容区 ---------- */
.wt-main { background: #fff; padding: 30px 0 50px; }
.wt-main > .wt-container { min-height: 300px; }

/* ---------- 首页通栏 banner 轮播（gtpharm 风格：全宽大图+左侧标语+了解详情） ---------- */
.wt-home-banner { position: relative; overflow: hidden; background: #0f508c; }
.wt-hb-slides { position: relative; }
.wt-hb-slide { position: relative; display: none; height: 480px; }
.wt-hb-slide.cur { display: block; }
.wt-hb-slide > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-hb-slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10, 50, 90, .55) 0%, rgba(10, 50, 90, .28) 60%, rgba(10, 50, 90, .12) 100%);
}
.wt-hb-caption { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; }
.wt-hb-caption .wt-container { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wt-hb-en {
    color: #cfe6f8; font-size: 15px; letter-spacing: 4px; font-family: Arial, sans-serif;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.wt-hb-cn {
    color: #fff; font-size: 42px; font-weight: 700; letter-spacing: 6px; line-height: 1.25;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .35);
}
.wt-hb-more {
    display: inline-block; margin-top: 16px; padding: 10px 30px;
    background: #1f8a6d; color: #fff; font-size: 14px; border-radius: 3px;
    text-shadow: none; letter-spacing: 1px;
}
.wt-hb-more:hover { background: #17705a; color: #fff; }
/* 轮播圆点 */
.wt-hb-dots {
    position: absolute; bottom: 18px; left: 0; right: 0; z-index: 2;
    display: flex; justify-content: center; gap: 10px;
}
.wt-hb-dots button {
    width: 12px; height: 12px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
    background: rgba(255, 255, 255, .5); transition: background .2s, transform .2s;
}
.wt-hb-dots button.cur { background: #1f8a6d; transform: scale(1.18); }
.wt-hb-dots button:hover { background: #fff; }

/* ---------- 首页：首屏企业简介（左文右图） ---------- */
.wt-about { display: flex; gap: 40px; align-items: stretch; padding: 34px 0 10px; }
.wt-about-text { flex: 1 1 auto; }
.wt-about-text h2 {
    font-size: 22px; color: #2384d8; font-weight: 700; padding-bottom: 14px; margin-bottom: 16px;
    border-bottom: 1px solid #e0e6ec; display: flex; align-items: baseline; gap: 10px;
}
.wt-about-text h2 span { font-size: 13px; color: #999; font-weight: 400; }
.wt-about-text p { font-size: 14px; color: #555; text-align: justify; }
.wt-about-more {
    display: inline-block; margin-top: 18px; padding: 7px 26px;
    background: #2384d8; color: #fff; font-size: 13px; border-radius: 3px;
}
.wt-about-more:hover { background: #1a6fb5; color: #fff; }
.wt-about-img { flex: 0 0 46%; }
.wt-about-img img { width: 100%; display: block; border-radius: 4px; }

/* ---------- 首页：区块标题 ---------- */
.wt-section { padding: 34px 0 6px; }
.wt-section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #2384d8; margin-bottom: 22px; }
.wt-section-head h2 { font-size: 20px; color: #2384d8; font-weight: 700; line-height: 40px; display: flex; align-items: baseline; gap: 8px; }
.wt-section-head h2 span { font-size: 12px; color: #999; font-weight: 400; }
.wt-more { font-size: 12px; color: #999; }
.wt-more:hover { color: #2384d8; }

/* ---------- 首页：产品卡片（一行 6 张） ---------- */
.wt-product-list { display: flex; gap: 16px; }
.wt-product-item {
    flex: 1 1 0; display: flex; flex-direction: column; text-align: center;
    border: 1px solid #e8eef4; border-radius: 4px; padding: 14px 8px 12px; background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.wt-product-item:hover { box-shadow: 0 8px 18px rgba(35, 132, 216, .15); transform: translateY(-3px); color: #333; }
.wt-product-item img { width: 100%; height: 130px; object-fit: contain; }
.wt-product-item span { font-size: 13px; color: #333; margin-top: 8px; line-height: 1.4; }

/* ---------- 首页：三列资讯 ---------- */
.wt-news-area { display: flex; gap: 30px; }
.wt-news-col { flex: 1 1 0; }
.wt-news-list li { border-bottom: 1px dashed #e8e8e8; }
.wt-news-list a { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; }
.wt-news-date { flex: 0 0 auto; font-size: 12px; color: #999; font-family: Arial, sans-serif; }
.wt-news-title {
    flex: 1 1 auto; font-size: 13px; color: #333; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.wt-news-list a:hover .wt-news-title { color: #2384d8; }

/* ---------- 首页：企业荣誉卡片 ---------- */
.wt-honor-list { display: flex; flex-wrap: wrap; gap: 16px; }
.wt-honor-item {
    flex: 1 1 180px; max-width: calc((100% - 32px) / 3); display: flex; flex-direction: column;
    border: 1px solid #e8eef4; border-radius: 4px; padding: 10px; background: #fff;
}
.wt-honor-item:hover { box-shadow: 0 8px 18px rgba(35, 132, 216, .12); color: #333; }
.wt-honor-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 2px; }
.wt-honor-item span { font-size: 12px; color: #555; margin-top: 8px; line-height: 1.5; text-align: center; }

/* ---------- 列表页（左图右文条目） ---------- */
.wt-news2 { }
.wt-news-item {
    display: flex; gap: 20px; padding: 20px 6px; border-bottom: 1px solid #e8e8e8;
}
.wt-news-item:hover { background: #fafcfe; }
.wt-news-item-img img {
    width: 160px; height: 120px; object-fit: cover; border-radius: 3px; border: 1px solid #e8eef4;
}
.wt-news-item-body { flex: 1 1 auto; }
.wt-news-item-body h3 { font-size: 16px; color: #333; font-weight: 700; margin-bottom: 8px; }
.wt-news-item:hover h3 { color: #2384d8; }
.wt-news-item-meta { font-size: 12px; color: #999; }
.wt-empty { padding: 60px 0; text-align: center; color: #999; }

/* ---------- 详情/单页 ---------- */
.wt-detail { padding-bottom: 10px; }
.wt-detail h1 {
    font-size: 22px; color: #333; font-weight: 700; text-align: center;
    padding: 6px 0 14px; margin-bottom: 10px; border-bottom: 1px solid #e0e6ec;
}
.wt-detail-meta { text-align: center; font-size: 12px; color: #999; padding-bottom: 14px; border-bottom: 1px dashed #e8e8e8; margin-bottom: 20px; }
.wt-detail-body { font-size: 14px; color: #444; }
.wt-detail-body p { margin: 10px 0; text-align: justify; }
.wt-detail-body img { max-width: 100%; height: auto; border-radius: 3px; margin: 8px 0; }
.wt-detail-body h2, .wt-detail-body h3 { margin: 16px 0 8px; color: #2384d8; }
.wt-detail-body strong { color: #2384d8; }

/* PDF 附件 */
.wt-pdf { margin: 24px 0 0; }
.wt-pdf-link {
    display: inline-block; padding: 9px 24px; border: 1px solid #d8e6f4; border-radius: 3px;
    background: #f5fafd; color: #2384d8; font-size: 14px;
}
.wt-pdf-link:hover { background: #2384d8; border-color: #2384d8; color: #fff; }

/* 相关阅读 */
.wt-related { margin-top: 30px; border-top: 1px solid #e0e6ec; padding-top: 16px; }
.wt-related h2 { font-size: 16px; color: #2384d8; margin-bottom: 10px; }
.wt-related li { line-height: 30px; border-bottom: 1px dashed #eee; }
.wt-related a { font-size: 14px; color: #555; }
.wt-related a:hover { color: #2384d8; }

/* ---------- 分页（TP8 Bootstrap 输出适配） ---------- */
.wt-pages { text-align: center; padding: 26px 0 6px; }
.wt-pages ul.pagination { display: inline-block; padding-left: 0; margin: 0; list-style: none; }
.wt-pages ul.pagination li { display: inline; }
.wt-pages ul.pagination li a,
.wt-pages ul.pagination li span {
    display: inline-block; min-width: 34px; height: 34px; line-height: 32px; padding: 0 10px; margin: 0 3px;
    border: 1px solid #e0e6ec; border-radius: 3px; background: #f5f6f7; color: #666;
    font-size: 14px; text-align: center; box-sizing: border-box;
}
.wt-pages ul.pagination li a:hover { background: #2384d8; border-color: #2384d8; color: #fff; }
.wt-pages ul.pagination li.active span { background: #2384d8; border-color: #2384d8; color: #fff; }
.wt-pages ul.pagination li.disabled span { background: #f5f6f7; color: #bbb; cursor: not-allowed; }

/* ---------- 留言表单 ---------- */
.wt-message { max-width: 760px; margin: 0 auto; }
.wt-message h1 {
    font-size: 22px; color: #333; font-weight: 700; text-align: center;
    padding: 6px 0 14px; margin-bottom: 18px; border-bottom: 1px solid #e0e6ec;
}
.wt-message-form { padding: 6px 0; }
.wt-form-row { margin-bottom: 16px; }
.wt-form-row label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.wt-form-row label em { color: #e05f5f; font-style: normal; margin-left: 2px; }
.wt-form-row input[type="text"], .wt-form-row textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #d8e2ec; border-radius: 3px;
    font-size: 14px; font-family: inherit; color: #333; outline: none;
}
.wt-form-row input[type="text"]:focus, .wt-form-row textarea:focus { border-color: #2384d8; }
.wt-form-actions { display: flex; align-items: center; gap: 16px; }
.wt-btn {
    padding: 10px 38px; background: #2384d8; color: #fff; font-size: 15px;
    border: 0; border-radius: 3px; cursor: pointer;
}
.wt-btn:hover { background: #1a6fb5; }
.wt-form-tip { font-size: 12px; color: #999; }

/* ---------- 回到顶部（滚动超过一屏显示，右下角悬浮） ---------- */
.wt-gotop {
    position: fixed; right: 26px; bottom: 46px; z-index: 95;
    width: 44px; height: 44px; border-radius: 50%;
    background: #2384d8; color: #fff; border: 0; cursor: pointer;
    font-size: 15px; line-height: 1; padding: 0;
    box-shadow: 0 4px 14px rgba(35, 132, 216, .4);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.wt-gotop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.wt-gotop:hover { background: #1a6fb5; }

/* ---------- 页脚 ---------- */
.wt-footer { background: #f5f6f7; border-top: 1px solid #e8e8e8; padding: 26px 0 30px; text-align: center; }
.wt-footer-nav { font-size: 13px; color: #666; padding-bottom: 12px; }
.wt-footer-nav a { color: #666; }
.wt-footer-nav a:hover { color: #2384d8; }
.wt-footer-nav span { color: #ccc; margin: 0 8px; }
.wt-footer-copy { font-size: 12px; color: #999; line-height: 1.9; }
.wt-footer-copy a { color: #999; }
.wt-footer-zizhi { padding-top: 8px; }
.wt-footer-zizhi img { height: 38px; }

/* ---------- 响应式：多端自适应 ---------- */
/* 平板（≤1024px）：导航切汉堡、内容区缩窄、栅格降列 */
@media (max-width: 1024px) {
    .wt-container { width: 100%; padding: 0 16px; }
    .wt-header-in { height: auto; padding: 10px 0; position: relative; }
    .wt-logo img { height: 48px; }
    .wt-nav-toggle { display: flex; }

    /* 导航：垂直展开 */
    .wt-nav { display: none; width: 100%; flex-direction: column; flex-basis: 100%; padding-bottom: 6px; }
    .wt-header-in.nav-open .wt-nav { display: flex; }
    .wt-nav > li > a {
        height: auto; padding: 12px 4px; flex-direction: row; align-items: baseline; gap: 8px;
        font-size: 15px; border-top: 1px solid #eef2f6;
    }
    .wt-nav > li > a em { font-size: 11px; }
    .wt-nav > li > a.cur { background: none; color: #2384d8; }
    .wt-nav > li > a.cur em { color: #9cc4e4; }

    /* 子菜单：手风琴展开（首次点击一级项展开） */
    .wt-drop {
        position: static; display: none; box-shadow: none; border: 0;
        background: #f8fafc; padding: 2px 0 6px;
    }
    .wt-nav > li.open > .wt-drop { display: block; }
    .wt-drop a { padding: 9px 16px 9px 20px; font-size: 14px; border-left: 2px solid #bcd6ec; margin-left: 6px; }

    /* banner */
    .wt-banner { height: 180px; }
    .wt-banner-title h2 { font-size: 24px; letter-spacing: 2px; }

    /* 子分类标签条：横向滚动 */
    .wt-subnav .wt-container { overflow-x: auto; }
    .wt-subnav a { padding: 0 18px; white-space: nowrap; }

    /* 首页 banner 轮播 */
    .wt-hb-slide { height: 340px; }
    .wt-hb-cn { font-size: 32px; letter-spacing: 4px; }
    .wt-hb-en { font-size: 13px; letter-spacing: 2px; }

    /* 首页栅格 */
    .wt-about { flex-direction: column; gap: 20px; }
    .wt-about-img { flex: none; }
    .wt-product-list { flex-wrap: wrap; gap: 14px; }
    .wt-product-item { flex: 1 1 calc((100% - 28px) / 3); }
    .wt-news-area { gap: 20px; }
    .wt-honor-item { flex: 1 1 calc((100% - 32px) / 3); max-width: none; }
}

/* 手机（≤768px）：单列布局 */
@media (max-width: 768px) {
    .wt-welcome { font-size: 11px; line-height: 30px; }
    .wt-logo img { height: 40px; }
    .wt-nav > li > a { padding: 11px 2px; font-size: 14px; }

    .wt-banner { height: 132px; }
    .wt-banner-title h2 { font-size: 19px; letter-spacing: 1px; }
    .wt-banner-title h2 span { font-size: 11px; }

    .wt-subnav a { padding: 0 14px; font-size: 13px; line-height: 42px; }

    .wt-main { padding: 18px 0 30px; }
    .wt-main > .wt-container { min-height: auto; }

    /* 首页 banner 轮播 */
    .wt-hb-slide { height: 220px; }
    .wt-hb-cn { font-size: 24px; letter-spacing: 2px; }
    .wt-hb-en { font-size: 11px; letter-spacing: 1px; }
    .wt-hb-more { margin-top: 10px; padding: 8px 22px; font-size: 13px; }
    .wt-hb-dots { bottom: 12px; gap: 8px; }
    .wt-hb-dots button { width: 9px; height: 9px; }

    /* 首屏 */
    .wt-about { padding: 20px 0 6px; }
    .wt-about-text h2 { font-size: 18px; padding-bottom: 10px; }
    .wt-about-text p { font-size: 13px; }
    .wt-about-more { padding: 6px 20px; }

    /* 区块 */
    .wt-section { padding: 22px 0 4px; }
    .wt-section-head h2 { font-size: 17px; }
    .wt-section-head { margin-bottom: 14px; }
    .wt-product-list { gap: 10px; }
    .wt-product-item { flex: 1 1 calc((100% - 20px) / 2); }
    .wt-product-item img { height: 96px; }
    .wt-product-item span { font-size: 12px; }

    .wt-news-area { flex-direction: column; gap: 22px; }
    .wt-news-list a { padding: 7px 0; }
    .wt-news-title { font-size: 12px; }

    .wt-honor-list { gap: 10px; }
    .wt-honor-item { flex: 1 1 calc((100% - 20px) / 2); }
    .wt-honor-item img { height: 88px; }
    .wt-honor-item span { font-size: 11px; }

    /* 列表条目：图缩小 */
    .wt-news-item { gap: 12px; padding: 14px 2px; }
    .wt-news-item-img img { width: 104px; height: 78px; }
    .wt-news-item-body h3 { font-size: 14px; }
    .wt-news-item-meta { font-size: 11px; }

    /* 详情/单页 */
    .wt-detail h1 { font-size: 17px; }
    .wt-detail-meta { font-size: 11px; }
    .wt-detail-body { font-size: 13px; }
    .wt-detail-body p { margin: 8px 0; }

    /* 留言表单 */
    .wt-form-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
    .wt-btn { width: 100%; }

    /* 分页 */
    .wt-pages ul.pagination li a, .wt-pages ul.pagination li span {
        min-width: 30px; height: 30px; line-height: 28px; padding: 0 8px; font-size: 13px;
    }

    /* 回顶部 */
    .wt-gotop { right: 14px; bottom: 30px; width: 40px; height: 40px; font-size: 13px; }

    /* 页脚 */
    .wt-footer { padding: 20px 0 24px; }
    .wt-footer-nav { line-height: 2; }
    .wt-footer-nav span { margin: 0 5px; }
    .wt-footer-zizhi img { height: 30px; }
}
