/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	//text-decoration-thickness: 1px !important;
	//text-underline-offset: .1em;
	outline: none; /* 移除默认的 focus 轮廓 */
    text-decoration: none;
    color: inherit;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

.custom-max-width-right {
  //max-width: max(100%, 400px) !important;
  //margin-left: auto !important; /* 右对齐 */
}

h2.news-more-right {
    margin-left: calc(100% - 237px) !important;
}

h2.news-more-right2 {
    margin-left: calc(100% - 300px) !important;
}

.width100 {
	width: 100%;
}

.width800 {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

body {
	background-color: #F3F4F6;
}

body header {
	background-color: #FFFFFF;
}

/* 强制最外层容器使用 flex 布局 */
body, #page, .site {
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* 确保内容区域自动拉伸 */
main, .site-main, #primary, .content-area {
    flex: 1;
}

/* 页脚自动保持在底部 */
.site-footer, footer {
    margin-top: auto;
}

.wp-site-blocks {
    display: flex !important; /* 关键：覆盖默认的 block */
    flex-direction: column !important;
    min-height: 100vh !important; /* 确保至少占满整个视口高度 */
    //min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)) !important; /* 确保至少占满整个视口高度 */
}

/* 让 main 内容区域自动拉伸 */
.wp-site-blocks > main {
    flex: 1 !important; /* 填充剩余空间 */
}

/* 页脚自动保持在底部 */
.wp-site-blocks > footer {
    margin-top: auto; /* 自动推到最底部 */
}

.hide {
	display: none;
}

.up130 {
	margin-top: -130px;
}

.alignright {
	margin-left: auto !important;
    margin-right: 0px !important;
}

.alignleft {
	margin-left: 0px !important;
    margin-right: auto !important;
}

.kb-table-row .kb-table-row2336_c4c08b-15 {
	height: 18px;
}

.wp-block-uagb-container.zuixindongtai .uagb-container-inner-blocks-wrap {
	margin-top: -65px !important;
}

.wp-block-group.is-layout-grid.wp-block-group-is-layout-grid {
	margin-top: -25px !important;
	margin-bottom: 60px !important;
}

.news-block {
	gap: 0px;
}

.linkstyle {
    text-decoration: none;
    color: inherit;
}

//.wechat-share-container {
//  position: relative;
//  display: inline-block;
//  cursor: pointer;
//}
//
//.wechat-share-icon {
//  width: 30px;
//  height: 30px;
//  vertical-align: middle;
//}
//
//.wechat-share-popover {
//  display: none;
//  position: absolute;
//  bottom: 100%;
//  left: 50%;
//  transform: translateX(-50%);
//  width: 200px;
//  padding: 15px;
//  background: white;
//  border: 1px solid #ddd;
//  border-radius: 5px;
//  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
//  text-align: center;
//  z-index: 100;
//}
//
//.wechat-share-popover p {
//  margin: 0 0 10px 0;
//  font-size: 14px;
//  color: #333;
//}
//
//#wechat-qrcode {
//  margin: 0 auto; /* 居中二维码 */
//}
//

/* 鼠标悬停时标题变黑 */
//body a.custom-news-post-link:hover .post-title {
//    color: #000 !important;
//}

.has-global-padding {
    padding-right: 0;
    padding-left: 0;
    margin-top: -2px;
}

.has-global-padding > .alignfull {
    margin-right: 0;
    margin-left: 0;
}

.title1 {
	color: #333 !important;
    font-size: 25px !important;
}

.title2 {
	color: #333 !important;
    font-size: 25px !important;
}

.title3 {
	color: #333 !important;
    font-size: 25px !important;
    margin-top: 35px !important;
    margin-bottom: 36px !important;
}

.title4 {
	color: #333 !important;
    font-size: 25px !important;
}

.title5 {
	color: #333 !important;
    font-size: 25px !important;
}

.title6 {
	color: #333 !important;
    font-size: 25px !important;
    margin-top: 35px !important;
}

.title7 {
	color: #333 !important;
    font-size: 25px !important;
    margin-top: 35px !important;
}

.title8 {
	color: #333 !important;
    font-size: 25px !important;
}

.full-width-banner-wrapper {
    width: 100%;               /* 占满整个屏幕宽度 */
    height: calc(100vw / 6);    /* 高度 = 宽度 ÷ 6 */
    position: relative;
    overflow: hidden;
    margin: 0;                  /* 去掉默认 margin */
    padding: 0;
}

.full-width-banner-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* 填充并裁剪 */
    display: block;
}

.news-pagination {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}
.news-pagination a,
.news-pagination span {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
}
.news-pagination a:hover {
    background-color: #f5f5f5;
}
.news-pagination .current {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* 筛选器容器 */
.tax-filter-container {
    margin-bottom: 30px;
    margin-top: -35px;
    padding: 5px;
    max-width: 1248px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    background: #F3F4F6;
}

/* 筛选行 */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.filter-row > span {
    font-weight: 600;
    margin-right: 10px;
    min-width: 80px;
}

/* 筛选项 */
.filter-item {
    display: inline-block;
    padding: 5px 5px;
    margin: 0 8px 0px 0;
    border-radius: 4px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #ddd;
}

.filter-item:hover {
    background: #e6e6e6;
}

.filter-item.active {
    background: #1e73be;
    color: white;
    border-color: #1a63a8;
}

/* 重置按钮 */
.filter-reset {
	text-align: right;
    margin-right: 0px;
    margin-left: auto;
}

.reset-button {
    display: inline-block;
    padding: 6px 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.reset-button:hover {
    background: #eaeaea;
}

.icon111 {
	color: #666 !important;
    padding-top: 1px !important;
    width: 8px !important;
    height: 8px !important;
    font-size: 18px !important;
}

.icon112 {
	color: #666 !important;
    padding-top: 1px !important;
    width: 8px !important;
    height: 8px !important;
    font-size: 18px !important;
    padding-right: 6px !important;
}

.course-left {
	flex-basis: auto !important;
}

.course-right {
	flex-basis: 460px !important;
    min-width: 450px !important;
}


@media (min-width: 1024px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 1023px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-wrap: wrap !important;
    }

    .wp-block-column {
        flex-basis: 100% !important;
    }
}
