/*
 Theme Name:   Twenty Twenty-Five Child
 Theme URI:    http://example.com/twentytwentyfive-child/
 Description:  Twenty Twenty-Five Child Theme
 Author:       Your Name
 Author URI:   http://example.com
 Template:     twentytwentyfive
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twentytwentyfive-child
*/

/* 
 * ===================================================================
 * ======== 主题专属样式 =============================================
 * ===================================================================
 * 以下样式与插件功能无关，是您为美化主题特定页面和布局添加的样式。
 * 所有与登录弹窗、分享弹窗相关的样式均已移除，并由“推广系统插件”接管。
 */

/* --- 修正 erphpdown 插件页面与顶部导航栏的间距 --- */
.erphpdown-content-vip {
    margin-top: 100px !important;
}

/* --- App 风格的顶部固定导航栏样式 (适用于页面模板) --- */
.app-style-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-sizing: border-box;
    height: 56px;
    padding: 0 15px;
}

/* 移除区块样式的多余内边距 */
.app-style-header.wp-block-group {
    padding: 0 15px;
}
.app-style-header .wp-block-columns {
    width: 100%;
    gap: 0;
}

/* 定义导航栏的左、中、右三列布局 */
.app-style-header .header-column.left,
.app-style-header .header-column.right {
    flex: 0 0 50px;
    display: flex;
}
.app-style-header .header-column.left { 
    justify-content: flex-start; 
}
.app-style-header .header-column.right { 
    justify-content: flex-end; 
}
.app-style-header .header-column.center { 
    flex: 1; 
    text-align: center; 
}

/* 导航栏标题样式 */
.app-style-header .header-title,
.app-style-header .wp-block-post-title {
    font-size: 18px !important;
    font-weight: bold;
    color: #333333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 导航栏中的通用操作按钮样式 (返回、首页、分享等) */
.app-nav-action-button,
.app-nav-back-button {
    background: none; 
    border: none; 
    cursor: pointer;
    color: #333333; 
    padding: 5px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-decoration: none; /* 确保链接没有下划线 */
}
.app-nav-action-button:hover {
    opacity: 0.7;
}


/* --- 关键布局修正：解决顶部导航栏遮挡页面内容的问题 --- */
/* 适用于 erphpdown 个人中心页面 */
body.page-template-page-erphpdown-user .user-center-container {
    padding-top: 56px;
}
/* 适用于使用块编辑器模板的页面 */
body .wp-site-blocks {
    padding-top: 56px;
}

/* 
 * 关键布局修正：解决内容溢出问题
 * 让使用特定模板的文章内容区真正实现全宽，移除主题默认的边距和宽度限制
*/
body.page-template-wp-custom-template .wp-block-post-content.has-global-padding {
    max-width: none !important;      /* 移除最大宽度限制 */
    padding-left: 0 !important;     /* 移除左内边距 */
    padding-right: 0 !important;    /* 移除右内边距 */
}

/* --- 个人中心页面的顶部导航栏特定样式 --- */
.custom-user-center-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.custom-user-center-header .header-column.left {
    flex: 0 0 15%;
}
.custom-user-center-header .header-column.center {
    flex: 1 1 70%;
    overflow: hidden;
}
.custom-user-center-header .header-column.right {
    flex: 0 0 15%;
}
.erphpdown-table {font-size: 40px!important;}
#erphpdown-paybox {max-width:50%!important;}
/* 1. 隐藏旧文字 */
.erphpdown-sc h2 {
    font-size: 0 !important;
}

/* 2. 显示新文字（注意：这里我改成了单引号） */
.erphpdown-sc h2::before {
    content: '认证宗亲：认证后赠送200香火钱'; 
    font-size: 20px !important;
    font-weight: bold;
    color: #333; 
    margin-right: 10px;
    vertical-align: middle;
    visibility: visible;
}

/* 3. 恢复“支付”标签显示 */
.erphpdown-sc h2 span {
    font-size: 12px !important;
    vertical-align: middle;
    display: inline-block;
}
.erphpdown-sc .erphpdown-sc-td-title {
    font-size: 0 !important;
}
/* --- 第一步：处理整行父容器 --- */
/* --- 第一步：对父容器使用“隐身术” --- */
.erphpdown-content-vip {
    visibility: hidden !important; /* 【核心】强制隐藏父容器内的所有可见内容（包括旧文字） */
    font-size: 0 !important;       /* 消除旧文字的占位空间 */
}

/* --- 第二步：单独让“新提示文字”显形 --- */
.erphpdown-content-vip::before {
    content: '此隐藏内容仅限认证宗亲查看，请登录后点击右下角“我的”按钮，在认证宗亲完成认证';
    visibility: visible !important; /* 【核心】在父元素隐形的情况下，强制自己显形 */
    font-size: 14px !important;     /* 恢复正常的字体大小 */
    color: #555;                    /* 文字颜色 */
    margin-right: 15px;             /* 和后面按钮的距离 */
    vertical-align: middle;         /* 垂直居中 */
    display: inline-block;          /* 保持在一行 */
}

/* --- 第三步：处理红色按钮 --- */
.erphpdown-content-vip .erphpdown-vip {
    visibility: visible !important; /* 【核心】让按钮框体重现人间 */
    font-size: 0 !important;        /* 但要隐藏按钮里面原来的“升级VIP”文字 */
    vertical-align: middle;
}

/* --- 第四步：给按钮加上新文字 --- */
.erphpdown-content-vip .erphpdown-vip::before {
    content: '认证宗亲';
    visibility: visible !important; /* 确保新文字可见 */
    font-size: 14px !important;     /* 恢复按钮文字大小 */
    display: inline-block;
}
.wpft-donation-summary{display: none !important;}