/* ===== 梵朴堂开运网 全局字体调节 ===== */
/* 三档：标准14px / 大16px / 超大18px */

/* 大字号模式：16px */
html.fp-font-large body,
html.fp-font-large p,
html.fp-font-large span,
html.fp-font-large div,
html.fp-font-large td,
html.fp-font-large th,
html.fp-font-large li,
html.fp-font-large a,
html.fp-font-large label,
html.fp-font-large input,
html.fp-font-large textarea,
html.fp-font-large select,
html.fp-font-large button,
html.fp-font-large h1,
html.fp-font-large h2,
html.fp-font-large h3,
html.fp-font-large h4,
html.fp-font-large h5,
html.fp-font-large h6 {
    font-size: 16px !important;
    line-height: 1.8 !important;
}
html.fp-font-large h1 { font-size: 24px !important; }
html.fp-font-large h2 { font-size: 22px !important; }
html.fp-font-large h3 { font-size: 20px !important; }
html.fp-font-large h4 { font-size: 18px !important; }
html.fp-font-large h5 { font-size: 17px !important; }
html.fp-font-large h6 { font-size: 16px !important; }
/* 研习券/数据卡片数字：随字体放大（标准约24px，大28px，超大32px） */
html.fp-font-large .uc-stat-num,
html.fp-font-large .uc-points-num,
html.fp-font-large .stat-num,
html.fp-font-large .points-num,
html.fp-font-large .points-card .points-num {
    font-size: 28px !important;
}
/* VIP页面促销标签字体放大后，卡片顶部padding加大避免压字 */
html.fp-font-large .plan-card:has(.badge) {
    padding-top: 30px !important;
}
/* AI悬浮按钮字体放大后文字缩小到11px，避免64px按钮内文字溢出变形 */
html.fp-font-large .side-tool span:last-child {
    font-size: 11px !important;
    display: block !important;
    line-height: 1.1 !important;
}
html.fp-font-large .side-tool {
    gap: 2px !important;
}
/* 页脚随字体放大（仅PC端，移动端不动避免影响阅读） */
@media (min-width: 768px) {
    html.fp-font-large .foot-info,
    html.fp-font-large .foot-info * {
        font-size: 13px !important;
    }
}
/* 底部导航随字体放大 */
html.fp-font-large .foot-nav .nav-text {
    font-size: 14px !important;
}
html.fp-font-large .foot-nav .nav-icon {
    font-size: 22px !important;
}
/* 表格行高增加 */
html.fp-font-large table tr {
    height: 32px !important;
}

/* 超大字号模式：18px */
html.fp-font-xlarge body,
html.fp-font-xlarge p,
html.fp-font-xlarge span,
html.fp-font-xlarge div,
html.fp-font-xlarge td,
html.fp-font-xlarge th,
html.fp-font-xlarge li,
html.fp-font-xlarge a,
html.fp-font-xlarge label,
html.fp-font-xlarge input,
html.fp-font-xlarge textarea,
html.fp-font-xlarge select,
html.fp-font-xlarge button,
html.fp-font-xlarge h1,
html.fp-font-xlarge h2,
html.fp-font-xlarge h3,
html.fp-font-xlarge h4,
html.fp-font-xlarge h5,
html.fp-font-xlarge h6 {
    font-size: 18px !important;
    line-height: 1.9 !important;
}
html.fp-font-xlarge h1 { font-size: 28px !important; }
html.fp-font-xlarge h2 { font-size: 26px !important; }
html.fp-font-xlarge h3 { font-size: 24px !important; }
html.fp-font-xlarge h4 { font-size: 22px !important; }
html.fp-font-xlarge h5 { font-size: 20px !important; }
html.fp-font-xlarge h6 { font-size: 19px !important; }
/* 研习券/数据卡片数字：随字体放大 */
html.fp-font-xlarge .uc-stat-num,
html.fp-font-xlarge .uc-points-num,
html.fp-font-xlarge .stat-num,
html.fp-font-xlarge .points-num,
html.fp-font-xlarge .points-card .points-num {
    font-size: 32px !important;
}
/* VIP页面促销标签字体放大后，卡片顶部padding加大避免压字 */
html.fp-font-xlarge .plan-card:has(.badge) {
    padding-top: 34px !important;
}
/* AI悬浮按钮字体放大后文字缩小到10px，避免64px按钮内文字溢出变形 */
html.fp-font-xlarge .side-tool span:last-child {
    font-size: 10px !important;
    display: block !important;
    line-height: 1.1 !important;
}
html.fp-font-xlarge .side-tool {
    gap: 2px !important;
}
/* 页脚随字体放大（仅PC端，移动端不动避免影响阅读） */
@media (min-width: 768px) {
    html.fp-font-xlarge .foot-info,
    html.fp-font-xlarge .foot-info * {
        font-size: 14px !important;
    }
}
/* 底部导航随字体放大 */
html.fp-font-xlarge .foot-nav .nav-text {
    font-size: 15px !important;
}
html.fp-font-xlarge .foot-nav .nav-icon {
    font-size: 24px !important;
}
/* 表格行高增加 */
html.fp-font-xlarge table tr {
    height: 38px !important;
}

/* 字体调节按钮样式 */
.fp-font-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 3px;
}
.fp-font-switcher .fp-font-btn {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    color: rgba(245, 230, 200, 0.7);
    transition: all 0.2s;
    border: none;
    background: transparent;
    font-family: inherit;
    line-height: 1.4;
}
.fp-font-switcher .fp-font-btn:hover {
    color: #F5E6C8;
}
.fp-font-switcher .fp-font-btn.active {
    background: #C9A96E;
    color: #2d2d44;
    font-weight: 600;
}
/* 浅色背景下的字体调节按钮（用户中心等） */
.fp-font-switcher.light {
    background: #f0ece4;
}
.fp-font-switcher.light .fp-font-btn {
    color: #999;
}
.fp-font-switcher.light .fp-font-btn:hover {
    color: #3d4452;
}
.fp-font-switcher.light .fp-font-btn.active {
    background: #3d4452;
    color: #F5E6C8;
}


/* 移动端隐藏头部字体调节（移动端首页不放） */
@media (max-width: 768px) {
    .site-header .fp-font-switcher {
        display: none !important;
    }
}
