/*黄道吉日内容页 k*/
.hdjr-box {
    margin-top: 0.55rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hdjr-box {
        margin-top: 4.6rem;
    }
}


.y-show {
margin: 0 auto;
}
.y-show-b {
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}
.y-show-t {
    text-align: left;
    background: #fafafa;
    font-weight: bold;
    border-bottom: #de686d .06rem solid;
    color: #454545;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 8px 8px 0 0;
    position: relative;
    line-height: 24px;
}
.y-show-c {
    border: #e9e6e6 1px solid;
    letter-spacing: 1px;
    font-size: 16px;
    background: #fff;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 12px 12px;
    position: relative;
    line-height: 1.8;
    color: #444;
}
.show-content {
    margin-bottom: 30px;
    color: #454545;
    padding: 5px 5px 0 5px;
}
.show-readall-box {
    position: relative;
    z-index: 99;
    padding: 0 0 25px;
    margin-top: -200px;
    text-align: center;
}
.show-readall-box .show-read-more-mask {
    height: 200px;
    background: -moz-linear-gradient(bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    background: -webkit-gradient(linear, 0 top, 0 bottom, from(rgba(255, 255, 255, 0)), to(#fff));
    background: -o-linear-gradient(bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}
.show-read-more-btn {
    cursor: pointer;
    font-size: 16px;
    color: #de686d;
    background: #fff;
    border: 1px solid #de686d;
    line-height: 30px;
    border-radius: 20px;
    padding: 8px 25px;
    transition: all 0.3s ease;
    line-height: 18px;
    padding: 2px 8px;
    font-weight: 500;
    white-space: nowrap;

}
.bg-none {
    background: none !important;
}
.y-show h1, .y-show h2, .y-show h3, .y-show h4 {
    font-weight: 700;
}
.y-show h1 a, .y-show h2 a, .y-show h3 a, .y-show h4 a {
    font-weight: 700;
}
.y-show strong {
    font-weight: bold;
}

a {
    -webkit-tap-highlight-color: transparent;
}
a {
    color: #333;
    text-decoration: none;
}


.show-n  {
    margin: .5rem auto;
    height: .5rem;
    display: flex;
    line-height: 30px;
    align-items: center;
    justify-content: center;
}
.show-t {
    margin: 1.5rem auto;
    height: 1.5rem;
    display: flex;
    line-height: 32px;
    align-items: center;
    justify-content: center;
}
.show-t .year-c-now {
    background: #de686d;
    color: #fff;
}
.show-t .year-c {
width: 3.5rem;
    border: #de686d 1px solid;
    box-sizing: border-box;
    text-align: center;
    padding: .1rem;
    font-size: 16px;
}
.year-c-now a {
    color: #fff;
}
.show-t .year-c span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
}

.show-m {
    /* background: #f9f7f6; */
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 15px;
}
.show-m .y-head {
    text-align: center;
    color: #585657;
    font-size: 20px;
}
.show-m .y-head .emphasize {
    font-size: 22px;
    color: #bf555a;
}
.y-detail {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.y-detail .yiji-box {
    width: 49.4%;
    position: relative;
    margin-top: 1rem;
    background: #fff;
    border: 1px solid #de686d;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.y-detail a {
    color: #333;
    text-decoration: none;
}
.y-detail .yiji {
display: flex;
    align-items: center;
    padding: 1rem .1rem;
}
.y-detail .yiji .hd-left {
    width: 4.8rem;
    color: #333;
    text-align: center;
   /* border-right: .01333rem solid #eaeaea;*/
    padding-right: .10667rem;
    padding-left: .10667rem;
}
.y-detail .yiji .hd-left .week, .y-detail .yiji .hd-left .year {
    font-weight: 400;
    font-size: 15px;
    line-height: .4rem;
}
.week {
    color: #888;
}
.y-detail .yiji .hd-left .date {
    font-weight: 500;
    font-size: 22px;
   /* line-height: .58667rem;*/
    margin-bottom: 1.56667rem;
    width: 4.8rem;
    color: #de686d;
}
.y-detail .yiji .right {
    flex: auto;
    font-size: 15px;
    /*margin-left: .76667rem;*/
    border-left: .01333rem solid #eaeaea;
    padding-left: .70667rem;
}
.y-detail .yiji .right .right-firstline {
    font-weight: 500;
    color: #333;
    line-height: 1.533334rem;
    /*margin-bottom: .18667rem;*/
}
.y-detail .yiji .right .right-firstline .afterday {
    float: right;
    position: relative;
    right: .00000066667rem;
    color: #999;
}
.y-detail .yiji .right .lunar {
    color: #555;
    /*margin-bottom: .18667rem;*/
    line-height: 1.53333rem;
}
.y-detail .yiji .right .fairy {
    color: #aeaeae;
    line-height: 1.53333rem;
}
.yiji .enter {
    margin-right: .65rem;
    width: 0.45rem;
    height: 0.78rem;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAkCAYAAABmMXGeAAADLUlEQVRIS8WWz29UVRzFz7lvZt68mTAdo1Y3ECUlLgZ00WhSfmWAAs60pdbQRhLduXdpTDT2j1BCa6J7u4AQQ8qUphMgpsEm/DCNUkgQYwwLUGaCMG3n3mPu0BpELIWZhrt8efnk3O/3e8/3cBgwvX19yYWbN5OlMKx+Xi5bAkITh5eKxS0CNpPscNaem3du7q1S6ZdmwDzf0zMYSAMA9lP6rg6UGATluSi6MTQ2Zp9GMC8WCrsNeQjAIZGGwDSkCWPtyGwmU3kaMH/ct2+9guBtkv0id1O6LfKKdW7USDNHx8evDAPuSRTz28HB4LVq9Q0Ys5PkRyBfguRAHiMwbsmpJy0FvYIGuFJ5PojHP3PSNtxvXF3SDyAnGQQjP4Xhn0NjYwurUdyA+jPT2RmPtbdvNuQQyYOQXhHwF8jfKI3OW3u2s6vrAoeHH1uKf6Ae/H1XV5TKZncYoEBjPpDURsCKPAtgoi5NXr1+/dLQ7OyKiv8FBcCZ7u5MlEi8WidHjNQB8jkAknSO0qQhv0A6/UduhVI8DMVUPh8LwzCTDoJ3AfST3EsgIanqSyHpK1h75vUVSvEfaKNxQJArFl9cBDywx5B9AFIC6gB+BjBVt/ZUpVYr7SqXaw8375FQ/1PDE4rFXALYCvJjAi8DiAA4ARcAnF4Mgi+r1eqNXeXynQfB/wv1P50oFMIXrG2P4vFPAGxteAQQAKhJugXy67p06mo6Pf3guK0I9eDZXC6xsGHDm8aYAQMcELDRg5dKcdlJZQETt+/ePblcisdCPXgqn0+2RVFvQB704wYyjfuKnaSLBM7UnDs8n0j8vv348TurgvpRO5/Pt8VSqQ4BhwF0kMz675DqICvOuW9kzIm5VOr0aqGNidiyZ092MZn8EFKB5PYltf4yVsCvcO7IrXv3Rp8ptPXXb3mjWj5SLR/+lj/TZUNxZLeTeps2lGXrWxeLDUDqB7kXQNiU9U0XCpl15EZLHqG0qWmTvpbPJytRtHNpnbwvKdvUOmn54lte0SYe/1SSf9PNreg1CRM+9jAW2++Ad9Cq2OMDGo15jz6gAUFLAtqaRMk1Cb1rEc//BkqZRpF9NU6pAAAAAElFTkSuQmCC);
    background-size: 100% 100%;
}
.y-detail .y-hour {
    font-size: 15px;
    display: flex;
    padding: .61333rem .33333rem;
    border-top: .02667rem solid #eaeaea;
    width: calc(100% - 1.53333rem);
    margin: 0 auto;
    color: #777;
    flex-shrink: 0;
    background: rgba(222, 104, 109, 0.04);
}
.y-detail .y-hour span:first-child {
  /*  width: 2rem;
    min-width: 2rem;*/
}

.y-detail .yiji-box:before {
  /*  border-right: .0155rem solid #de686d;
    border-left: .0155rem solid #de686d;
    */
}
.y-detail .yiji-box:after {
   /* border-top: .0155rem solid #de686d;
    border-bottom: .0155rem solid #de686d;
    */
}

.y-detail .yiji-box:after, .y-detail .yiji-box:before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.y-detail .yiji .hd-left .year {
    margin-bottom: 1.56667rem;
}





@media only screen and (max-width: 768px) {
    .y-show, .show-m {
        margin: 0 5px;
    }

.y-show-b, .y-detail .yiji-box {
        width: 100%;
        padding-right: 0;
    }




}



@media only screen and (max-width: 540px) {
    .y-detail .yiji .hd-left {
        width: 5.8rem;
    }
.y-show-c {
    line-height: 1.4rem;
    }
.y-detail .yiji .hd-left {
    width: 5.8rem;
}
.y-detail .yiji .hd-left .date {
    width: 5.8rem;
    font-size: 20px;
}
.show-t .year-c {
    width: 4.5rem;
}
}

@media only screen and (max-width: 430px) {
.y-detail .yiji .hd-left {
    width: 5.8rem;
}
.y-show-c {
    line-height: 1.6rem;
    }
.y-detail .yiji .hd-left .date {
    width: 5.8rem;
    font-size: 18px;
}
.y-detail .yiji .right .right-firstline {
    line-height: 1.8888rem;
}
.y-detail .yiji .right .lunar {
 line-height: 1.8888rem;
}
.y-detail .yiji .right .fairy {
 line-height: 1.8888rem;
}
.show-t .year-c {
    width: 5.2rem;
}
}

@media only screen and (max-width: 390px) {

.y-show-c {
    line-height: 1.7rem;
    }

.y-detail .yiji .hd-left {
    width: 6rem;
}

.y-detail .yiji .hd-left .date {
	width: 6rem;
    font-size: 16px;
   /*margin-bottom: 1.06667rem;*/
}
.y-detail .yiji .hd-left .year {
   /* margin-bottom: 1.06667rem;*/
}

.y-detail .yiji .right .right-firstline {
    line-height: 2rem;
}

.y-detail .yiji .right .lunar {
    line-height: 2rem;
}
.y-detail .yiji .right .fairy {
    line-height: 2rem;
}
.show-t .year-c {
    width: 5.5rem;
}

span.j-hour {
    display: inline-block;
    width: 14%;
}

}

@media only screen and (max-width: 380px) {

span.j-hour {
    display: inline-block;
    width: 16%;
}
}

.showweekday {
    display: flex;
    justify-content: center;
    color: #de686d;
    margin: 15px 0 5px;
    padding: 12px 0;
    border-top: 1px solid rgba(222, 104, 109, 0.1);
    border-bottom: 1px solid rgba(222, 104, 109, 0.1);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.showweekday input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    vertical-align: center;
    height: 18px;
    width: 18px;
    background-color: #eff2f5;
    border-radius: 4px;
    position: relative;
    border: 1px solid #de686d;
    margin-right: 4px;
}

input[type=checkbox]:checked {
    background: #de686d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 12px;
}

.y-show-year {
    margin: 0 auto .3rem auto;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.y-show-month {
    margin: 0 auto .3rem auto;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.y-month {
    width: 15%;
    border: #de686d 1px solid;
    box-sizing: border-box;
    text-align: center;
    padding: .06153rem;
    margin: .076923rem;
    font-size: .61538rem;
    line-height: .92307rem;
    border-radius: .2461538rem;
}
.y-month a {
    color: #333;
    text-decoration: none;
}

.y-month span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
}
.y-month-now {
    background: #de686d;
    color: #fff;
}

.y-month-now a {
    color: #fff;
}

.xy-year {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

@media only screen and (max-width: 768px) {
    .y-show-month {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}


span.sizecolor {
    font-size: 22px;
    color: #f7000c;
}


@media only screen and (max-width: 390px) {

.show-m .y-head {
    text-align: center;
    color: #585657;
    font-size: 18px;
}
.show-m .y-head .emphasize {
    font-size: 20px;
    color: #bf555a;
}

span.sizecolor {
    font-size: 20px;
    color: #f7000c;
}
}

@media only screen and (max-width: 375px) {

.show-m .y-head {
    text-align: center;
    color: #585657;
    font-size: 18px;
}
.show-m .y-head .emphasize {
    font-size: 18px;
    color: #bf555a;
}

span.sizecolor {
    font-size: 18px;
    color: #f7000c;
}
}

@media only screen and (max-width: 350px) {

.show-m .y-head {
    text-align: center;
    color: #585657;
    font-size: 16px;
}
.show-m .y-head .emphasize {
    font-size: 18px;
    color: #bf555a;
}

span.sizecolor {
    font-size: 18px;
    color: #f7000c;
}
}

.y-head span.hdjr-yj {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.hdjr-yj i.hdjr-yi {
    display: block;
    float: left;
    text-align: center;
    margin-right: 6px;
    width: 40px;
    line-height: 40px;
    font-size: 18px;
    overflow: hidden;
    height: 40px;
    color: #FFF;
    border-radius: 3px;
    font-style: normal;
    font-weight: 400;
    background: #417505;
}


.hdjr-yj i.hdjr-ji {
    display: block;
    float: left;
    text-align: center;
    margin-right: 8px;
    width: 40px;
    line-height: 40px;
    font-size: 18px;
    overflow: hidden;
    height: 40px;
    color: #FFF;
    border-radius: 3px;
    font-style: normal;
    font-weight: 400;
    background: #000;
}


/********/

    .show-now .button {
      padding: 10px 20x;
      background-color: #007BFF;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .show-now .button:hover {
      background-color: #0056b3;
    }


.show-now input {

        width: 20px;
        height: 20px;

}

.show-now {
    display: flex;
    justify-content: center;
    color: #de686d;
    margin: 15px 0 5px;
    padding: 12px 0;
    font-size: 18px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    vertical-align: center;
    height: 18px;
    width: 18px;
    background-color: #eff2f5;
    border-radius: 4px;
    position: relative;
    border: 1px solid #de686d;
    margin-right: 4px;
}


input[type=checkbox]:checked {
    background: #de686d url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E) no-repeat center;
    background-size: 12px;
}


/**********/

.show-content * {
    word-break: break-word;
}
.show-content *, .show-content *::before, .show-content *::after {
    border-width: 0;
    border-style: solid;
    box-sizing: border-box;
    word-wrap: break-word;
}

.show-content table {
    width: 100%;
}
.show-content table {
    border-collapse: separate;
    border-spacing: 0;
    color: var(--chakra-colors-gray-700);
}
.show-content table tr {
    background-color: #fff;
}
.show-content table th {
    font-weight: 700;
}
.show-content table td, .show-content table th {
    padding: 6px 13px;
}
.show-content table thead tr:first-child th {
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-width: 1px;
    border-color: #de686d60;
    background-color: rgba(236, 236, 241, .2);
    overflow: hidden;
}
.show-content table thead tr:first-child th:first-child {
    border-top-left-radius: .375rem;
}
.show-content table thead tr:first-child th:last-child {
    border-right-width: 1px;
    border-top-right-radius: .375rem;
}
.show-content table td {
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-color: #de686d60;
}
a {
    color: #333;
    text-decoration: none;
}
.show-content table td:last-of-type {
    border-right-width: 1px;
}
.show-content table tr:nth-child(2n) {
    background-color: #de686d17;
}
.show-content table tbody tr:last-child {
    overflow: hidden;
}
.show-content h1, .show-content h2, .show-content h3, .show-content h4 {
    line-height: 1.4rem;
    font-size: 16px;
}
li {
    list-style: none;
}

.y-show-c {font-size: 15px;line-height: 2;}
@media only screen and (max-width: 530px){
.show-content h1, .show-content h2, .show-content h3, .show-content h4 {
    line-height: 2rem;
    font-size: 16px;
}
}

.y-show-t {border: 1px solid #c7baba;border-radius: 8px;}
.y-show-t .mcsy {
    font-size: 16px;
    font-weight: 500;
}
.y-show-c {
    display: none;
    border-radius: 8px;
}
/********/


/*黄道吉日内容页 j*/









/* ===== 页面底部 年份月份选择器 K===== */
:root {
  --primary-color: #4361ee;
  --text-color: #2b2d42;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* === 年份选择器 === */
.hd-year-f {
  display: flex;
  justify-content: center;
  margin: 25px 0 20px;
  width: 100%;
  position: relative;
}

.show-year-f {
  position: relative;
  display: inline-block;
  text-align: center;
  max-width: 100%;
}

.show-year-f a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 12px 24px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

/* 向下指示箭头（双保险居中方案） */
.show-year-f::after,
.show-year-f::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  z-index: 1;
}

.show-year-f::after {
  border-top: 10px solid white;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.1));
  z-index: 3;
}

.show-year-f::before {
  bottom: -11px;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 11px solid var(--border-color);
  z-index: 1;
}

/* 悬停效果 */
.show-year-f a:hover {
  background: var(--light-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* === 月份选择器 === */
.hd-month-f {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 0 15px;
}

.show-month-f {
  transition: var(--transition);
}

.show-month-f a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.show-month-f a:hover {
  background: var(--light-bg);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.month-now a {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  font-weight: 600;
}

/* === 响应式设计 === */
@media (max-width: 900px) {
  .hd-month-f {
    grid-template-columns: repeat(6, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .show-year-f a {
    min-width: 90px;
    padding: 10px 20px;
    font-size: 15px;
  }
  
  .hd-month-f {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  
  /* 调整箭头大小 */
  .show-year-f::after {
    bottom: -8px;
    border-left-width: 8px;
    border-right-width: 8px;
    border-top-width: 8px;
  }
  
  .show-year-f::before {
    bottom: -9px;
    border-left-width: 9px;
    border-right-width: 9px;
    border-top-width: 9px;
  }
}

@media (max-width: 576px) {
  .hd-month-f {
    grid-template-columns: repeat(4, 1fr);
    max-width: 400px;
  }
  
  .show-year-f {
    width: 100%;
    padding: 0 20px;
  }
  
  .show-year-f a {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 400px) {
  .hd-month-f {
    grid-template-columns: repeat(3, 1fr);
    max-width: 300px;
  }
  
  /* 超小屏幕箭头微调 */
  .show-year-f::after {
    bottom: -7px;
    border-left-width: 7px;
    border-right-width: 7px;
    border-top-width: 7px;
  }
  
  .show-year-f::before {
    bottom: -8px;
    border-left-width: 8px;
    border-right-width: 8px;
    border-top-width: 8px;
  }
}

.show-year-f.active-f a {
    color: #ffffff;
    background: #e04f4c;
    font-weight: bold;
}

.show-month-f.active-f a {
    color: #ffffff;
    background: #e04f4c;
    font-weight: bold;
}

.show-year-f.active-f::after {
    border-top: 10px solid #e04f4c;
}
/* ===== 页面底部 年份月份选择器 J===== */




/* 修复：yiji-box 的空伪元素覆盖整卡拦截点击 → 穿透 */
.y-detail .yiji-box:before,
.y-detail .yiji-box:after { pointer-events: none; }
