
/* =========================================================
   最終覆蓋版：按鈕文字縮小、操作頁內文放大
   請貼在 style.css 最下方
   目標：
   1. 按鈕文字縮小 1 倍
   2. 各網頁操作區內文文字放大 1 倍
   3. 不影響 A4 成績單本體與 PDF 版面
   ========================================================= */

/* ---------- 首頁：內文文字放大 1 倍 ---------- */

body.home-page .home-navbar-title {
    font-size: 2.8rem !important;
    font-weight: 700 !important;
}

body.home-page .home-main-title {
    font-size: 4.2rem !important;
    line-height: 1.25 !important;
}

body.home-page .home-description {
    font-size: 2.2rem !important;
    line-height: 1.55 !important;
}

body.home-page .home-card-title {
    font-size: 3.1rem !important;
    line-height: 1.25 !important;
}

body.home-page .home-card-description {
    font-size: 2.1rem !important;
    line-height: 1.55 !important;
}

body.home-page .home-list {
    font-size: 2rem !important;
    line-height: 1.6 !important;
}

body.home-page .home-other-title {
    font-size: 2.2rem !important;
}

/* ---------- 一般操作頁：內文文字放大 1 倍 ---------- */

body:not(.home-page) {
    font-size: 1.75rem !important;
}

body:not(.home-page) .navbar:not(.no-print) .navbar-brand {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
}

body:not(.home-page) main.container,
body:not(.home-page) main.container p,
body:not(.home-page) main.container li,
body:not(.home-page) main.container label,
body:not(.home-page) main.container .text-muted,
body:not(.home-page) main.container .form-text,
body:not(.home-page) main.container .alert,
body:not(.home-page) main.container .card-body,
body:not(.home-page) main.container .list-group-item {
    font-size: 1.75rem !important;
    line-height: 1.55 !important;
}

body:not(.home-page) main.container h1:not(.report-sheet h1) {
    font-size: 3rem !important;
    line-height: 1.25 !important;
}

body:not(.home-page) main.container h2:not(.report-sheet h2) {
    font-size: 2.5rem !important;
    line-height: 1.25 !important;
}

body:not(.home-page) main.container h3:not(.report-sheet h3),
body:not(.home-page) main.container .h4,
body:not(.home-page) main.container .h5,
body:not(.home-page) main.container .h6 {
    font-size: 2.05rem !important;
    line-height: 1.3 !important;
}

body:not(.home-page) .form-label {
    font-size: 1.85rem !important;
    font-weight: 600 !important;
}

body:not(.home-page) .form-control,
body:not(.home-page) .form-select {
    font-size: 1.75rem !important;
    padding: 0.75rem 1rem !important;
}

body:not(.home-page) main.container table:not(.report-sheet table) {
    font-size: 1.65rem !important;
}

body:not(.home-page) main.container table:not(.report-sheet table) th,
body:not(.home-page) main.container table:not(.report-sheet table) td {
    padding: 0.75rem 0.95rem !important;
    line-height: 1.45 !important;
}

/* ---------- 預覽頁上方操作區：內文文字放大 1 倍 ---------- */

.no-print h1 {
    font-size: 2.8rem !important;
    line-height: 1.25 !important;
}

.no-print .text-muted,
.no-print .form-label,
.no-print .form-text {
    font-size: 1.7rem !important;
    line-height: 1.45 !important;
}

.no-print .form-select {
    font-size: 1.7rem !important;
}

/* ---------- 按鈕文字縮小 1 倍 ---------- */

body.home-page .home-main-button {
    font-size: 1.45rem !important;
    padding: 0.7rem 1.15rem !important;
    border-radius: 0.55rem !important;
    line-height: 1.2 !important;
}

body.home-page .home-small-button {
    font-size: 1.25rem !important;
    padding: 0.55rem 0.9rem !important;
    border-radius: 0.5rem !important;
    line-height: 1.2 !important;
}

body:not(.home-page) .btn:not(.report-sheet .btn) {
    font-size: 1.25rem !important;
    padding: 0.55rem 0.95rem !important;
    border-radius: 0.5rem !important;
    line-height: 1.25 !important;
}

body:not(.home-page) .btn-sm:not(.report-sheet .btn-sm) {
    font-size: 1.1rem !important;
    padding: 0.45rem 0.75rem !important;
    border-radius: 0.45rem !important;
    line-height: 1.25 !important;
}

.no-print .btn {
    font-size: 1.2rem !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.5rem !important;
    line-height: 1.2 !important;
}

/* ---------- 明確排除 A4 成績單本體，避免 PDF 跑版 ---------- */

.report-sheet,
.report-sheet *,
.report-sheet table,
.report-sheet th,
.report-sheet td,
.report-sheet h1,
.report-sheet h2,
.report-sheet h3,
.report-sheet p,
.report-sheet div,
.report-sheet span {
    /* 保留既有成績單版型設定 */
}
