@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&text=%E8%81%B2%E7%95%AB%E6%8E%A8%E8%96%A6&display=swap");
/* Global nav button + layout overrides. Linked via nginx sub_filter into <head> so it loads before paint. */

/* Hide hero slider pagination dot — only 1 slide so no navigation value, just visual noise */
.hero-dots, .hero-dot { display: none !important; }

/* List pagination: force single-row, arrow-only prev/next, centered */
.vf-pagination, .mf-pagination {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  overflow-x: auto;
  padding: 8px 0 !important;
}
.vf-page-link, .mf-page-link, .vf-pagination a, .mf-pagination a {
  flex-shrink: 0 !important;
  min-width: 36px;
  text-align: center;
  padding: 6px 10px !important;
  white-space: nowrap !important;
}


#site-navigation .main-menu, .main-menu { gap: 8px; display: flex !important; align-items: center; }
#site-navigation .main-menu > li, .main-menu > li { display: inline-block !important; }
.main-menu .menu-link {
  display: inline-block !important;
  padding: 6px 14px !important;
  border: 1px solid #A17E4F !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #A17E4F !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s !important;
  line-height: 1.4 !important;
  height: auto !important;
}
.main-menu .menu-link:hover {
  background: rgba(161,126,79,0.15) !important;
}
.main-menu .menu-item.current-menu-item .menu-link,
.main-menu .menu-item.piclody-nav-active .menu-link {
  background: #A17E4F !important;
  color: #000 !important;
  font-weight: 600 !important;
}
.main-menu .search-toggle-li { display: none !important; }

/* Wide-mobile / tablet (600-959px): 1-row, menu evenly distributed across logo→lang span */
@media (min-width: 600px) and (max-width: 959px) {
  #site-header-inner.container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  #site-logo { flex-shrink: 0; order: 0 !important; }
  #site-navigation-wrap {
    order: 1 !important; flex: 1 1 auto;
    display: flex !important; align-items: center !important;
    min-width: 0;
  }
  /* Menu fills the navWrap and distributes items evenly (space-around) */
  #site-navigation-wrap .main-menu,
  #site-navigation .main-menu {
    flex: 1 1 auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .main-menu .menu-link {
    padding: 4px 8px !important;
    font-size: 13px !important;
  }
  #site-header-inner > .pl-switcher,
  body > .pl-switcher {
    display: flex !important;
    align-items: center !important;
    order: 2 !important;
    margin-left: 8px !important;
    flex-shrink: 0;
    position: static !important;
    transform: none !important;
  }
  .pl-switcher .pl-lang {
    padding: 2px 6px !important;
    font-size: 11px !important;
  }
  .pl-switcher-mobile, .oceanwp-mobile-menu-icon { display: none !important; }
}

@media (max-width: 767px) {
  .main-menu .menu-link { padding: 4px 10px !important; font-size: 12px !important; }
  #main #content-wrap { padding-top: 8px !important; padding-bottom: 12px !important; }
  main > .elementor, main .elementor-section-wrap { padding-top: 0 !important; }
  .elementor-section.elementor-top-section:first-of-type {
    padding-top: 0 !important; padding-bottom: 0 !important;
    min-height: 0 !important;
  }
  .elementor-section.elementor-top-section:first-of-type .elementor-container,
  .elementor-section.elementor-top-section:first-of-type .elementor-widget-wrap {
    min-height: 0 !important; padding: 0 !important;
  }
}

/* Unified voice/music UI: button + dropdown styles
 * Specificity bumped for mf-btn (.mf-wrap button.mf-btn = 0,2,1) so we override the inline mu-plugin's white-text rule. */
.vf-btn,
.mf-wrap .mf-btn,
.mf-wrap button.mf-btn,
.vl-btn, .pv-back, .mf-search-btn {
  background: #A17E4F !important; color: #000 !important;
  border: 1px solid #A17E4F !important;
  border-radius: 6px !important; padding: 10px 24px !important;
  font-weight: 700 !important; font-size: 14px !important;
  letter-spacing: 0.5px !important; text-decoration: none !important;
  cursor: pointer !important;
}
.vf-btn:hover,
.mf-wrap .mf-btn:hover,
.mf-wrap button.mf-btn:hover,
.vl-btn:hover, .pv-back:hover {
  background: #C39858 !important; color: #000 !important;
}
.vf-select, .vf-search, .mf-dropdown-btn, .mf-search, #mf-keyword {
  background: rgba(0,0,0,0.6) !important;
  border: 1px solid rgba(161,126,79,0.5) !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  color: #fff !important;
  font-size: 14px !important;
  height: auto !important; line-height: 1.4 !important;
}
.vf-select:hover, .mf-dropdown-btn:hover { border-color: #A17E4F !important; }

/* Unify placeholder text color on both forms' dropdown buttons */
.mf-dropdown-btn,
.vf-custom-dropdown-btn {
  color: rgba(255,255,255,0.6) !important;
}

/* Voice form: mobile stacked, desktop horizontal (match music's layout) */
.vf-filters {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
@media (min-width: 768px) {
  .vf-filters {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .vf-filters .vf-custom-dropdown,
  .vf-filters #vf-keyword,
  .vf-filters .vf-search {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  .vf-filters #vf-submit,
  .vf-filters .vf-btn {
    flex-shrink: 0 !important;
    width: auto !important;
  }
}
.vf-search, #vf-keyword,
.vf-search-row, .vf-keyword-row {
  width: 100% !important;
  box-sizing: border-box;
}

/* Voice custom dropdown (replaces native <select> via JS transform) — match music's mf-dropdown style */
.vf-custom-dropdown {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 !important;
  vertical-align: middle;
}
.vf-custom-dropdown-btn {
  background: rgba(0,0,0,0.6) !important;
  border: 1px solid rgba(161,126,79,0.5) !important;
  border-radius: 6px !important;
  padding: 10px 36px 10px 14px !important;
  font-size: 14px !important;
  cursor: pointer;
  width: 100% !important;
  min-width: 0 !important;
  text-align: left;
  position: relative;
  line-height: 1.4 !important;
  display: block !important;
}
.vf-custom-dropdown-btn::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #A17E4F;
  font-size: 12px;
  pointer-events: none;
}
.vf-custom-dropdown.open .vf-custom-dropdown-btn::after { content: "▲"; }

/* Music dropdown chevron: closed ▼, open ▲. Hide mu-plugin's built-in SVG arrow so ours is the only one. */
html body .mf-wrap .mf-dropdown-btn,
html body .mf-wrap button.mf-dropdown-btn,
html body .mf-wrap .mf-dropdown-btn:hover,
html body .mf-wrap .mf-dropdown-btn:focus,
html body .mf-wrap .mf-dropdown-btn:active {
  background-image: none !important;
  position: relative !important;
  padding-right: 36px !important;
}
.mf-dropdown-btn::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #A17E4F;
  font-size: 12px;
  pointer-events: none;
}
.mf-dropdown.open .mf-dropdown-btn::after,
.mf-dropdown.mf-open .mf-dropdown-btn::after {
  content: "▲";
}
.vf-custom-dropdown-btn:hover {
  border-color: #A17E4F !important;
}
html body .vf-custom-dropdown-panel,
html body .mf-dropdown-panel,
html body .mf-wrap .mf-dropdown .mf-dropdown-panel {
  z-index: 9999 !important;
}
html body .piclody-footer-icons {
  z-index: 1 !important;
  position: relative;
}

/* Hide in-panel search inside each music dropdown — no value, just clutter */
.mf-dropdown-panel .mf-panel-search { display: none !important; }

/* Music dropdown panel: extend to show ~10 options (was ~8 with the search box on top) */
html body .mf-dropdown-panel,
html body .mf-wrap .mf-dropdown .mf-dropdown-panel {
  max-height: 420px !important;
}
html body .mf-dropdown-panel .mf-panel-list {
  max-height: 420px !important;
}
.vf-custom-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 9999;
  background: rgba(15,15,20,0.98);
  border: 1px solid rgba(161,126,79,0.5);
  border-radius: 6px;
  min-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.6);
}
/* Ensure dropdown parents don't create limiting stacking contexts */
.vf-custom-dropdown.open,
.mf-dropdown.open {
  z-index: 9999 !important;
  position: relative;
}
.vf-filters, .mf-filters,
.vf-wrap, .mf-wrap {
  isolation: auto !important;
  z-index: auto;
}
.vf-custom-dropdown.open .vf-custom-dropdown-panel { display: block; }
.vf-custom-option {
  padding: 8px 16px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.vf-custom-option:hover { background: rgba(161,126,79,0.18); }
.vf-custom-option.selected {
  background: rgba(161,126,79,0.28);
  color: #C39858;
}

/* Shrink wasted gap between notice and filters (half of previous) */
.vf-notice, .mf-notice {
  margin-bottom: 3px !important;
  padding: 8px 14px !important;
}
.vf-filters, .mf-filters {
  margin-top: 0 !important;
  padding-top: 6px !important;
}

/* Search panel collapse toggle — sits inside .vf-notice / .mf-notice, aligned right */
.piclody-notice-with-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
.piclody-fold-toggle {
  background: rgba(0,0,0,0.6) !important;
  border: 1px solid rgba(161,126,79,0.5) !important;
  color: #C39858 !important;
  border-radius: 6px !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  flex-shrink: 0;
  margin-left: auto !important;
  white-space: nowrap;
}
.piclody-fold-toggle:hover {
  border-color: #A17E4F !important;
  background: rgba(161,126,79,0.18) !important;
}
/* Collapsed: only hide the filter form. Notice (with toggle) and results stay visible. */
.vf-wrap.piclody-collapsed .vf-filters,
.mf-wrap.piclody-collapsed .mf-filters {
  display: none !important;
}

/* Music list typography unified to voice-list styling */
.ml-title { font-size: 15px !important; font-weight: 600 !important; color: #fff !important; }
.ml-title:hover { color: #A17E4F !important; }
.ml-desc { font-size: 13px !important; color: rgba(255,255,255,0.65) !important; }
.ml-tag, .music-list .ml-tag {
  font-size: 11px !important;
  color: #C39858 !important;
  background: rgba(161,126,79,0.15) !important;
  border: 1px solid rgba(161,126,79,0.3) !important;
  padding: 2px 8px !important;
  border-radius: 3px !important;
}
.vl-tag, .voice-list .vl-tag {
  font-size: 11px !important;
  color: #C39858 !important;
  background: rgba(161,126,79,0.15) !important;
  border: 1px solid rgba(161,126,79,0.3) !important;
  padding: 2px 8px !important;
  border-radius: 3px !important;
}

/* Zebra stripes for voice list — match music list */
.voice-list li:nth-child(odd)  { background: rgba(255,255,255,0.025) !important; }
.voice-list li:nth-child(even) { background: rgba(255,255,255,0.06)  !important; }
.voice-list li:hover            { background: rgba(161,126,79,0.12)   !important; }

/* Play button vertically centered across BOTH rows (text + tag) for music + voice list */
.ml-row, .vl-row {
  position: relative !important;
  padding-left: 64px !important;
}
.ml-row .ml-play-btn,
.vl-row .vl-play-btn {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}
/* Desktop: row is single horizontal line — main info + tags inline */
@media (min-width: 768px) {
  .ml-row, .vl-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
  }
  .ml-row > .ml-row-main, .vl-row > .vl-row-main { flex-shrink: 0; }
  .ml-row > .ml-row-tags, .vl-row > .vl-row-tags {
    flex: 1 1 auto !important;
    margin-top: 0 !important;
    min-width: 0;
  }
}
.ml-row-tags, .vl-row-tags {
  padding-left: 0 !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ml-row-tags::-webkit-scrollbar,
.vl-row-tags::-webkit-scrollbar {
  display: none;
}
.ml-tag, .vl-tag {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
@media (max-width: 767px) {
  .ml-row, .vl-row { padding-left: 60px !important; }
  .ml-row .ml-play-btn, .vl-row .vl-play-btn { left: 10px !important; }
  /* Mobile: hide description text on both lists (too cramped) */
  .ml-desc, .vl-desc { display: none !important; }
}

/* Fixed LINE float button: SVG painted as background — no inner <img> means no double-clip seam */
#piclody-line-btn {
  border-radius: 14px !important;
  width: 60px !important;
  height: 60px !important;
  background-color: #06C755 !important;
  background-image: url('/_piclody/line-logo.svg') !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 0 !important;
}
#piclody-line-btn > * { display: none !important; }

/* WeChat QR modal (injected by nav-buttons.js for non-/contact/ pages) */
#piclody-wechat-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  align-items: center; justify-content: center;
  padding: 20px;
}
#piclody-wechat-modal.pwm-open { display: flex; }
#piclody-wechat-modal .pwm-box {
  background: #1A1F2E;
  border: 1px solid rgba(161,126,79,0.3);
  padding: 28px 24px;
  border-radius: 12px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  position: relative;
}
#piclody-wechat-modal .pwm-close {
  position: absolute;
  top: 8px; right: 10px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}
#piclody-wechat-modal .pwm-hint {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.5;
}
#piclody-wechat-modal .pwm-id {
  color: #C39858;
  font-weight: 700;
  letter-spacing: 0.5px;
}
#piclody-wechat-modal .pwm-qr {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* Topic article card "more" button: small + float right, sits next to excerpt */
.topic-card-body {
  text-align: left !important;
  overflow: hidden;  /* contain the float so card height clears properly */
}
.topic-card-more {
  float: right !important;
  margin-left: 12px !important;
  margin-top: 4px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}

/* Featured stamp mobile: 浮右、跟 photo 同一行、比 photo 略小 */
@media (max-width: 767px) {
  .vl-row .vl-featured-stamp {
    position: absolute !important;
    top: 36px !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
  }
}

/* row column align desktop */
@media (min-width: 768px) {
  .vl-row .vl-desc {
    width: 360px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }
  .vl-row { padding-right: 60px !important; }
  .vl-row .vl-featured-stamp {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(calc(-50% - 3px)) !important;
    margin: 0 !important;
  }
}
