/*
Theme Name: HDAV Theme
Theme URI: https://hdav.me/
Description: This is the sample theme created for the Genesis Framework.
Author: HDAV
Author URI: https://hdav.me/

Version: 3.5.2

Tags: accessibility-ready, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, left-sidebar, one-column, right-sidebar, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, wide-blocks

Template: genesis

License: GPL-2.0-or-later
License URI: https://gnu.org

Text Domain: hdav-theme
Requires at least: 6.8
Requires PHP: 7.3
*/

/* ## Font Face */
@font-face {
  font-display: swap;
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/pt-sans-v18-latin-regular.woff2') format('woff2');
}

/* ## Reset & Base Styles */
*,
*:before,
*:after {
  box-sizing: inherit;
}

html,
input[type="search"] {
  box-sizing: border-box;
}

html {
  font-family: 'PT Sans', sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-size: 62.5%;
}

body {
  margin: 0;
  background-color: #f2f2f2;
  color: #333;
  font-family: 'PT Sans', sans-serif;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  line-height: 1.625;
  border-top: 5px solid #c3251d;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
}

audio:not([controls]),
template,
[hidden] {
  display: none;
  height: 0;
}

progress,
sub,
sup {
  vertical-align: baseline;
}

a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
  color: #666;
  text-decoration: none;
}

a:active,
a:hover {
  outline-width: 0;
}

a:hover,
a:focus {
  color: #333;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
  cursor: help;
}

b,
strong {
  font-weight: 700;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333;
  font-family: 'PT Sans', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 10px;
}

h1 { font-size: 3rem; margin: 0.67em 0; }
h2 { font-size: 2.4rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.4rem; }

mark,
ins {
  background-color: #ff0;
  color: #000;
  text-decoration: none;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

img {
  border-style: none;
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: top;
}

svg:not(:root) {
  overflow: hidden;
}

code,
kbd,
pre,
samp,
tt,
var {
  font-family: monospace, monospace;
  font-size: 1.5rem;
}

figure {
  margin: 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

button,
input,
optgroup,
select,
textarea {
  font: inherit;
  margin: 0;
}

optgroup {
  font-weight: 700;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  width: auto;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-results-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}

::-moz-placeholder {
  color: #333;
  opacity: 1;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* ## Float Clearing */
.author-box:before,
.clearfix:before,
.entry:before,
.entry-content:before,
.footer-widgets:before,
.nav-primary:before,
.nav-secondary:before,
.pagination:before,
.site-container:before,
.site-footer:before,
.site-header:before,
.site-inner:before,
.widget:before,
.wrap:before,
.content-sidebar-wrap::before,
.author-box:after,
.clearfix:after,
.entry:after,
.entry-content:after,
.footer-widgets:after,
.nav-primary:after,
.nav-secondary:after,
.pagination:after,
.site-container:after,
.site-footer:after,
.site-header:after,
.site-inner:after,
.widget:after,
.wrap:after,
.content-sidebar-wrap::after {
  content: " ";
  display: table;
}

.author-box:after,
.clearfix:after,
.entry:after,
.entry-content:after,
.footer-widgets:after,
.nav-primary:after,
.nav-secondary:after,
.pagination:after,
.site-container:after,
.site-footer:after,
.site-header:after,
.site-inner:after,
.widget:after,
.wrap:after,
.content-sidebar-wrap::after {
  clear: both;
}

/* ## Common Elements */
p {
  margin: 10px 0;
  padding: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
}

li {
  list-style-type: none;
}

blockquote {
  margin: 40px;
}

blockquote::before {
  content: "\201C";
  display: block;
  font-size: 30px;
  height: 0;
  left: -20px;
  position: relative;
  top: -10px;
}

address {
  margin: 0 0 40px;
}

pre {
  background-color: #eee;
  border: 1px solid #999;
  margin-bottom: 40px;
  overflow: auto;
  padding: 16px;
}

big {
  font-size: 125%;
}

embed,
iframe,
object,
video,
.wp-caption {
  max-width: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  line-height: 2;
  margin-bottom: 15px;
  width: 100%;
  word-break: break-word;
}

tbody {
  border-bottom: 1px solid #eee;
}

td,
th {
  text-align: left;
}

td {
  border-top: 1px solid #eee;
  padding: 6px;
}

th {
  font-weight: 400;
  padding: 0 6px;
}

td:first-child,
th:first-child {
  padding-left: 0;
}

/* ## Transitions & Focus */
a,
button,
input:focus,
input[type="button"],
input[type="reset"],
input[type="submit"],
textarea:focus,
.button,
.gallery img {
  transition: all 0.1s ease-in-out;
}

:focus {
  color: #333;
  outline: #ccc solid 1px;
}

/* ## Forms & Buttons */
input,
select,
textarea {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #333;
  font-size: 1.8rem;
  font-weight: 400;
  padding: 8px;
  width: 100%;
}

input:focus,
textarea:focus {
  border: 1px solid #999;
  outline: none;
}

button,
.button {
  background-color: #333;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 16px 24px;
  text-decoration: none;
  white-space: normal;
  width: auto;
  display: inline-block;
}

button:hover,
.button:focus,
.entry-content .button:hover,
.entry-content .button:focus {
  background-color: #c3251d;
  color: #fff;
}

input[type="button"],
input[type="reset"],
input[type="submit"] {
  background-color: #f77b2e;
  background: linear-gradient(to bottom, #f77b2e 0%, #e66920 100%);
  border: none;
  border-radius: 3px;
  box-shadow: 0 1px #b15219;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  width: auto;
  text-shadow: 1px 1px #f77b2e;
  font-weight: 600;
  padding: 10px 5px;
}

input:hover[type="button"],
input:hover[type="reset"],
input:hover[type="submit"] {
  background-color: #e66920;
  background: linear-gradient(to bottom, #e66920 0%, #f77b2e 100%);
  text-decoration: none;
}

.sidebar input[type="submit"],
.widget_search input[type="submit"] {
  display: inline-block;
  width: 80px;
  height: 35px;
  line-height: 100%;
  float: right;
  margin: 4px 0 0 -84px;
  position: absolute;
  z-index: 99;
}

a.button.small,
button.small,
input[type="button"].small,
input[type="reset"].small,
input[type="submit"].small {
  padding: 8px 16px;
}

.site-container button:disabled,
.site-container input:disabled,
.site-container input[type="button"]:disabled,
.site-container input[type="reset"]:disabled,
.site-container input[type="submit"]:disabled {
  background-color: #eee;
  color: #777;
  cursor: not-allowed;
}

/* ## Layout & Structure */
.site-inner,
.wrap {
  margin: 0 auto;
  max-width: 1000px;
}

.site-inner {
  clear: both;
  padding-top: 15px;
  word-wrap: break-word;
}

.landing-page .site-inner {
  max-width: 800px;
}

.content-sidebar-wrap {
  width: 100%;
}

.content {
  float: right;
  width: 650px;
}

.content-sidebar .content {
  float: left;
}

.full-width-content .content {
  width: 100%;
}

.sidebar-primary {
  float: right;
  width: 335px;
}

.sidebar-content .sidebar-primary {
  float: left;
}

/* ## Grid System */
.five-sixths,
.four-sixths,
.one-fourth,
.one-half,
.one-sixth,
.one-third,
.three-fourths,
.three-sixths,
.two-fourths,
.two-sixths,
.two-thirds {
  float: left;
  margin-left: 2.564102564102564%;
}

.one-half,
.three-sixths,
.two-fourths {
  width: 48.717948717948715%;
}

.one-third,
.two-sixths {
  width: 31.623931623931625%;
}

.four-sixths,
.two-thirds {
  width: 65.81196581196582%;
}

.one-fourth {
  width: 23.076923076923077%;
}

.three-fourths {
  width: 74.35897435897436%;
}

.one-sixth {
  width: 14.52991452991453%;
}

.five-sixths {
  width: 82.90598290598291%;
}

.first {
  clear: both;
  margin-left: 0;
}

/* ## Components */
.avatar {
  border-radius: 50%;
  float: left;
}

.author-box .avatar,
.alignleft .avatar {
  margin-right: 24px;
}

.alignright .avatar {
  margin-left: 24px;
}

.comment .avatar {
  margin: 0 16px 24px 0;
}

.after-entry,
.archive-description,
.author-box {
  background-color: #fcfcfc;
  font-size: 1.8rem;
  margin-bottom: 15px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
}

.after-entry {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 20px 30px;
}

.after-entry .widget:last-of-type,
.archive-description p:last-child,
.author-box p:last-child {
  margin-bottom: 0;
}

.archive-description h1 {
  margin: 0;
}

.breadcrumb {
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  font-size: 1.6rem;
  margin-bottom: 40px;
  overflow: hidden;
  padding: 12px;
}

.genesis-title-hidden .breadcrumb {
  margin-top: 40px;
}

.search-form {
  overflow: hidden;
}

.entry-content .search-form,
.site-header .search-form {
  margin-bottom: 15px;
  width: 50%;
}

.site-header .search-form {
  float: right;
  margin: 12px auto 0;
}

/* ## Typography specific */
.archive-description .entry-title,
.archive-title,
.author-box-title,
.widget-title,
.featured-content .entry-title {
  font-size: 2rem;
  color: #333;
}

.entry-title {
  font-size: 2.4rem;
  color: #333;
  margin: 0;
}

.entry-title a,
.sidebar .widget-title a {
  color: #333;
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus,
.comment-reply-link:hover,
.comment-reply-link:focus,
.sidebar a:hover,
.sidebar a:focus {
  color: #c3251d;
}

.entry-content strong {
  color: #555;
}

/* ## Alignment & Images */
a.aligncenter img {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: left;
  text-align: left;
}

.alignright {
  float: right;
  text-align: right;
}

a.alignnone {
  display: inline-block;
}

a.alignleft,
a.alignnone,
a.alignright {
  max-width: 100%;
}

img.centered,
.aligncenter {
  display: block;
  margin: 0 auto 24px;
}

a.alignleft,
img.alignleft,
.wp-caption.alignleft {
  margin: 0 24px 24px 0;
}

a.alignright,
img.alignright,
.wp-caption.alignright {
  margin: 0 0 24px 24px;
}

.site-inner .alignnone {
  margin-top: 10px;
  display: inline-block;
  color: #333;
}

.entry-content img,
.comment-content img,
.widget img {
  max-width: 100%;
  height: auto;
}

.wp-caption-text {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

/* ## Gallery */
.gallery {
  margin-bottom: 40px;
}

.gallery-item {
  float: left;
  margin: 0 4px 4px 0;
  overflow: hidden;
  position: relative;
}

.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.33%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }
.gallery-columns-5 .gallery-item { max-width: 20%; }
.gallery-columns-6 .gallery-item { max-width: 16.66%; }
.gallery-columns-7 .gallery-item { max-width: 14.28%; }
.gallery-columns-8 .gallery-item { max-width: 12.5%; }
.gallery-columns-9 .gallery-item { max-width: 11.11%; }

.gallery img {
  border: 1px solid #eee;
  padding: 4px;
}

.gallery-caption {
  background-color: rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  left: 0;
  line-height: 1.3;
  margin: 0;
  max-height: 50%;
  opacity: 0;
  padding: 8px 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
  display: none;
}

/* ## Screen Reader & Skip Links */
.screen-reader-text,
.screen-reader-text span,
.screen-reader-shortcut {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
}

.screen-reader-text:focus,
.screen-reader-shortcut:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  padding: 15px 23px 14px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.genesis-skip-link {
  margin: 0;
}

.genesis-skip-link li {
  height: 0;
  width: 0;
  list-style: none;
}

/* ## Header & Navigation */
.site-header>.wrap {
  padding: 0;
}

.title-area {
  float: left;
  padding: 30px 0;
  width: 300px;
}

.header-image .title-area {
  margin: 0 auto;
  max-width: 300px;
  padding: 0;
}

.header-full-width .title-area {
  float: none;
  width: 100%;
}

.site-title {
  font-size: 3rem;
  line-height: 1.2;
  margin: 0;
}

.site-title a,
.site-title a:hover,
.site-title a:focus {
  color: #333;
  text-decoration: none;
}

.header-image .site-title>a {
  background-position: center !important;
  background-size: contain !important;
  float: left;
  min-height: 80px;
  width: 100%;
}

.site-description {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.header-image .site-description,
.header-image .site-title {
  display: block;
  text-indent: -9999px;
}

.site-header .widget-area {
  float: right;
  text-align: right;
  width: 800px;
}

.nav-primary .wrap {
  background-color: #666;
  border-radius: 5px;
  padding: 0 5px;
}

.genesis-nav-menu {
  clear: both;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  width: 100%;
}

.genesis-nav-menu .menu-item {
  float: left;
  margin: 0;
  padding: 0;
  position: relative;
  border-right: 1px solid #999;
  line-height: 19.5px;
  text-transform: capitalize;
}

.genesis-nav-menu a {
  display: block;
  height: 45px;
  line-height: 45px;
  color: #fff;
  border-right: 1px solid #444;
  font-size: 14px;
  padding: 0 20px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8);
  margin-right: 2px;
}

.genesis-nav-menu a:hover,
.genesis-nav-menu a:focus,
.genesis-nav-menu .current-menu-item>a {
  background-color: #c3251d;
}

.genesis-nav-menu .sub-menu {
  left: -9999px;
  opacity: 0;
  position: absolute;
  transition: opacity .4s ease-in-out;
  width: 200px;
  z-index: 99;
}

.genesis-nav-menu .sub-menu a {
  background-color: #888;
  border: 1px solid #aaa;
  border-top: 0;
  font-size: 1.4rem;
  padding-left: 20px;
  width: 200px;
  color: #fff !important;
  text-align: left;
  word-wrap: break-word;
}

.genesis-nav-menu .sub-menu .menu-item {
  border-right: none;
}

.genesis-nav-menu .sub-menu a:hover {
  background-color: #777;
}

.genesis-nav-menu .sub-menu .sub-menu {
  margin: -56px 0 0 199px;
}

.genesis-nav-menu .menu-item:hover {
  position: static;
}

.genesis-nav-menu .menu-item:hover>.sub-menu {
  left: auto;
  opacity: 1;
}

.genesis-nav-menu>.first>a { padding-left: 0; }
.genesis-nav-menu>.last>a { padding-right: 0; }
.genesis-nav-menu>.right { float: right; }

.menu .menu-item:focus {
  position: static;
}

.menu .menu-item>a:focus+ul.sub-menu,
.menu .menu-item.sfHover>ul.sub-menu {
  left: auto;
  opacity: 1;
}

.sub-menu-toggle,
.menu-toggle {
  display: none;
  visibility: hidden;
}

.site-header .genesis-nav-menu li li {
  margin-left: 0;
}

.site-footer .genesis-nav-menu {
  padding-bottom: 20px;
}

.site-footer .genesis-nav-menu a {
  padding: 0 20px 10px;
}

/* ## Content Area & Entries */
.entry {
  background-color: #fff;
  margin-bottom: 15px;
  padding: 30px 40px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
}

/* 统一管理整站标准链接交互色 */
.content .entry .entry-content a,
.content .entry .entry-meta a,
.content .entry .entry-footer a,
.entry-meta a,
.entry-footer a {
  color: #c3251d;
  text-decoration: underline;
}

.content .entry .entry-content a:hover,
.content .entry .entry-meta a:hover,
.content .entry .entry-meta a:focus,
.content .entry .entry-content a:focus,
.content .entry .entry-footer a:hover,
.content .entry .entry-footer a:focus,
.entry .entry-meta a:hover,
.entry-meta a:focus {
  color: #e62117 !important;
  text-decoration: none !important;
}


.content .entry .entry-content a{
  text-decoration: none !important;
}


.content .entry .entry-content a:hover,
.content .entry .entry-content a:focus{
  text-decoration: underline !important;
}
.content .entry .entry-content .yarpp-custom-thumbnails a:hover,
.content .entry .entry-content .yarpp-custom-thumbnails a:focus{
  text-decoration: none !important;
}
.entry-content ol,
.entry-content ul {
  margin: 0 0 28px 40px;
}

.entry-content ol>li { list-style-type: decimal; }
.entry-content ul>li { list-style-type: disc; }
.entry-content ol ol,
.entry-content ul ul { margin-bottom: 0; }

p.entry-meta {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.entry-header .entry-meta {
  margin-bottom: 6px;
  border-bottom: 1px dotted #ddd;
}

.entry-footer .entry-meta {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.entry-categories,
.entry-tags {
  display: block;
}

.entry-comments-link::before {
  content: "\2014";
  margin: 0 6px 0 2px;
}

.entry-content .wp-audio-shortcode,
.entry-content .wp-playlist,
.entry-content .wp-video {
  margin: 0 0 28px;
}

.more-link {
  display: block;
  margin-top: 10px;
}

.featured-content .entry {
  background: none;
  padding: 0;
}

.featured-content .entry:last-of-type {
  margin-bottom: 0;
}

/* ## Pagination */
.pagination {
  clear: both;
  margin: 20px 0;
}

.adjacent-entry-pagination {
  margin-bottom: 0;
}

.archive-pagination li {
  display: inline;
}

.archive-pagination a {
  background-color: #666;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: none;
  margin: 0 3px;
  border-radius: 3px;
}

.archive-pagination a:hover,
.archive-pagination a:focus,
.archive-pagination .active a {
  background-color: #c3251d;
  color: #fff;
}

/* ## Comments */
.comment-respond,
.entry-comments,
.entry-pings {
  background-color: #fff;
  font-size: 1.6rem;
  margin-bottom: 15px;
  padding: 60px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
}

.comment-respond,
.entry-pings {
  padding-bottom: 32px;
}

.comment-list li {
  padding: 40px 0 0 30px;
}

.comment-list .depth-1 {
  padding-left: 0;
}

.comment-header {
  margin-bottom: 30px;
}

.comment-content {
  clear: both;
}

.comment-content a {
  color: #c3251d;
  font-size: 1.4rem;
}
.comment-content a:hover,
.comment-content a:focus {
  text-decoration: underline;
}
.comment-content ul>li {
  list-style-type: disc;
}

.comment-respond input[type="email"],
.comment-respond input[type="text"],
.comment-respond input[type="url"] {
  width: 50%;
}

.comment-respond label {
  display: block;
  margin-right: 12px;
}

.comment-header p {
  margin-bottom: 0;
}

.entry-pings .reply {
  display: none;
}

/* ## Sidebar & Widgets */
.sidebar {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.sidebar p:last-child,
.sidebar ul>li:last-child {
  margin-bottom: 0;
}

.sidebar .widget {
  background-color: #fcfcfc;
  margin-bottom: 15px;
  border: 1px solid #e5e5e5;
  padding: 10px 30px 30px;
  border-radius: 5px;
  word-wrap: break-word;
}

.sidebar .widget_search {
  background-color: #f3a7a8;
  padding-top: 30px;
}

.sidebar .widget input[type="search"] {
  width: 100%;
  border-radius: 5px;
  background: #f5f5f5;
  color: #333;
  height: 44px;
  font-size: 1.4rem;
  line-height: 100%;
  border: 1px solid #f3a7a8;
}

.sidebar ul {
  border-top: 1px dotted #ddd;
}

.sidebar li {
  border-bottom: 1px dotted #ddd;
  padding: 10px 0;
  min-height: 100%;
}

.sidebar .widget_categories li {
  padding-left: 5px;
}

.sidebar .widget_categories .children {
  margin: 10px 0 -11px;
  padding: 5px 0;
}

.sidebar .widget_categories .children .cat-item {
  padding: 5px 0;
}

.sidebar .widget h3 {
  height: 36px;
  line-height: 36px;
  color: #676767;
  font-weight: 700;
}

/* 规范化合并小工具及标签云样式 */
.widget-title {
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 1px solid var(--primary-color);
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.tagcloud a,
.sidebar .widget_tag_cloud a {
  font-size: 14px !important;
  color: #555;
  padding: 1px 3px;
  display: inline-block;
}

.tagcloud a:hover,
.sidebar .widget_tag_cloud a:hover,
.widget_tag_cloud a:focus {
  background-color: #f3a7a8;
  color: #333;
}

.widget p:last-child,
.widget ul>li:last-of-type,
.widget-area .widget:last-of-type {
  margin-bottom: 0;
}

.widget ul>li {
  padding-bottom: 10px;
}

.widget ol>li {
  list-style-position: inside;
  list-style-type: decimal;
  padding-left: 20px;
  text-indent: -20px;
}

.widget li li {
  border: 0;
  margin: 0 0 0 30px;
  padding: 0;
}

.widget_calendar table {
  width: 100%;
  margin-bottom: 0;
}

.widget_calendar td,
.widget_calendar th {
  text-align: center;
  padding: 5px 7px;
}

.sidebar .widget #today {
  background-color: #f3a7a8;
}

/* ## Footer Widgets */
.footer-widgets {
  background-color: #fff;
  font-size: 1.8rem;
  clear: both;
  padding: 60px 0;
}

.footer-widgets-1,
.footer-widgets-2,
.footer-widgets-3 {
  width: 380px;
}

.footer-widgets-1 {
  margin-right: 70px;
  float: left;
}

.footer-widgets-2 {
  float: left;
}

.footer-widgets-3 {
  float: right;
}

.footer-widgets a,
.footer-widgets .widget,
.footer-widgets .widget-title {
  color: #333;
}

.footer-widgets a:hover {
  color: #c3251d;
}

.footer-widgets .widget-title {
  border-bottom: 2px solid #c3251d;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.footer-widgets p:last-child,
.footer-widgets ul>li:last-child {
  margin-bottom: 0;
}

.footer-widgets button,
.footer-widgets input[type="button"],
.footer-widgets input[type="reset"],
.footer-widgets input[type="submit"],
.footer-widgets .button {
  background-color: #e5554e;
  color: #fff;
}

/* ## Site Footer */
.site-footer {
  font-size: 1.6rem;
  line-height: 1;
  padding: 15px 0;
  text-align: center;
  background-color: #c3251d;
  color: #fff;
  max-width: 1000px;
  margin: 0 auto 50px;
  border-radius: 5px;
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  padding: 5px;
  margin: 0;
}

/* ## Plugins */
.sidebar .enews-widget,
.sidebar .enews-widget .widget-title {
  color: #fff;
}

.sidebar .widget.enews-widget {
  background-color: #333;
}

.sidebar .enews-widget input,
.sidebar .enews-widget input:focus {
  border: 1px solid #333;
}

.sidebar .enews-widget input[type="submit"] {
  background-color: #c3251d;
  color: #fff;
}

.sidebar .enews-widget input:hover[type="submit"],
.sidebar .enews-widget input:focus[type="submit"] {
  background-color: #fff;
  color: #333;
}

.enews-widget input {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.enews-widget input[type="submit"] {
  margin: 0;
  width: 100%;
}

.enews form+p {
  margin-top: 24px;
}

#wpstats {
  display: none;
}

/* ## Media Queries */
@media only screen and (max-width: 1340px) {
  .site-inner,
  .wrap {
    max-width: 1000px;
  }

  .content-sidebar-sidebar .content-sidebar-wrap,
  .sidebar-content-sidebar .content-sidebar-wrap,
  .sidebar-sidebar-content .content-sidebar-wrap {
    width: 920px;
  }

  .content,
  .site-header .widget-area {
    width: 650px;
  }

  .sidebar-content-sidebar .content,
  .sidebar-sidebar-content .content,
  .content-sidebar-sidebar .content {
    width: 580px;
  }

  .sidebar-primary {
    width: 335px;
  }

  .footer-widgets-1,
  .footer-widgets-2,
  .footer-widgets-3 {
    width: 340px;
  }

  .footer-widgets-1 {
    margin-right: 60px;
  }

  .nav-primary .wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

@media only screen and (max-width: 1200px) {
  .site-inner,
  .wrap {
    max-width: 960px;
  }

  .content-sidebar-sidebar .content-sidebar-wrap,
  .sidebar-content-sidebar .content-sidebar-wrap,
  .sidebar-sidebar-content .content-sidebar-wrap {
    width: 740px;
  }

  .content,
  .site-header .widget-area {
    width: 620px;
  }

  .sidebar-content-sidebar .content,
  .sidebar-sidebar-content .content,
  .content-sidebar-sidebar .content {
    width: 400px;
  }

  .footer-widgets-1,
  .footer-widgets-2,
  .footer-widgets-3 {
    width: 300px;
  }

  .footer-widgets-1 {
    margin-right: 30px;
  }
}

/* 核心合并优化：完美揉合所有旧媒体查询碎片的 979px 响应式断点 */
@media only screen and (max-width: 979px) {
  .site-inner,
  .wrap,
  .content,
  .content-sidebar-sidebar .content,
  .content-sidebar-sidebar .content-sidebar-wrap,
  .footer-widgets-1,
  .footer-widgets-2,
  .footer-widgets-3,
  .js .genesis-nav-menu .sub-menu a,
  .js .genesis-nav-menu .sub-menu,
  .sidebar-content-sidebar .content,
  .sidebar-content-sidebar .content-sidebar-wrap,
  .sidebar-primary,
  .sidebar-secondary,
  .sidebar-sidebar-content .content,
  .sidebar-sidebar-content .content-sidebar-wrap,
  .site-header .widget-area,
  .title-area {
    width: 100%;
  }

  body {
    font-size: 1.4rem;
  }

  .site-inner {
    padding: 4% 4% 0;
  }

  .wrap {
    padding-left: 5%;
    padding-right: 5%;
  }

  .after-entry,
  .archive-description,
  .author-box,
  .comment-respond,
  .entry,
  .entry-comments,
  .entry-pings,
  .sidebar .widget {
    padding: 30px;
    margin-bottom: 4%;
  }

  .archive-description {
    padding: 20px;
  }

  .sidebar {
    margin-bottom: 5%;
  }

  .pagination {
    margin: 5% auto;
  }

  .archive-pagination li a {
    margin-bottom: 4px;
  }

  .five-sixths,
  .four-sixths,
  .one-fourth,
  .one-half,
  .one-sixth,
  .one-third,
  .three-fourths,
  .three-sixths,
  .two-fourths,
  .two-sixths,
  .two-thirds {
    margin: 0;
    width: 100%;
  }

  .site-header .wrap {
    padding: 0;
  }

  .genesis-nav-menu li,
  .header-image .title-area,
  .site-header ul.genesis-nav-menu,
  .site-header .search-form {
    float: none;
  }

  .genesis-nav-menu,
  .site-description,
  .site-header .title-area,
  .site-header .widget-area,
  .site-title {
    text-align: center;
  }

  .site-header .search-form {
    margin: 16px auto;
  }

  .js nav.nav-primary,
  .js .site-header nav {
    display: none;
    position: relative;
  }

  .js .site-header nav .wrap {
    padding: 0;
  }

  .js nav.pagination {
    display: block;
  }

  .menu-toggle,
  .sub-menu-toggle {
    border-width: 0;
    background-color: #fff;
    color: #444;
    display: block;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
    visibility: visible;
  }

  .menu-toggle {
    border-top: 1px solid #eee;
    line-height: 20px;
    position: relative;
    z-index: 1000;
    width: 100%;
    font-weight: 400;
  }

  .site-header .menu-toggle {
    border: 0;
  }

  .menu-toggle:before,
  .menu-toggle.activated:before {
    margin-right: 10px;
    transform: translate(0, 0);
  }

  .sub-menu-toggle {
    float: right;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 100;
  }

  .sub-menu-toggle:before {
    display: inline-block;
    transform: translate(0, 0);
  }

  .sub-menu-toggle.activated:before {
    content: "\f142";
  }

  .js .nav-primary .genesis-nav-menu .menu-item,
  .js .site-header .genesis-nav-menu .menu-item {
    display: block;
    float: none;
    margin: 1px 0;
    position: relative;
    text-align: left;
  }

  .js .nav-primary .genesis-nav-menu .menu-item a,
  .js .site-header .genesis-nav-menu .menu-item a {
    border: none;
    padding: 12px;
    width: 100%;
  }

  .js .genesis-nav-menu .sub-menu {
    border: none;
    clear: both;
    display: none;
    margin: 0;
    opacity: 1;
    padding-left: 15px;
    position: static;
  }

  .js .genesis-nav-menu .menu-item>a:focus ul.sub-menu {
    left: 0;
    margin-left: 0;
  }

  .js .genesis-nav-menu>.menu-item-has-children>a:after {
    content: none;
  }

  .js nav button:hover,
  .js .menu-toggle:hover,
  .js .nav-primary {
    background-color: #fff;
    color: #000;
  }

  .js nav button:focus,
  .js .menu-toggle:focus {
    background-color: #fff;
    color: #c3251d;
  }

  .footer-widgets-1,
  .footer-widgets-2 {
    margin: 0 auto 40px;
  }

  .nav-primary .wrap {
    background-color: #fff;
    border-radius: 0;
    padding: 0 5px;
  }

  .genesis-nav-menu a {
    color: #444;
    font-weight: 400;
    text-shadow: none;
    display: block;
    padding: 32px 20px;
    line-height: 100%;
    border-bottom: 1px dotted #ddd !important;
    border-right: none;
    background-color: #fff !important;
  }

  .genesis-nav-menu .menu-item {
    border-right: none;
  }

  .genesis-nav-menu .sub-menu a {
    background-color: #fff;
    border: 1px solid #eee;
    border-top: 0;
    font-size: 1.4rem;
    color: #333 !important;
    padding: 20px;
    width: 200px;
    word-wrap: break-word;
  }

  .genesis-nav-menu a:hover,
  .genesis-nav-menu a:focus,
  .genesis-nav-menu .current-menu-item>a {
    background-color: #fff;
    color: #c3251d;
    display: block;
  }

  .genesis-nav-menu .sub-menu a:hover {
    background-color: #fff;
  }
}

/* ## Print Styles */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  a[href^="javascript:"],
  a[href^="#"],
  .site-title>a:after { content: ""; }

  thead {
    display: table-header-group;
  }

  img,
  tr,
  blockquote,
  pre,
  table {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-after: avoid;
  }

  @page {
    margin: 2cm 0.5cm;
  }

  p, h2, h3, h1, h4, h5, h6 {
    orphans: 3;
    widows: 3;
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  blockquote,
  pre {
    border: 1px solid #999;
  }

  .content,
  .content-sidebar {
    width: 100%;
  }

  button,
  input,
  select,
  textarea,
  .breadcrumb,
  .comment-edit-link,
  .comment-form,
  .comment-list .reply a,
  .comment-reply-title,
  .edit-link,
  .entry-comments-link,
  .entry-footer,
  .genesis-box,
  .header-widget-area,
  .hidden-print,
  .home-top,
  .nav-primary,
  .nav-secondary,
  .post-edit-link,
  .sidebar {
    display: none !important;
  }

  .title-area {
    text-align: center;
    width: 100%;
  }

  .site-title>a {
    margin: 0;
    text-decoration: none;
    text-indent: 0;
  }

  .site-inner {
    padding-top: 0;
    position: relative;
    top: -100px;
  }

  .author-box {
    margin-bottom: 0;
  }

  dl, ol, ul {
    page-break-before: avoid;
  }
}

/* ==========================================================================
## Custom Modules & Core Overrides (YARPP + Typography Maintenance)
========================================================================== */

/* 正文 H2 / H3 样式深度规范 */
.entry-content h2,
.yarpp h2 {
  font-size: 18px;
  font-weight: 600 !important;
  color: #676767 !important;
  margin-top: 20px !important;
  margin-bottom: 5px !important;
  line-height: 1.5;
}

.entry-content h3 {
  font-size: 16px;
  font-weight: 600 !important;
  color: #676767 !important;
  margin-top: 15px !important;
  margin-bottom: -10px !important;
  line-height: 1.5;
}

.entry-content h3:last-of-type {
  margin-bottom: 1px !important;
}

.entry-content h3:last-of-type~p {
  margin-top: 4px !important;
}

.entry-content a {
  display: inline-block;
  margin-top: 2px;
}

/* 主导航栏交互补充声明 */
.nav-primary .genesis-nav-menu a:hover,
.nav-primary .genesis-nav-menu .current-menu-item a {
  background-color: #c3251d;
  text-decoration: none;
}

/* YARPP 响应式图片网格核心框架（完美修复版） */
.yarpp-custom-thumbnails,
.yarpp-custom-thumbnails li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.yarpp-custom-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding-left: 0 !important;
  box-sizing: border-box;
  margin-top: 1em;
  width: 100% !important;
}

.yarpp-custom-thumbnails li {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  box-sizing: border-box;
}

h2 + .yarpp-custom-thumbnails,
h3 + .yarpp-custom-thumbnails,
h4 + .yarpp-custom-thumbnails {
  margin-top: 0 !important;
}

.yarpp-custom-thumbnails a {
  display: block;
  width: 100% !important;
  text-decoration: none !important;
  color: inherit;
  transition: color .2s ease, transform .2s ease;
}

.yarpp-custom-thumbnails a:hover {
  color: #c3251d !important;
  text-decoration: none !important;
  transform: translateY(-3px);
}

.yarpp-thumbnail-img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 8px;
}

.yarpp-thumbnail-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  transform: translateZ(0);
}

.yarpp-thumbnail-title {
  display: block;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.8em;
  word-wrap: break-word;
  word-break: break-word;
  text-decoration: none !important;
}

/* YARPP 移动设备适配断点 */
@media (max-width:768px) {
  .yarpp-custom-thumbnails {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width:480px) {
  .yarpp-custom-thumbnails {
    grid-template-columns: 1fr;
  }
}
