@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700&display=swap');
/*######### [Default Css] #########*/
    /*====== [Root Css] ======*/
        :root {
            --color-gray-50: oklch(98.5% 0.002 247.839);
            --color-gray-100: oklch(96.7% 0.003 264.542);
            --color-gray-200: oklch(92.8% 0.006 264.531);
            --color-gray-300: oklch(87.2% 0.01 258.338);
            --color-gray-400: oklch(70.7% 0.022 261.325);
            --color-gray-500: oklch(55.1% 0.027 264.364);
            --color-gray-600: oklch(44.6% 0.03 256.802);
            --color-gray-700: oklch(37.3% 0.034 259.733);
            --color-gray-800: oklch(27.8% 0.033 256.848);
            --color-gray-900: oklch(21% 0.034 264.665);

            --color-red-50: oklch(97.1% 0.013 17.38);
            --color-red-100: oklch(93.6% 0.032 17.717);
            --color-red-200: oklch(88.5% 0.062 18.334);
            --color-red-300: oklch(80.8% 0.114 19.571);
            --color-red-400: oklch(70.4% 0.191 22.216);
            --color-red-500: oklch(63.7% 0.237 25.331);
            --color-red-600: oklch(57.7% 0.245 27.325);
            --color-red-700: oklch(50.5% 0.213 27.518);
            --color-red-800: oklch(44.4% 0.177 26.899);
            --color-red-900: oklch(39.6% 0.141 25.723);

            --color-green-50: oklch(98.2% 0.018 155.826);
            --color-green-100: oklch(96.2% 0.044 156.743);
            --color-green-200: oklch(92.5% 0.084 155.995);
            --color-green-300: oklch(87.1% 0.15 154.449);
            --color-green-400: oklch(79.2% 0.209 151.711);
            --color-green-500: oklch(72.3% 0.219 149.579);
            --color-green-600: oklch(62.7% 0.194 149.214);
            --color-green-700: oklch(52.7% 0.154 150.069);
            --color-green-800: oklch(44.8% 0.119 151.328);
            --color-green-900: oklch(39.3% 0.095 152.535);

            --color-blue-50: oklch(97% 0.014 254.604);
            --color-blue-100: oklch(93.2% 0.032 255.585);
            --color-blue-200: oklch(88.2% 0.059 254.128);
            --color-blue-300: oklch(80.9% 0.105 251.813);
            --color-blue-400: oklch(70.7% 0.165 254.624);
            --color-blue-500: oklch(62.3% 0.214 259.815);
            --color-blue-600: oklch(54.6% 0.245 262.881);
            --color-blue-700: oklch(48.8% 0.243 264.376);
            --color-blue-800: oklch(42.4% 0.199 265.638);
            --color-blue-900: oklch(37.9% 0.146 265.522);

            --primary: #4F46E5;
            --info: #0EA5E9;
        }


    /*====== [Reset] =======*/
        ::placeholder { color: var(--color-gray-400); }
        ul, ol { padding-left: 1.675em; }

    /*====== [Structure] ======*/
        body { font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif; background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f3e8ff 100%); min-height: 100vh; }
        #wrap { display: flex; flex-direction: column; min-height: 100vh; margin-inline: auto; max-width: 1920px; }
        #main { flex: 1; }



/*######### [Plugins] #########*/
    /*====== [Plugins Modified] ======*/
        /*=== Bootstrap ===*/
            .form-label { font-size: 0.875rem; line-height: 1.25rem; }
            .btn { font-size: 1rem; padding: 0.5rem 0.75rem; border-radius: 8px; }
            .btn-lg { padding: 0.75rem 1rem; }
            .btn-sm { padding: 0.375rem 0.625rem; font-size: 0.875rem; }



/*######### [Public Style] #########*/
    /*====== [Simple Css] ======*/
        /*=== typesetting ===*/
            .hidden { display: none !important; }


        /*=== color (tailwind) ===*/
            .text-gray-100 { color: var(--color-gray-100) !important; }
            .text-gray-200 { color: var(--color-gray-200) !important; }
            .text-gray-300 { color: var(--color-gray-300) !important; }
            .text-gray-400 { color: var(--color-gray-400) !important; }
            .text-gray-500 { color: var(--color-gray-500) !important; }
            .text-gray-600 { color: var(--color-gray-600) !important; }
            .text-gray-700 { color: var(--color-gray-700) !important; }
            .text-gray-800 { color: var(--color-gray-800) !important; }
            .text-gray-900 { color: var(--color-gray-900) !important; }

            .bg-gray-50 { background-color: var(--color-gray-50) !important; }
            .bg-gray-100 { background-color: var(--color-gray-100) !important; }
            .bg-gray-200 { background-color: var(--color-gray-200) !important; }
            .bg-gray-300 { background-color: var(--color-gray-300) !important; }
            .bg-gray-400 { background-color: var(--color-gray-400) !important; }
            .bg-gray-500 { background-color: var(--color-gray-500) !important; }
            .bg-gray-600 { background-color: var(--color-gray-600) !important; }
            .bg-gray-700 { background-color: var(--color-gray-700) !important; }
            .bg-gray-800 { background-color: var(--color-gray-800) !important; }
            .bg-gray-900 { background-color: var(--color-gray-900) !important; }

            .text-primary { color: var(--primary) !important; }


        /*=== text (tailwind) ===*/
            .font-xs { font-size: 0.75rem !important; }
            .font-sm { font-size: 0.875rem !important; }
            .font-base { font-size: 1rem !important; }
            .font-lg { font-size: 1.125rem !important; }
            .font-xl { font-size: 1.25rem !important; }
            .font-2xl { font-size: 1.5rem !important; }

            .lh-xs { line-height: calc(1 / 0.75) !important; }
            .lh-sm { line-height: calc(1.25 / 0.875) !important; }
            .lh-base { line-height: calc(1.5 / 1) !important; }
            .lh-lg { line-height: calc(1.75 / 1.125) !important; }
            .lh-xl { line-height: calc(1.75 / 1.25) !important; }
            .lh-2xl { line-height: calc(2 / 1.5) !important; }

            .text-xs { font-size: 0.75rem !important; line-height: calc(1 / 0.75) !important; }
            .text-sm { font-size: 0.875rem !important; line-height: calc(1.25 / 0.875) !important; }
            .text-base { font-size: 1rem !important; line-height: calc(1.5 / 1) !important; }
            .text-lg { font-size: 1.125rem !important; line-height: calc(1.75 / 1.125) !important; }
            .text-xl { font-size: 1.25rem !important; line-height: calc(1.75 / 1.25) !important; }
            .text-2xl { font-size: 1.5rem !important; line-height: calc(2 / 1.5) !important; }


        /*=== print ===*/
            @media print {
                body { background: transparent; }
                .print-no-paper { background: transparent !important; box-shadow: none !important; border: none !important; padding: 0 !important; }
                [print-none] { display: none !important; }
                [break-inside-avoid] { break-inside: avoid; page-break-inside: avoid; }
                [break-after-avoid] { break-after: avoid; page-break-after: avoid; }
            }


    /*====== [Elements] ======*/
        /*=== button (relay.btn) ===*/
            .btn-primary {
                --bs-btn-bg: var(--color-blue-600); --bs-btn-color:white; --bs-btn-border-color: var(--color-blue-600);
                --bs-btn-hover-bg: var(--color-blue-700); --bs-btn-hover-color:white; --bs-btn-hover-border-color: var(--color-blue-600);
                --bs-btn-active-bg: var(--color-blue-700); --bs-btn-active-color:white; --bs-btn-active-border-color: var(--color-blue-600);
            }
            .btn-outline-primary {
                --bs-btn-bg: transparent; --bs-btn-color: var(--color-blue-600); --bs-btn-border-color: var(--color-blue-600);
                --bs-btn-hover-bg: var(--color-blue-600); --bs-btn-hover-color: white; --bs-btn-hover-border-color: var(--color-blue-600);
                --bs-btn-active-bg: var(--color-blue-600); --bs-btn-active-color: white; --bs-btn-active-border-color: var(--color-blue-600);
            }
            .btn-primary-shadow {
                --bs-btn-bg :var(--primary); --bs-btn-color:white; border: none; transition: all 0.2s;
                --bs-btn-hover-bg: var(--primary); --bs-btn-hover-color: white;
                --bs-btn-active-bg: var(--primary); --bs-btn-active-color: white;
                --bs-btn-disabled-bg: var(--color-gray-300); --bs-btn-disabled-color: white;
            }
            .btn-primary-shadow:hover { box-shadow:0 8px 20px rgba(79,70,229,0.3); transform:translateY(-2px); }
            .btn-primary-shadow:disabled, .btn-primary-shadow.disabled { cursor: not-allowed; transform: none; }
            .btn-outline-info {
                --bs-btn-bg: transparent; --bs-btn-color: #0369a1; --bs-btn-border-color: var(--info);
                --bs-btn-hover-bg: var(--info); --bs-btn-hover-color:white; --bs-btn-hover-border-color: var(--info);
                --bs-btn-active-bg: var(--info); --bs-btn-active-color:white; --bs-btn-active-border-color: var(--info);
            }

        /*=== button ===*/
            .btn-circle-close { --size: 24px; position: absolute; top: 1px; right: 1px; transform: translate(50%, -50%); width: var(--size); height: var(--size); border-radius: 50%; background: #e9ecef; border: none; color: transparent; font-size: 0; cursor: pointer; padding: 0; }
            .btn-circle-close::before { content: '×'; color: #888; font-size: calc( var(--size) / 3 * 2 ); font-weight: 700; line-height: var(--size); display: block; text-align: center; }
            .btn-circle-close:hover { background: #f8d7da; }
            .btn-circle-close:hover::before { color: #c00; }


        /*=== list ===*/
            .check-list > li { position:relative; color:var(--color-gray-600); list-style:none; }
            .check-list > li::marker { content: '✓   '; color: var(--color-green-600); font-weight: 700; }


        /*=== input 相關 ===*/
            .form-field { display: block; width: 100%; padding: .75rem 1rem; font-size: .9375rem; line-height: 1.5; color: #212529; background-color: #fff; border: 1px solid var(--color-gray-300); border-radius: .5rem; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; outline: none; }
            select.form-field { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px 12px; padding-right: 2.5rem; }
            .form-field.is-invalid { border-color: #f87171; }
            .form-field:disabled { background-color: var(--color-gray-50); }
            .form-field:focus { border-color: var(--color-gray-400); box-shadow: 0 0 0 1px var(--color-gray-400); }
            .form-field:focus.is-invalid { border-color: #f87171; box-shadow: 0 0 0 1px #f87171; }
            .required::after { content: ' *'; color: var(--color-red-600); }
            .form-text { font-size: 0.75rem; color: var(--color-gray-500); }
            .field-error { display: block; font-size: .75rem; color: var(--color-red-600); margin-top: .25rem; }

            /* 帶有 icon 的 input */
            .input-icon-wrap { position: relative; }
            .input-icon-wrap .form-field { padding-left: 2.25rem; }
            .input-icon-wrap > .icon-prefix { position: absolute; left: 12px; top: 50%; width: 1.25rem; height: 1.25rem; transform: translateY(-50%); color: #9ca3af; pointer-events: none; z-index: 5; }
            .input-icon-wrap > .bi.icon-prefix::before { display: block; line-height: 1.25rem; }
            /* 右側驗證通過 icon */
            .input-valid-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--color-green-500); display: none; z-index: 5; }
            /* 密碼眼睛 icon */
            .input-icon-wrap .eye-btn { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; padding:4px; color:#9ca3af; line-height:1; }
            .input-icon-wrap .eye-btn:hover { color:#6b7280; }
            .input-icon-wrap .eye-btn svg { display:block; }



    /*====== [Components] ======*/
        /*=== paper ===*/
            .paper { background-color: #fff; padding: 2rem; border: 1px solid var(--color-gray-200); border-radius: 0.75rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); }
            .login-paper { background-color: rgba(255,255,255,0.8); border: 1px solid var(--color-gray-100); padding: 2.25rem; border-radius: 1.25rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
            .paper > *:last-child, .login-paper > *:last-child { margin-bottom: 0; }
            @media (max-width: 575.98px) {
                .paper { padding: 1.75rem 1.5rem; }
                .login-paper { padding: 1.75rem 1.5rem; }
            }


        /*=== boxes ===*/
            .white-box { background:#fff; border:2px solid var(--color-gray-200); border-radius:10px; padding:1rem 1.25rem; margin-bottom:1.25rem; font-size:0.875rem; color:var(--color-gray-700); line-height:1.8; }
            .info-box { background:var(--color-blue-50); border:2px solid var(--color-blue-200); border-radius:10px; padding:1rem 1.25rem; margin-bottom:1.25rem; font-size:0.875rem; color:#1e3a8a; line-height:1.8; }
            .warning-box { background:#fef3c7; border:2px solid #fde047; border-radius:10px; padding:1rem 1.25rem; margin-bottom:1.25rem; font-size:0.875rem; color:#92400e; line-height:1.8; }
            .gray-box { background:var(--color-gray-50); border:2px solid var(--color-gray-200); border-radius:10px; padding:1rem 1.25rem; margin-bottom:1.25rem; font-size:0.875rem; color:var(--color-gray-700); line-height:1.8; }
            .notice-box { background:var(--color-gray-50); border:2px solid var(--color-gray-200); border-radius:12px; padding:1.5rem; margin-bottom:1.25rem; max-height:400px; overflow-y:auto; line-height:1.8; }
            .notice-box::-webkit-scrollbar { width: 6px; border-radius: 10px; }
            .notice-box::-webkit-scrollbar-track { background: transparent; }
            .notice-box::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 4px; }
            .notice-box::-webkit-scrollbar-thumb:hover { background: var(--color-gray-400); }

            .authorization-checkbox-label { display: flex; gap: 0.5rem; margin-bottom: 0; }
            .authorization-checkbox-label input[type="checkbox"],
            .authorization-checkbox-label input[type="radio"] { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; flex-shrink: 0; }
            .authorization-checkbox-content { cursor: pointer; user-select: none; }


        /*=== 上傳區塊 ===*/
            .upload-area { border: 2px dashed #d1d5db; border-radius: 12px; padding: 24px; text-align: center; background: #f9fafb; cursor: pointer; transition: all 0.2s; }
            .upload-area:has(~.is-invalid) { border-color: var(--color-red-400); }
            .upload-area:hover { border-color: #2563eb; background: #eff6ff; }
            .upload-area.has-file { border-color: #10b981; background: #f0fdf4; border-style: solid; }
            .upload-icon { width: 48px; height: 48px; margin: 0 auto 8px; color: #9ca3af; }
            .upload-area.has-file .upload-icon { color: #10b981; }
            .upload-text { font-size: 14px; color: #374151; margin-bottom: 4px; font-weight: 500; }
            .upload-hint { font-size: 12px; color: #6b7280; }
            .upload-area.has-file .upload-hint { color: #059669; }
            .file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
            .uploaded-file-name { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 8px; font-size: 13px; color: #059669; font-weight: 500; }
            .uploaded-file-name.hidden { display: none; }


        /*=== 圖片預覽 ===*/
            .image-preview { margin-top: 12px; }
            .preview-image-container { position: relative; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
            .preview-image { width: 100%; height: auto; display: block; cursor: pointer; transition: transform 0.2s; }
            .preview-image:hover { transform: scale(1.02); }
            .remove-image-btn, .view-image-btn { position: absolute; background: rgba(239, 68, 68, 0.9); border: none; border-radius: 6px; padding: 8px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
            .remove-image-btn { top: 8px; right: 8px; color: white; }
            .remove-image-btn:hover { background: rgba(220, 38, 38, 0.9); transform: scale(1.1); }
            .view-image-btn { top: 8px; right: 48px; background: rgba(37, 99, 235, 0.9); color: white; }
            .view-image-btn:hover { background: rgba(29, 78, 216, 0.9); transform: scale(1.1); }
            .remove-image-btn svg, .view-image-btn svg { stroke: currentColor; stroke-width: 2; fill: none; }


        /*=== 燈箱 ===*/
            .lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
            .lightbox-content { position: relative; max-width: 90%; max-height: 90%; display: flex; flex-direction: column; align-items: center; }
            .lightbox-footer { color: white; font-size: 18px; font-weight: 500; text-align: center; }
            .lightbox-image { max-width: 100%; max-height: 80vh; border-radius: 8px; margin-block: .25rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
            .lightbox-close { position: absolute; top: -40px; right: 0; background: rgba(255, 255, 255, 0.2); border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: white; transition: all 0.2s; }
            .lightbox-close:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
            .lightbox-close svg { stroke: currentColor; stroke-width: 2; fill: none; }



/*######### [Pages] #########*/
    /*====== [Include Page] ======*/
        /*=== header & footer ===*/
            .header { padding-block: 2.5rem; text-align: center; }
            .footer { padding-block: 1.5rem 2.5rem; text-align: center; font-size: .875em; color: var(--color-gray-600); }
            .footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }
            .footer-links a { color: var(--color-gray-500); text-decoration: none; }
            .footer-links a:hover { color: var(--color-gray-700); }


    /*====== [Current Page] ======*/
        /*=== apply-PhD/ ===*/
            .apply-logo { width:64px; height:64px; background:linear-gradient(135deg,var(--primary) 0%,#7C3AED 50%,#EC4899 100%); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 1rem; box-shadow:0 4px 12px rgba(79,70,229,0.3); color:white; font-size:1.75rem; font-weight:700; }
            .apply-title { text-align:center; font-size:1.75rem; font-weight:600; color:var(--primary); margin-bottom:0.5rem; }
            .apply-progress-steps { display:flex; justify-content:center; align-items:flex-start; position:relative; }
            .apply-progress-step { display:flex; flex-direction:column; align-items:center; gap:6px; position:relative; flex:1; min-width:0; }
            .apply-progress-circle { width:45px; height:45px; border-radius:50%; background:var(--color-gray-200); color:var(--color-gray-400); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:1rem; transition:all 0.3s; border:3px solid var(--color-gray-200); flex-shrink:0; }
            .apply-progress-step.active .apply-progress-circle { background:var(--primary); color:white; border-color:var(--primary); box-shadow:0 4px 12px rgba(79,70,229,0.3); }
            .apply-progress-step.completed .apply-progress-circle { background:var(--color-green-600); color:white; border-color:var(--color-green-600); }
            .apply-progress-btn { display:flex; flex-direction:column; align-items:center; gap:6px; background:none; border:none; padding:0; cursor:pointer; width:auto; position:relative; z-index:2; }
            .apply-progress-label { font-size:0.75rem; color:var(--color-gray-500); font-weight:500; text-align:center; line-height:1.3; width:100%; }
            .apply-progress-step.active .apply-progress-label { color:var(--primary); font-weight:600; }
            .apply-progress-step.completed .apply-progress-label { color:var(--color-green-600); }
            .apply-progress-step:not(:first-child)::after { content:''; position:absolute; top:22px; left:-50%; right:50%; height:3px; background:var(--color-gray-200); z-index:1; }
            .apply-progress-step.completed:not(:first-child)::after,
            .apply-progress-step.active:not(:first-child)::after { background:var(--color-green-600); }

            .apply-page-icon { width:72px; height:72px; margin:0 auto 1.25rem; background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:2.5rem; }
            .apply-section-title { font-size:1.125rem; font-weight:600; color:var(--color-gray-900); margin:2rem 0 1.25rem; padding-bottom:0.75rem; border-bottom:2px solid var(--color-gray-100); }
            .apply-btn-actions { display:flex; gap:0.75rem; margin-top:2rem; padding-top:2rem; border-top:1px solid var(--color-gray-200); }

            @media (max-width:575.98px) {
                .apply-btn-actions { flex-wrap:wrap; }
                .apply-btn-actions .btn { flex:1 1 100%; }
            }
            @media (max-width:767px) {
                .apply-progress-steps { flex-wrap:wrap; gap:1rem 0; }
                .apply-progress-step { flex:0 0 25%; }
                .apply-progress-circle { width:40px; height:40px; font-size:0.75rem; border-width:2px; }
                .apply-progress-step:not(:first-child)::after { display:none; }
            }