.visually-hidden { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
/* =========================================== */
/*              宫格按钮部分                    */
/* =========================================== */
.hymn-click {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 4.5rem;
    grid-auto-rows: 4.5rem;
    gap: 0.2rem;
    width: 90%;
    max-width:400px;
    -webkit-text-size-adjust: 100% !important;margin:0 auto;
}

.hymn-click a, div[data-display] {
    background-color: var(--theme-bg-secondary);/*EFEDDE  background-color: #D3D8B8;*/
    font-weight: bold;
    font-size: 2rem;
    text-decoration: none;
}

.hymn-click a {
    display: grid;
    align-items: center;
    justify-content: center;
}

a.hidden {
    display: none;
}

.hymn-click div[data-display] {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid gray;
    color: #000000;
}

a[data-select] {
    grid-column: 1/-1;
    background-color: #338833;
    color: #ffffff;
    letter-spacing: 1rem;
    font-size: 4.5rem;
}

a[data-number] {
    font-size: 3.5rem;
}

a[data-book] ,a[data-correct], 
a[data-clear],a[data-submit]{
    font-size: 2rem;
}

#data-display {
    grid-column: span 2;
    background-color: #FFFFFF;
    border: 1px solid gray;
    border-radius: 4px;
    font-weight: bold;
    font-size: 2rem;
    text-decoration: none;
    
    /* 依然使用 Flex 布局来保证绝对的垂直居中 */
    display: flex;
    align-items: center; 
    
    /* 👇 核心修改：改为靠左对齐 👇 */
    justify-content: flex-start; 
    
    /* 👇 左侧留出一点空白，视觉上更舒服 👇 */
    padding-left: 15px; 
}

a[data-correct] { 
    grid-column: span 2;
}
a[data-search] { /* a[data-clear]*/
    color: #b8860b;
}

a[data-submit] {
    /*grid-column: span 3;
     grid-row: span 2;*/
}

a[data-zero] {
    /*grid-column: span 3;*/
}

#chosen-book, 
#chosen-number, 
#chosen-type {
    font-size: 2rem;
    color: #000000 !important; /* 👈 顺手加上，确保显示框的数字也是纯黑 */
}
#chosen-book {
    display: none; /* 隐藏显示框内的文字，因为高亮的按钮已经能提示当前类别 */
}

.hymn-click a:not(:first-child):hover {
    background-color: var(--theme-bg-thirdly);
}

a.disabled {
    color: grey !important; /* 👈 增加 !important 强制突破 style.php 的全局覆盖 */
    pointer-events: none;
    cursor: default;
    opacity: 0.5; /* 👈 强烈建议加上透明度！这样无论在哪种主题模式下，禁用的视觉反馈都会非常清晰且柔和 */
}

/* 加上背景反白效果 */
a[data-book].activate, 
a[data-search].activate {
    border: 1px solid darkgreen;
    background-color: #ffffff !important; 
    color: #000000 !important; /* 👈 增加 !important，突破暗黑模式的强制变灰 */
}

a[data-book].activate, 
a[data-search].activate {
    border: 1px solid darkgreen;
    /*background-color: #6acd9c;*/
    /*color: white;*/
}
/* =========================================== */
    /* 响应式兼容：针对较窄屏幕的安卓手机        */
    /* =========================================== */
    
    /* 当屏幕宽度小于 414px 时（绝大多数标准版安卓机、iPhone 12/13/14 等） */
    @media (max-width: 414px) {
        .hymn-click {
            grid-template-rows: 3.8rem;
            grid-auto-rows: 3.8rem;
            width: 98%; /* 窄屏上稍微多利用一点边缘空间 */
        }
        a[data-number] { font-size: 2.8rem !important; }
        a[data-book], a[data-correct], a[data-clear], a[data-submit] { font-size: 1.7rem !important; }
        #data-display { font-size: 2.5rem !important; }
        #chosen-book, #chosen-number, #chosen-type { font-size: 1.5rem !important; }
    }

    /* 当屏幕宽度小于 365px 时（小屏手机，如 iPhone SE、小号安卓） */
    @media (max-width: 365px) {
        .hymn-click {
            grid-template-rows: 3.3rem;
            grid-auto-rows: 3.3rem;
            width: 98%; 
            gap: 0.15rem;
        }
        a[data-number] { font-size: 2.4rem !important; }
        a[data-book], a[data-correct], a[data-clear], a[data-submit] { font-size: 1.7rem !important; }
        #data-display { font-size: 2.5rem !important; }
        #chosen-book, #chosen-number, #chosen-type { font-size: 1.5rem !important; }
    }
	.uu {COLOR:#F6F6F6;font-size:1.6em;}

/* 顶部功能按钮的响应式网格布局 */
.top-action-btns {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 默认电脑端显示 4 列 */
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}
.top-action-btns .button {
    margin: 0;
    width: 100%;
    padding: 8px 0;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap; /* 强制文字不换行 */
}
/* 手机端适配 */
@media (max-width: 600px) {
    .top-action-btns {
        grid-template-columns: repeat(4, 1fr); /* 🌟 核心：手机端自动变成 2行2列 */
        gap: 8px;
    }
    .top-action-btns .button {
        font-size: 1rem; /* 稍微缩小一点字号，显得更精致 */
        padding: 10px 0; /* 增加一点上下点击区域 */
    }
}

.hymnscontent { font-size: 22px; line-height: 1.8; }
.conl { text-align: left; }
