﻿/*
Theme Name: Yufenpifa React UI
Theme URI: http://192.168.0.6/
Author: Yufenpifa
Description: Yufenpifa WordPress theme for fish noodle wholesale, OEM supply, and distribution landing pages.
Version: 1.0.0
Text Domain: yufenpifa-react
*/

:root {
  --yfp-bg: #f8f6f2;
  --yfp-card: #ffffff;
  --yfp-text: #121a27;
  --yfp-muted: #5b677d;
  --yfp-line: #e1e8f0;
  --yfp-navy: #141c2c;
  --yfp-brand: #08285d;
  --yfp-gold: #c89b3c;
  --yfp-gold-deep: #8c6014;
}

#final-cta .mt-5 > button:nth-of-type(2) {
  display: none !important;
}

body.category,
body.archive {
  margin: 0;
  background: var(--yfp-bg);
  color: var(--yfp-text);
  font-family: "Noto Sans SC", "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

.yfp-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e3e8ef;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.yfp-site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1280px, calc(100% - 64px));
  height: 80px;
  margin: 0 auto;
}

.yfp-site-brand {
  display: flex;
  min-width: 246px;
  align-items: center;
  gap: 12px;
  color: var(--yfp-brand);
  text-decoration: none;
}

.yfp-site-brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: contain;
}

.yfp-site-brand span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.yfp-site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  color: #253149;
  font-size: 13px;
  font-weight: 700;
}

.yfp-site-nav a,
.yfp-mobile-nav a,
.yfp-site-footer a {
  color: inherit;
  text-decoration: none;
}

.yfp-site-nav a:hover,
.yfp-mobile-nav a:hover,
.yfp-site-footer a:hover {
  color: #b27a20;
}

.yfp-site-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.yfp-site-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--yfp-navy);
  padding: 0 16px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.yfp-mobile-nav {
  display: none;
  gap: 20px;
  overflow-x: auto;
  border-top: 1px solid #eef2f6;
  padding: 12px 16px;
  color: #253149;
  font-size: 13px;
  font-weight: 700;
}

.yfp-mobile-nav a {
  flex: 0 0 auto;
}

.yfp-archive-page {
  min-height: 72vh;
  background:
    radial-gradient(980px 480px at 95% -10%, rgba(181, 129, 43, 0.12), transparent 68%),
    var(--yfp-bg);
}

.yfp-page-shell {
  min-height: 70vh;
  background:
    radial-gradient(980px 480px at 95% -10%, rgba(181, 129, 43, 0.12), transparent 68%),
    var(--yfp-bg);
  padding: 48px 0 68px;
}

.yfp-page-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.yfp-page-card {
  border: 1px solid var(--yfp-line);
  border-radius: 24px;
  background: var(--yfp-card);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 22px 40px -34px rgba(18, 26, 39, 0.55);
}

.yfp-page-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  border: 1px solid #d6bb82;
  border-radius: 999px;
  background: #fff7e9;
  padding: 6px 12px;
  color: #9a6d1f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.yfp-page-card h1 {
  margin: 0 0 18px;
  color: var(--yfp-text);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.12;
}

.yfp-page-content {
  color: #39465c;
  font-size: 16px;
  line-height: 1.9;
}

.yfp-page-content > *:first-child {
  margin-top: 0;
}

.yfp-page-content a {
  color: #b27a20;
  font-weight: 800;
}

.yfp-page-content h2,
.yfp-page-content h3 {
  color: #182234;
  font-weight: 900;
  line-height: 1.35;
}

.yfp-contact-panel {
  margin-top: 30px;
  border-top: 1px solid #e6edf5;
  padding-top: 26px;
}

.yfp-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.yfp-contact-primary,
.yfp-contact-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.yfp-contact-primary {
  background: var(--yfp-gold);
  color: #ffffff;
  box-shadow: 0 14px 28px -18px rgba(200, 155, 60, 0.9);
}

.yfp-contact-secondary {
  background: var(--yfp-navy);
  color: #ffffff;
}

.yfp-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.yfp-contact-card {
  border: 1px solid #ead9b3;
  border-radius: 18px;
  background: #fff8eb;
  padding: 18px;
}

.yfp-contact-card-button {
  width: 100%;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.yfp-contact-card-button:hover {
  border-color: #d4a238;
  box-shadow: 0 16px 28px -24px rgba(18, 26, 39, 0.55);
  transform: translateY(-1px);
}

.yfp-contact-card span {
  display: block;
  color: #8c6014;
  font-size: 13px;
  font-weight: 900;
}

.yfp-contact-card strong,
.yfp-contact-card a {
  display: block;
  margin-top: 8px;
  color: #182234;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  word-break: break-word;
}

.yfp-contact-card em {
  display: block;
  margin-top: 8px;
  color: #8c6014;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.yfp-contact-note {
  margin: 20px 0 0;
  border-radius: 16px;
  background: #f7fafc;
  padding: 16px 18px;
  color: #39465c;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.yfp-single-shell {
  min-height: 70vh;
  background:
    radial-gradient(980px 480px at 95% -10%, rgba(181, 129, 43, 0.12), transparent 68%),
    var(--yfp-bg);
  padding: 48px 0 68px;
}

.yfp-single-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.yfp-single-card {
  border: 1px solid var(--yfp-line);
  border-radius: 24px;
  background: var(--yfp-card);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: 0 22px 40px -34px rgba(18, 26, 39, 0.55);
}

.yfp-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: #9a6d1f;
  font-size: 13px;
  font-weight: 800;
}

.yfp-single-meta span,
.yfp-single-meta a {
  color: #9a6d1f;
  text-decoration: none;
}

.yfp-single-card h1 {
  margin: 0 0 22px;
  color: var(--yfp-text);
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 900;
  line-height: 1.16;
}

.yfp-single-content {
  color: #39465c;
  font-size: 17px;
  line-height: 1.95;
}

.yfp-single-content > *:first-child {
  margin-top: 0;
}

.yfp-single-content h2,
.yfp-single-content h3 {
  margin-top: 1.8em;
  color: #182234;
  font-weight: 900;
  line-height: 1.35;
}

.yfp-single-content p {
  margin: 0 0 1.15em;
}

.yfp-single-content a {
  color: #b27a20;
  font-weight: 800;
}

.yfp-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.yfp-single-cta {
  margin-top: 34px;
  border: 1px solid #ead9b3;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 248, 235, 0.96), rgba(255, 255, 255, 0.98));
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 18px 32px -28px rgba(18, 26, 39, 0.5);
}

.yfp-single-cta-kicker {
  display: inline-flex;
  margin: 0 0 10px;
  border-radius: 999px;
  background: #fff4de;
  padding: 5px 10px;
  color: #8c6014;
  font-size: 12px;
  font-weight: 900;
}

.yfp-single-cta h2 {
  margin: 0 0 12px;
  color: #182234;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.25;
}

.yfp-single-cta p {
  color: #4d5a70;
  font-size: 15px;
  line-height: 1.8;
}

.yfp-single-cta-support {
  margin-top: 12px;
  color: #8c6014 !important;
  font-weight: 900;
}

.yfp-single-cta-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.yfp-single-cta-contact p {
  margin: 0;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px 16px;
}

.yfp-single-cta-contact span {
  display: block;
  color: #8c6014;
  font-size: 12px;
  font-weight: 900;
}

.yfp-single-cta-contact strong {
  display: block;
  margin-top: 5px;
  color: #182234;
  font-size: 16px;
  font-weight: 900;
  word-break: break-word;
}

.yfp-single-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.yfp-single-cta-primary,
.yfp-single-cta-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.yfp-single-cta-primary {
  background: var(--yfp-gold);
  color: #ffffff;
  box-shadow: 0 14px 28px -18px rgba(200, 155, 60, 0.9);
}

.yfp-single-cta-secondary {
  border: 1px solid #d4b679;
  background: #ffffff;
  color: #8c6014;
}

.yfp-archive-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.yfp-archive-hero {
  padding: 48px 0 22px;
}

.yfp-archive-hero .yfp-archive-inner {
  border: 1px solid var(--yfp-line);
  border-radius: 24px;
  background: var(--yfp-card);
  padding: 38px;
  box-shadow: 0 22px 40px -34px rgba(18, 26, 39, 0.55);
}

.yfp-archive-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  border: 1px solid #d6bb82;
  border-radius: 999px;
  background: #fff7e9;
  padding: 6px 12px;
  color: #9a6d1f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.yfp-archive-hero h1 {
  margin: 0;
  color: var(--yfp-text);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
}

.yfp-archive-subtitle {
  margin: 16px 0 0;
  max-width: 820px;
  color: var(--yfp-muted);
  font-size: 16px;
  line-height: 1.85;
}

.yfp-archive-list {
  padding: 18px 0 66px;
}

.yfp-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.yfp-post-card,
.yfp-empty-card {
  border: 1px solid var(--yfp-line);
  border-radius: 20px;
  background: var(--yfp-card);
  padding: 22px;
  box-shadow: 0 18px 32px -28px rgba(18, 26, 39, 0.56);
}

.yfp-post-card time {
  color: #b27a20;
  font-size: 12px;
  font-weight: 800;
}

.yfp-post-card h2,
.yfp-empty-card h2 {
  margin: 10px 0;
  color: #182234;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.yfp-post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.yfp-post-card p,
.yfp-empty-card p {
  margin: 0;
  color: #556178;
  font-size: 14px;
  line-height: 1.75;
}

.yfp-read-more {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--yfp-gold);
  padding: 0 18px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 28px -18px rgba(200, 155, 60, 0.9);
}

.yfp-pagination {
  margin-top: 28px;
}

.yfp-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yfp-pagination a,
.yfp-pagination span {
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 13px;
  color: #253149;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.yfp-pagination .current {
  background: var(--yfp-navy);
  color: #ffffff;
}

.yfp-site-footer {
  border-top: 1px solid #dfe5ee;
  background: #ffffff;
}

.yfp-site-footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 32px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 34px;
}

.yfp-site-footer img {
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.yfp-site-footer h3 {
  margin: 0 0 14px;
  color: #111826;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.yfp-site-footer p,
.yfp-site-footer a {
  display: block;
  margin: 0 0 9px;
  color: #4d5a70;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.yfp-site-beian {
  border-top: 1px solid #eef2f6;
  padding: 13px 16px;
  color: #5b677d;
  text-align: center;
  font-size: 13px;
}

.yfp-site-beian a {
  color: #5b677d;
}

@media (max-width: 1080px) {
  .yfp-site-nav {
    display: none;
  }

  .yfp-mobile-nav {
    display: flex;
  }

  .yfp-site-actions a:first-child {
    display: none;
  }

  .yfp-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yfp-site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .yfp-site-header-inner {
    width: calc(100% - 28px);
    height: 72px;
  }

  .yfp-site-brand {
    min-width: 0;
  }

  .yfp-site-brand img {
    width: 38px;
    height: 38px;
  }

  .yfp-site-brand span {
    font-size: 19px;
  }

  .yfp-site-actions {
    display: none;
  }

  .yfp-archive-hero {
    padding-top: 28px;
  }

  .yfp-archive-hero .yfp-archive-inner {
    padding: 24px;
  }

  .yfp-post-grid,
  .yfp-site-footer-inner {
    grid-template-columns: 1fr;
  }

  .yfp-contact-actions,
  .yfp-contact-primary,
  .yfp-contact-secondary {
    width: 100%;
  }

  .yfp-contact-grid {
    grid-template-columns: 1fr;
  }

  .yfp-single-card {
    padding: 24px;
  }

  .yfp-single-cta {
    margin-top: 28px;
    padding: 20px;
  }

  .yfp-single-cta-contact {
    grid-template-columns: 1fr;
  }

.yfp-single-cta-actions,
.yfp-single-cta-primary,
.yfp-single-cta-secondary {
    width: 100%;
  }
}

.yfp-qywechat-card {
  width: 220px;
  max-width: 220px;
  border: 1px solid #e1e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  text-align: center;
  box-shadow: 0 18px 34px -24px rgba(18, 26, 39, 0.56);
}

.yfp-qywechat-card img {
  width: 136px;
  height: 136px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.yfp-qywechat-title {
  margin: 0 0 8px;
  color: #111826;
  font-size: 13px;
  font-weight: 900;
}

.yfp-qywechat-note {
  margin: 8px 0 0;
  color: #8c6014;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.yfp-qywechat-card-footer,
.yfp-qywechat-card-single,
.yfp-qywechat-card-contact {
  margin: 10px 0 12px;
}

#final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 14px;
  align-items: center;
  scroll-margin-top: 96px;
}

#final-cta > h2,
#final-cta > p,
#final-cta > div:not(#qywechat-qrcode) {
  grid-column: 1;
}

#final-cta > h2 {
  margin-top: 0;
}

#final-cta > #qywechat-qrcode {
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 220px;
  margin-top: 0;
  padding: 16px;
  scroll-margin-top: 112px;
}

#final-cta.is-qywechat-open {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
}

#final-cta > #qywechat-qrcode img {
  width: 156px;
  height: 156px;
  margin: 0 auto;
}

#final-cta > #qywechat-qrcode .yfp-qywechat-title {
  font-size: 14px;
}

#final-cta > #qywechat-qrcode .yfp-qywechat-note {
  font-size: 12px;
}

.yfp-qywechat-card-footer img {
  width: 132px;
  height: 132px;
}

.yfp-qywechat-card[hidden] {
  display: none !important;
}

.yfp-qywechat-suppressed {
  display: none !important;
}

.yfp-qywechat-trigger {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8b25b;
  border-radius: 999px;
  background: #c89b3c;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 0 18px;
  text-decoration: none;
  box-shadow: 0 14px 28px -20px rgba(200, 155, 60, 0.92);
}

.yfp-qywechat-tip {
  margin: 0 0 10px;
  color: #46536a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.yfp-qywechat-image-wrap {
  display: flex;
  justify-content: center;
}

.yfp-qywechat-copy {
  margin: 10px 0 0;
  color: #8c6014;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.yfp-qywechat-copy-sub {
  margin-top: 4px;
}

.yfp-qywechat-helper {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.yfp-qywechat-save {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff6e4;
  color: #8c6014;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.yfp-qywechat-save-note {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .yfp-qywechat-card {
    width: 188px;
    max-width: 188px;
    padding: 10px;
  }

  .yfp-qywechat-card img {
    width: 126px;
    height: 126px;
  }

  #final-cta {
    grid-template-columns: 1fr;
    row-gap: 12px;
    text-align: left;
    padding-bottom: 32px;
  }

  #final-cta.is-qywechat-open {
    grid-template-columns: 1fr;
  }

  #final-cta > h2,
  #final-cta > p,
  #final-cta > div:not(#qywechat-qrcode),
  #final-cta > #qywechat-qrcode {
    grid-column: 1;
  }

  #final-cta > #qywechat-qrcode {
    grid-row: auto;
    justify-self: center;
    max-width: 188px;
    margin-top: 4px;
    padding: 12px;
  }

  #final-cta > #qywechat-qrcode img {
    width: 136px;
    height: 136px;
  }
}

@media (max-width: 768px) {
  #final-cta {
    padding-bottom: 28px;
  }

  #final-cta .yfp-qywechat-trigger,
  #final-cta a,
  #final-cta button {
    width: 100%;
    justify-content: center;
  }

  #final-cta .yfp-qywechat-card {
    justify-self: center;
    max-width: 220px;
  }

  #final-cta > #qywechat-qrcode img,
  #final-cta .yfp-qywechat-card img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: 190px;
    border-radius: 16px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 22px 34px -28px rgba(0, 0, 0, 0.75);
  }

  #final-cta .yfp-qywechat-copy {
    margin: 0;
    color: #f0c46f;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
  }

  #final-cta .yfp-qywechat-copy-sub {
    margin-top: 4px;
    font-size: 14px;
  }

  #final-cta .yfp-qywechat-helper {
    margin: 12px auto 0;
    max-width: 280px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
  }

  #final-cta .yfp-qywechat-save {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 0 18px;
    border-radius: 999px;
    background: #c89b3c;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 28px -20px rgba(200, 155, 60, 0.9);
  }

  #final-cta .yfp-qywechat-save-note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
  }
}
