/* 全站自訂樣式 - 保留原視覺，集中管理 */
.multiline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.5;
    max-height: 4.8em;
    overflow: hidden;
}
.multiline-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
}
.multiline-5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-height: 1.5;
    max-height: 7.5em;
    overflow: hidden;
}
.page-content img { max-width: 100%; height: auto; }
.frontend-banner img { width: 100%; }
.history-banner {
    background-image: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,1), rgba(255,255,255,1));
    z-index: 1;
    position: relative;
    padding-top: 150px;
    margin-bottom: -60px;
}
.book-frame-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.book-frame-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ===== 報名表單（響應式、跨瀏覽器） ===== */
.signup-page,
.parent {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 0 12px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

.signup-wrap {
    width: 100%;
    max-width: 700px;
    background: #fff;
    padding: 24px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.signup-wrap--narrow {
    max-width: 520px;
}

.signup-wrap--wide {
    max-width: 1200px;
}

.sing {
    margin: 0 0 14px;
    font-family: "微軟正黑體", "Microsoft JhengHei", "PingFang TC", sans-serif;
    font-size: 16px;
    color: #222;
    line-height: 1.6;
    word-break: break-word;
}

.signup-title-main {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

.signup-subtitle {
    font-weight: bold;
    font-size: 20px;
    color: #02542b;
}

.signup-subtitle--digital {
    color: #1103ab;
}

.signup-closed-notice {
    text-align: center;
    font-weight: bold;
    font-size: 1.35rem;
    line-height: 1.8;
    color: chocolate;
}

.signup-field {
    margin-bottom: 14px;
}

.signup-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.signup-field .form-control,
.signup-field select.form-control,
.signup-field textarea.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.signup-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.signup-field-inline {
    flex: 1 1 160px;
    min-width: 0;
}

.signup-field-inline label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.msg-ok {
    background: #e8fff0;
    color: #137333;
    padding: 12px;
    border: 1px solid #b7e1c1;
    border-radius: 6px;
    margin-bottom: 15px;
}

.msg-err {
    background: #fff3f3;
    color: #c62828;
    padding: 12px;
    border: 1px solid #f1b5b5;
    border-radius: 6px;
    margin-bottom: 15px;
}

.preview-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.preview-box {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
    line-height: 1.9;
    border-radius: 6px;
}

.label-space {
    margin-left: 16px;
}

.note {
    font-size: 14px;
    line-height: 1.7;
}

.btn-wrap {
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn-main,
.btn-edit {
    min-width: 140px;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 17px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.btn-main {
    background: #0033ff;
}

.btn-edit {
    background: #6c757d;
}

.btn-main:hover,
.btn-edit:hover {
    opacity: 0.9;
}

.signup-upload-form input[type="file"] {
    max-width: 100%;
    margin-bottom: 12px;
}

.signup-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.signup-table-wrap table {
    min-width: 900px;
}

.signup-table-wrap input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.signup-card {
    margin: 3px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 12px;
    border-radius: 4px;
}

.signup-card-col {
    padding: 12px;
}

.signup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px 12px;
}

.signup-actions button {
    min-width: 150px;
    min-height: 44px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

#JustPrint {
    display: none;
}

@media print {
    #JustPrint {
        display: block;
        font: 9pt verdana, sans-serif;
        letter-spacing: 5px;
    }
    #NoPrint {
        display: none !important;
    }
    body {
        padding-top: 0 !important;
        background: #fff !important;
    }
    .signup-wrap {
        box-shadow: none;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .signup-wrap {
        padding: 16px 12px;
    }

    .signup-title-main {
        font-size: 19px;
    }

    .signup-subtitle,
    .signup-closed-notice {
        font-size: 17px;
    }

    .label-space {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .signup-field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-main,
    .btn-edit {
        width: 100%;
    }

    .signup-field .form-control.d-inline-block {
        display: block !important;
        width: 100% !important;
    }
}
