/* ==========================================================================
   zyzginfo.com 公共页头页脚样式
   与主站 /css/common.css + /css/default.css 保持一致（选择器作用域限定在
   #zy-site-header / #zy-site-footer 内，不影响文章正文排版）
   ========================================================================== */

/* ---- 基础（作用域限定，不污染文章内容） ---- */
#zy-site-header, #zy-site-footer {
    font-family: Microsoft YaHei, Tahoma, Geneva, sans-serif;
    font-size: 12px;
    color: #666;
}
#zy-site-header ul, #zy-site-header ul li,
#zy-site-footer ul, #zy-site-footer ul li,
#zy-site-footer li { list-style: none; list-style-type: none; margin: 0; padding: 0; }
#zy-site-header img, #zy-site-footer img { border: 0; }
#zy-site-header em, #zy-site-header i,
#zy-site-footer em, #zy-site-footer i { font-style: normal; }
#zy-site-header a { color: #666; text-decoration: none; }
#zy-site-header a:hover { text-decoration: none; }

/* ---- 工具类 ---- */
#zy-site-footer .tc { text-align: center !important; }
#zy-site-footer .pt10 { padding-top: 10px !important; }
#zy-site-footer .pb20 { padding-bottom: 20px !important; }

/* ---- 公共容器（与主站一致） ---- */
#zy-site-header .mains, #zy-site-footer .mains { width: 1400px; margin: 0 auto; }

/* ---- 顶栏 ---- */
#zy-site-header .top-info { width: 100%; padding: 8px 0; background: #f3f9ff; }
#zy-site-header .top-info-con { display: flex; justify-content: space-between; align-items: center; font-size: 14px; line-height: 2.0; letter-spacing: 1px; }
#zy-site-header .top-info-con a { font-size: 14px; padding-left: 15px; padding-right: 15px; }
#zy-site-header .top-info-con .top-right { display: flex; justify-content: center; }
#zy-site-header .top-info-con .top-right p { margin-left: 10px; }
#zy-site-header .top-info-con .top-right a:nth-child(1) { border-right: 2px solid #d9dadb; }

/* ---- 中部 LOGO/搜索 ---- */
#zy-site-header .cons { width: 100%; padding: 30px 0 20px 0; }
#zy-site-header .cons-main { display: flex; align-items: center; justify-content: space-between; }
#zy-site-header .cons-main .logo-rz { display: flex; justify-content: center; align-items: center; }
#zy-site-header .cons-main .logo-rz .logo { max-width: 350px; }
#zy-site-header .cons-main .logo-rz .renzheng { max-width: 193px; margin-left: 55px; }
#zy-site-header .gift { display: flex; justify-content: center; align-items: center; background: #0472de; color: #ffffff; padding: 8px 20px; border-radius: 20px; font-size: 15px; }
#zy-site-header .gift img { height: 24px; background: #0472de; padding-right: 10px; }
#zy-site-header .serch { flex: 1; height: 38px; padding: 0 18px; margin: 0 30px 0 90px; border: 1px solid #c4c4c4; border-radius: 30px; display: flex; justify-content: space-between; align-items: center; }
#zy-site-header .serch form { width: 100%; }
#zy-site-header .serch form .sear-dom { width: 100%; display: flex; justify-content: space-between; align-items: center; }
#zy-site-header .serch form .sear-dom input { border: none; flex: 1; }
#zy-site-header .serch form .sear-dom input:focus { outline: none; }
#zy-site-header .serch form .sear-dom img { width: 16px; margin-right: 10px; }
#zy-site-header .serch form .sear-dom a { cursor: pointer; font-size: 14px; font-weight: bold; color: #000000; border-left: 1px solid #999999; padding-left: 10px; margin-left: 10px; }

/* ---- 主导航（与主站一致） ---- */
#zy-site-header .nav { width: 100%; }
#zy-site-header .nav ul { width: 100%; display: flex; justify-content: center; }
#zy-site-header .nav li { margin: 0 10px; }
#zy-site-header .nav li.hot { position: relative; }
#zy-site-header .nav li.hot:after {
    position: absolute;
    right: -8px; top: 50%;
    transform: translate(0, -50%);
    content: "";
    width: 18px; height: 20px;
    background: url(../images/hot.png) center no-repeat;
    background-size: 100% 100%;
}
#zy-site-header .nav li a { padding: 0 15px; font-size: 16px; display: block; height: 32px; line-height: 32px; vertical-align: middle; text-align: center; color: #000000; }
#zy-site-header .nav li:hover a { color: #fd5945; }
#zy-site-header .nav li.on a { color: #fd5945; font-weight: bold; }

/* ---- 页脚（与主站一致） ---- */
#zy-site-footer footer { width: 100%; padding: 55px 0 0 0; background: #0e1c37; }
#zy-site-footer .footer-logo { width: 100%; padding-bottom: 30px; border-bottom: 1px solid #4a5569; display: flex; justify-content: space-between; align-items: center; }
#zy-site-footer .footer-logo p { font-size: 16px; color: #fff; }
#zy-site-footer .footer-logo img { max-width: 360px; }
#zy-site-footer .footer-con { width: 100%; display: flex; justify-content: space-between; padding: 50px 0; }
#zy-site-footer .footer-con .footer-nav { width: 100%; }
#zy-site-footer .footer-con .footer-nav h4 { padding-top: 15px; font-size: 16px; line-height: 2.0; position: relative; color: #ffffff; opacity: 0.4; }
#zy-site-footer .footer-con .footer-nav h4:before { position: absolute; left: 0; top: 0; content: ""; width: 17px; height: 5px; background: #626b7d; }
#zy-site-footer .footer-con .footer-nav .footer-nav-con { display: flex; margin-top: 15px; }
#zy-site-footer .footer-con .footer-nav .footer-nav-con .footer-nav-li { padding-right: 40px; }
#zy-site-footer .footer-con .footer-nav .footer-nav-con .footer-nav-li a { display: block; margin: 15px 0; font-size: 14px; line-height: 2.0; color: #ffffff; opacity: 0.4; }
#zy-site-footer .footer-con .footer-nav .footer-nav-con .footer-nav-li a:hover { opacity: 1.0; }
#zy-site-footer .footer-con .footer-nav .footer-nav-con .footer-nav-li p { display: block; margin: 15px 0; font-size: 14px; line-height: 2.0; color: #ffffff; opacity: 0.4; }
#zy-site-footer .footer-con .footer-ewm { width: 300px; text-align: center; padding-top: 36px; margin-left: 15px; }
#zy-site-footer .footer-con .footer-ewm img { width: 100%; }
#zy-site-footer .footer-con .footer-ewm p { font-size: 14px; line-height: 2.0; color: #ffffff; opacity: 0.4; }
#zy-site-footer .copyright { width: 100%; background: #102142; font-size: 14px; line-height: 2.0; color: #ffffff; padding: 20px 0; }
#zy-site-footer .copyright .copyright-con { display: flex; justify-content: space-between; }
#zy-site-footer .copyright .copyright-con p { opacity: 0.55; }
#zy-site-footer .copyright .copyright-con p a { color: #ffffff; opacity: 1.0; }
#zy-site-footer .copyright .copyright-con span { color: #ffffff; opacity: 0.55; }
#zy-site-footer .copyright .copyright-con a { color: #ffffff; }

/* ---- 桌面端宽度断点（与主站 default.css 一致） ---- */
@media (max-width: 1500px) { #zy-site-header .nav li { margin: 0 6px; } }
@media (max-width: 1440px) {
    #zy-site-header .mains, #zy-site-footer .mains { width: 1240px; }
    #zy-site-header .nav li { margin: 0 5px; }
}
@media (max-width: 1300px) {
    #zy-site-header .mains, #zy-site-footer .mains { width: 1140px; }
}
@media (max-width: 1200px) {
    #zy-site-header .mains, #zy-site-footer .mains { width: 1000px; }
}
@media (max-width: 1000px) {
    #zy-site-header .mains, #zy-site-footer .mains { width: 73%; }
}

/* ---- 移动端适配（主站移动端由 m.zyzginfo.com 承担，静态文章页在此适配） ---- */
@media (max-width: 768px) {
    #zy-site-header .mains, #zy-site-footer .mains { width: 100%; padding: 0 12px; box-sizing: border-box; }
    #zy-site-header .top-info { padding: 6px 0; }
    #zy-site-header .top-info-con { flex-direction: column; align-items: flex-start; line-height: 1.9; font-size: 13px; }
    #zy-site-header .top-info-con .top-left { font-size: 12px; }
    #zy-site-header .top-info-con .top-right { flex-wrap: wrap; font-size: 12px; }
    #zy-site-header .top-info-con .top-right a { font-size: 12px; padding: 0 8px; }
    #zy-site-header .top-info-con .top-right p { margin-left: 8px; }
    #zy-site-header .cons { padding: 15px 0 10px; }
    #zy-site-header .cons-main { flex-wrap: wrap; }
    #zy-site-header .cons-main .logo-rz .logo { max-width: 220px; }
    #zy-site-header .cons-main .logo-rz .renzheng { max-width: 110px; margin-left: 15px; }
    #zy-site-header .gift { display: none; }
    #zy-site-header .serch { flex: 1 1 100%; order: 3; margin: 10px 0 0; height: 36px; }
    #zy-site-header .nav ul { flex-wrap: wrap; justify-content: center; padding: 0 4px; }
    #zy-site-header .nav li { margin: 3px 4px; }
    #zy-site-header .nav li a { font-size: 14px; padding: 0 10px; height: 30px; line-height: 30px; }
    #zy-site-footer footer { padding: 35px 0 0; }
    #zy-site-footer .footer-logo { flex-direction: column; text-align: center; }
    #zy-site-footer .footer-logo p { margin-top: 8px; }
    #zy-site-footer .footer-logo img { max-width: 260px; }
    #zy-site-footer .footer-con { flex-direction: column; padding: 25px 0; }
    #zy-site-footer .footer-con .footer-nav .footer-nav-con { flex-wrap: wrap; }
    #zy-site-footer .footer-con .footer-nav .footer-nav-con .footer-nav-li { padding: 0 25px 0 0; width: 50%; box-sizing: border-box; }
    #zy-site-footer .footer-con .footer-ewm { width: 180px; margin: 15px auto 0; }
    #zy-site-footer .copyright { padding: 14px 0; }
    #zy-site-footer .copyright .copyright-con { flex-direction: column; align-items: center; text-align: center; }
}