/* =========================================================
   萌猪收纳罐 · 全站增强层 opt.css
   作用：长图裁切 / 导航不折行 / 图标收敛 / 联系方式强化
         / 手机端三键底栏 / 表单替代卡片
   ========================================================= */

/* ---------- 1. 图片：超长图统一裁切 ---------- */
img {
  max-width: 100%;
  height: auto;
}

img[src*="pic.xiahunao.cn"],
img[src*="xiahunao"],
img.fit-16x9 {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  background: #f2ece0;
}

.ph img,
.hh-photo img,
.hh-logo img,
.spot-visual img,
.duo-photo img,
.qk img,
.mag-cover img,
.ctc-figure img,
.about-band figure img,
figure img {
  object-fit: cover;
  object-position: 50% 50%;
}

/* 正文长截图限高 */
.prose img,
.article-body img,
.entry-content img {
  max-height: 760px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

/* ---------- 2. 图标 ---------- */
svg {
  max-width: 100%;
}

.ico,
.strip-links svg,
.contact-lines svg,
.foot-contact svg,
.hh-points svg,
.hh-contactbar svg,
.cb-inner svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  vertical-align: -0.12em;
}

.adv .adv-icon svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 860px) {
  .adv .adv-icon svg {
    width: 22px;
    height: 22px;
  }
  .ctc-card .ctc-icon svg,
  .item-card .item-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ---------- 3. 导航不折行 ---------- */
.nav-menu a,
.nav-bar a,
.brand-text strong,
.brand-text em {
  white-space: nowrap;
}

@media (max-width: 1240px) {
  .nav-menu {
    gap: 2px;
    font-size: 14px;
  }
}

/* ---------- 4. 顶部联系方式常显 ---------- */
.contact-strip {
  z-index: 60;
}

.strip-links a {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .strip-inner {
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .strip-inner::-webkit-scrollbar {
    display: none;
  }
  .strip-tag {
    display: none;
  }
  .strip-links {
    grid-auto-flow: column;
    gap: 14px;
    padding: 5px 0;
  }
  .strip-links a {
    font-size: 12px;
  }
}

/* ---------- 5. 手机端三键底栏 ---------- */
.mbar {
  display: none;
}

@media (max-width: 1100px) {
  body {
    padding-bottom: 66px;
  }
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 980;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--blue-ink);
    box-shadow: 0 -12px 30px -20px rgba(47, 93, 114, 0.8);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 9px 4px 8px;
    background: var(--blue-ink);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    border: 0;
    border-radius: 0;
    width: 100%;
  }
  .mbar__item:active {
    background: #244a5c;
  }
  .mbar__item--call {
    background: var(--yellow-3);
    color: var(--ink);
  }
  .mbar__item b {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0;
  }
  .mbar__item i {
    font-style: normal;
    font-size: 11px;
    opacity: 0.75;
    letter-spacing: 0;
  }
  .mbar__ico {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
  }
  .mbar__ico svg {
    width: 18px;
    height: 18px;
  }
  .to-top {
    bottom: 78px;
  }
}

/* ---------- 6. 复制提示 ---------- */
.opt-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  z-index: 990;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue-ink);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.opt-toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- 7. 编辑校验块 ---------- */
.opt-credit {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 26px 34px;
  border-top: 1px dashed var(--line-2);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.9;
}

.opt-credit b {
  color: var(--ink);
}

.opt-credit a {
  color: var(--blue-ink);
  font-weight: 700;
}

/* ---------- 8. 面包屑补齐 ---------- */
.opt-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.opt-crumb a {
  color: var(--ink-2);
}

.opt-crumb a:hover {
  color: var(--blue-ink);
}

.opt-crumb i {
  font-style: normal;
  color: var(--line-2);
}

/* ---------- 9. 表单替代：联系卡 ---------- */
.opt-cta-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--cream-2);
  box-shadow: var(--shadow);
}

.opt-cta-card h3 {
  font-size: 20px;
  margin-bottom: 2px;
}

.opt-cta-card p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 6px;
}

.opt-cta-card a,
.opt-cta-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fffdf7;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  text-align: left;
}

.opt-cta-card .is-solid {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
  color: #fff;
}

.opt-cta-card a small,
.opt-cta-card button small {
  font-weight: 500;
  font-size: 12.5px;
  color: inherit;
  opacity: 0.75;
}


/* ---------- 10. 新增栏目页：统一文章版式 ---------- */
.opt-article-hero{padding:54px 0 26px;border-bottom:1px solid rgba(0,0,0,.08)}
.opt-article-hero .opt-crumb-x{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;opacity:.72;margin-bottom:16px}
.opt-article-hero .opt-crumb-x a{text-decoration:none}
.opt-article-hero .opt-kicker{display:inline-block;font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;margin-bottom:10px;opacity:.8}
.opt-article-hero h1{font-size:clamp(26px,3.2vw,40px);line-height:1.3;margin:0 0 12px}
.opt-article-hero .opt-lead{font-size:15.5px;line-height:1.85;max-width:760px;opacity:.82;margin:0}
.opt-article-hero .opt-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;font-size:12.5px;opacity:.7}
.opt-article-hero .opt-meta span{padding:4px 10px;border:1px solid currentColor;border-radius:999px}
.opt-article-body{max-width:820px;padding:34px 0 10px}
.opt-article-body h2{font-size:clamp(19px,2.1vw,25px);line-height:1.4;margin:34px 0 12px}
.opt-article-body h3{font-size:17px;margin:22px 0 8px}
.opt-article-body p{margin:0 0 14px;line-height:1.9}
.opt-article-body ul,.opt-article-body ol{margin:0 0 16px;padding-left:1.3em;line-height:1.9}
.opt-article-body li{margin-bottom:6px}
.opt-article-body a{font-weight:600;text-decoration:underline;text-underline-offset:3px}
.opt-article-body table{width:100%;border-collapse:collapse;margin:10px 0 18px;font-size:14px}
.opt-article-body th,.opt-article-body td{border:1px solid rgba(0,0,0,.14);padding:9px 10px;text-align:left;vertical-align:top}
.opt-article-body th{font-weight:700;background:rgba(0,0,0,.04)}
.opt-note{margin:18px 0;padding:14px 16px;border-left:4px solid currentColor;background:rgba(0,0,0,.035);font-size:14px;line-height:1.85}
.opt-rel{margin:26px 0 40px;padding-top:22px;border-top:1px dashed rgba(0,0,0,.18)}
.opt-rel h2{font-size:18px;margin:0 0 12px}
.opt-rel ul{list-style:none;padding:0;display:grid;gap:8px}
.opt-rel li a{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid rgba(0,0,0,.14);border-radius:10px;text-decoration:none;font-size:14px;font-weight:600}
@media(max-width:760px){.opt-article-hero{padding:34px 0 18px}.opt-article-body{padding:24px 0 6px}}

.opt-article-body{margin-inline:auto}
