/*
Theme Name: ART TREK FUTURE Child
Theme URI: 
Author: 
Author URI: 
Description: ART TREK FUTURE 子主题，内置会员管理功能，支持按文章分类进行会员权限控制。
Template: arttrekfuture
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arttrekfuture-child
*/

/* ── Mega Menu 居中修复 ── */

/* 布局4：文字列内容水平居中 */
.mega-card-column-text {
    align-items: center!important;
}

/* 布局3：颜色文字区内容水平居中 */
.mega-layout-3-grid .mega-color-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mega-layout-3-grid .mega-color-text .mega-third-list {
    width: 100%;
    align-items: center;
}

/* 布局5：颜色文字区内容水平居中 */
.mega-layout-5-grid .mega-color-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mega-layout-5-grid .mega-color-text .mega-third-list {
    width: 100%;
    align-items: center;
}

/* ── 分类页字体污染修复 ── */
/* 父主题 .category-color-inspiration / chromatic / achromatic 裸选择器直接命中
   WordPress 自动加在 <body> 上的分类 class，导致 MangoGrotesque 字体通过继承
   污染整个页面（含页脚）。此处显式重置 body 字体，再用精确后代选择器补回目标 h1。 */
body.category-color-inspiration,
body.category-chromatic-colors,
body.category-achromatic-colors {
    font-family: 'PoppinsRegular', 'SourceHanSansCN', 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

.category-color-inspiration .wp-block-cover.alignfull-1:last-of-type h1,
.category-chromatic-colors .wp-block-cover.alignfull-1:last-of-type h1,
.category-achromatic-colors .wp-block-cover.alignfull-1:last-of-type h1 {
    font-family: 'MangoGrotesque', 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

/* ── 登录弹窗表单宽度 ── */
#dz-login-form {
    width: 70%;
}

@media (max-width: 768px) {
    #dz-login-form {
        width: 100%;
    }
}
