/* 門診預約頁 */
.appoint-page-section {
    padding: 60px 0 60px;
    background: linear-gradient(180deg, #fff 0%, var(--tcm-cream) 100%);
}

.appoint-page-section .row-box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    counter-reset: appoint;
}

.appoint-page-section .box-item {
    border: 1px solid var(--tcm-border);
    padding: 32px 28px;
    text-align: left;
    background: #fff;
    position: relative;
    padding-left: 90px;
    transition: var(--transition);
}

.appoint-page-section .box-item::before {
    counter-increment: appoint;
    content: counter(appoint);
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-gold-light);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-family: var(--family-font);
    font-size: 20px;
    color: var(--primary-color);
}

.appoint-page-section .box-item:hover {
    box-shadow: var(--tcm-shadow);
    border-color: rgba(179, 32, 44, 0.2);
}

.appoint-page-section .box-item h3 {
    font-size: 22px;
    font-family: var(--family-font);
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--tcm-ink);
}

.appoint-page-section .box-item p {
    font-size: 15px;
    font-weight: 400;
    color: rgba(44, 36, 22, 0.75);
    line-height: 1.7;
}

.appoint-page-section .appoint-form-box {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
    margin-top: 32px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    padding: 32px;
    box-shadow: var(--tcm-shadow);
}

.appoint-page-section .calendar-box {
    border: 1px solid var(--tcm-cream);
    padding: 24px;
    background: var(--tcm-paper);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.appoint-page-section .calendar-header {
    text-align: center;
    margin-bottom: 12px;
}

.appoint-page-section .calendar-body {
    position: relative;
    min-height: 400px;
}

.appoint-page-section .calendar-panel {
    width: 100%;
}

.appoint-page-section .calendar-panel:not(.is-active) {
    display: none;
}

.appoint-page-section .calendar-label {
    display: block;
    font-size: 14px;
    color: rgba(44, 36, 22, 0.55);
    margin-bottom: 4px;
}

.appoint-page-section .calendar-selected {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: rgba(44, 36, 22, 0.4);
    font-family: var(--family-font);
}

.appoint-page-section .calendar-selected.has-value {
    color: var(--primary-color);
}

.appoint-page-section .calendar-note {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(44, 36, 22, 0.55);
    text-align: center;
    line-height: 1.6;
}

.appoint-page-section #appoint-calendar .layui-laydate {
    box-shadow: none;
    border: none;
    width: 100%;
}

.appoint-page-section #appoint-calendar .layui-laydate-static {
    width: 100%;
}

.appoint-page-section #appoint-calendar .layui-laydate-header {
    border-bottom: 1px solid var(--tcm-border);
}

.appoint-page-section #appoint-calendar .layui-laydate-content td.layui-this {
    background-color: var(--primary-color) !important;
}

.appoint-page-section #appoint-calendar .layui-laydate-content td:hover {
    background-color: var(--tcm-red-light);
}

.appoint-page-section .time-picker {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.appoint-page-section .time-picker-back {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.appoint-page-section .time-picker-back span {
    font-size: 18px;
    line-height: 19px;
}

.appoint-page-section .time-picker-back:hover {
    opacity: 0.75;
}

.appoint-page-section .period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.appoint-page-section .period-tab {
    flex: 1;
    height: 40px;
    border: 1px solid var(--tcm-border);
    background: #fff;
    color: var(--tcm-ink);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appoint-page-section .period-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.appoint-page-section .period-tab.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.appoint-page-section #appoint-time-slots .time-slots {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.appoint-page-section #appoint-time-slots .time-slots.is-active {
    display: grid;
}

.appoint-page-section .time-slot {
    height: 40px;
    border: 1px solid var(--tcm-border);
    background: #fff;
    color: var(--tcm-ink);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appoint-page-section .time-slot:hover:not(.is-disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--tcm-red-light);
}

.appoint-page-section .time-slot.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.appoint-page-section .time-slot.is-disabled {
    color: rgba(44, 36, 22, 0.25);
    background: rgba(44, 36, 22, 0.04);
    cursor: not-allowed;
}

.appoint-page-section .layui-laydate-content td>div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.appoint-page-section .layui-laydate-content td>div:hover,
.appoint-page-section .layui-laydate-list li:hover,
.appoint-page-section .layui-laydate-shortcut>li:hover {
    background-color: var(--tcm-red-light);
}

.appoint-page-section .laydate-theme-molv .layui-laydate-main {
    width: 100%;
}

.appoint-page-section .layui-laydate-content table {
    width: 100%;
    height: 400px;
}

.appoint-page-section .layui-laydate-content td,
.appoint-page-section .layui-laydate-content th {
    height: 45px;
}

.appoint-page-section .form-box {
    border-left: 1px solid rgba(179, 32, 44, 0.3);
    padding-left: 32px;
}

.appoint-page-section .layui-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    row-gap: 30px;
}

.appoint-page-section .form-item-full {
    grid-column: 1 / -1;
}

.appoint-page-section .layui-form-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.appoint-page-section .layui-input-block {
    margin-left: 0;
}

.appoint-page-section .layui-form-label {
    width: auto;
    text-align: left;
    padding: 10px 0;
    font-size: 16px;
}

.appoint-page-section .layui-form-label span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 400;
    margin-left: 5px;
}

.appoint-page-section .layui-input,
.appoint-page-section .layui-select,
.appoint-page-section .layui-textarea {
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    padding-left: 15px;
}

.appoint-page-section .layui-textarea {
    padding-top: 15px;
    height: 55px;
    line-height: 1.6;
}

.appoint-page-section .symptom-textarea {
    min-height: 120px;
    height: 120px;
}

.appoint-page-section .layui-form-message {
    margin-top: 30px;
}

.appoint-page-section .layui-input:focus,
.appoint-page-section .layui-textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 4px 0 rgba(179, 32, 44, 0.1) !important;
}

.appoint-page-section .appoint-form-btn {
    margin-top: 50px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.appoint-page-section .appoint-form-btn .layui-btn {
    height: 45px;
    line-height: normal;
    padding: 0 32px;
    border-radius: 0;
    min-width: 160px;
}

.appoint-page-section .appoint-form-btn .layui-btn:hover {
    opacity: 1;
}

.appoint-page-section .appoint-reset-btn {
    background: #fff;
    color: rgba(44, 36, 22, 0.65);
    border: 1px solid var(--tcm-border);
}

.appoint-page-section .appoint-reset-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.appoint-page-section .layui-form-select dl {
    top: 48px;
    height: fit-content;
}

.appoint-page-section .layui-form-select dl dd.layui-this {
    color: var(--primary-color);
    background-color: rgba(179, 32, 44, 0.05);
}

.appoint-page-section .layui-form-radio>i:hover,
.appoint-page-section .layui-form-radioed>i {
    color: var(--primary-color);
}

.appoint-page-section .layui-form-radioed>div {
    color: var(--primary-color);
}

.appoint-page-section .referral-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    padding-top: 4px;
}

.appoint-page-section .referral-item .layui-form-radio {
    margin: 0;
}

.appoint-page-section .upload-field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    border: 1px solid var(--tcm-border);
    background: #fff;
    padding: 0 12px;
    transition: border-color 0.2s ease;
}

.appoint-page-section .upload-field:hover {
    border-color: rgba(179, 32, 44, 0.35);
}

.appoint-page-section .upload-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--tcm-border);
    background: var(--tcm-paper);
    color: var(--tcm-ink);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.appoint-page-section .upload-trigger svg {
    width: 19px;
    height: 19px;
    color: var(--tcm-ink);
}

.appoint-page-section .upload-trigger:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.appoint-page-section .upload-trigger:hover svg path {
    fill: var(--primary-color);
}

.appoint-page-section .upload-hint {
    font-size: 14px;
    color: rgba(44, 36, 22, 0.45);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appoint-page-section .upload-hint.has-file {
    color: var(--tcm-ink);
}

.layui-form-radio:hover>*,
.layui-form-radioed,
.layui-form-radioed>i {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .appoint-page-section {
        padding: 30px 0 30px;
    }

    .appoint-page-section .row-box,
    .appoint-page-section .appoint-form-box {
        grid-template-columns: 1fr;
    }

    .appoint-page-section .form-box {
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
        padding-top: 24px;
    }

    .appoint-page-section .referral-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .appoint-page-section .box-item {
        padding: 24px 20px 24px 72px;
    }

    .appoint-page-section .box-item::before {
        left: 16px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .appoint-page-section .appoint-form-box {
        padding: 20px;
    }

    .appoint-page-section .layui-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
        row-gap: 10px;
    }

    .appoint-page-section .layui-form-select dl {
        top: auto;
    }

    .appoint-page-section .layui-form-message {
        margin-top: 10px;
    }

    .appoint-page-section .appoint-form-btn {
        margin-top: 30px;
    }

    .appoint-page-section .appoint-form-btn .layui-btn {
        flex: 1;
        min-width: 0;
    }

    .appoint-page-section .upload-field {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 12px;
        gap: 10px;
    }
}

/* 門診預約內頁 — 服務詳情 */
.op-detail-title {
    font-family: var(--family-font);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 500;
    color: var(--tcm-ink);
    line-height: 1.35;
    margin-bottom: 20px;
}

/* 服務簡介 */
.op-detail-intro-section {
    padding: 80px 0 60px;
    background: #fff;
}

.op-detail-intro {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.op-detail-intro-content {
    .op-detail-card {
        color: rgba(44, 36, 22, 0.75);
        padding-left: 16px;
        border-left: 3px solid var(--tcm-gold-light);

        .op-detail-intro-subtitle {
            font-family: var(--family-font);
            color: var(--tcm-ink);
            font-size: 22px;
            font-weight: 500;
            margin-bottom: 4px;
        }
    }
}

.op-detail-intro-content .section-eyebrow {
    margin-bottom: 12px;
}

.op-detail-intro-content p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(44, 36, 22, 0.78);
    margin-bottom: 16px;
}

.op-detail-intro-content p:last-of-type {
    margin-bottom: 28px;
}

.op-detail-intro-content ul h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}


.op-detail-intro-visual {
    position: relative;
    border: 1px solid var(--tcm-border);
    padding: 12px;
    background: var(--tcm-paper);
}

.op-detail-intro-visual::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 30%;
    height: 30%;
    border: 2px solid var(--primary-color);
    opacity: 0.25;
    pointer-events: none;
    border-left: none;
    border-bottom: none;
}

.op-detail-intro-visual img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

/* 服務亮點 */
.op-detail-highlights-section {
    padding: 60px 0;
    background: var(--tcm-cream);
}

.op-detail-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.op-detail-highlight {
    display: flex;
    gap: 16px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    transition: var(--transition);
}

.op-detail-highlight:hover {
    box-shadow: var(--tcm-shadow);
    border-color: rgba(179, 32, 44, 0.2);
}

.op-detail-highlight-num {
    flex-shrink: 0;
    font-family: var(--family-font);
    font-size: 28px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1;
    opacity: 0.35;
}

.op-detail-highlight-body h3 {
    font-family: var(--family-font);
    font-size: 18px;
    font-weight: 500;
    color: var(--tcm-ink);
    margin-bottom: 8px;
}

.op-detail-highlight-body p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(44, 36, 22, 0.72);
}

/* 診療流程 */
.op-detail-process-section {
    padding: 60px 0;
    background: var(--tcm-cream);
}

.op-detail-process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 48px;
}

.op-detail-step {
    position: relative;
    padding: 32px 20px 28px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    text-align: left;
    transition: var(--transition);
}

.op-detail-step:hover {
    border-color: rgba(179, 32, 44, 0.28);
    box-shadow: var(--tcm-shadow);
}

.op-detail-step-num {
    position: absolute;
    top: -1px;
    left: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--family-font);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    box-shadow: 4px 4px 0 rgba(179, 32, 44, 0.12);
}

.op-detail-step-num::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.op-detail-step-body {
    padding-top: 18px;
}

.op-detail-step-body h3 {
    font-family: var(--family-font);
    font-size: 22px;
    font-weight: 500;
    color: var(--tcm-ink);
    margin-bottom: 8px;
}

.op-detail-step-body p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(44, 36, 22, 0.7);
    margin: 0;
}

/* 適用範圍 */
.op-detail-scope-section {
    padding: 72px 0;
    background: linear-gradient(180deg, var(--tcm-cream) 0%, #fff 100%);
}

.op-detail-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.op-detail-scope-item {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.op-detail-scope-item:hover {
    box-shadow: var(--tcm-shadow);
}

.op-detail-scope-item h3 {
    font-family: var(--family-font);
    font-size: 18px;
    font-weight: 500;
    color: var(--tcm-ink);
    margin-bottom: 8px;
}

.op-detail-scope-item p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(44, 36, 22, 0.72);
}

.op-detail-scope-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    justify-content: center;
}

.op-detail-scope-tags span {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    color: var(--tcm-ink);
    background: #fff;
    border: 1px solid var(--tcm-border);
    transition: var(--transition);
}

.op-detail-scope-tags span:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--tcm-red-light);
}

/* 就診須知 */
.op-detail-notice-section {
    padding: 30px 0 60px 0;
    background: #fff;
}

.op-detail-notice-box {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 48px;
    background: var(--tcm-cream);
    border: 1px solid var(--tcm-border);
}

.op-detail-notice-head {
    margin-bottom: 24px;
}

.op-detail-notice-head .section-eyebrow {
    margin-bottom: 8px;
}

.op-detail-notice-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.op-detail-notice-box ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(44, 36, 22, 0.8);
}

.op-detail-notice-box ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    transform: rotate(45deg);
}

.op-detail-notice-box ul li a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.op-detail-notice-box ul li a:hover {
    opacity: 0.8;
}

/* 診症時間 */
.op-detail-hours-section {
    padding: 60px 0;
}

.op-detail-hours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.op-detail-hours-card {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    text-align: center;
    transition: var(--transition);
}

.op-detail-hours-card:hover {
    box-shadow: var(--tcm-shadow);
    border-color: rgba(179, 32, 44, 0.2);
}

.op-detail-hours-card h3 {
    font-family: var(--family-font);
    font-size: 17px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.op-detail-hours-card>p:first-of-type {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--tcm-ink);
    margin-bottom: 8px;
}

.op-detail-hours-card>p:last-of-type {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(44, 36, 22, 0.55);
}

.op-detail-hours-card>p>a {
    color: var(--primary-color);
    font-weight: 500;
}

/* FAQ 區塊微調 */
.op-detail-faq-section {
    padding: 60px 0;
}

.op-detail-faq-section .faq-content {
    margin-top: 32px;
}

/* 相關服務 */
.op-detail-related-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #fff 0%, var(--tcm-cream) 100%);
}

.op-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.op-detail-related-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tcm-border);
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.op-detail-related-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--tcm-shadow);
    transform: translateY(-2px);
}

.op-detail-related-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tcm-paper);
}

.op-detail-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.op-detail-related-card:hover .op-detail-related-img img {
    transform: scale(1.05);
}

.op-detail-related-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
    background: #fff;
}

.op-detail-related-body h3 {
    font-family: var(--family-font);
    font-size: 22px;
    font-weight: 500;
    color: var(--tcm-ink);
    margin-bottom: 8px;
}

.op-detail-related-body p {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(44, 36, 22, 0.72);
    margin-bottom: 16px;
}

.op-detail-related-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

@media (max-width: 1199px) {
    .op-detail-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .op-detail-process {
        grid-template-columns: repeat(3, 1fr);
    }

    .op-detail-hours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .op-detail-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .op-detail-intro-visual img {
        height: 200px;
    }

    .op-detail-process {
        grid-template-columns: repeat(2, 1fr);
    }

    .op-detail-scope-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .op-detail-related-grid {
        grid-template-columns: 1fr;
    }

    .op-detail-process {
        margin-top: 30px;
    }

    .op-detail-hours-grid {
        margin-top: 30px;
    }

    .op-detail-notice-box .secondary-btn {
        width: 100%;
    }

    .appoint-page-section .layui-laydate-content table {
        height: 300px;
    }

    .appoint-page-section .appoint-form-box {
        padding: 15px;
    }

    .appoint-page-section .calendar-box {
        padding: 15px;
        min-height: 200px;
    }

    .appoint-page-section .layui-laydate-content td,
    .appoint-page-section .layui-laydate-content th {
        height: 25px;
    }

    .appoint-page-section .calendar-body {
        min-height: auto;
    }

    .appoint-page-section .appoint-form-box {
        gap: 25px;
    }

    .appoint-page-section .form-box {
        padding-top: 15px;
    }

    .layui-form-radio>i {
        font-size: 17px;
        padding-top: 2px;
    }

    .op-detail-faq-section {
        padding: 30px 0;
    }

    .appoint-page-section .time-picker {
        min-height: unset;
    }

    .layui-form-item .layui-form-label {
        white-space: wrap;
    }

    .layui-form-checkbox>div {
        white-space: wrap;
    }
}

@media (max-width: 767px) {

    .op-detail-intro-section,
    .op-detail-highlights-section,
    .op-detail-process-section,
    .op-detail-scope-section,
    .op-detail-notice-section,
    .op-detail-hours-section,
    .op-detail-related-section {
        padding: 30px 0 0 0;
    }

    .op-detail-highlights {
        grid-template-columns: 1fr;
    }

    .op-detail-process {
        grid-template-columns: 1fr;
    }

    .op-detail-scope-grid {
        grid-template-columns: 1fr;
    }

    .op-detail-hours-grid {
        grid-template-columns: 1fr;
    }

    .op-detail-notice-box {
        padding: 28px 24px;
    }

    .op-detail-title {
        font-size: 26px;
    }

    /* 相關服務：移動端橫向滾動卡片 */
    .op-detail-related-grid {
        display: flex;
        gap: 14px;
        margin-top: 24px;
        margin-right: -15px;
        padding: 0 15px 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .op-detail-related-grid::-webkit-scrollbar {
        display: none;
    }

    .op-detail-related-card {
        flex: 0 0 min(350px, calc(100vw - 60px));
        scroll-snap-align: start;
        -webkit-tap-highlight-color: transparent;
    }

    .op-detail-related-card:hover {
        transform: none;
    }

    .op-detail-related-body {
        padding: 16px 18px 20px;
    }

    .op-detail-related-body h3 {
        font-size: 18px;
    }
}