/*
 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%;
}