/*
Theme Name: Blockpage-White
Theme URI: https://walkerwp.com/blockpage-free-wordpress-theme/
Author: WalkerWP
Author URI: https://walkerwp.com/
Description: Blockpage is a multipurpose, block-based Full Site Editing (FSE) theme, making it incredibly flexible for all types of websites. With its 6 global styles, users can effortlessly switch between their favorite color schemes within seconds to match their brand’s identity. The theme also comes pre-designed with over 30+ free ready-to-use patterns for different homepage sections, including banners, hero sections, pricing tables, about us, team showcases, testimonials, portfolios, WooCommerce integration, Call to Action elements, Recent Posts, Stats Counters, Content Timeline, Why Choose Us and more. For even more design possibilities Blockpage offers 70+ premium patterns, totaling 100+ options to upgrade your website’s appearance. Whether you’re looking to create an e-commerce platform, a corporate website, or even both, Hello Agency is all you need with its WooCommerce-ready features to support your business goals. It’s a perfect choice for niche corporate businesses, agencies, law firms, insurance companies, startups, entrepreneurs, consulting services, personal brands, creative agencies, freelancers, portfolios, and any other type of business website you can imagine. Explore more about Blockpage at https://walkerwp.com/blockpage-free-wordpress-theme/
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, e-commerce, full-site-editing, block-patterns, full-width-template, rtl-language-support, threaded-comments, translation-ready, block-styles, wide-blocks
Version: 1.0.1
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blockpage
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

body,
html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 为固定 header 添加 body padding */
body {
    padding-top: 0;
}

/* 确保固定 header 不会遮挡内容 */
.block-template-part:first-child + main,
.block-template-part:first-child ~ main {
    padding-top: 102px;
}

.blockpage-brand-logos .block-gallery img {
    width: auto !important;
    padding: 0 30px;
    height: auto;
    max-height: 40px;
}

.block-group.blockpage-brand-logos .block-gallery figure {
    margin-bottom: initial !important;
}

.wp-block-comments textarea#comment {
    border-radius: 4px;
}

input[type="submit"] {
    transition: all ease 0.23s;
    -o-transition: all ease 0.23s;
    -moz-transition: all ease 0.23s;
    -webkit-transition: all ease 0.23s;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-number.wpcf7-validates-as-number,
.wpcf7-form-control.wpcf7-select {
    border-radius: 3px;
    border: 1px solid #dad7d7;
    padding: 15px;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.wpcf7-form-control.wpcf7-select {
    appearance: none;
    position: relative;
}

.wpcf7-form-control.wpcf7-select:after {
    content: ">";
    font-size: 20px;
    position: absolute;
    right: 20px;
    top: 10px;
}

form.wpcf7-form *::placeholder {
    font-size: 14px;
}

form.wpcf7-form *::-moz-placeholder {
    font-size: 14px;
}

form.wpcf7-form *::-webkit-input-placeholder {
    font-size: 14px;
}

.wpcf7-form-control.has-spinner.wpcf7-submit {
    background: var(--preset--gradient--primary-gradient) !important;
    color: var(--preset--color--heading-alt) !important;
    border-radius: 60px;
    border: 0;
    font-size: 18px;
    padding: 20px 40px;
    min-width: 180px;
}

.wpcf7-form-control.has-spinner.wpcf7-submit:hover {
    background: var(--preset--color--secondary) !important;
}

form.comment-form {
    border-radius: 20px;
    margin-top: 24px;
}

.block-post-comments-form {
    border-radius: 20px;
}

form.comment-form input[type="email"],
form.comment-form input[type="text"],
form.comment-form input[type="url"],
form.comment-form textarea {
    border-radius: 5px;
    margin: 12px 0 25px;
}

form.comment-form .form-submit.block-button {
    margin-top: 25px;
}

.wp-block-comment-author-name {
    font-weight: 600;
}

.wp-block-comment-date a {
    color: var(--preset--color--foregound);
    font-size: 13px;
}

.wp-block-comment-template li {
    margin-top: 50px;
}

.wp-block-comment-template li li {
    margin-top: 10px;
    padding-left: 60px;
}

a.comment-reply-link {
    border: 1px solid;
    padding: 5px 13px;
    border-radius: 40px;
    font-size: 13px;
    opacity: 0.6;
}

.block-post-comments-form {
    margin-top: 30px;
    display: inline-block;
    width: 100%;
}

.woocommerce ul.products li.product a img {
    border-radius: 5px;
    height: 350px;
    object-fit: cover;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0 2.5% 2.992em 0;
    width: 23.1%;
}

.woocommerce ul.products li.last,
.woocommerce-page ul.products li.last {
    margin-right: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active:before,
.woocommerce div.product .woocommerce-tabs ul.tabs li:before,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active:after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:after {
    border: 0;
}

.woocommerce #reviews #comments ol.commentlist {
    padding: 0;
    margin-top: 20px !important;
}

.woocommerce-page .input-text {
    padding: 11px 30px;
    border: 1px solid #817e7e;
    border-radius: 5px;
}

.block-post-excerpt__excerpt a,
.entry-content.block-post-content a {
    text-decoration: underline;
}

.wp-block-social-links.blockpage-socials {
    font-size: 18px;
}

.block-group.blockpage-topbar-links ul li a,
.block-group.footer-info-links ul li a {
    color: var(--preset--color--foregound);
}

.block-group.blockpage-topbar-links ul li a:hover,
.block-group.footer-info-links ul li a:hover {
    color: var(--preset--color--primary);
}

.wp-block-social-links.blockpage-socials li a.wp-block-social-link-anchor:hover svg,
.block-group.blockpage-team-box:hover .wp-block-social-links li a.wp-block-social-link-anchor:hover svg {
    color: var(--preset--color--primary);
    fill: var(--preset--color--primary);
}

.block-navigation ul li a.wp-block-pages-list__item__link:hover {
    color: var(--preset--color--primary);
}

.block-heading.has-text-align-center {
    position: relative;
}

.block-heading.has-text-align-center.blockpage-heading:after {
    content: "";
    width: 50px;
    height: 2px;
    left: 50%;
    bottom: -15px;
    position: absolute;
    background: linear-gradient(to right, var(--preset--color--background), var(--preset--color--primary), var(--preset--color--background));
    margin-left: -25px;
}

.block-gallery.blockpage-brands.has-nested-images figure.block-image img {
    display: block;
    height: auto;
    max-width: 70% !important;
    width: auto;
    margin: 25px auto;
}

.block-gallery.blockpage-brands.has-nested-images.brands-left figure.block-image img {
    margin: 25px 0;
}

.block-gallery.blockpage-brands.has-nested-images figure.block-image img:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
}

.block-group.blockpage-portfolio-box,
.block-group.blockpage-post-blocks {
    position: relative;
    overflow: hidden;
}

.block-group.blockpage-portfolio-info a.block-button__link.element-button {
    width: 60px;
    height: 60px;
    text-indent: -5000px;
    position: relative;
}

.block-group.blockpage-portfolio-info a.block-button__link.element-button:before {
    content: "";
    width: 60px;
    height: 60px;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--preset--color--background);
    -webkit-mask-image: url(assets/images/button-arrow.svg);
    mask-image: url(assets/images/button-arrow.svg);
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
}

.block-group.blockpage-portfolio-info a.block-button__link.element-button:hover:before {
    background-color: var(--preset--color--heading-alt);
}

.block-group.blockpage-portfolio-box .block-group.blockpage-portfolio-info {
    width: 100%;
    position: absolute;
    left: 0;
    opacity: 0;
    bottom: 0;
    transform: translateY(50%);
    -webkit-transform: translateY(50%);
}

.block-group.blockpage-portfolio-box:hover .block-group.blockpage-portfolio-info {
    opacity: 1;
    bottom: 50%;
}

.block-group.blockpage-portfolio-box:hover .block-image {
    overflow: hidden;
}

.block-group.blockpage-portfolio-box:hover .block-image img {
    opacity: 0.25;
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
}

.block-group.blockpage-post-blocks:hover .block-post-featured-image img,
.block-group.blockpage-service-box2:hover img {
    transform: translateY(-6px);
    -webkit-transform: translateY(-6px);
    -moz-transform: translateY(-6px);
}

.block-group.blockpage-portfolio-box .block-image {
    margin: 0;
}

/* .block-group.blockpage-services-box:hover, */

.block-group.blockpage-post-blocks:hover,
.block-group.blockpage-pricing-box:hover,
.block-group.blockpage-service-box2:hover {
    /*  hover背景颜色，暂时不需要，注释 */
    /*   background-color: var(--preset--color--hover-background) !important; */
    transform: scale(1.015);
    -webkit-transform: scale(1.015);
    -moz-transform: scale(1.015);
}

.block-group.blockpage-portfolio-layout-2 .block-cover {
    transition: all ease 0.23s;
}

.block-group.blockpage-portfolio-layout-2 .block-cover:hover {
    transform: scale(0.95);
}

.block-group.blockpage-product-image .wc-block-components-product-sale-badge {
    border: 0;
    background-color: var(--preset--color--primary) !important;
    color: #fff;
    font-size: 12px;
}

.block-group.blockpage-product-image {
    position: relative;
    overflow: hidden;
}

.block-group.blockpage-product-image .wc-block-components-product-image {
    margin: 0;
}

.block-group.blockpage-product-image .block-button.wc-block-components-product-button {
    position: absolute;
    left: 5%;
    bottom: 0;
    width: 90%;
    opacity: 0;
    transition: all ease 0.23s;
    -webkit-transition: all ease 0.23s;
}

.block-group.blockpage-product-image:hover .block-button.wc-block-components-product-button {
    opacity: 1;
    bottom: 15px;
}

.block-button.blockpage-scrolltop-button .block-button__link.element-button {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 15px;
    bottom: 15px;
    display: inline-block;
    z-index: 999;
    text-indent: -5000px;
    display: none;
}

.block-button.blockpage-scrolltop-button .block-button__link.element-button:after {
    content: "";
    width: 50px;
    height: 50px;
    background-color: #fff;
    -webkit-mask-image: url(assets/images/toparrow.svg);
    mask-image: url(assets/images/toparrow.svg);
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    position: absolute;
    display: inline-block;
    left: 0;
    top: 0;
}

.block-button.blockpage-scrolltop-button:hover .block-button__link.element-button:after {
    background-color: var(--preset--color--primary) !important;
}

.block-group.blockpage-pricing-box,
.block-group.blockpage-team-image {
    position: relative;
    overflow: hidden;
}

.block-heading.blockpage-popular-badge {
    position: absolute;
    top: 10px;
    height: 15px;
    right: 10px;
    border-radius: 3px;
    padding: 10px 10px;
}

.block-group.blockpage-team-image .block-image {
    margin: 0;
}

.block-group.blockpage-team-box:hover .block-group.blockpage-team-image .block-image img {
    transform: scale(1.1);
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    opacity: 0.45;
}

.block-group.blockpage-team-image .wp-block-social-links {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    opacity: 0;
    transition: all ease 0.23s;
    -webkit-transition: all ease 0.23s;
    -moz-transition: all ease 0.23s;
}

.block-group.blockpage-team-box:hover .wp-block-social-links {
    bottom: 30px;
    opacity: 1;
}

.blockpage-sticky-header {
    transition: all ease 0.23s;
    -webkit-transition: all ease 0.23s;
    -moz-transition: all ease 0.23s;
}

.blockpage-sticky-header.stikcy-enabled {
    position: fixed;
    cursor: pointer;
    z-index: 9999;
    width: 100%;
    left: 0;
    top: 0;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

body.logged-in .blockpage-sticky-header.stikcy-enabled {
    margin-top: 30px;
}

.blockpage-sticky-header.stikcy-enabled:before {
    content: "";
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    background-color: var(--preset--color--background) !important;
    opacity: 0.87;
}

.blockpage-sticky-header.stikcy-enabled .block-group {
    position: relative;
    z-index: 9999;
}

.block-heading.blockpage-subheader {
    position: relative;
    display: flex;
    align-items: center;
}

.block-heading.blockpage-subheader:before {
    content: "";
    width: 30px;
    height: 1.5px;
    position: relative;
    display: inline-block;
    background-color: var(--preset--color--primary) !important;
    margin-right: 12px;
}

.block-button.blockpage-readmore-btns a {
    position: relative;
}

.block-button.blockpage-readmore-btns a:before {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: -5px;
    background-color: var(--preset--color--heading-color) !important;
    transition: all ease 0.35s;
}

.block-button.blockpage-readmore-btns:hover a:before {
    width: 80%;
    background-color: var(--preset--color--primary) !important;
}

.block-group.blockpage-team-icon-overlap .wp-block-social-links {
    margin-top: -38px !important;
}

.block-group.blockpage-team-box-3 .block-group.blockpage-team-overlay .block-image {
    margin: 0;
    transition: all ease 0.23s;
    -webkit-transition: all ease 0.23s;
    -moz-transition: all ease 0.23s;
}

.block-group.blockpage-team-box-3 .block-group.blockpage-team-overlay .block-image img {
    transition: all ease 0.23s;
    -webkit-transition: all ease 0.23s;
    -moz-transition: all ease 0.23s;
}

.block-group.blockpage-team-box-3 .block-group.blockpage-team-overlay {
    position: relative;
    overflow: hidden;
}

.block-group.blockpage-team-box-3 .block-group.blockpage-team-overlay .block-group.team-overlay-content {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 20px;
    bottom: -20px;
    opacity: 0;
    transition: all ease 0.23s;
    -webkit-transition: all ease 0.23s;
    -moz-transition: all ease 0.23s;
}

.block-group.blockpage-team-box-3 .block-group.blockpage-team-overlay:hover .block-group.team-overlay-content {
    bottom: 10px;
    opacity: 1;
}

.block-group.blockpage-team-box-3 .block-group.blockpage-team-overlay:hover .block-image img {
    opacity: 0.35;
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
}

.blockpage-header-search.wp-block-search input[type="search"] {
    background: transparent;
    color: var(--preset--color--foregound) !important;
}

.blockpage-header-search.wp-block-search input[type="search"]:focus {
    border: 1px solid var(--preset--color--primary) !important;
}

.blockpage-search-style-2.wp-block-search .wp-block-search__inside-wrapper {
    margin-top: 0;
}

.blockpage-search-style-2.wp-block-search .wp-block-search__button {
    padding: 10px;
}

.blockpage-search-style-2.wp-block-search .wp-block-search__input {
    width: 300px;
}

.blockpage-search-style-2.wp-block-search .wp-block-search__button svg {
    width: 36px;
    height: 36px;
}

.blockpage-footer-list-centered li,
.blockpage-list-centered li {
    text-align: center;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-footer-newsletter {
    width: 100%;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-footer-newsletter .wpcf7-form {
    position: relative;
    width: 100%;
    margin-top: -10px;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-footer-newsletter input[type="email"] {
    border-radius: 60px;
    border: 0;
    padding: 26px 20px;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-footer-newsletter .wpcf7-form-control.wpcf7-submit {
    border-radius: 60px;
    padding: 16px 45px;
    position: absolute;
    top: 15px;
    right: 5px;
    font-size: 20px;
    background: var(--preset--gradient--primary-gradient) !important;
    color: var(--preset--color--heading-alt) !important;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-footer-newsletter .wpcf7-form-control.wpcf7-submit:hover {
    background: var(--preset--color--secondary) !important;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form input[type="text"],
.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form input[type="email"],
.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form input[type="tel"],
.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form textarea {
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid var(--preset--color--border-color) !important;
    border-radius: 0;
    padding: 15px 0;
    margin-bottom: 30px;
    color: var(--preset--color--foregound) !important;
    font-size: 18px;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form .wpcf7-form-control-wrap {
    width: 47%;
    display: inline-block;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form .wpcf7-form-control-wrap:last-child {
    width: 100%;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form textarea {
    height: 200px;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form .wpcf7-form-control-wrap:nth-child(2),
.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form .wpcf7-form-control-wrap:nth-child(5) {
    margin-left: 6%;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form input[type="text"]:focus,
.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form input[type="email"]:focus,
.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form input[type="tel"]:focus,
.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form textarea:focus {
    border-color: var(--preset--color--primary) !important;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-contact-form *::placeholder {
    font-size: 18px;
}

.block-column.blockpage-timeline-one {
    position: relative;
}

.block-column.blockpage-timeline-one:before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: 50%;
    right: -11px;
    margin-top: -8px;
    border-radius: 50%;
    border: 3px solid var(--preset--color--primary) !important;
    background: var(--preset--color--heading-color) !important;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-1 input[type="email"],
.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-2 input[type="email"],
.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-4 input[type="email"] {
    border-radius: 50px;
    height: 60px;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-1 .wpcf7-form-control.wpcf7-submit,
.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-2 .wpcf7-form-control.wpcf7-submit {
    width: 100%;
    border-radius: 50px;
    margin-top: 20px;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-2 .wpcf7-form-control.wpcf7-submit,
.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-2 input[type="email"] {
    border-radius: 0px;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-4 {
    position: relative;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-4 .wpcf7-form-control.wpcf7-submit {
    position: absolute;
    right: 5px;
    top: 14px;
}

.wp-block-contact-form-7-contact-form-selector.blockpage-newsletter-form-4 input[type="email"] {
    height: 69px;
}

/* 以下为自定义样式 */

/* WordPress 块编辑器基础布局样式 */
.is-layout-flex {
    display: flex;
}

.is-layout-constrained {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.is-layout-flow {
    display: block;
}

.block-columns.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    align-items: stretch;
}

.block-columns.is-layout-flex > .block-column {
    flex: 1;
    min-width: 0;
}

.block-column.is-layout-flow {
    display: block;
}

.block-group.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.block-group.is-layout-constrained {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.block-group.is-layout-flow {
    display: block;
}

/* 确保 cover 块正确显示 */
.block-cover {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.block-cover__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 确保背景遮罩层透明 */
.block-cover__background.has-background-dim-0 {
    opacity: 0;
}

.block-cover__background.has-background-dim {
    opacity: 0.5;
}

.block-cover__inner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* 确保内容对齐 */
.is-content-justification-left {
    justify-content: flex-start;
}

.is-content-justification-center {
    justify-content: center;
}

.is-content-justification-right {
    justify-content: flex-end;
}

.is-content-justification-space-between {
    justify-content: space-between;
}

/* 垂直对齐 */
.is-vertically-aligned-top {
    align-self: flex-start;
}

.is-vertically-aligned-center {
    align-self: center;
}

.is-vertically-aligned-bottom {
    align-self: flex-end;
}

/* 文本对齐 */
.has-text-align-left {
    text-align: left;
}

.has-text-align-center {
    text-align: center;
}

.has-text-align-right {
    text-align: right;
}

.block-template-part:first-child {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.blockpage-sticky-header {
    width: 90%;
    box-sizing: border-box;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.main_bg_cover {
    /* 使首屏幕按 16:9 比例展示 */
    height: calc(100vw * 9 / 16);
    min-height: 600px !important;
    max-height: 100vh !important;
    margin-top: 0;
    position: relative;
}

.main_bg_cover .block-cover__inner-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.about-us-bg-render {
    position: absolute;
    width: 100%;
}

.about-us-bg-render img {
    height: 175px !important;
}


.no-margin-bottom {
    margin-bottom: 0;
}

.about-us-footer-small-img {
    right: calc(50vw - 640px);
    position: absolute;
}

/*    background-size: 300% !important;*/

/*    transform: scale(1.05); !* 悬停时放大元素 *!*/

/*}*/

.blockpage-services-box {
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Join Us 页面职位卡片样式 */
.blockpage-services-box.has-background {
    background-position: center;
    background-size: cover;
}

.blockpage-services-box.has-custom-custom-back-background-color {
    background-color: #dadad6;
}

/* 确保背景图片正确显示 */
.blockpage-services-box[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.banner-text-lineheight {
    line-height: 0.7;
}

.about-us-main-content {
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

/* news 页面 banner 区域不需要额外的顶部间距 */
.news-banner {
    margin-top: 0 !important;
}

/* news 页面的 main 标签特殊处理 - header 在 main 内部 */
main > .block-template-part:first-child {
    margin-top: 0 !important;
}

/* About Us 页面时间线样式 */
.block-media-text {
    display: grid !important;
    grid-template-columns: 50% 1fr !important;
    gap: 2rem;
    align-items: center;
    margin: 1rem 0;
}

/* 第一个时间线项目减少上边距 */
.block-group.alignfull.has-background-background-color .block-media-text:first-child {
    margin-top: 0;
}

.block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr 50% !important;
}

/* 覆盖内联样式 */
.block-media-text[style*="grid-template-columns:40% auto"] {
    grid-template-columns: 40% auto !important;
}

.block-media-text[style*="grid-template-columns:auto 40%"] {
    grid-template-columns: auto 40% !important;
}

.block-media-text__media {
    margin: 0;
}

.block-media-text__media img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.block-media-text__content {
    padding: 0 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

/* 时间线连接线 */
.block-image.aligncenter {
    text-align: center;
    margin: 2rem auto;
    display: block;
    width: 100%;
}

.block-image.aligncenter img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 确保时间线容器正确显示 */
.block-group.alignfull.has-background-background-color {
    background-color: transparent;
    padding: 1rem 0 2rem;
    margin-top: -1rem;
}

/* About Us 底部背景横幅样式 */
.about-us-footer-banner {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.about-us-footer-banner .block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.about-us-footer-banner .block-cover__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0 !important;
    pointer-events: none;
}

.about-us-footer-banner .block-cover__inner-container {
    position: relative;
    z-index: 2;
    min-height: 300px;
}

/* .block-cover .block-cover__inner-container 已在上面定义 */

@media only screen and (max-width: 1000px) {
    .blockpage-services-box {
        height: 470px !important;
    }
}

@media only screen and (max-width: 782px) {
    /* 移动端基础布局调整 */
    .block-columns.is-layout-flex:not(.download-block-columns) {
        flex-direction: column !important;
        gap: 1em !important;
    }
    
    .block-columns.is-layout-flex:not(.download-block-columns) > .block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }
    
    .blockpage-services-box {
        height: unset !important;
        min-height: auto !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Join Us 页面移动端适配 */
    .block-columns.is-layout-flex .block-column .blockpage-services-box {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }
    
    .main_bg_cover {
        height: 85vh;
        min-height: 500px !important;
        max-height: 100vh !important;
        margin-top: 0;
    }
    
    .main_bg_cover .block-cover__inner-container {
        padding: 2rem 1rem !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .main_bg_cover .block-columns {
        flex-direction: column !important;
        width: 100%;
    }
    
    .main_bg_cover .block-column {
        width: 100% !important;
        flex-basis: 100% !important;
    }
    
    .home-emoji {
        display: none !important;
    }
    
    .home-company-title {
        text-align: center !important;
    }
    
    .home-company-desc {
        text-align: center !important;
    }
    
    .home-join-us {
        justify-content: center !important;
    }
    
    .games_bg_cover {
        height: 100vh;
        padding-bottom: 0;
        padding: 0 !important;
    }
    
    .news-banner img {
        margin: 0 auto;
        max-width: 60%;
        display: block;
    }
    
    .games_banner_box img {
        margin-left: 7%;
        max-width: 50%;
    }
    
    .new_banner_text {
        margin-top: 2vh;
    }

    .new_banner_text p:first-child {
        font-size: 16px !important;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: 0.8;
        margin-bottom: 5px !important;
    }

    .new_banner_text p:last-child {
        font-size: 42px !important;
        font-weight: 800;
        letter-spacing: -1px;
    }
    
    .main-page-description-wrapper {
        padding: 2rem 24px !important;
    }
    
    .main-page-description-wrapper .block-columns {
        flex-direction: column !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .home-our-team {
        flex-basis: 100% !important;
        padding: 2rem 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 2rem;
        box-sizing: border-box;
    }
    
    .home-our-team-icon {
        flex-basis: 100% !important;
        padding: 2rem 0 !important;
        text-align: center;
    }
    
    .home-why-choose-list {
        flex-direction: column !important;
        padding: 0 24px !important;
    }
    
    .home-why-choose-list .block-column {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* 设置所有文章页面的图片和文字各占50% */
    .block-post {
        margin-bottom: 40px; /* 增加文章间距 */
        .block-columns {
            flex-direction: column;
            gap: 20px !important; /* 增加图片和文字间距 */
            
            .block-column {
                text-align: left; /* 左对齐，更简洁现代 */
            }
            
            .posts-main-img img {
                border-radius: 12px; /* 圆角 */
                box-shadow: 0 8px 24px rgba(0,0,0,0.06); /* 悬浮质感 */
            }

            .posts-main-info {
                margin-bottom: 24px;
                padding: 0 10px; /* 左右留白 */
                
                .block-post-date {
                    font-size: 12px;
                    color: #999;
                    letter-spacing: 0.5px;
                    margin-bottom: 8px;
                }
                
                h2 {
                    font-size: 24px !important;
                    line-height: 1.3;
                    margin-bottom: 12px;
                    font-weight: 600;
                    
                    a {
                        color: #1d1d1f; /* Apple dark grey */
                        text-decoration: none;
                    }
                }
                
                .block-post-excerpt {
                    font-size: 15px !important;
                    line-height: 1.6;
                    color: #6e6e73; /* Apple secondary text */
                }
            }
        }
    }
    
    .no-marginTop {
        margin-top: 0;
    }
    
    .about-us-footer-banner {
        aspect-ratio: unset !important;
        min-height: 300px !important;
        position: relative;
    }
    
    /* 确保底部背景图正确显示 */
    .about-us-footer-banner .block-cover__image-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
        display: block;
    }
    
    .about-us-footer-banner .block-cover__background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        opacity: 0;
    }
    
    .about-us-footer-banner .block-cover__inner-container {
        position: relative;
        z-index: 2;
    }
    
    /* Join Us 页面样式优化 */
    /* 针对 Join Us 页面 (page-id-1196) 的全局容器限制 */
    body.page-id-1196 .site-blocks > main {
        max-width: 1280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
    }

    body.page-id-1196 .alignfull,
    body.page-id-1196 .alignwide {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 设置 Join Us 页面主内容区域最大宽度为 1280px */
    .container-core-group-is-layout-59810580 {
        max-width: 100% !important; /* 让父容器控制 */
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
    
    /* 覆盖 alignfull 的 max-width: none 设置 */
    .container-core-group-is-layout-59810580 .entry-content.alignfull {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
    
    /* 确保外层容器也限制宽度 */
    .container-core-group-is-layout-db017e4e {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .entry-content .block-group[style*="padding-top:60px"] {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Remove extra padding from job grid section as main container handles it */
    .job-grid-section {
        padding: 0 0 60px !important;
    }
    
    .entry-content .block-image.aligncenter {
        margin-bottom: 2rem;
    }
    
    .entry-content h2.has-text-align-center {
        margin-top: 2rem !important;
        margin-bottom: 3rem !important;
    }
    
    /* 确保职位卡片列之间的间距 */
    .block-columns.is-layout-flex[style*="margin-top:0px"] {
        gap: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .block-columns.is-layout-flex[style*="margin-top:0px"] .block-column {
        flex: 1 1 0;
        min-width: 0;
    }
    
    /* About Us 页面移动端适配 */
    .block-media-text {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .block-media-text.has-media-on-the-right {
        grid-template-columns: 1fr !important;
    }
    
    .block-media-text[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .block-media-text__media {
        order: 1;
        padding: 0 !important;
    }
    
    .block-media-text__content {
        order: 2;
        padding: 0 24px !important;
    }
    
    .block-media-text.has-media-on-the-right .block-media-text__media {
        order: 1;
    }
    
    .block-media-text.has-media-on-the-right .block-media-text__content {
        order: 2;
    }
    
    .block-media-text-padding-right-none .block-media-text__content,
    .block-media-text-padding-left-none .block-media-text__content {
        padding: 0 24px !important;
    }
    
    .block-media-text-padding-right-none .block-media-text__media,
    .block-media-text-padding-left-none .block-media-text__media {
        padding: 0 !important;
    }
    
    .about-us-bg-render img {
        height: auto !important;
    }
    
    /* 时间线连接线在移动端 */
    .block-image.aligncenter {
        margin: 1rem auto;
        max-width: 100%;
    }
    
    .block-image.aligncenter img {
        width: 100%;
        max-width: 300px;
    }
    
    .frame-header {
        width: 100%;
        padding: 0 1rem;
    }
    
    .blockpage-sticky-header {
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* 增大关闭按钮的点击区域 */
    .block-navigation__responsive-container-close {
        padding: 12px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .block-navigation__responsive-container-close svg {
        width: 40px;
        height: 40px;
    }
    
    /* 增大汉堡菜单按钮的点击区域 */
    .block-navigation__responsive-container-open {
        padding: 12px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .block-navigation__responsive-container-open svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* 菜单容器左对齐 - 覆盖 items-justified-center */
    .block-navigation__responsive-container.is-menu-open .block-navigation__responsive-container-content {
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    .block-navigation__responsive-container.is-menu-open .block-navigation__responsive-container-content,
    .block-navigation__responsive-container.is-menu-open .block-navigation__responsive-container-content .block-navigation__container,
    .block-navigation__responsive-container.is-menu-open .block-navigation__responsive-container-content .wp-block-page-list {
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    
    /* 菜单项容器左对齐 - 覆盖 items-justified-center */
    .block-navigation__responsive-container.is-menu-open .block-navigation__container.items-justified-center,
    .block-navigation__responsive-container.is-menu-open .wp-block-page-list.items-justified-center,
    .block-navigation__responsive-container.is-menu-open .block-navigation__container,
    .block-navigation__responsive-container.is-menu-open .wp-block-page-list {
        align-items: flex-start !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    /* 覆盖导航块的居中样式 */
    .block-navigation__responsive-container.is-menu-open .block-navigation.items-justified-center {
        justify-content: flex-start !important;
    }
    
    /* 增大导航菜单项的点击区域和间距 */
    .block-navigation__responsive-container.is-menu-open .block-navigation-item {
        font-size: 28px !important;
        margin-bottom: 0.75rem !important;
        text-align: left !important;
        width: 100% !important;
    }
    
    .block-navigation__responsive-container.is-menu-open .block-navigation-item__content {
        padding: 12px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 44px !important;
        line-height: 1.5 !important;
        text-align: left !important;
        width: 100% !important;
    }
    
    /* 菜单项文字左对齐 */
    .block-navigation__responsive-container.is-menu-open .block-navigation-item__label {
        text-align: left !important;
    }
    
    /* 增大菜单容器内边距 - 让整个菜单区域更大 */
    .block-navigation__responsive-container.is-menu-open {
        padding: 0 !important;
    }
    
    .block-navigation__responsive-container.is-menu-open .block-navigation__responsive-container-content {
        padding-top: calc(4rem + 24px) !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-bottom: 3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 增大菜单容器本身的显示区域 */
    .block-navigation__responsive-container.is-menu-open .block-navigation__responsive-dialog {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
    }
    
    /* 调整菜单项之间的间距 - 参考示意图 */
    .block-navigation__responsive-container.is-menu-open .block-navigation__container {
        gap: 0 !important;
    }
    
    /* 确保菜单项链接有足够的点击区域 */
    .block-navigation__responsive-container.is-menu-open .block-navigation-item a {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    .main-page--description-img {
        max-width: 100vw;
    }
    
    .block-columns {
        gap: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .block-column {
        border-radius: 14px;
        overflow: hidden;
    }
    
    .block-cover__inner-container {
        position: relative !important;
        text-align: center;
        padding: 2rem 1rem !important;
        p {
            text-align: center !important;
            font-size: 1.2rem !important;
        }
        h2 {
            text-align: center !important;
            font-size: 2rem !important;
        }
    }
    
    /* Footer 移动端适配 */
    footer .block-columns {
        flex-direction: column !important;
    }
    
    footer .block-column {
        flex-basis: 100% !important;
        text-align: center !important;
    }
    
    .footer-link {
        text-align: center !important;
    }
    
    .footer-link p {
        text-align: center !important;
    }
    .news-banner {
        width: 100%;
        min-height: 50vh !important; /* 适中的高度 */
        height: auto !important;
        aspect-ratio: unset !important;
        padding-bottom: 40px;
        
        .block-cover__inner-container {
            position: relative !important;
            bottom: auto;
            padding-top: 80px !important; /* 避开顶部导航 */
        }
    }

    /* 新闻详情页移动端间距 */
    .post-content {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* game页面 */

.raft_war_games_bg {
    .block-cover__background {
        display: none;
    }
    img {
        z-index: -1;
    }
}

@media only screen and (max-width: 782px) {
    .games_bg_cover {
        .block-cover__inner-container {
            position: relative !important;
            bottom: auto;
            height: 100%;
            max-width: 100vw;
            padding: 0 !important;
            .block-columns-is-layout-flex {
                height: 100%;
                margin-bottom: 0!important;
                .block-column-is-layout-flow-full1 {
                    position: absolute;
                    height: 100vh !important;
                }
                .block-column-is-layout-flow-full2 {
                    position: relative;
                    height: 100vh !important;
                    border-radius: 0!important;
                    >p {
                        font-size: 0.8rem!important;
                        margin: 0!important;
                    }
                }
                .block-columns-is-layout-flex-part1 {
                    position: absolute!important;
                    height: 50vh !important;
                    top: 0!important;
                }
                .block-columns-is-layout-flex-part2 {
                    position: absolute!important;
                    height: 50vh !important;
                    bottom: 0!important;
                    margin-top: 0!important;
                }

            }
        }
    }
    .game-sub-description {
        font-size: 20px !important;
    }
    .game-download-button-container {
        width: 100px;
        flex-basis: unset !important;
        padding-top: 32vh!important;
    }
    .game_page_title {
        padding-top: 0 !important;
        font-size: 60px !important;
        position: relative;
        z-index: 5;
        margin-bottom: 0.5rem !important;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    .game-sub-description {
        position: relative;
        z-index: 5;
        margin-bottom: 1rem !important;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    }
    .download-block-columns {
        padding: 0 15%;
        margin-block-start: 0;
        height: auto;
        min-height: 60px;
        position: relative;
        top: auto;
        width: 100%;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        gap: 2% !important;
        justify-content: center;
        padding-left: calc(max(15%, (100% - 400px) / 2));
        padding-right: calc(max(15%, (100% - 400px) / 2));
        box-sizing: border-box;
        background-image: url(https://www.a3games.com/wp-content/uploads/2024/10/bg_color.png);
        /* 		移动端按钮点击处理 */
        z-index: 10;
        background: transparent;
        flex-direction: row !important;
        display: flex !important;
        align-items: center;
    }
    .download-block-columns:not(.is-not-stacked-on-mobile)>.block-column:first-child {
        flex-basis: unset !important;
    }
    .download-block-columns:not(.is-not-stacked-on-mobile)>.block-column:last-child {
        flex-basis: unset !important;
    }
    .game-download-button-container {
        display: inline-block;
        border-radius: 0 !important;
        flex-shrink: 0;
        .block-image {
            display: flex;
            /*             justify-content: right; */
            margin: 0 auto;
            margin-inline-start: 0;
            float: unset;
            height: auto;
            min-height: 50px;
            text-align: center;
            max-width: 200px;
            img {
                width: auto !important;
                height: auto !important;
                max-height: 60px;
                min-height: 50px;
            }
        }
    }
    .game-download-button-container:last-child {
        .block-image:first-child {
            justify-content: right;
        }
    }
    .game-imgs-block-columns {
        padding: 0 5% !important;
        margin-block-start: 0;
        padding-top: 2vh !important;
        height: auto !important;
        position: relative !important;
        bottom: auto !important;
        gap: 12px !important;
        width: 100%;
        background: none !important;
        margin-bottom: 0 !important;
        z-index: 1;
        .block-column {
            display: flex;
            justify-content: center;
            border-radius: 0;
            flex-direction: column;
            .block-image {
                margin-inline-start: 0;
                margin-inline-end: 0;
                width: 100%;
                margin: 0 auto;
                /* 隐藏game页面商城第二张图的处理 */
                float: unset !important;
                img {
                    width: 100% !important;
                    max-width: 100% !important;
                }
            }
            .block-image:first-child {
                margin-bottom: 2vh;
                display: table;
            }
        }
        /* 显示两张宣传图 */
        .block-column:nth-child(2) {
            display: flex !important;
        }
    }
    .games-role-big-img {
        position: absolute;
        top: 0;
        left: 50% !important;
        transform: translate(-50%);
        width: unset !important;
        z-index: 1;
        pointer-events: none;
        img {
            -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0) 100%);
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0) 100%);
            margin-top: 3vh;
            scale: 1.0;
            margin-left: 0;
        }
    }
    
    /* 确保文字区域在角色图片之上 */
    .games_bg_cover .block-column.is-vertically-aligned-center {
        position: relative;
        z-index: 2;
        padding-top: 22vh !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
}

/* 手机大小 */

@media only screen and (max-width: 460px) {
    .games-role-big-img {
        z-index: 1;
        pointer-events: none;
        img {
            -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0) 100%);
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0) 100%);
            margin-top: 1vh;
            scale: 1.0;
            margin-left: 0;
        }
    }
    .download-block-columns {
        padding-top: 1rem !important;
        z-index: 10;
    }
    .game_page_title {
        padding-top: 0 !important;
        font-size: 48px !important;
        position: relative;
        z-index: 5;
        margin-bottom: 0.5rem !important;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    .game-sub-description {
        font-size: 12px !important;
        position: relative;
        z-index: 5;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
        margin-bottom: 1rem !important;
    }
}

/* game 页面两张宣传图在桌面端均显示 */
.game-imgs-block-columns {
	.block-column {
		display: flex;
		justify-content: center;
		.block-image {
			float: unset !important;
			margin-right: 2rem;
		}
	}
	.block-column:nth-child(2) {
		display: flex !important;
	}
}

@media only screen and (min-width: 1500px) {
    .games-role-big-img {
        position: absolute;
        bottom: 0;
        left: 17vw;
        width: 35vw;
        img {
            scale: 1.2;
            transform: translateY(-40px);
        }
    }
}

@media only screen and (min-width: 1921px) {
    .games-role-big-img {
        position: absolute;
        bottom: 0;
        left: 20vw;
        width: 35vw;
        img {
            scale: 1.4;
            transform: translateY(-100px);
        }
    }
}

@media only screen and (min-width: 600px) {
    .block-cover__inner-container {
        .block-columns {
            .block-column:nth-child(2) {
                position: relative;
            }
        }
    }
    /* about-us 额外css类名处理 */
    .block-media-text-padding-right-none .block-media-text__content {
        padding-left: 8% !important;
        padding-right: 8% !important;
    }
    .block-media-text-padding-left-none .block-media-text__content {
        padding-left: 8% !important;
        padding-right: 8% !important;
    }
    .block-media-text-padding-right-none .block-media-text__media {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }
    .block-media-text-padding-left-none .block-media-text__media {
        padding-right: 10% !important;
        padding-left: 10% !important;
    }
}

@media only screen and (max-width: 600px) {
    .block-media-text__media {
        margin-bottom: 24px !important;
    }
    .block-media-text-padding-right-none:first-child .block-media-text__media {
        margin-bottom: 0px !important;
    }
}

/* 首页问号图片样式处理 */

.home-question-img img {
    margin-left: 30px;
}

/* 首页样式 */

.home-emoji img {
    width: 100%;
}

.home-join-us a {
    background: url(https://www.a3games.com/wp-content/uploads/2024/06/button.png) no-repeat;
    background-size: 100% 100%;
    height: 85px;
    line-height: 45px;
    margin-left: 3rem;
}

.home-join-us a:hover {
    background-color: transparent !important;
}

.home-our-team {
    border-radius: 24px;
}

.game-sub-description {
    margin-top: -8px;
}

@media only screen and (max-width: 1499px) {
    .games-role-big-img {
        position: absolute;
        bottom: 0;
        left: 10vw;
        width: 30vw;
    }
}

@media only screen and (max-width: 1250px) {
    h2.home-company-title {
        font-size: 60px !important;
    }
}

@media only screen and (max-width: 990px) {
    h2.home-company-title {
        font-size: 45px !important;
    }
    p.home-company-desc {
        font-size: 30px !important;
    }
}

@media only screen and (max-width: 786px) {
    .home-join-us {
        display: flex !important;
        justify-content: center !important;
    }
    .home-join-us a {
        margin-left: auto;
    }
    .home-emoji {
        flex: 100%;
        display: flex;
        justify-content: center;
    }
    .home-emoji figure {
        margin: 0 auto !important;
    }
    .home-emoji figure img {
        max-width: 80%;
    }
    .home-why-choose {
        font-size: 30px !important;
    }
    .home-our-team {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    }
    .footer-link p {
        text-align: left !important;
    }
}

@media only screen and (max-width: 486px) {
    h2.home-company-title {
        font-size: 30px !important;
    }
    p.home-company-desc {
        font-size: 14px !important;
    }
    .home-join-us {
        margin-top: 3.5rem !important;
    }
    .home-emoji figure img {
        max-width: 50%;
    }
    .home-why-choose {
        font-size: 22px !important;
    }
    .home-why-choose-list {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .home-our-team {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    }
    .home-our-team-icon {
        max-width: 75% !important;
        padding-top: 2rem !important;
        margin: 0 auto !important;
    }
    .home-our-team-icon img {
        margin-left: 0 !important;
    }
}

#Iframe1 {
    position: fixed;
    bottom: 0;
    z-index: 999;
}
/* News Detail Back Button */
.news-back-btn {
    background: url(https://www.a3games.com/wp-content/uploads/2024/06/button.png) no-repeat center center !important;
    background-size: 100% 100% !important;
    width: 300px !important;
    height: 85px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    font-weight: 800;
    font-size: 22px;
    transition: all 0.3s ease;
    border: none !important;
    line-height: 45px;
}

.news-back-btn:hover {
    background-color: transparent !important;
    transform: none;
    box-shadow: none !important;
}

@media only screen and (max-width: 782px) {
    /* Ensure padding consistency */
    .post-content + .block-buttons {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .news-back-btn {
        width: 280px !important;
        max-width: 100%;
        height: 85px !important;
        font-size: 18px;
        margin: 0 auto;
    }
}

.job-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.job-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 280px;
    transition: transform 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
}

.job-card h3 {
    font-family: 'DelaGothic', sans-serif;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 16px;
    color: #000;
    line-height: 1.2;
}

.job-card p {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Colors - Row based for Desktop */
/* Rows 1 & 3: Green */
.job-card:nth-child(-n+3),
.job-card:nth-child(n+7):nth-child(-n+9) {
    background-color: #00FFAA;
}

/* Rows 2 & 4: Gray */
.job-card:nth-child(n+4):nth-child(-n+6),
.job-card:nth-child(n+10):nth-child(-n+12) {
    background-color: #E0E0E0;
}

/* Border Radius - Desktop */
/* Leftmost: 1, 4, 7, 10 */
.job-card:nth-child(3n+1) {
    border-top-left-radius: 80px;
}

/* Rightmost: 3, 6, 9, 12 */
.job-card:nth-child(3n) {
    border-top-right-radius: 80px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .job-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .job-card {
        background-color: #E0E0E0;
        border-radius: 20px;
    }
    
    .job-card:nth-child(odd) {
        background-color: #00FFAA;
    }
    
    /* Reset specific desktop radius */
    .job-card:nth-child(3n+1),
    .job-card:nth-child(3n) {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
}

/* ===============================
   GAMES 页面：仅展示一张图，另一张作为背景
   - 只保留第一个列里的图片
   - 用第二张图作为该区域背景
   =============================== */
.game-imgs-block-columns {
    background-image: url(assets/images/2024/07/UI_Publish_Img_Intro_02.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0;
}
.game-imgs-block-columns .block-column:nth-child(2) {
    display: none !important;
}
/* 前景图尺寸与居中 */
.game-imgs-block-columns .block-column:first-child .block-image {
    margin: 0 auto;
}
.game-imgs-block-columns .block-column:first-child .block-image img {
    width: min(90%, 720px) !important;
    height: auto !important;
}

/* 移动端同样仅保留一张前景图 */
@media only screen and (max-width: 782px) {
    .game-imgs-block-columns {
        background-image: url('https://www.a3games.com/wp-content/uploads/2024/10/bg_concert.png')!important;
        /*background-image: url(assets/images/2024/07/UI_Publish_Img_Intro_02.png) !important;*/
        background-position: center!important;
        background-size: cover!important;
        background-repeat: no-repeat!important;
        height: 40vh!important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
    .game-imgs-block-columns .block-column:nth-child(2) {
        display: none !important;
    }
}

/* 桌面端收紧前景图尺寸，保持视觉更轻 */
@media only screen and (min-width: 1024px) {
    .game-imgs-block-columns .block-column:first-child .block-image img {
        width: 316px !important;
    }
}