/* EMS168 官网样式（www.ems168.com 重写版） */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f7f9fb;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部条 ---------- */
.topbar { background: #22262e; color: #b7bdc8; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.topbar-links span { margin-right: 18px; }
.topbar-links strong { color: #ffd04b; }
.topbar-links a { margin-left: 18px; color: #9aa0aa; }
.topbar-links a:hover { color: #fff; }

/* ---------- 头部 ---------- */
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo { font-size: 24px; font-weight: 700; color: #c00; display: flex; align-items: center; }
.logo img { max-height: 60px; }
.header-contact { text-align: right; }
.contact-label { display: block; font-size: 12px; color: #999; }
.contact-tel strong { font-size: 24px; color: #c00; }

/* ---------- 导航 ---------- */
.site-nav { background: #1677ff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block;
    color: #fff;
    font-size: 16px;
    padding: 0 22px;
    line-height: 48px;
}
.nav-list > li > a:hover, .nav-list > li > a.active { background: #0e5fd8; }
.nav-sub {
    display: none;
    position: absolute;
    left: 0;
    top: 48px;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    z-index: 40;
}
.nav-item:hover .nav-sub { display: block; }
.nav-sub a { display: block; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: #333; }
.nav-sub a:hover { background: #f5f8ff; color: #1677ff; }

/* ---------- 首页轮播 ---------- */
.banner-slider { position: relative; overflow: hidden; background: #e8edf4; }
.banner-list { position: relative; height: clamp(150px, 21.4vw, 410px); }
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}
.banner-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}
.banner-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: background .2s;
}
.banner-dots i.on { background: #fff; }
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 26px;
    line-height: 40px;
    cursor: pointer;
}
.banner-arrow:hover { background: rgba(0, 0, 0, .45); }
.banner-prev { left: 16px; }
.banner-next { right: 16px; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #1677ff 0%, #0e42d2 100%);
    color: #fff;
    text-align: center;
    padding: 78px 0;
}
.hero h1 { font-size: 38px; margin-bottom: 16px; }
.hero-sub { font-size: 16px; opacity: .92; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 22px; }
.btn-primary {
    display: inline-block;
    background: #fff;
    color: #1677ff;
    padding: 10px 34px;
    border-radius: 6px;
    font-size: 16px;
}
.btn-primary:hover { opacity: .92; }
.btn-ghost {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .8);
    color: #fff;
    padding: 10px 34px;
    border-radius: 6px;
    font-size: 16px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-tel { font-size: 14px; opacity: .9; }
.hero-tel strong { color: #ffd04b; font-size: 18px; margin: 0 2px; }

/* 老站同款：板块标题（居中大标题 + 红色短线 + 灰色副标题） */
.boxheadercenter { text-align: center; margin-bottom: 30px; }
.boxheadercenter h3 { font-size: 26px; color: #333; font-weight: 700; line-height: 1.5; }
.titleline { position: relative; width: 420px; max-width: 70%; height: 2px; background: #e3e3e3; margin: 18px auto 16px; }
.titleline span { position: absolute; left: 50%; transform: translateX(-50%); top: -3px; width: 200px; height: 7px; background: #FB5F5D; }
.boxheadercenter .subtitle { color: #999; font-size: 14px; }
.svc-block { padding: 50px 0 76px; }
.boxmore { text-align: center; margin-top: 46px; }
.boxmore a {
    display: inline-block;
    background: #1677ff;
    color: #fff;
    padding: 12px 42px;
    border-radius: 6px;
    font-size: 15px;
    transition: background .2s;
}
.boxmore a:hover { background: #0e5fd8; }

/* 老站同款：灰底介绍板块 */
.intro-block { background: #ccc; padding: 34px 0 42px; }
.intro-block .boxheadercenter h3 { font-size: 22px; color: #444; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.intro-content { text-align: center; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
.intro-content p { margin: 15px 0; font-size: 18px; color: #333; }
.intro-content .lead { font-size: 24px; font-weight: 700; line-height: 1.6; }
.intro-content .big { font-size: 20px; }
.intro-content .red { color: #f00; }
.intro-content .blue { color: #369; }
.intro-content .darkred { color: #B22222; }
.intro-content .divider { color: #DAA520; overflow: hidden; white-space: nowrap; }
.intro-content .muted { color: #808080; font-size: 16px; font-weight: 700; }

/* 老站同款：CTA 通栏大图 */
.cta-band {
    position: relative;
    background: #22262e center center no-repeat;
    background-size: cover;
    text-align: center;
    color: #fff;
    padding: 120px 20px 100px;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(10, 16, 28, .4); }
.cta-band h3, .cta-band .subtitle, .cta-band .boxmore { position: relative; }
.cta-band h3 { font-size: 32px; margin-bottom: 20px; }
.cta-band .subtitle { font-size: 18px; line-height: 1.7; max-width: 900px; margin: 0 auto 36px; opacity: .96; }
.more1 { display: inline-block; border: 1px solid #fff; border-radius: 6px; color: #fff; padding: 11px 38px; font-size: 15px; transition: background .2s; }
.boxmore a.more1 { border: 0; }
.boxmore a.more1:hover { background: #0e5fd8; color: #fff; }

/* ---------- 通用版块 ---------- */
.section { padding: 56px 0; }
.section-alt { background: #eef2f8; }
.section-title { font-size: 26px; text-align: center; margin-bottom: 34px; color: #222; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.section-head .section-title { margin-bottom: 0; }
.section-head .more { color: #1677ff; font-size: 14px; }
.more:hover { text-decoration: underline; }

/* 卡片（业务范围） */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.card { background: #fff; border-radius: 8px; padding: 26px 24px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: 12px; font-size: 18px; }
.card h3 a { color: #1677ff; }
.card-links li { padding: 4px 0; }
.card-links a { color: #666; font-size: 14px; }
.card-links a:hover { color: #1677ff; }

/* 出版服务（首页，老站六宫格迁移：左图右文两栏） */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 56px; }
.svc-item { display: flex; gap: 24px; align-items: flex-start; }
.svc-item img { width: 44%; flex-shrink: 0; height: auto; display: block; background: #f2f4f8; }
.svc-body { flex: 1; min-width: 0; padding-top: 8px; }
.svc-body h3 { font-size: 17px; color: #333; line-height: 1.5; margin-bottom: 14px; }
.svc-item:hover .svc-body h3 { color: #1677ff; }
.svc-body p { color: #888; font-size: 14px; line-height: 1.9; margin-bottom: 18px; }
.svc-btn {
    display: inline-block;
    border: 1px solid #d9d9d9;
    padding: 9px 18px;
    font-size: 13px;
    font-style: normal;
    color: #555;
    transition: border-color .2s, color .2s;
}
.svc-item:hover .svc-btn { border-color: #1677ff; color: #1677ff; }

/* DVD 站首页：介质类型网格（老站 block125 两列图文网格迁移） */
.media-block { padding: 50px 0 76px; background: #f7f9fc; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.media-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    transition: transform .2s, box-shadow .2s;
}
.media-item:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .1); }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #f2f4f8; }
.media-name {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-item:hover .media-name { color: #1677ff; }

/* 新闻列表 */
.news-list { background: #fff; border-radius: 8px; padding: 8px 26px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.news-list li { border-bottom: 1px dashed #eee; }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.news-title { color: #333; font-size: 15px; }
.news-list a:hover .news-title { color: #1677ff; }
.news-date { color: #999; font-size: 13px; margin-left: 20px; white-space: nowrap; }

/* 图文方格 */
.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: transform .2s; }
.grid-item:hover { transform: translateY(-3px); }
.grid-item img { width: 100%; height: 160px; object-fit: cover; display: block; background: #f2f4f8; }
.grid-title { padding: 12px 14px; font-size: 14px; color: #333; line-height: 1.5; }
.grid-item:hover .grid-title { color: #1677ff; }

/* ---------- 内页公共 ---------- */
.page-kv { background: #fff; }
.page-kv img { width: 100%; height: auto; display: block; }
.page-banner { background: linear-gradient(135deg, #2453b8 0%, #1677ff 100%); color: #fff; padding: 34px 0; }
.page-banner h1 { font-size: 26px; font-weight: 600; }
.page-wrap { padding: 24px 20px 56px; }
.crumb { color: #888; font-size: 13px; padding: 12px 4px; }
.crumb a:hover { color: #1677ff; }

/* 单页面布局 */
.page-layout { display: flex; gap: 24px; align-items: flex-start; }
.page-side { width: 230px; flex-shrink: 0; background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.page-side h3 { font-size: 16px; padding-bottom: 10px; border-bottom: 2px solid #1677ff; margin-bottom: 10px; }
.page-side li a { display: block; padding: 9px 10px; font-size: 14px; color: #444; border-radius: 4px; }
.page-side li a:hover, .page-side li a.active { background: #f0f6ff; color: #1677ff; }
.page-content { flex: 1; background: #fff; border-radius: 8px; padding: 30px 34px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); line-height: 1.9; color: #444; overflow-wrap: break-word; }
.page-content.full { max-width: 100%; }
.page-content img { height: auto; }
.page-content p { margin: 10px 0; }
.page-content h1, .page-content h2, .page-content h3 { margin: 18px 0 10px; color: #222; }

/* 类目筛选标签 */
.cate-tabs { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0 20px; }
.cate-tabs a { background: #fff; padding: 6px 18px; border-radius: 20px; font-size: 14px; color: #555; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.cate-tabs a.active, .cate-tabs a:hover { background: #1677ff; color: #fff; }

/* 文字列表 */
.cate-list { background: #fff; border-radius: 8px; padding: 6px 26px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.cate-list li { border-bottom: 1px dashed #eee; }
.cate-list li:last-child { border-bottom: 0; }
.cate-list a { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.cate-list-thumb img { border-radius: 6px; display: block; flex-shrink: 0; }
.cate-list-main { flex: 1; min-width: 0; }
.cate-list-title { display: block; font-size: 16px; color: #333; margin-bottom: 6px; }
.cate-list a:hover .cate-list-title { color: #1677ff; }
.cate-list-brief { display: block; color: #999; font-size: 13px; line-height: 1.6; overflow: hidden; }
.cate-list-date { color: #999; font-size: 13px; white-space: nowrap; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination .current { min-width: 36px; padding: 7px 12px; text-align: center; background: #fff; border-radius: 4px; font-size: 14px; color: #555; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.pagination a:hover { color: #1677ff; }
.pagination .current { background: #1677ff; color: #fff; }

/* ---------- 详情页 ---------- */
.detail { background: #fff; border-radius: 8px; padding: 34px 40px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.detail-title { font-size: 26px; color: #222; line-height: 1.4; margin-bottom: 14px; }
.detail-meta { color: #999; font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid #f0f0f0; margin-bottom: 22px; }
.detail-meta span { margin-right: 18px; }
.detail-kv { margin-bottom: 22px; }
.detail-kv img { max-width: 100%; height: auto; display: block; }
.detail-content { line-height: 2; color: #444; overflow-wrap: break-word; }
.detail-content img { height: auto; }
.detail-content p { margin: 10px 0; }
.detail-content h1, .detail-content h2, .detail-content h3 { margin: 18px 0 10px; color: #222; }
.related { margin-top: 40px; }

/* ---------- 关于版块（首页） ---------- */
.about-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.about-text { background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.about-text .section-title { text-align: left; margin-bottom: 16px; }
.about-text p { color: #666; line-height: 1.9; margin-bottom: 20px; }
.about-contact { background: #22262e; color: #cfd4dc; border-radius: 8px; padding: 26px; }
.about-contact h3 { color: #fff; margin-bottom: 14px; font-size: 18px; }
.about-contact p { font-size: 14px; line-height: 2; }

/* 空提示与错误页 */
.empty-tip { text-align: center; color: #999; padding: 70px 0; font-size: 15px; }
.error-page { text-align: center; }
.error-page h1 { font-size: 72px; color: #1677ff; margin-bottom: 14px; }
.error-page p { color: #888; margin-bottom: 26px; }

/* ---------- 底部 ---------- */
.site-footer { background: #20242b; color: #9aa0aa; font-size: 13px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 26px; padding: 36px 20px; }
.footer-col h4 { color: #dfe3e9; font-size: 15px; margin-bottom: 12px; }
.footer-col p { line-height: 1.9; }
.footer-col a:hover { color: #fff; }
.footer-about p { color: #8a919d; }
.footer-bottom { border-top: 1px solid #2c313a; padding: 14px 0; text-align: center; }
.footer-bottom p { line-height: 1.8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 在线咨询浮窗 ---------- */
.online-consult { position: fixed; right: 0; top: 40%; z-index: 90; font-size: 13px; }
.oc-tab {
    writing-mode: vertical-lr;
    letter-spacing: 4px;
    background: #1677ff;
    color: #fff;
    padding: 14px 8px;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.oc-panel {
    display: none;
    width: 168px;
    background: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    padding: 14px;
}
.online-consult.open .oc-panel { display: block; }
.online-consult.open .oc-tab { display: none; }
.oc-close { text-align: right; color: #999; cursor: pointer; margin-bottom: 6px; }
.oc-close:hover { color: #1677ff; }
.oc-qq li { margin: 8px 0; }
.oc-qq a { display: block; background: #f0f6ff; color: #1677ff; border-radius: 4px; padding: 7px 10px; font-size: 13px; }
.oc-qq a:hover { background: #1677ff; color: #fff; }
.oc-tel { border-top: 1px dashed #eee; margin-top: 12px; padding-top: 10px; color: #666; line-height: 1.9; }
.oc-tel b { color: #c00; }
.oc-tel .oc-label { color: #999; margin-right: 6px; }
.oc-wechat { border-top: 1px dashed #eee; margin-top: 10px; padding-top: 10px; text-align: center; color: #666; }
.oc-wechat img { width: 110px; height: 110px; display: block; margin: 6px auto 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .nav-list > li > a { padding: 0 12px; font-size: 14px; }
    .page-layout { flex-direction: column; }
    .page-side { width: 100%; }
    .about-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .cate-list-thumb img { width: 90px !important; height: 66px !important; }
    .cate-list-date { display: none; }
    .svc-grid { grid-template-columns: 1fr; gap: 32px; }
    .media-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cta-band { padding: 64px 20px 56px; }
    .cta-band h3 { font-size: 22px; }
    .intro-content .lead { font-size: 20px; }
    .intro-content .big { font-size: 17px; }
    .boxheadercenter h3 { font-size: 20px; }
    .titleline { width: 240px; }
    .banner-arrow { display: none; }
}
