/*
 * FreeYong Coral Hunt visual system.
 * Presentation only: URLs, business logic, advertising and SEO remain intact.
 */

body.freeyong-ui {
  --fy-bg: #f7f5f2;
  --fy-surface: #fffdfa;
  --fy-surface-strong: #ffffff;
  --fy-text: #1d1c1a;
  --fy-text-soft: #6f6963;
  --fy-line: #e9e3de;
  --fy-line-strong: #dcd3cc;
  --fy-accent: #e85d4a;
  --fy-accent-hover: #d94e3c;
  --fy-accent-soft: #fbe9e4;
  --fy-clay: #f2c9bf;
  --fy-shadow: 0 18px 48px rgba(92, 63, 51, 0.07);
  --theme-color: var(--fy-accent);
  --focus-shadow-color: rgba(232, 93, 74, 0.28);
  --focus-color-opacity1: rgba(232, 93, 74, 0.1);
  background: var(--fy-bg);
  color: var(--fy-text);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.freeyong-ui.dark-theme {
  --fy-bg: #171614;
  --fy-surface: #201e1b;
  --fy-surface-strong: #272420;
  --fy-text: #f6f1ed;
  --fy-text-soft: #aaa19a;
  --fy-line: #39342f;
  --fy-line-strong: #4a433d;
  --fy-accent: #f06a57;
  --fy-accent-hover: #f47a68;
  --fy-accent-soft: #3a2521;
  --fy-clay: #d9a99d;
  --fy-shadow: none;
}

body.freeyong-ui a {
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

body.freeyong-ui :focus-visible {
  outline: 3px solid rgba(232, 93, 74, 0.34);
  outline-offset: 3px;
}

body.freeyong-ui .header {
  border-bottom: 1px solid var(--fy-line);
  background: rgba(255, 253, 250, 0.92);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

body.freeyong-ui.dark-theme .header {
  background: rgba(32, 30, 27, 0.94);
}

body.freeyong-ui .header .container-header {
  min-height: 70px;
  width: 100%;
  max-width: 1280px;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

body.freeyong-ui .navbar-brand,
body.freeyong-ui .navbar-logo {
  display: flex;
  align-items: center;
}

body.freeyong-ui .navbar-logo img {
  width: auto !important;
  height: 54px !important;
  max-width: 250px;
  object-fit: contain;
}

body.freeyong-ui .navbar-nav > li > a {
  position: relative;
  color: var(--fy-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.freeyong-ui .navbar-nav > li.current-menu-item > a,
body.freeyong-ui .navbar-nav > li.current-menu-parent > a,
body.freeyong-ui .navbar-nav > li.current-menu-ancestor > a,
body.freeyong-ui .navbar-nav > li.active > a,
body.freeyong-ui .navbar-nav > li > a:hover {
  color: var(--fy-accent);
}

body.freeyong-ui .navbar-nav > li.current-menu-item > a::after,
body.freeyong-ui .navbar-nav > li.current-menu-parent > a::after,
body.freeyong-ui .navbar-nav > li.current-menu-ancestor > a::after,
body.freeyong-ui .navbar-nav > li.active > a::after {
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--fy-accent);
  content: "";
}

body.freeyong-ui .header .but,
body.freeyong-ui .header .jb-blue {
  border: 0;
  background: var(--fy-accent) !important;
  box-shadow: none;
  color: #fff !important;
}

body.freeyong-ui .header .but:hover,
body.freeyong-ui .header .jb-blue:hover {
  background: var(--fy-accent-hover) !important;
  transform: translateY(-1px);
}

body.freeyong-ui .container,
body.freeyong-ui .container-fluid {
  --mian-max-width: 1280px;
}

body.freeyong-ui.home main.container {
  margin-top: 28px;
}

body.freeyong-ui .freeyong-home-intro {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 38px 42px 40px;
  border: 1px solid var(--fy-line);
  border-radius: 20px;
  background: var(--fy-surface-strong);
  box-shadow: none;
}

body.freeyong-ui .freeyong-home-intro::after {
  position: absolute;
  top: -48px;
  right: -28px;
  width: 190px;
  height: 190px;
  border: 34px solid var(--fy-accent-soft);
  border-radius: 52% 48% 45% 55%;
  content: "";
  pointer-events: none;
  transform: rotate(14deg);
}

body.freeyong-ui .freeyong-home-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--fy-text);
  font-size: clamp(28px, 2.35vw, 36px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body.freeyong-ui .freeyong-home-intro p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: var(--fy-text-soft);
  font-size: 16px;
  line-height: 1.8;
}

body.freeyong-ui .freeyong-hero-search {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(660px, 100%);
  height: 52px;
  margin-top: 24px;
  padding: 5px;
  border: 1px solid var(--fy-line-strong);
  border-radius: 14px;
  background: var(--fy-bg);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.freeyong-ui .freeyong-hero-search:focus-within {
  border-color: var(--fy-accent);
  box-shadow: 0 0 0 4px rgba(232, 93, 74, 0.11);
}

body.freeyong-ui .freeyong-search-icon {
  position: relative;
  flex: 0 0 40px;
  height: 40px;
}

body.freeyong-ui .freeyong-search-icon::before {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--fy-text-soft);
  border-radius: 50%;
  content: "";
}

body.freeyong-ui .freeyong-search-icon::after {
  position: absolute;
  top: 25px;
  left: 26px;
  width: 8px;
  height: 2px;
  background: var(--fy-text-soft);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

body.freeyong-ui .freeyong-hero-search input[type="search"] {
  min-width: 0;
  height: 40px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fy-text);
  font-size: 15px;
}

body.freeyong-ui .freeyong-hero-search input::placeholder {
  color: #8b827b;
  opacity: 1;
}

body.freeyong-ui.dark-theme .freeyong-hero-search input::placeholder {
  color: #b0a7a0;
}

body.freeyong-ui .freeyong-hero-search button {
  min-width: 88px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--fy-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

body.freeyong-ui .freeyong-hero-search button:hover {
  background: var(--fy-accent-hover);
}

body.freeyong-ui .freeyong-hero-search button:active {
  transform: translateY(1px);
}

body.freeyong-ui .freeyong-ad-widget {
  border: 1px solid var(--fy-line);
  border-radius: 14px;
  background: rgba(255, 253, 250, 0.56);
}

body.freeyong-ui .freeyong-ad-widget-leaderboard {
  margin: 18px 0 24px;
}

body.freeyong-ui .freeyong-ad-label {
  color: #8d847d;
  font-weight: 600;
}

body.freeyong-ui .freeyong-featured-shell {
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
}

body.freeyong-ui .freeyong-featured-shell > .freeyong-featured-heading {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  color: var(--fy-text);
  font-size: 18px;
  font-weight: 750;
}

body.freeyong-ui .freeyong-featured-shell > .freeyong-featured-heading span {
  display: inline-flex;
  align-items: center;
}

body.freeyong-ui .freeyong-featured-shell > .freeyong-featured-heading span::before {
  width: 4px;
  height: 18px;
  margin-right: 10px;
  border-radius: 4px;
  background: var(--fy-accent);
  content: "";
}

body.freeyong-ui .freeyong-featured-shell .mb20 {
  margin-bottom: 0 !important;
}

body.freeyong-ui .freeyong-featured-shell .zib-slider,
body.freeyong-ui .freeyong-featured-shell .new-swiper,
body.freeyong-ui .freeyong-featured-shell .swiper-slide,
body.freeyong-ui .freeyong-featured-shell .swiper-slide > a {
  border-radius: 18px;
}

body.freeyong-ui .freeyong-featured-shell .new-swiper {
  --pc-height: 230px !important;
  --m-height: 170px !important;
  overflow: hidden;
  border: 1px solid var(--fy-line);
  background: var(--fy-surface);
  box-shadow: none;
}

body.freeyong-ui .freeyong-featured-shell .swiper-slide > a > img:first-child {
  width: 100%;
  height: 100%;
  border-radius: 18px !important;
  object-fit: cover;
}

body.freeyong-ui .freeyong-featured-shell .slide-layer {
  display: none !important;
}

body.freeyong-ui .freeyong-featured-shell .swiper-button-prev,
body.freeyong-ui .freeyong-featured-shell .swiper-button-next {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(29, 28, 26, 0.72);
  color: #fff;
}

body.freeyong-ui .home-tab-content .ajax-option {
  margin-bottom: 12px;
  padding: 4px 2px;
  color: var(--fy-text-soft);
  font-weight: 600;
}

body.freeyong-ui posts.posts-item,
body.freeyong-ui .posts-item {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--fy-line);
  border-radius: 16px;
  background: var(--fy-surface-strong);
  box-shadow: none;
}

body.freeyong-ui posts.posts-item:hover,
body.freeyong-ui .posts-item:hover {
  border-color: var(--fy-line-strong);
  transform: translateY(-2px);
}

body.freeyong-ui .posts-item .item-thumbnail,
body.freeyong-ui .posts-item .item-thumbnail img {
  border-radius: 12px !important;
}

body.freeyong-ui .posts-item .item-heading {
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

body.freeyong-ui .posts-item .item-heading a {
  color: var(--fy-text);
}

body.freeyong-ui .posts-item .item-heading a:hover {
  color: var(--fy-accent);
}

body.freeyong-ui .posts-item .item-excerpt {
  color: var(--fy-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

body.freeyong-ui .posts-item .item-tags .but {
  border: 1px solid var(--fy-line);
  border-radius: 6px;
  background: var(--fy-bg);
  color: var(--fy-text-soft);
  box-shadow: none;
}

body.freeyong-ui .posts-item .item-tags .c-blue {
  border-color: #f3cec5;
  background: var(--fy-accent-soft);
  color: var(--fy-accent);
}

body.freeyong-ui .sidebar .theme-box,
body.freeyong-ui .sidebar .widget-main-post,
body.freeyong-ui .sidebar .zib-widget,
body.freeyong-ui .article .zib-widget,
body.freeyong-ui .article-content,
body.freeyong-ui .article-header {
  border-color: var(--fy-line);
  border-radius: 16px;
  background: var(--fy-surface-strong);
  box-shadow: none;
}

body.freeyong-ui .sidebar .title-theme {
  position: relative;
  color: var(--fy-text);
  font-size: 16px;
  font-weight: 750;
}

body.freeyong-ui .sidebar .title-theme::before {
  background: var(--fy-accent) !important;
}

body.freeyong-ui .sidebar .line-form-input {
  color: var(--fy-text);
}

body.freeyong-ui .pagenav .page-numbers {
  border-color: var(--fy-line);
  border-radius: 9px;
  background: var(--fy-surface-strong);
  color: var(--fy-text-soft);
}

body.freeyong-ui .pagenav .page-numbers.current,
body.freeyong-ui .pagenav .page-numbers:hover {
  border-color: var(--fy-accent);
  background: var(--fy-accent);
  color: #fff;
}

body.freeyong-ui .article-title,
body.freeyong-ui .freeyong-page-title {
  color: var(--fy-text);
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

body.freeyong-ui .article-content,
body.freeyong-ui .article-content p,
body.freeyong-ui .wp-posts-content,
body.freeyong-ui .wp-posts-content p {
  color: var(--fy-text);
  font-size: 17px;
  line-height: 1.95;
}

body.freeyong-ui .article-content h2,
body.freeyong-ui .wp-posts-content h2 {
  margin-top: 2.2em;
  color: var(--fy-text);
  font-size: 24px;
  line-height: 1.4;
}

body.freeyong-ui .article-content h2::after,
body.freeyong-ui .wp-posts-content h2::after {
  background: var(--fy-accent) !important;
}

body.freeyong-ui .article-content a,
body.freeyong-ui .wp-posts-content a {
  color: var(--fy-accent);
  text-decoration-color: rgba(232, 93, 74, 0.35);
  text-underline-offset: 3px;
}

body.freeyong-ui .footer {
  border-top: 1px solid var(--fy-line);
  background: var(--fy-surface);
  color: var(--fy-text-soft);
}

body.freeyong-ui .footer .container-footer {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

body.freeyong-ui .footer-logo {
  display: inline-flex;
  align-items: center;
  width: min(210px, 100%);
  min-height: 44px;
  overflow: visible;
}

body.freeyong-ui .footer-logo img {
  display: block;
  width: auto;
  height: 44px !important;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 991px) {
  body.freeyong-ui .header .container-header {
    min-height: 62px;
  }

  body.freeyong-ui .navbar-logo img {
    height: 46px !important;
    max-width: 214px;
  }

  body.freeyong-ui .freeyong-home-intro {
    padding: 32px;
  }
}

@media (max-width: 767px) {
  body.freeyong-ui .header .container-header {
    min-height: 56px;
  }

  body.freeyong-ui .navbar-logo img {
    height: 38px !important;
    max-width: 176px;
  }

  body.freeyong-ui.home main.container {
    margin-top: 16px;
  }

  body.freeyong-ui .freeyong-home-intro {
    margin-bottom: 14px;
    padding: 24px 20px 22px;
    border-radius: 16px;
  }

  body.freeyong-ui .freeyong-home-intro::after {
    top: -56px;
    right: -72px;
    width: 150px;
    height: 150px;
  }

  body.freeyong-ui .freeyong-home-intro h1 {
    max-width: 90%;
    font-size: 25px;
    line-height: 1.35;
  }

  body.freeyong-ui .freeyong-home-intro p {
    max-width: 92%;
    font-size: 14.5px;
    line-height: 1.75;
  }

  body.freeyong-ui .freeyong-hero-search {
    height: 48px;
    margin-top: 20px;
    border-radius: 12px;
  }

  body.freeyong-ui .freeyong-hero-search button {
    min-width: 72px;
    height: 36px;
  }

  body.freeyong-ui .freeyong-ad-widget-leaderboard {
    margin: 14px 0 20px;
  }

  body.freeyong-ui .freeyong-featured-shell {
    margin-bottom: 22px;
  }

  body.freeyong-ui .freeyong-featured-shell .new-swiper {
    border-radius: 14px;
  }

  body.freeyong-ui posts.posts-item,
  body.freeyong-ui .posts-item {
    padding: 12px;
    border-radius: 14px;
  }

  body.freeyong-ui .posts-item:hover {
    transform: none;
  }

  body.freeyong-ui .posts-item .item-heading {
    font-size: 15.5px;
  }

  body.freeyong-ui .posts-item .item-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
  }

  body.freeyong-ui .article-title,
  body.freeyong-ui .freeyong-page-title {
    font-size: 22px;
  }

  body.freeyong-ui .article-content,
  body.freeyong-ui .article-content p,
  body.freeyong-ui .wp-posts-content,
  body.freeyong-ui .wp-posts-content p {
    font-size: 16px;
    line-height: 1.9;
  }

  body.freeyong-ui .article-content h2,
  body.freeyong-ui .wp-posts-content h2 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.freeyong-ui *,
  body.freeyong-ui *::before,
  body.freeyong-ui *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
