/* Responsive overrides for the legacy desktop theme. */
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
.mobile-nav-toggle { display: none; }
.site-head-banner { display: none !important; }
.qiming-page-banner { width: 1000px; height: 143px; margin: 60px auto 16px; overflow: hidden; background: #eee7dc; }
.qiming-page-banner a,.qiming-page-banner img { display: block; width: 100%; height: 100%; }
.qiming-page-banner img { object-fit: contain; }
#nxt { margin-top: 0; padding: 12px 14px; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; }
.hprc .r .latest-article-feed { margin: 0; padding: 0; font-size: 14px; line-height: 1.5; list-style: none; }
.latest-article-feed li { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 8px 0; box-sizing: border-box; border-bottom: 1px solid #eee5da; }
.latest-article-feed li:last-child { border-bottom: 0; }
.latest-article-cover { display: block; flex: 0 0 88px; width: 88px; height: 58px; overflow: hidden; border: 1px solid #eadfd3; background: #f7f3ec; }
.latest-article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.latest-article-feed li:hover .latest-article-cover img { transform: scale(1.04); }
.latest-article-info { flex: 1; min-width: 0; }
.latest-article-title { display: -webkit-box; overflow: hidden; color: #25364d; font-size: 15px; line-height: 22px; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.latest-article-title:hover { color: #b34a20; }
.latest-article-info time { display: block; margin-top: 5px; color: #9a806c; font-size: 12px; line-height: 18px; }

/* PC 首页首屏：快捷起名 + 今日黄历 */
.pc-home-banner { width: 1200px; height: 172px; margin: 84px auto 0; overflow: hidden; background: #eee7dc; }
.pc-home-banner a,.pc-home-banner img { display: block; width: 100%; height: 100%; }
.pc-home-banner img { object-fit: contain; }
.pc-today-layout { width: 1200px; margin: 18px auto 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; color: #34445a; }
.pc-quick-name,.today-almanac { background: #fff; border: 1px solid #e3ded5; border-radius: 7px; box-shadow: 0 2px 8px rgba(28,79,144,.12); overflow: hidden; }
.pc-quick-tabs { height: 46px; display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 2px solid #1c4f90; }
.pc-quick-tabs a { line-height: 46px; text-align: center; color: #263c59; font-size: 17px; }
.pc-quick-tabs a.active { background: #1c4f90; color: #fff; }
.pc-quick-body { padding: 24px 20px 12px; }
.pc-full-form { box-sizing: border-box; background: #fff; }
.pc-form-row { height: 64px; margin-bottom: 20px; display: flex; align-items: center; overflow: hidden; border: 1px solid #aeb3b9; border-radius: 4px; background: #fff; }
.pc-form-row:nth-child(2) { width: 48%; }
.pc-form-row > label { flex: 0 0 89px; height: 36px; line-height: 36px; border-right: 1px solid #b9bec4; text-align: center; color: #000; font-size: 18px; font-weight: bold; }
.pc-form-row > input[type="text"] { flex: 1; min-width: 0; height: 62px; padding: 0 12px; border: 0; background: transparent; color: #4f5965; font-size: 18px; outline: none; }
.pc-choice { display: flex; align-items: center; gap: 36px; padding-left: 30px; }.pc-choice button { position: relative; padding: 0 0 0 39px; border: 0; background: transparent; color: #555e68; font-size: 25px; cursor: pointer; }.pc-choice button:before { content: ''; position: absolute; left: 0; top: 50%; width: 30px; height: 32px; margin-top: -16px; background: url(../images/bg_04.png) no-repeat center/30px 32px; }.pc-choice button.active { color: #555e68; background: transparent; }.pc-choice button.active:before { background-image: url(../images/bg_01.png); }
.pc-birthday { padding-right: 6px; }.pc-birthday > label { flex-basis: 70px; }.pc-birthday select { height: 36px; margin-left: 5px; padding: 0 3px; border: 1px solid #aeb3b9; border-radius: 4px; background: #fff; color: #172231; font-size: 16px; }.pc-birthday select[name="b_input"] { width: 53px; }.pc-birthday select[name="birthday"] { width: 67px; }.pc-birthday select[name="birthm"],.pc-birthday select[name="birthd"] { width: 39px; }.pc-birthday select[name="birthtime"],.pc-birthday select[name="birthmin"] { width: 53px; }.pc-birthday span { margin-left: 3px; color: #152131; font-size: 17px; white-space: nowrap; }
.pc-code-row .pc-send-code { flex: 0 0 92px; height: 40px; margin-right: 16px; border: 0; border-radius: 9px; background: #1c4f90; color: #fff; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25),0 2px 0 #384a67; }.pc-code-row .pc-send-code.open { opacity: .72; }
.pc-quick-row { height: 42px; margin-bottom: 8px; display: flex; align-items: center; background: #f6f7f9; border: 1px solid #edf0f4; border-radius: 5px; }
.pc-quick-row input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 0; background: transparent; color: #34445a; font-size: 15px; outline: none; }
.pc-quick-gender { display: flex; padding-right: 7px; gap: 5px; }
.pc-quick-gender button { border: 0; background: #e8edf3; color: #65758a; border-radius: 13px; padding: 4px 9px; cursor: pointer; }
.pc-quick-gender button.active { background: #c83b2b; color: #fff; }
.pc-quick-submit { display: block; width: 100%; height: auto; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pc-quick-submit img { display: block; width: 100%; height: auto; }
.pc-quick-body > p { margin-top: 7px; text-align: center; color: #000; font-size: 18px; }
.almanac-head { height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; background: #c83b2b; color: #fff; }
.almanac-head strong { font-size: 16px; }.almanac-head span { font-size: 13px; }
.today-almanac { display: flex; flex-direction: column; }.almanac-body { height: auto; flex: 1; padding: 7px; display: grid; grid-template-columns: 31% 1fr; gap: 7px; background: #fffaf4; }
.almanac-date,.almanac-cell { border: 1px solid #eadfd4; border-radius: 6px; background: #fff; }
.almanac-date { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.almanac-date strong { color: #b7221e; font: 58px/1 Georgia,serif; }.almanac-date em { margin: 6px 0; color: #c52e24; font-style: normal; }.almanac-date span { font-size: 13px; }
.almanac-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; grid-template-rows: repeat(2,1fr); gap: 7px; }
.almanac-cell { padding: 7px 8px; min-width: 0; }.almanac-cell b { display: block; color: #58687d; font-size: 13px; }.almanac-cell p { margin-top: 5px; line-height: 19px; }.almanac-cell small { color: #7e8b9a; }
.almanac-cell p > span { display: inline-block; margin-right: 14px; }.almanac-good b,.almanac-cell .accent { color: #b7221e; }.almanac-bad b { color: #c83b2b; }
.hour-tags span { min-width: 20px; margin: 0 3px 2px 0 !important; text-align: center; color: #b7221e; background: #edf5ea; border-radius: 3px; }.direction-list span { display: block !important; margin: 0 !important; color: #b7221e; }
.pc-home-features { width: 1200px; margin: 0 auto 16px; display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.pc-home-features a { position: relative; display: block; height: 126px; overflow: hidden; border-radius: 5px; background: #eadfce; box-shadow: 0 1px 5px rgba(28,79,144,.12); }
.pc-home-features img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .25s,opacity .25s; }
.pc-home-features span { position: absolute; right: 10px; top: 10px; color: #b52a24; font-size: 20px; font-weight: bold; writing-mode: vertical-rl; letter-spacing: 2px; text-shadow: 0 1px #fff; }
.pc-home-features a:hover img { transform: scale(1.04); opacity: .9; }
.pc-home-summary { width: 1200px; margin: 0 auto 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.summary-card { min-height: 140px; padding: 14px; box-sizing: border-box; background: #fff; border: 1px solid #e4e7eb; border-radius: 4px; }
.summary-card h3 { padding-bottom: 10px; border-bottom: 1px solid #edf0f3; color: #30445e; font-size: 16px; }.summary-card h3 small { margin-left: 5px; color: #9aa5b2; font-size: 12px; font-weight: normal; }
.poetry-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding-top: 15px; }.poetry-links a { height: 44px; line-height: 44px; text-align: center; border: 1px solid #d9b89a; border-radius: 50%; color: #a8523c; }
.name-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; }.name-cloud a { padding: 5px 11px; background: #f5f6f7; border-radius: 3px; color: #6f7d8c; }
.summary-card ul { padding-top: 8px; }.summary-card li { position: relative; overflow: hidden; padding: 5px 0 5px 13px; text-overflow: ellipsis; white-space: nowrap; }.summary-card li:before { content: ''; position: absolute; left: 1px; top: 12px; width: 4px; height: 4px; border: 1px solid #c83b2b; border-radius: 50%; }
@media (max-width: 1240px) and (min-width: 861px) { .pc-home-banner,.pc-today-layout,.pc-home-features,.pc-home-summary { width: 1000px; }.pc-home-banner { height: 143px; }.almanac-body { grid-template-columns: 28% 1fr; }.almanac-cell { padding: 6px; }.almanac-cell p > span { margin-right: 7px; }.pc-home-features { gap: 9px; }.pc-home-features a { height: 108px; }.summary-card { padding: 11px; }.summary-card h3 small { display: block; margin: 3px 0 0; }.poetry-links { gap: 4px; }.poetry-links a { font-size: 12px; } }

@media (max-width: 860px) {
  .site-head-banner,.qiming-page-banner,.pc-home-banner,.pc-today-layout,.pc-home-features,.pc-home-summary,
  .aw720,.a3-wrap { display: none !important; }
  html, body {
    width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  body.mobile-nav-open { overflow: hidden; }
  .header { position: sticky; height: 56px; margin: 0; overflow: visible; }
  .header .hd-main {
    position: relative; width: 100%; height: 56px; display: flex; align-items: center;
    overflow: visible;
  }
  .header .logo { flex: 0 0 56px; margin: 0 4px 0 8px; }
  .header .logo a { width: 52px; height: 52px; }
  .header .hd-main.nav { min-width: 0; }
  .mobile-nav-toggle {
    position: absolute; top: 8px; right: 10px; z-index: 2;
    display: flex; width: 42px; height: 40px; padding: 9px 8px;
    flex-direction: column; justify-content: space-between;
    border: 1px solid rgba(255,255,255,.38); border-radius: 5px;
    background: rgba(255,255,255,.08); cursor: pointer;
  }
  .mobile-nav-toggle span {
    display: block; width: 100%; height: 2px; border-radius: 2px;
    background: #fff; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-open .mobile-nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .mobile-nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .header .hd-main.nav > ul.primary-navigation {
    position: absolute; top: 56px; left: 0; right: 0; z-index: 1;
    display: none; width: 100%; min-width: 0; max-height: calc(100vh - 56px);
    margin: 0; padding: 6px 0 10px; overflow-x: hidden; overflow-y: auto;
    flex-direction: column; flex-wrap: nowrap;
    border-top: 1px solid rgba(255,255,255,.18); background: #0b376f;
    box-shadow: 0 10px 22px rgba(0,0,0,.25);
  }
  .header .hd-main.nav.nav-open > ul.primary-navigation { display: flex; }
  .header .hd-main.nav .nav-litem {
    flex: 0 0 auto; width: 100%; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .header .hd-main.nav .nav-litem:last-child { border-bottom: 0; }
  .header .hd-main.nav .nav-litem > a {
    height: 46px; padding: 0 20px; line-height: 46px;
    text-align: left; white-space: nowrap;
  }
  .nav .navchildPart { display: none !important; }
  .header + div[style*="padding-top"] { padding-top: 0 !important; }

  .main {
    width: 100%; min-height: 0; padding: 10px; box-sizing: border-box;
  }
  .wrapper, .sidebar { float: none; width: 100%; }
  .sidebar { margin-top: 10px; }
  .a1, .a2, .right-float, .fix_rightx { display: none !important; }
  .box, .aw720, .aw270, .a3-wrap { width: 100%; box-sizing: border-box; }
  .aw720 img, .aw270 img { width: 100%; height: auto; }

  .index-hd { height: auto; min-height: 42px; padding: 0 10px; overflow: hidden; }
  .index-hd .title { float: none; display: inline-block; }
  .index-hd .t-sort {
    float: none; width: 100%; height: auto; margin: -3px 0 9px;
    display: flex; gap: 5px; overflow-x: auto; white-space: nowrap;
  }
  .index-hd .t-sort li { float: none; flex: 0 0 auto; padding: 0 8px; }
  .index-hd .release-btn, .index-hd .more { position: absolute; right: 20px; top: 3px; }
  .box { position: relative; }
  .index-bd { padding: 8px; font-size: 15px; }
  .news .topping, .news .news-list { float: none; width: 100%; }
  .news .news-list { margin-top: 8px; }
  .news .top-news dt { width: 88px; height: 88px; }
  .news .top-news img { width: 88px; height: 88px; object-fit: cover; }
  .index-bd .shuang > li { width: 100%; margin: 0; }
  .index-bd .shuang > li.top,
  .index-bd .shuang > li.top2,
  .index-bd .shuang > li.top3 { width: 48%; margin: 0 1% 10px; }
  .index-bd .shuang > li.top img { width: 100%; box-sizing: border-box; }

  .index-section, .index-section .min-width, .min-width, .w1000 {
    width: 100% !important; min-width: 0 !important; box-sizing: border-box;
  }
  #container, .index-section .section3, .place-order .section3, .place-order #form {
    width: 100% !important; min-width: 0 !important; margin-left: 0 !important;
    margin-right: 0 !important; box-sizing: border-box;
  }
  .place-order .section3 { padding: 8px !important; }
  .place-order #form { padding: 0 !important; }
  .index-section .top-title { width: 100%; max-width: 700px; }
  .place-order ul { width: 100% !important; margin: 12px 0; box-sizing: border-box; }
  .place-order ul li {
    min-height: 58px; height: auto; margin-top: 10px; line-height: normal;
    display: flex; align-items: center; width: 100%; box-sizing: border-box;
  }
  .place-order ul li.xingshi {
    float: none !important; width: 100% !important; margin-left: 0 !important;
  }
  .place-order ul li .sexx {
    flex: 0 0 72px; width: 72px; padding: 0 8px; box-sizing: border-box;
    font-size: 17px; font-weight: 700; text-align: center;
  }
  .place-order ul li .input-box {
    flex: 1; min-width: 0; height: auto; min-height: 38px; margin: 0;
    padding: 6px 9px; display: flex; align-items: center; flex-wrap: wrap;
    box-sizing: border-box;
  }
  .place-order ul li:not(.shengri) .input-box { flex-wrap: nowrap; }
  .place-order ul li .input-box .btn-raido {
    float: none; width: auto !important; min-width: 0; margin: 0 22px 0 0;
    white-space: nowrap; font-size: 20px;
  }
  .place-order ul li .input-box input[type="text"] {
    position: static !important; top: auto !important; left: auto !important;
    width: 100% !important; font-size: 16px !important;
  }
  .place-order ul li .input-box .button-code {
    position: relative; flex: 0 0 auto; min-width: 88px; height: 38px;
    margin-left: 6px; padding: 0 8px; white-space: nowrap;
  }
  .place-order ul li .input-box div.time,
  .place-order ul li .input-box div.time1,
  .place-order ul li .input-box div.time:first-child,
  .place-order ul li .input-box div.time1:first-child { margin: 2px 3px; }
  .place-order ul li .input-box div.time1 select,
  .place-order ul li .input-box div.time1 .input,
  .place-order ul li .input-box div.time select {
    width: auto !important; min-width: 42px; margin-right: 2px; padding: 0 4px; font-size: 14px;
  }
  .place-order ul li .input-box div.time span,
  .place-order ul li .input-box div.time1 span { font-size: 15px; }
  .place-order ul li.shengri { min-height: 104px; }
  .place-order ul li.shengri .input-box { align-content: center; row-gap: 4px; }
  .place-order ul .submit {
    width: 100% !important; height: auto; min-height: 0; margin: 14px 0 0;
    padding: 0 8px; box-sizing: border-box; overflow: visible;
  }
  .place-order ul .submit input {
    display: block; width: 100% !important; height: 58px; margin: 0 auto;
    background: url(../images/index_04.png) no-repeat center center !important;
    background-size: 100% 100% !important; border: 0; font-size: 0;
  }
  .place-order ul .text { display: block; height: auto; min-height: 30px; text-align: center; }
  .place-order ul .text span { font-size: 17px; }

  .yf6, .yf_6, .bannernew, .bannernew-img, .qm_a_01, .evaluate, .hprc,
  .jump-form, .problem, .case-wrap, .wrap_4, .wrap_4_list {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    box-sizing: border-box; overflow: hidden;
  }
  .hprc .w1000 { padding: 0 10px; }
  .hprc .l, .hprc .r {
    float: none; width: 100%; margin: 0 0 16px; box-sizing: border-box;
  }
  .hprc .w1000 > div:first-child > img {
    display: block; width: auto !important; height: auto !important;
    max-width: 100% !important; margin: 28px auto !important;
  }
  .hprc h1 { margin: 0; padding-right: 126px; box-sizing: border-box; }
  .hprc h1 span {
    display: flex; align-items: center; gap: 3px; left: auto; right: 12px;
    top: 50%; line-height: 1; transform: translateY(-50%);
  }
  .hprc h1 span img {
    display: block !important; flex: 0 0 20px; width: 20px !important;
    height: auto !important; max-width: none !important;
  }
  .hprc .l .pj_title {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    padding: 12px 10px; box-sizing: border-box;
  }
  .hprc .l .pj_title span {
    margin: 0; padding: 4px 9px; font-size: 13px; line-height: 20px;
    border-color: #d6cec5; border-radius: 2px; background: #fff;
  }
  .hprc .r #nxt { height: 460px; padding: 10px 12px; }
  .latest-article-cover { flex-basis: 82px; width: 82px; height: 55px; }
  .latest-article-title { font-size: 14px; }
  .bannernew img, .bannernew-img img, .yf6 img, .jump-form img {
    display: block; width: 100% !important; height: auto !important; max-width: 100% !important;
  }

  #footer, .footer { min-width: 0; width: 100%; box-sizing: border-box; }
  .footer .ft-main {
    width: 100%; margin: 0; padding: 22px 20px; box-sizing: border-box;
    text-align: center;
  }
  .footer .ft-intro {
    width: 100%; margin: 0; padding: 0; box-sizing: border-box;
    text-align: center;
  }
  .footer .btm-logo { width: 100%; }
  .footer .btm-logo p {
    margin: 0 auto; max-width: 620px; text-align: center; line-height: 1.8;
  }
  .footer .copyright {
    margin-top: 14px; text-align: center; white-space: normal; overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .main { padding: 8px; }
  .header .logo { flex-basis: 48px; margin-left: 4px; }
  .header .logo a { width: 46px; height: 46px; }
  .nav .nav-litem > a { padding: 0 10px; font-size: 15px; }
  .index-bd .shuang > li.top,
  .index-bd .shuang > li.top2,
  .index-bd .shuang > li.top3 { width: 100%; margin: 0 0 10px; }
  .news .top-news h2 a { font-size: 15px; }
  .place-order ul .submit input { height: 50px; }
}
