/* ==========================================================================
   FengShen0510 Theme — main.css
   Recreated from original fengshen theme design
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary:    #f7a501;
  --color-secondary:  #1078a3;
  --color-dark:       #23251d;
  --color-bg:         #eeefe9;
  --color-text:       #4d4f46;
  --color-text-light: #6c6e63;
  --color-widget-bg:  #23251d;
  --color-link-hover: #dd9001;
  --color-badge-new:  #2c8c66;
  --color-badge-hot:  #f7a501;
  --color-white:      #FFFFFF;

  /* Layout */
  --site-max-width:   1366px;
  --content-width:    74%;
  --sidebar-width:    25%;
  --card-gap:         4%;
  --card-margin-b:    70px;

  /* Typography */
  --font-body:    'IBM Plex Sans Variable', 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --font-size-base:  12px;
  --font-line-base:  1.8;
}

/* --------------------------------------------------------------------------
   Reset and Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--font-line-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* --------------------------------------------------------------------------
   Site Container (marauto)
   -------------------------------------------------------------------------- */
.marauto,
.site-container,
.wp-site-blocks > .alignfull ~ * {
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
}

.site-container {
  padding: 0 1%;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */

/* --- Header Top Bar (logo + search) --- */
.site-header,
.wp-block-template-part[data-area="header"] {
  padding: 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo / Site Branding */
.site-logo,
.site-branding {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 20px;
  border-right: 2px solid var(--color-dark);
  margin-right: 20px;
}

.site-logo img,
.site-logo .custom-logo-link img {
  max-height: 60px;
  width: auto;
}

.site-title,
.wp-block-site-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  white-space: nowrap;
}

.site-title a,
.wp-block-site-title a {
  color: inherit;
}

.site-title a:hover,
.wp-block-site-title a:hover {
  color: var(--color-primary);
}

.site-description,
.wp-block-site-tagline {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 400;
  margin-top: 4px;
}

/* Search */
.header-search,
.search-form {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-search input[type="search"],
.search-form .search-field {
  border: 1px solid Fddd;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  width: 200px;
  transition: border-color 0.2s;
}

.header-search input[type="search"]:focus,
.search-form .search-field:focus {
  border-color: var(--color-secondary);
}

.header-search button,
.search-form .search-submit {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  margin-left: 6px;
  transition: background 0.2s;
}

.header-search button:hover,
.search-form .search-submit:hover {
  background: var(--color-link-hover);
}

/* --- Navigation --- */
.main-navigation,
.wp-block-navigation {
  background-color: var(--color-dark);
  margin-top: 10px;
  border-radius: 4px;
}

.main-navigation ul,
.wp-block-navigation__container {
  display: flex;
  flex-wrap: wrap;
}

.main-navigation li,
.wp-block-navigation-item {
  position: relative;
}

.main-navigation a,
.wp-block-navigation-item a {
  display: block;
  padding: 12px 18px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.main-navigation a:hover,
.wp-block-navigation-item a:hover,
.main-navigation li.current-menu-item > a,
.wp-block-navigation-item.current-menu-item > a {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Dropdown sub-menu */
.main-navigation ul ul,
.wp-block-navigation__submenu-container {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-dark);
  min-width: 180px;
  z-index: 999;
  display: none;
}

.main-navigation li:hover > ul,
.wp-block-navigation-item:hover > .wp-block-navigation__submenu-container {
  display: block;
}

/* --------------------------------------------------------------------------
   MAIN LAYOUT
   -------------------------------------------------------------------------- */
.site-content,
.wp-site-blocks > main {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 20px;
  padding-bottom: 40px;
}

/* Main Content Area */
.content-area,
.site-main {
  float: left;
  width: var(--content-width);
  padding-right: 3%;
}

/* Sidebar */
.widget-area,
.sidebar {
  float: right;
  width: var(--sidebar-width);
}

/* --------------------------------------------------------------------------
   POST CARDS (Article Grid)
   -------------------------------------------------------------------------- */

/* Query block - reset WordPress defaults */
.wp-block-query {
  display: block;
}

/* Post template as 2-column flex container */
.wp-block-post-template,
.wp-block-post-template.is-layout-flow,
.wp-block-post-template.is-layout-flex,
.wp-block-post-template.is-layout-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Post card - override WordPress injected layout classes */
.wp-block-post,
.wp-block-post.is-layout-flow,
.wp-block-post.is-layout-constrained {
  position: relative;
  width: 100%;
  margin-bottom: 0;
  background: var(--color-white);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  /* Override WordPress injected constrained layout */
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 2-column grid on wider screens */
@media (min-width: 960px) {
  .wp-block-post-template .wp-block-post {
    width: calc(50% - 10px) !important;
    flex: 0 0 calc(50% - 10px) !important;
  }
}

/* Post card inner group - override WP constrained layout */
.wp-block-post > .wp-block-group,
.wp-block-post > .wp-block-group.is-layout-constrained,
.wp-block-post > .wp-block-group.is-layout-flow {
  max-width: none !important;
  margin: 0 !important;
  padding: 15px !important;
}

/* --- Post Card Inner --- */
.post-card-inner,
.wp-block-post-content,
.wp-block-post-featured-image {
  padding: 0;
}

/* Featured image / thumbnail */
.post-card .post-thumbnail,
.wp-block-post-featured-image {
	margin: 0;
}

.post-card .post-thumbnail img,
.wp-block-post-featured-image img {
  width: 100%;
  display: block;
  border-radius: 6px 6px 0 0;
}

/* Single post featured image */
.single-featured-image {
  margin-bottom: 20px;
}

.single-featured-image img {
  border-radius: 6px;
}

.entry-title-single {
  font-size: 24px;
  margin-bottom: 10px;
}

/* --- Date Block --- */
.post-date-block,
.entry-date-block {
  position: absolute;
  top: 15px;
  left: 0;
  width: 60px;
  background: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
  border-radius: 4px;
  padding: 8px 0;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 188, 242, 0.35);
  z-index: 2;
}

.post-date-block .date-year,
.entry-date-block .date-year {
  font-size: 12px;
  display: block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}

.post-date-block .date-month-day,
.entry-date-block .date-month-day {
  font-size: 14px;
  display: block;
  line-height: 1.3;
}

/* --- Post Title --- */
.post-card .entry-title,
.wp-block-post-title {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 8px;
  padding-left: 0;
  line-height: 1.4;
}

.post-card .entry-title a,
.wp-block-post-title a {
  color: var(--color-primary);
}

.post-card .entry-title a:hover,
.wp-block-post-title a:hover {
  color: var(--color-link-hover);
}

/* --- Post Meta --- */
.post-meta,
.entry-meta {
  color: F999;
  font-size: 12px;
  padding-left: 0;
  margin-bottom: 10px;
}

.post-meta a,
.entry-meta a {
  color: F999;
}

.post-meta a:hover,
.entry-meta a:hover {
  color: var(--color-primary);
}

.post-meta .fa,
.post-meta .dashicons,
.entry-meta .fa,
.entry-meta .dashicons {
  margin-right: 4px;
  font-size: 12px;
}

/* --- Post Content / Excerpt --- */
.post-card .entry-content,
.post-card .entry-summary,
.wp-block-post-excerpt {
  font-size: 14px;
  line-height: 28px;
  color: var(--color-text-light);
  border-bottom: 1px dotted Fddd;
  padding-bottom: 15px;
  margin-bottom: 15px;
  position: relative;
}

/* Read More button */
.read-more,
.wp-block-post-excerpt__more-link,
.more-link {
  position: absolute;
  bottom: -14px;
  right: 15px;
  display: inline-block;
  background: F999;
  color: var(--color-white);
  padding: 4px 16px;
  font-size: 12px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}

.read-more:hover,
.more-link:hover,
.wp-block-post-excerpt__more-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Post Tags --- */
.post-tags,
.entry-tags,
.tag-links {
  padding: 20px 15px 15px;
  font-size: 12px;
}

.post-tags a,
.entry-tags a,
.tag-links a {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-text-light);
  padding: 3px 10px;
  margin: 2px 4px 2px 0;
  border-radius: 3px;
  font-size: 11px;
  transition: background 0.2s, color 0.2s;
}

.post-tags a:hover,
.entry-tags a:hover,
.tag-links a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Tag color classes (based on last digit of count for visual flair) */
.tag-color-0 { background: #f7a501; color: #fff; }
.tag-color-1 { background: #1078a3; color: #fff; }
.tag-color-2 { background: #2c8c66; color: #fff; }
.tag-color-3 { background: #23251d; color: #fff; }
.tag-color-4 { background: #23251d; color: #fff; }
.tag-color-5 { background: #f7a501; color: #fff; }
.tag-color-6 { background: #1078a3; color: #fff; }
.tag-color-7 { background: #2c8c66; color: #fff; }
.tag-color-8 { background: #23251d; color: #fff; }
.tag-color-9 { background: #23251d; color: #fff; }

/* --- Badges (NEW / HOT) --- */
.badge-new,
.badge-hot {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-white);
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

.badge-new {
  background: var(--color-badge-new);
}

.badge-hot {
  background: var(--color-badge-hot);
}

/* --------------------------------------------------------------------------
   SINGLE POST / PAGE
   -------------------------------------------------------------------------- */
.entry-content,
.wp-block-post-content {
  font-size: 16px;
  line-height: 30px;
  color: var(--color-text);
}

.entry-content p,
.wp-block-post-content p {
  margin-bottom: 18px;
}

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  color: var(--color-dark);
  margin: 24px 0 12px;
  line-height: 1.4;
}

.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 18px; }
.entry-content h4 { font-size: 16px; }

.entry-content img {
  border-radius: 4px;
  margin: 10px 0;
}

.entry-content a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--color-link-hover);
}

.entry-content blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: 10px 20px;
  margin: 20px 0;
  background: var(--color-bg);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--color-text-light);
}

.entry-content pre,
.entry-content code {
  background: var(--color-dark);
  color: Fccc;
  border-radius: 4px;
  font-size: 13px;
}

.entry-content code {
  padding: 2px 6px;
}

.entry-content pre {
  padding: 16px;
  overflow-x: auto;
}

.entry-content pre code {
  background: none;
  padding: 0;
}

.entry-content ul, .entry-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.entry-content th, .entry-content td {
  border: 1px solid Fddd;
  padding: 8px 12px;
  text-align: left;
}

.entry-content th {
  background: var(--color-dark);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   SIDEBAR WIDGETS
   -------------------------------------------------------------------------- */
.widget {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.widget-title,
.wp-block-heading {
  background: var(--color-widget-bg);
  color: var(--color-white);
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}

.widget-content,
.widget_text .textwidget,
.widget ul,
.wp-block-list {
  border-top: 3px solid var(--color-widget-bg);
  padding: 12px 15px;
}

/* Widget list items with custom bullet via pseudo-element */
.widget ul li {
  position: relative;
  padding: 6px 0 6px 18px;
  border-bottom: 1px dotted Feee;
  line-height: 1.6;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 0.7;
}

.widget ul li:hover::before {
  opacity: 1;
}

.widget ul li a {
  color: var(--color-text);
  font-size: 13px;
}

.widget ul li a:hover {
  color: var(--color-primary);
}

/* Sidebar Tag Cloud */
.tag-cloud,
.wp-block-tag-cloud {
  padding: 15px;
  border-top: 3px solid var(--color-widget-bg);
}

.tag-cloud a,
.wp-block-tag-cloud a {
  display: inline-block;
  padding: 3px 10px;
  margin: 3px 4px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.tag-cloud a:hover,
.wp-block-tag-cloud a:hover {
  opacity: 0.8;
}

/* Sidebar Search */
.widget_search .search-form {
  border-top: 3px solid var(--color-widget-bg);
  padding: 12px 15px;
}

.widget_search .search-field {
  width: 100%;
  border: 1px solid Fddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  margin-bottom: 8px;
}

.widget_search .search-submit {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.widget_search .search-submit:hover {
  background: var(--color-link-hover);
}

/* Sidebar Recent Comments */
.widget_recent_comments .recentcomments {
  padding: 6px 0;
  border-bottom: 1px dotted Feee;
  font-size: 13px;
}

.widget_recent_comments .recentcomments::before {
  display: none;
}

/* Sidebar Calendar */
.widget_calendar {
  padding: 0;
}

.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.widget_calendar caption {
  padding: 10px;
  font-weight: 700;
  background: var(--color-widget-bg);
  color: var(--color-white);
}

.widget_calendar th,
.widget_calendar td {
  padding: 6px 4px;
  text-align: center;
  border: 1px solid Feee;
}

.widget_calendar th {
  background: var(--color-bg);
  font-weight: 600;
}

.widget_calendar td a {
  color: var(--color-primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   PAGINATION
   -------------------------------------------------------------------------- */
.pagination,
.nav-links,
.wp-block-query-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 30px 0;
  flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers,
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination a,
.wp-block-query-pagination span {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-white);
  border: 1px solid Fddd;
  border-radius: 4px;
  color: var(--color-text);
  font-size: 13px;
  transition: all 0.2s;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current,
.wp-block-query-pagination .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination a:hover,
.nav-links a:hover,
.wp-block-query-pagination a:hover {
  background: var(--color-link-hover);
  color: var(--color-white);
  border-color: var(--color-link-hover);
}

/* --------------------------------------------------------------------------
   COMMENTS
   -------------------------------------------------------------------------- */
.comments-area,
.wp-block-comments {
  padding: 20px 0;
}

.comments-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.comment-list {
  list-style: none;
}

.comment {
  padding: 15px;
  margin-bottom: 15px;
  background: var(--color-white);
  border-radius: 6px;
  border-left: 3px solid var(--color-secondary);
}

.comment-author {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 14px;
}

.comment-author a {
  color: var(--color-primary);
}

.comment-meta {
  font-size: 11px;
  color: F999;
  margin-bottom: 8px;
}

.comment-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* Comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid Fddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-body);
  margin-bottom: 10px;
}

.comment-form textarea {
  min-height: 120px;
}

.comment-form .submit {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  padding: 8px 24px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.comment-form .submit:hover {
  background: var(--color-link-hover);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer,
.wp-block-template-part[data-area="footer"] {
  border-top: 3px double var(--color-dark);
  padding: 20px 0;
  margin-top: 30px;
  text-align: right;
  font-size: 12px;
  color: var(--color-text-light);
}

.site-footer a,
.wp-block-template-part[data-area="footer"] a {
  color: var(--color-primary);
}

.site-footer a:hover,
.wp-block-template-part[data-area="footer"] a:hover {
  color: var(--color-link-hover);
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-widgets .widget {
  flex: 1;
  min-width: 200px;
}

/* --------------------------------------------------------------------------
   BLOCK-OVERRIDES (Gutenberg / FSE)
   -------------------------------------------------------------------------- */

/* --- Root: remove WP injected constrained layout --- */
.wp-site-blocks {
  max-width: none !important;
}

/* --- Site Container --- */
.site-container {
  max-width: 1366px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* --- 2-Column CSS Grid Layout --- */
/* We use CSS Grid instead of wp:columns to avoid WordPress injected styles */
.site-layout {
  display: grid !important;
  grid-template-columns: 74% 25% !important;
  gap: 1% !important;
  max-width: 1366px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 24px !important;
  padding: 0 15px !important;
}

/* Content area - left column */
.site-layout > .content-area {
  min-width: 0;
}

/* Sidebar - right column */
.site-layout > .wp-block-template-part,
.site-layout > aside.sidebar {
  min-width: 0;
}

/* Eliminate WP default block-gap between header identity and nav */
/* Only target the header template-part, not the main content area */
header.wp-block-template-part > .wp-block-group.site-header,
header.wp-block-template-part > .wp-block-group.site-nav {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Sidebar widgets must be visible */
.sidebar .widget,
.sidebar aside,
.sidebar .wp-block-widget-area,
.sidebar .widget-area,
.wp-block-widget-area,
.wp-block-widget-area .widget {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: none !important;
  overflow: visible !important;
  width: 100% !important;
}

/* Widget titles */
.sidebar .widget-title,
.sidebar .wp-block-widget-area .widget-title {
  font-size: 16px;
  color: var(--color-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 15px;
}

/* Remove ALL WordPress layout injections from groups inside our templates */
.site-layout .wp-block-group,
.site-layout .wp-block-group.is-layout-constrained,
.site-layout .wp-block-group.is-layout-flow,
.site-layout .wp-block-group.is-layout-flex {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Group / Container blocks */
.wp-block-group:not(.site-container):not(.site-layout) {
  margin-bottom: 20px;
}

/* Buttons */
.wp-block-button__link {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.wp-block-button__link:hover {
  background: var(--color-link-hover);
  color: var(--color-white);
}

/* Separator */
.wp-block-separator {
  border: none;
  border-top: 1px solid Fddd;
  margin: 20px 0;
}

/* Quote */
.wp-block-quote {
  border-left: 4px solid var(--color-secondary);
  padding: 10px 20px;
  background: var(--color-bg);
  border-radius: 0 4px 4px 0;
  font-style: italic;
}

/* Code */
.wp-block-code {
  background: var(--color-dark);
  color: Fccc;
  border-radius: 4px;
  padding: 16px;
  font-size: 13px;
}

/* Latest Posts / Query blocks */
.wp-block-latest-posts__post-title {
  font-size: 16px;
  color: var(--color-primary);
}

.wp-block-latest-posts__post-date {
  font-size: 11px;
  color: F999;
}

/* --------------------------------------------------------------------------
   MOBILE RESPONSIVE (max-width: 960px)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {

  /* Layout: single column */
  .content-area,
  .site-main {
    float: none;
    width: 100%;
    padding-right: 0;
  }

  /* Layout: single column grid */
  .site-layout {
    grid-template-columns: 1fr !important;
  }

  /* Hide sidebar */
  .widget-area,
  .sidebar {
    display: none;
  }

  /* Post cards: full width */
  .post-card,
  .wp-block-post {
    width: 100% !important;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* Smaller fonts */
  html {
    font-size: 11px;
  }

  .site-title,
  .wp-block-site-title {
    font-size: 22px;
  }

  .post-card .entry-title,
  .wp-block-post-title {
    font-size: 16px;
  }

  /* Navigation: toggle menu */
  .main-navigation ul,
  .wp-block-navigation__container {
    display: none;
    flex-direction: column;
  }

  .main-navigation.toggled ul,
  .wp-block-navigation.is-open .wp-block-navigation__container {
    display: flex;
  }

  .menu-toggle,
  .wp-block-navigation__responsive-container-open {
    display: block;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 12px 18px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }

  .main-navigation a,
  .wp-block-navigation-item a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Header: stack vertically */
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .site-logo,
  .site-branding {
    border-right: none;
    border-bottom: 2px solid var(--color-dark);
    padding-right: 0;
    padding-bottom: 10px;
    margin-right: 0;
    width: 100%;
  }

  .header-search,
  .search-form {
    margin-left: 0;
    width: 100%;
  }

  .header-search input[type="search"],
  .search-form .search-field {
    width: 100%;
  }

  /* Post padding adjustments */
  .post-date-block,
  .entry-date-block {
    width: 50px;
    padding: 6px 0;
  }

  .post-card .entry-title,
  .wp-block-post-title {
    padding-left: 56px;
  }

  .post-meta,
  .entry-meta {
    padding-left: 56px;
  }

  /* Footer: center text */
  .site-footer,
  .wp-block-template-part[data-area="footer"] {
    text-align: center;
  }

  /* Entry content: smaller on mobile */
  .entry-content,
  .wp-block-post-content {
    font-size: 14px;
    line-height: 26px;
  }
}

@media (max-width: 480px) {
  .site-title,
  .wp-block-site-title {
    font-size: 18px;
  }

  .post-card .entry-title,
  .wp-block-post-title {
    font-size: 14px;
    padding-left: 0;
  }

  .post-date-block,
  .entry-date-block {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
  }

  .post-meta,
  .entry-meta {
    padding-left: 0;
  }

  .pagination .page-numbers,
  .nav-links .page-numbers,
  .wp-block-query-pagination .page-numbers {
    padding: 4px 10px;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.alignleft {
  float: left;
  margin-right: 15px;
  margin-bottom: 15px;
}

.alignright {
  float: right;
  margin-left: 15px;
  margin-bottom: 15px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

/* Sticky post highlight */
.sticky .post-card,
.sticky {
  border-left: 3px solid var(--color-primary);
}
/* ==========================================================================
   APPENDED: FengShen Custom Blocks & Features
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Loading Progress Bar (顶部加载进度条)
   -------------------------------------------------------------------------- */
.fengshen-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #f7a501;
  z-index: 99999;
}

.fengshen-loading-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f7a501, #f0b429);
  animation: fengshen-loading-progress 1.5s ease-in-out forwards;
}

@keyframes fengshen-loading-progress {
  0%   { width: 0%; }
  50%  { width: 70%; }
  100% { width: 100%; }
}

/* --------------------------------------------------------------------------
   2. Announcement Ticker (公告滚动条)
   -------------------------------------------------------------------------- */
.fengshen-announcement-ticker {
  display: flex;
  align-items: center;
  background: #faf9f3;
  border-bottom: 1px solid #dcdfd2;
  padding: 8px 15px;
  overflow: hidden;
  font-size: 13px;
  color: F666;
}

.fengshen-announcement-ticker .ticker-label {
  flex-shrink: 0;
  background: #f7a501;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  margin-right: 12px;
}

.fengshen-announcement-ticker .ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 20px;
}

.fengshen-announcement-ticker .ticker-list {
  display: flex;
  animation: fengshen-ticker-scroll 20s linear infinite;
  white-space: nowrap;
}

.fengshen-announcement-ticker .ticker-item {
  flex-shrink: 0;
  padding-right: 50px;
}

.fengshen-announcement-ticker .ticker-item a {
  color: F555;
  text-decoration: none;
}

.fengshen-announcement-ticker .ticker-item a:hover {
  color: #f7a501;
}

@keyframes fengshen-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   3. Breadcrumb (面包屑)
   -------------------------------------------------------------------------- */
.fengshen-breadcrumb {
  padding: 10px 0;
  font-size: 13px;
  color: F999;
}

.fengshen-breadcrumb a {
  color: #f7a501;
  text-decoration: none;
}

.fengshen-breadcrumb a:hover {
  text-decoration: underline;
}

.fengshen-breadcrumb .separator {
  margin: 0 5px;
  color: Fccc;
}

/* --------------------------------------------------------------------------
   4. Post Badges (NEW/HOT 标签)
   -------------------------------------------------------------------------- */
.fengshen-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  margin-right: 5px;
  color: #fff;
  vertical-align: middle;
}

.fengshen-badge-new {
  background: #f7a501;
}

.fengshen-badge-hot {
  background: #cd4239;
}

/* --------------------------------------------------------------------------
   5. Slider (幻灯片)
   -------------------------------------------------------------------------- */
.fengshen-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.fengshen-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.fengshen-slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fengshen-slider-slide.active {
  opacity: 1;
}

.fengshen-slider-bg {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}

.fengshen-slider-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.fengshen-slider-title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.fengshen-slider-title a {
  color: #fff;
  text-decoration: none;
}

.fengshen-slider-title a:hover {
  text-decoration: underline;
}

.fengshen-slider-excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fengshen-slider-dots {
  position: absolute;
  bottom: 15px;
  right: 30px;
  display: flex;
  gap: 8px;
}

.fengshen-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.fengshen-slider-dot.active {
  background: #f7a501;
}

/* --------------------------------------------------------------------------
   6. Sticky Posts (置顶文章)
   -------------------------------------------------------------------------- */
.fengshen-sticky-posts {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 15px;
  background: #faf9f3;
  border-left: 4px solid #f7a501;
  border-radius: 4px;
}

.fengshen-sticky-posts .sticky-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
}

.fengshen-sticky-posts .sticky-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fengshen-sticky-posts .sticky-info {
  flex: 1;
}

.fengshen-sticky-posts .sticky-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
}

.fengshen-sticky-posts .sticky-title a {
  color: F333;
  text-decoration: none;
}

.fengshen-sticky-posts .sticky-title a:hover {
  color: #f7a501;
}

.fengshen-sticky-posts .sticky-excerpt {
  font-size: 13px;
  color: F888;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. Related Posts (相关文章)
   -------------------------------------------------------------------------- */
.fengshen-related-posts {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid Feee;
}

.fengshen-related-posts h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: F333;
}

.fengshen-related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fengshen-related-posts li {
  padding: 8px 0;
  border-bottom: 1px dashed Feee;
}

.fengshen-related-posts li:last-child {
  border-bottom: none;
}

.fengshen-related-posts li a {
  color: F555;
  font-size: 14px;
  text-decoration: none;
}

.fengshen-related-posts li a:hover {
  color: #f7a501;
}

/* --------------------------------------------------------------------------
   8. Author Info Card (作者信息卡)
   -------------------------------------------------------------------------- */
.fengshen-author-info {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: Ff9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}

.fengshen-author-info .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f7a501;
}

.fengshen-author-info .name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: F333;
}

.fengshen-author-info .bio {
  font-size: 0.9rem;
  color: F666;
  line-height: 1.6;
}

.fengshen-author-info .meta {
  font-size: 0.8rem;
  color: F999;
  margin-top: 10px;
}

.fengshen-author-info .donate-link {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: #f7a501;
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
}

.fengshen-author-info .donate-link:hover {
  background: #dd9001;
  color: #fff;
}

/* --------------------------------------------------------------------------
   9. Reader Wall (读者墙)
   -------------------------------------------------------------------------- */
.fengshen-reader-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}

.fengshen-reader-wall-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
}

.fengshen-reader-wall-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid Feee;
  transition: transform 0.3s;
}

.fengshen-reader-wall-item img:hover {
  transform: scale(1.15);
}

.fengshen-reader-wall-item span {
  font-size: 11px;
  color: F666;
  margin-top: 4px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60px;
}

/* --------------------------------------------------------------------------
   10. Pagination (分页)
   -------------------------------------------------------------------------- */
.fengshen-pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 30px 0;
  padding: 15px 0;
}

.fengshen-pagination a,
.fengshen-pagination span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid Fddd;
  border-radius: 3px;
  font-size: 14px;
  color: F555;
  text-decoration: none;
  transition: all 0.2s;
}

.fengshen-pagination a:hover {
  background: #f7a501;
  color: #fff;
  border-color: #f7a501;
}

.fengshen-pagination .current {
  background: #f7a501;
  color: #fff;
  border-color: #f7a501;
}

/* --------------------------------------------------------------------------
   11. TOC (文章目录)
   -------------------------------------------------------------------------- */
.fengshen-toc {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-width: 250px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 13px;
}

.fengshen-toc-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: F333;
  font-size: 14px;
}

.fengshen-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fengshen-toc li {
  margin-bottom: 5px;
}

.fengshen-toc a {
  color: F555;
  text-decoration: none;
  display: block;
  padding: 3px 0;
}

.fengshen-toc a:hover {
  color: #f7a501;
}

.fengshen-toc .toc-h3 {
  padding-left: 15px;
}

/* --------------------------------------------------------------------------
   12. Ad Slot (广告位)
   -------------------------------------------------------------------------- */
.fengshen-ad-slot {
  text-align: center;
  padding: 15px 0;
  overflow: hidden;
}

.fengshen-ad-slot img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   13. Post Views (浏览量)
   -------------------------------------------------------------------------- */
.fengshen-post-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: F999;
}

/* --------------------------------------------------------------------------
   14. Responsive Adjustments (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .fengshen-slider {
    height: 200px;
  }

  .fengshen-slider-title {
    font-size: 1.2rem;
  }

  .fengshen-slider-content {
    padding: 15px 20px;
  }

  .fengshen-slider-dots {
    right: 15px;
    bottom: 10px;
  }

  .fengshen-toc {
    display: none;
  }

  .fengshen-author-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .fengshen-sticky-posts {
    flex-direction: column;
  }

  .fengshen-sticky-posts .sticky-thumb {
    width: 100%;
    height: 160px;
  }

  .fengshen-announcement-ticker {
    padding: 6px 10px;
    font-size: 12px;
  }

  .fengshen-pagination a,
  .fengshen-pagination span {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* ==========================================================================
   FSE POST CARD STYLES
   ========================================================================== */

/* Post card container */
.post-card {
  background: var(--color-white);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Post card inner content */
.post-card > .wp-block-group {
  padding: 0;
}

/* Featured image in post card */
.post-card .wp-block-post-featured-image {
  margin: 0;
  width: 100%;
}

.post-card .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px 6px 0 0;
}

/* Post date text */
.post-card .post-date-text {
  color: F999;
  font-size: 12px;
  margin: 10px 0 5px;
}

/* Post title link */
.post-card .post-title-link {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 5px 0 10px;
}

.post-card .post-title-link a {
  color: var(--color-primary);
}

.post-card .post-title-link a:hover {
  color: var(--color-link-hover);
}

/* Post excerpt */
.post-card .wp-block-post-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.post-card .wp-block-post-excerpt__more-text {
  margin-top: 10px;
}

.post-card .wp-block-post-excerpt__more-link {
  color: var(--color-secondary);
  font-size: 12px;
}

/* Separator in post card */
.post-card .wp-block-separator {
  margin: 15px 0 0;
  border-color: Feee;
}
