/* 身份切換頁籤樣式 */
        .identity-tabs {
            display: flex;
            background-color: #edf2f7;
            padding: 6px;
            border-radius: 8px;
            margin-bottom: 24px;
            gap: 6px;
        }
        .tab-btn {
            flex: 1;
            text-align: center;
            padding: 12px;
            font-size: 1.05em;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
            border: none;
            background: none;
            color: #4a5568;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .tab-btn:hover {
            background-color: #e2e8f0;
            color: #2d3748;
        }
        .tab-btn.active {
            background-color: #ffffff;
            color: #2b6cb0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        /* 家長端作用時的亮色調整 */
        .tab-btn.active.parent-active {
            color: #c53030; /* 家長端用紅/橘色系區隔 */
        }
        :root {
            --primary-color: #3182ce;
            --primary-hover: #2b6cb0;
            --primary-light: #ebf8ff;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
            --text-main: #2d3748;
            --text-muted: #718096;
            --bg-body: #f7fafc;
            --card-border: #edf2f7;
            --radius-md: 12px;
            --radius-sm: 6px;
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
        }

        body {
            background-color: var(--bg-body);
            color: var(--text-main);
            font-family: "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
        }

        .post-form-container {
            max-width: 840px;
            margin: 40px auto 80px auto;
            padding: 0 20px;
        }

        /* 頂部橫幅區美化 */
        .form-header-zone {
            text-align: center;
            margin-bottom: 35px;
            background: linear-gradient(135deg, #ffffff 0%, #edf2f7 100%);
            padding: 30px 20px;
            border-radius: 16px;
            border: 1px solid var(--card-border);
            box-shadow: var(--shadow-sm);
        }
        .page-main-title {
            font-size: 1.85rem;
            color: #2c5282;
            font-weight: 800;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }
        .page-main-title i {
            color: var(--primary-color);
        }
        .page-subtitle-hint {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        /* 表單區塊卡片化 */
        .form-card-section {
            background: #ffffff;
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 25px;
            box-shadow: var(--shadow-sm);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .form-card-section:hover {
            box-shadow: var(--shadow-md);
        }

        /* 步驟精美徽章 */
        .section-card-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #2d3748;
            border-bottom: 2px solid #edf2f7;
            padding-bottom: 15px;
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .step-badge {
            background: linear-gradient(135deg, var(--primary-color) 0%, #4299e1 100%);
            color: #ffffff;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: bold;
        }

        /* 表單基本欄位樣式調整 */
        .form-group {
            margin-bottom: 20px;
        }
        .form-field-label {
            font-weight: 600;
            color: #4a5568;
            margin-bottom: 8px;
            display: block;
            font-size: 0.95rem;
        }
        .required-star {
            color: var(--danger-color);
            margin-left: 2px;
        }
        .form-control {
            width: 100%;
            padding: 11px 14px;
            font-size: 0.95rem;
            border: 1px solid #cbd5e0;
            border-radius: var(--radius-sm);
            background-color: #ffffff;
            color: var(--text-main);
            transition: all 0.2s ease;
            box-sizing: border-box;
        }
        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
        }
        .field-desc-hint {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 6px;
            display: block;
            line-height: 1.4;
        }

        /* 唯讀同步控制區 */
        .form-readonly-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
        }
        .form-control[readonly] {
            background-color: #f7fafc;
            color: #4a5568;
            cursor: not-allowed;
            border-color: #edf2f7;
        }
        .btn-fix-profile {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background-color: #edf2f7;
            color: #4a5568;
            border: 1px solid #cbd5e0;
            padding: 11px 16px;
            font-size: 0.9rem;
            font-weight: 500;
            border-radius: var(--radius-sm);
            cursor: pointer;
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.2s ease;
        }
        .btn-fix-profile:hover {
            background-color: #e2e8f0;
            color: #2d3748;
        }

        /* 現代化 Checkbox 網格按鈕化排版 */
        .checkbox-grid-group {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
            gap: 10px;
            margin-top: 8px;
        }
        .form-checkbox-item {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #ffffff;
            border: 1px solid #edf2f7;
            padding: 10px 12px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            user-select: none;
            transition: all 0.2s ease;
            font-size: 0.9rem;
        }
        .form-checkbox-item:hover {
            background-color: #f7fafc;
            border-color: #cbd5e0;
        }
        .form-checkbox-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--primary-color);
            cursor: pointer;
        }
        .form-checkbox-item input[type="checkbox"]:checked + span {
            color: var(--primary-color);
            font-weight: 600;
        }

        /* 學制折疊手風琴盒美化 */
        .stage-box {
            border: 1px solid var(--card-border);
            border-radius: var(--radius-md);
            margin-bottom: 12px;
            overflow: hidden;
            background: #ffffff;
        }
        .stage-header {
            background-color: #f7fafc;
            padding: 14px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            user-select: none;
            transition: background-color 0.2s;
        }
        .stage-header:hover {
            background-color: #edf2f7;
        }
        .stage-title {
            font-weight: 600;
            color: #4a5568;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .stage-title i {
            color: #718096;
        }
        .arrow-icon {
            transition: transform 0.3s ease;
            color: #a0aec0;
        }
        .stage-body-content {
            display: none;
            padding: 20px;
            border-top: 1px solid #edf2f7;
        }
        .stage-box.is-open .stage-body-content {
            display: block;
        }
        .stage-box.is-open .arrow-icon {
            transform: rotate(180deg);
            color: var(--primary-color);
        }

        /* 輔助操作功能列 */
        .quick-action-bar {
            margin-bottom: 12px;
            display: flex;
            justify-content: flex-start;
        }
        .btn-mini-toggle {
            background-color: var(--primary-light);
            color: var(--primary-color);
            border: none;
            padding: 6px 12px;
            font-size: 0.8rem;
            font-weight: 600;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .btn-mini-toggle:hover {
            background-color: #bee3f8;
        }

        /* 自訂輸入附加框 */
        .custom-input-inline-zone {
            margin-top: 15px;
            padding-top: 12px;
            border-top: 1px dashed #edf2f7;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .custom-input-inline-zone label {
            font-size: 0.9rem;
            color: #4a5568;
            font-weight: 500;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .custom-input-inline-zone input[type="checkbox"] {
            accent-color: var(--primary-color);
        }

        /* 多區服務配置排版 */
        .region-row-item {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 12px;
            background-color: #f7fafc;
            padding: 10px;
            border-radius: var(--radius-sm);
            border: 1px solid #edf2f7;
        }
        .region-select-container {
            display: flex;
            gap: 10px;
            flex: 1;
        }
        .btn-delete-region {
            background-color: #fff5f5;
            color: var(--danger-color);
            border: 1px solid #fed7d7;
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2;
        }
        .btn-delete-region:hover {
            background-color: var(--danger-color);
            color: #ffffff;
            border-color: var(--danger-color);
        }
        .btn-secondary-add {
            width: 100%;
            background-color: #ffffff;
            color: var(--primary-color);
            border: 1px dashed var(--primary-color);
            padding: 12px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
            margin-top: 5px;
        }
        .btn-secondary-add:hover {
            background-color: var(--primary-light);
        }

        /* 期望待遇單位框裝飾 */
        .input-with-unit-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        .input-with-unit-wrapper .form-control {
            padding-right: 100px;
        }
        .input-unit-text {
            position: absolute;
            right: 15px;
            color: var(--text-muted);
            font-size: 0.9rem;
            font-weight: 500;
            pointer-events: none;
        }

        /* 段落描述區美化 */
        .intro-block-group {
            position: relative;
            border: 1px solid #edf2f7;
            background-color: #f7fafc;
            padding: 20px;
            border-radius: var(--radius-md);
            margin-bottom: 15px;
        }
        .custom-block-field {
            margin-bottom: 12px;
        }
        .custom-block-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #4a5568;
            margin-bottom: 5px;
            display: block;
        }
        .btn-delete-block {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .btn-delete-block:hover {
            color: var(--danger-color);
        }

        /* 加值區塊美化 */
        .upsell-options-stack {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .upsell-item-card {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            border: 1px solid #edf2f7;
            padding: 16px;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.2s;
            background: #ffffff;
        }
        .upsell-item-card:hover {
            border-color: #cbd5e0;
            background-color: #f7fafc;
        }
        .upsell-item-card input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--primary-color);
            margin-top: 3px;
            cursor: pointer;
        }
        .upsell-main-title {
            font-weight: 600;
            color: #2d3748;
            font-size: 0.95rem;
            margin-bottom: 4px;
        }
        .upsell-sub-desc {
            color: var(--text-muted);
            font-size: 0.85rem;
            line-height: 1.4;
        }

        /* 點數預算浮動列 */
        .points-budget-sticky-bar {
            margin-top: 20px;
            background-color: #fffbeb;
            border: 1px solid #fef3c7;
            padding: 14px 20px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .points-label {
            font-weight: 600;
            color: #92400e;
            font-size: 0.95rem;
        }
        .points-cost-digit {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--warning-color);
            margin-right: 4px;
        }

        /* 正式提交按鈕列 */
        .form-submit-action-row {
            margin-top: 35px;
            text-align: center;
        }
        .btn-submit-primary-action {
            width: 100%;
            background: linear-gradient(135deg, var(--primary-color) 0%, #2b6cb0 100%);
            color: #ffffff;
            border: none;
            padding: 16px 30px;
            font-size: 1.1rem;
            font-weight: 700;
            border-radius: var(--radius-md);
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.2s ease;
        }
        .btn-submit-primary-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
        }
        .btn-submit-primary-action:active {
            transform: translateY(0);
        }
        /* 自動完成關鍵字搜尋框樣式 */
        .autocomplete-wrapper {
            position: relative;
            width: 100%;
        }
        .autocomplete-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #ffffff;
            border: 1px solid #cbd5e0;
            border-top: none;
            border-radius: 0 0 6px 6px;
            max-height: 240px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
            display: none;
        }
        .autocomplete-item {
            padding: 10px 14px;
            cursor: pointer;
            font-size: 0.95rem;
            color: #2d3748;
            border-bottom: 1px solid #edf2f7;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .autocomplete-item:last-child {
            border-bottom: none;
        }
        .autocomplete-item:hover {
            background-color: var(--primary-light);
            color: var(--primary-color);
        }
        .school-tag-badge {
            font-size: 0.75rem;
            padding: 2px 6px;
            border-radius: 4px;
            background-color: #edf2f7;
            color: #4a5568;
            font-weight: 600;
        }
        .school-tag-badge.top-tier {
            background-color: var(--primary-light);
            color: var(--primary-color);
            border: 1px solid #bee3f8;
        }
