@charset "utf-8";
/* ==========================================================================
   全站自适应样式 responsive.css
   适用页面：index / new / newlist / rili / guanyuwomen / chaxun
   断点：≥1200 桌面 | 992-1199 小桌面·横屏平板 | 768-991 竖屏平板 | ≤767 手机 | ≤400 超小屏
   ========================================================================== */

/* ==========================================================================
   0. 基础重置
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   1. 容器流体化（原固定 1190px）
   ========================================================================== */
.width,
.oilwidth {
  width: 100%;
  max-width: 1190px;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.select {
  width: 100%;
  max-width: 1190px;
  margin: 30px auto;
  box-sizing: border-box;
}

/* ==========================================================================
   2. 顶部欢迎条
   ========================================================================== */
.topbar {
  line-height: 44px;
}

.topbar .width {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* ==========================================================================
   3. 头部 + 主导航
   ========================================================================== */
.bg_header {
  height: auto;
  position: relative;
}

.bg_header .header {
  height: auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  float: none;
  flex: 0 0 auto;
  width: auto;
  max-width: 200px;
  height: auto;
  padding: 10px 0;
}

.header .logo img {
  max-width: 100%;
  max-height: 50px;
  height: auto;
}

.header .nav {
  float: none;
  width: auto;
  flex: 0 1 auto;
}

/* 汉堡按钮：默认隐藏，仅 ≤991px 显示 */
.nav-toggle {
  display: none;
}

/* ==========================================================================
   4. 内页蓝色标题条（new / newlist / rili / guanyuwomen）
   ========================================================================== */
.bg_inner {
  height: auto;
}

.banner_inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 12px 0;
  box-sizing: border-box;
}

.banner_inner .left {
  float: none;
}

.banner_inner .left ul {
  margin-top: 0;
}

.banner_inner .right {
  float: none;
  margin-top: 0;
}

/* ==========================================================================
   5. 地区查询（index / chaxun）
   ========================================================================== */
.select {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  min-height: 90px;
}

.select_left {
  flex: 0 0 164px;
  height: auto;
  min-height: 90px;
  box-sizing: border-box;
}

.select_right {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  min-height: 90px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.select_right span {
  width: auto;
  flex: 0 0 60px;
  box-sizing: border-box;
}

/* ==========================================================================
   6. 油价主体两栏（index / chaxun）
   ========================================================================== */
.oilwidth {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.oilleft {
  float: none;
  width: auto;
  flex: 0 0 calc(100% - 340px);
  max-width: 820px;
}

.oilright {
  float: none;
  width: auto;
  flex: 0 0 340px;
}

/* 浮动布局遗留的清除元素在 flex 容器中不再需要 */
.oilwidth > .clear,
.home_logo > .clear,
.topshowyj > .clear,
.oilcity_b ul > .clear {
  display: none;
}

/* --- 表头 --- */
.oilbg {
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.oilbg span.utbtit {
  float: none;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
}

.oilbg span.updatetimetit {
  float: none;
  width: auto;
  flex: 0 0 160px;
  box-sizing: border-box;
}

/* --- 表体 --- */
.oilbody ul {
  width: 100%;
}

.oilbody li {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 45px;
  padding: 5px 0;
  box-sizing: border-box;
}

.oilbody div.utb {
  float: none;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  line-height: 35px;
  box-sizing: border-box;
}

.oilbody div.updatetime {
  float: none;
  width: auto;
  flex: 0 0 160px;
  height: auto;
  line-height: 35px;
  box-sizing: border-box;
}

/* --- 标题行 --- */
.oilsubject {
  line-height: 1.6;
}

.oilsubject c {
  display: inline-block;
  width: auto;
}

/* --- 右栏 --- */
.oilweixin {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  box-sizing: border-box;
}

.oilweixin .zhidao {
  width: 100%;
  height: auto;
  min-height: 120px;
  box-sizing: border-box;
}

.oilnew {
  box-sizing: border-box;
}

.oil_news_list li a {
  word-break: break-all;
}

/* ==========================================================================
   7. 城市油价详情（chaxun）
   ========================================================================== */
.oilcity_t,
.oilcity_c,
.oilcity_b {
  width: 100%;
  max-width: 820px;
  box-sizing: border-box;
}

.city_t,
.city_b {
  padding: 15px;
  font-size: 15px;
  line-height: 24px;
  box-sizing: border-box;
}

/* 今日油价四个大数字块 */
.topshowyj {
  margin-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topshowyj .topshowyj-list {
  flex: 1 1 300px;
  width: auto;
  max-width: none;
  float: none;
  margin: 0;
  height: auto;
  line-height: 1.5;
  font-size: 22px;
  padding: 12px 15px;
  box-sizing: border-box;
}

/* 走势图容器（内联 width:788px 需强制覆盖） */
#main {
  width: 100% !important;
  max-width: 788px;
  height: 400px;
  margin: 30px auto 0;
}

/* 市区油价 */
.oilcity_nav {
  margin: 0;
}

.oilcity_nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 15px auto;
}

.oilcity_nav ul li {
  flex: 0 0 20%;
  max-width: 20%;
  width: auto;
  height: 38px;
  line-height: 38px;
  font-size: 15px;
  padding: 0;
  box-sizing: border-box;
}

/* 省市油价 */
.oilcity_b ul {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
  margin: 15px auto;
}

.oilcity_b ul span {
  flex: 0 0 20%;
  max-width: 20%;
  float: none;
  height: 38px;
  line-height: 38px;
  font-size: 15px;
  box-sizing: border-box;
}

/* ==========================================================================
   8. 新闻列表页（new）
   ========================================================================== */
.home_nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px auto;
}

.home_nav ul li {
  margin-bottom: 10px;
}

.pagelist ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   9. 新闻详情 / 单页（newlist / rili / guanyuwomen）
   ========================================================================== */
.news_show .intro {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.news_show .intro img {
  max-width: 100% !important;
  height: auto !important;
}

.news_show .intro section,
.news_show .intro table {
  max-width: 100% !important;
}

/* ==========================================================================
   10. 合作客户 / 友情链接 / 页脚
   ========================================================================== */
.home_logo ul {
  display: flex;
  flex-wrap: wrap;
}

.home_logo ul li {
  float: none;
  flex: 0 0 10%;
  max-width: 10%;
}

.link,
.footer {
  box-sizing: border-box;
}

.footer .left,
.aboutus {
  box-sizing: border-box;
}

/* ==========================================================================
   断点一：≤1199px  两栏改上下堆叠
   ========================================================================== */
@media (max-width: 1199px) {

  .oilleft,
  .oilright {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .oilright {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .oilright .oilweixin {
    flex: 0 0 340px;
    margin: 0;
  }

  .oilright .oilnew {
    flex: 1 1 320px;
    min-width: 0;
    margin-top: 0;
  }
}

/* ==========================================================================
   断点二：≤991px  导航折叠 · 页脚堆叠
   ========================================================================== */
@media (max-width: 991px) {

  /* --- 导航折叠 --- */
  .nav-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -16px;
    width: 34px;
    height: 32px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle span {
    display: block;
    height: 3px;
    margin: 6px 0;
    background: #fff;
    border-radius: 2px;
    transition: all .3s ease;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #030408;
    border-top: 1px solid #1c1c22;
    z-index: 1000;
  }

  .header .nav.open {
    display: block;
  }

  .header .nav > ul {
    width: 100%;
  }

  .header .nav ul li {
    float: none;
    width: 100%;
    margin: 0;
  }

  .header .nav ul li a {
    display: block;
    line-height: 48px;
    padding: 0 15px;
    border-bottom: 1px solid #1c1c22;
  }

  .header .nav ul li .subnav {
    position: static;
    left: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    background: #111;
  }

  .header .nav ul li .subnav:after {
    display: none;
  }

  .header .nav ul li:hover .subnav li a {
    display: block;
    line-height: 42px;
    padding: 0 30px;
    background: #111;
    color: #ccc;
    border-bottom: 1px solid #1c1c22;
  }

  .header .nav ul li:hover .subnav li a:hover {
    background: #222;
    color: #fff;
  }

  /* --- 地区查询 --- */
  .select {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* --- 右栏 --- */
  .oilright .oilweixin,
  .oilright .oilnew {
    flex: 0 0 100%;
  }

  .oilright .oilweixin {
    margin: 0 auto 20px;
  }

  /* --- 内页蓝条 --- */
  .banner_inner .left,
  .banner_inner .right {
    flex: 0 0 100%;
    text-align: left;
  }

  .banner_inner .right {
    margin-top: 8px;
    font-size: 14px;
  }

  .banner_inner .right p {
    font-size: 12px;
    line-height: 18px;
    margin: 4px 0 0 0;
  }

  /* --- 页脚 --- */
  .footer .left {
    float: none;
    width: 100%;
    min-height: 0;
    padding: 0 0 20px 0;
    background: none;
  }

  .aboutus {
    float: none;
    width: 100%;
  }

  .aboutus .aboutus_logo {
    float: none;
    width: 100%;
    margin-bottom: 10px;
  }

  .aboutus .text {
    float: none;
    width: 100%;
    margin-top: 0;
  }

  /* --- 城市油价：列表项放宽 --- */
  .oilcity_nav ul li,
  .oilcity_b ul span {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* ==========================================================================
   断点三：≤767px  手机：表格转卡片、各区块单列、隐藏次要模块
   ========================================================================== */
@media (max-width: 767px) {

  /* --- 手机端隐藏的次要模块 --- */
  .select,
  .oilweixin,
  .partner-box,
  .related-box,
  .dynamic-box,
  .bg_link,
  .bg_inner,
  .plug_service {
    display: none;
  }

  /* --- 通用间距收窄 --- */
  .oilleft,
  .oilright,
  .footer {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .topbar {
    line-height: 40px;
    font-size: 13px;
  }

  .inner_container {
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 0;
  }

  /* --- 油价标题行 --- */
  .oilsubject {
    padding-bottom: 5px;
  }

  .oilsubject b {
    height: 34px;
    line-height: 34px;
  }

  .oilsubject c {
    display: block;
    margin-left: 0;
    font-size: 13px;
    line-height: 24px;
  }

  .oilsubject .more {
    float: none;
    display: block;
    line-height: 22px;
    margin: 0 0 6px 0;
  }

  /* --- 油价列表：表格 → 卡片 --- */
  .oilbg {
    display: none;
  }

  .oilbody li {
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px 10px;
    align-items: flex-start;
  }

  /* 地区名独占一行 */
  .oilbody li .utb:first-child {
    flex: 0 0 100%;
    height: auto;
    line-height: 26px;
    text-align: left;
    font-size: 17px;
    font-weight: bold;
    color: #0072c6;
  }

  /* 四个油号平分一行 */
  .oilbody li .utb:nth-child(2),
  .oilbody li .utb:nth-child(3),
  .oilbody li .utb:nth-child(4),
  .oilbody li .utb:nth-child(5) {
    flex: 0 0 25%;
    height: auto;
    line-height: 22px;
    font-size: 15px;
    padding-top: 4px;
  }

  .oilbody li .utb:nth-child(2)::before,
  .oilbody li .utb:nth-child(3)::before,
  .oilbody li .utb:nth-child(4)::before,
  .oilbody li .utb:nth-child(5)::before {
    display: block;
    font-size: 12px;
    color: #999;
    line-height: 18px;
    font-weight: normal;
  }

  .oilbody li .utb:nth-child(2)::before {
    content: '92#汽油';
  }

  .oilbody li .utb:nth-child(3)::before {
    content: '95#汽油';
  }

  .oilbody li .utb:nth-child(4)::before {
    content: '98#汽油';
  }

  .oilbody li .utb:nth-child(5)::before {
    content: '0#柴油';
  }

  /* 更新时间独占一行 */
  .oilbody li .updatetime {
    flex: 0 0 100%;
    height: auto;
    line-height: 20px;
    font-size: 12px;
    text-align: left;
    color: #999;
    padding-top: 4px;
  }

  .oilbody li .updatetime::before {
    content: '更新时间：';
  }

  /* --- 城市油价详情 --- */
  .topshowyj .topshowyj-list {
    flex: 0 0 100%;
    font-size: 18px;
    padding: 10px 14px;
  }

  #main {
    height: 300px !important;
    margin-top: 20px;
  }

  .oilcity_nav ul li,
  .oilcity_b ul span {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    font-size: 14px;
  }

  /* --- 新闻列表页 --- */
  .news_list li .date {
    font-size: 18px;
    margin-right: 12px;
    padding: 3px 0 0;
  }

  .news_list li .date em {
    font-size: 12px;
    padding: 2px 8px;
    margin-top: 3px;
  }

  .news_list li div {
    margin-left: 80px;
    font-size: 13px;
    line-height: 20px;
  }

  .news_list li div a {
    font-size: 16px;
    margin-bottom: 3px;
  }

  .home_nav ul li a {
    padding: 8px 18px;
    font-size: 14px;
  }

  .pagelist li a,
  .pagelist > ul > li > span {
    padding: 5px 11px;
    font-size: 13px;
  }

  /* --- 新闻详情 / 单页 --- */
  .news_show h1 {
    font-size: 22px;
    line-height: 1.4;
  }

  .news_show .info {
    font-size: 13px;
    padding: 8px 12px;
  }

  .news_show .intro {
    padding: 20px 10px 0;
    min-height: 0;
  }

  .news_show .other a {
    padding: 5px 12px;
    min-width: 0;
    font-size: 14px;
  }

  .news_show .other a span,
  .news_show .other a em {
    font-size: 16px;
  }

  /* 调价日历时间轴 */
  .news_show .intro ul {
    padding: 0 0 0 26px;
    background-position: 6px 0;
  }

  .news_show .intro li {
    margin-bottom: 20px;
  }

  .news_show .intro .list_box {
    padding: 16px 14px;
  }

  .news_show .intro .list_ico02 {
    left: -30px;
    top: 20px;
  }

  .news_show .intro .list_time {
    font-size: 18px;
  }

  .news_show .intro .list_text {
    font-size: 15px;
    line-height: 26px;
  }

  /* --- 相关内容：两列改单列 --- */
  .home_news_list li {
    float: none;
    width: 100%;
    margin-right: 0;
    min-height: 0;
  }

  .home_news_list li .date {
    width: 56px;
    text-indent: 8px;
  }

  .home_news_list li div {
    margin-left: 72px;
  }

  .home_news_list li div a {
    font-size: 15px;
  }

  /* --- 地区列表页（diqu）--- */
  .map_one a {
    font-size: 17px;
  }

  .map_two {
    margin: 10px 0;
  }

  .map_two a {
    margin-right: 12px;
    font-size: 14px;
    line-height: 26px;
  }

  /* --- 右栏新闻 --- */
  .oil_news_list li a {
    font-size: 15px;
    line-height: 22px;
  }

  /* --- 页脚 --- */
  .copyright {
    font-size: 11px;
    padding: 10px;
  }
}

/* ==========================================================================
   断点四：≤400px  超小屏
   ========================================================================== */
@media (max-width: 400px) {

  .oilbody li .utb:nth-child(2),
  .oilbody li .utb:nth-child(3),
  .oilbody li .utb:nth-child(4),
  .oilbody li .utb:nth-child(5) {
    flex: 0 0 50%;
    text-align: left;
  }

  .oilcity_nav ul li,
  .oilcity_b ul span {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .news_show h1 {
    font-size: 19px;
  }

  .topshowyj .topshowyj-list {
    font-size: 17px;
  }
}
