/**
 * 采购公告详情页面样式 - 按照原型设计
 *
 * 缩放方案（参照 page-careers.css 画布等比）：PC 段所有承重尺寸 = calc(N × 100vw / 1920)
 * （N = 1920 设计稿像素值）。注意：single-procurement.php 的 main 未挂 .nyocor-u-page，
 * 拿不到 main.css 的 --u 变量，故此处写等价的 100vw/1920 表达式（与本文件弹窗段既有写法一致，
 * 且列表页/详情页两处通用）；PHP 补挂类后可整体替换回 calc(N × var(--u))。
 * 浏览器 Ctrl+滚轮缩放（视口变化）时整页等比缩放，版式不变形。
 * 仅装饰性细节（发丝线/圆角/阴影/过渡/无单位行高）保留 px；rem 一律换算为 px 再等比（1rem=16px）。
 * ≤768 手机档回固定 px 字号与触屏点击域（含报名弹窗表单）。
 */

.single-procurement-page {
    --u: calc(100vw / 1920); /* 页面级等比单位：标题/信息行/正文字号等 22 处 var(--u) 声明依赖此定义
                                （此前缺失导致这些字号声明整体失效、文字按继承默认渲染） */
    padding: calc(40 * 100vw / 1920) 0 calc(120 * 100vw / 1920);
    min-height: 100vh; /* 动态视口高：规避 iOS Safari 地址栏裁切 */
    background: #FFFFFF; /* 白底正文页（2026-10 对齐新闻详情版式） */
}

.procurement-detail-container {
    /* 2026-10 对齐新闻详情版式：875 阅读列居中（替代原 1682 灰底白卡），正文/图片同宽 */
    width: max(340px, calc(875 * 100vw / 1920));
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 面包屑（与其他详情页同款：等比 + 可读下限；main.css 基础值为固定 px）。
   通栏 1628 与新闻详情一致（面包屑比 875 正文列更宽） */
.single-procurement-page .breadcrumb {
    width: calc(1628 * 100vw / 1920);
    margin: 0 auto calc(28 * 100vw / 1920);
    font-size: max(13px, calc(22 * 100vw / 1920));
    gap: max(10px, calc(23 * 100vw / 1920));
}

.single-procurement-page .breadcrumb__home svg {
    width: max(14px, calc(23.5 * 100vw / 1920));
    height: max(14px, calc(23.5 * 100vw / 1920));
}

.single-procurement-page .breadcrumb .sep svg {
    width: max(4px, calc(5.5 * 100vw / 1920));
    height: max(9px, calc(13 * 100vw / 1920));
}

.single-procurement-page .breadcrumb .current {
    line-height: max(20px, calc(30 * 100vw / 1920));
}

/* 公告标题 - 居中显示 */
.procurement-title {
    font-size: max(22px, calc(40 * var(--u)));
    font-weight: 700;
    color: #222222;
    margin-bottom: calc(16 * 100vw / 1920);
    line-height: 1.4;
    text-align: center;
}

/* 项目信息行 - 居中显示 */
.procurement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(24 * 100vw / 1920); /* 1.5rem */
    margin-bottom: calc(16 * 100vw / 1920);
    color: #666;
    font-size: max(12px, calc(15.2 * var(--u))); /* 0.95rem */
    justify-content: center;
}

.procurement-meta .meta-item {
    display: flex;
    align-items: center;
}

.procurement-meta .meta-item strong {
    font-weight: 500;
    margin-right: calc(4 * 100vw / 1920); /* 0.25rem */
    color: #666;
}

/* 报名信息行 - 居中显示 */
.procurement-registration-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(32 * 100vw / 1920); /* 2rem */
    margin-bottom: calc(24 * 100vw / 1920); /* 1.5rem */
    font-size: max(12px, calc(15.2 * var(--u))); /* 0.95rem */
    justify-content: center;
}

.registration-period {
    display: flex;
    align-items: center;
    color: #333;
}

.registration-period strong {
    font-weight: 500;
    margin-right: calc(4 * 100vw / 1920);
}

/* 报名状态 - 绿色文本 */
.registration-status {
    display: flex;
    align-items: center;
    padding: calc(4 * 100vw / 1920) calc(12 * 100vw / 1920); /* 0.25rem 0.75rem */
    border-radius: 20px;
    background: #f8f9fa;
}

.registration-status.status-open .status-text {
    color: #28a745; /* 绿色 */
    font-weight: 500;
}

.registration-status.status-closed .status-text {
    color: #dc3545; /* 红色 */
    font-weight: 500;
}

.registration-status strong {
    font-weight: 500;
    margin-right: calc(4 * 100vw / 1920);
}

/* 分隔线 */
.procurement-divider {
    height: 1px;
    background: #E5E5E5;
    margin: calc(48 * 100vw / 1920) 0 calc(56 * 100vw / 1920);
    clear: both;
}

/* 图片区域 - 居中显示 */
.procurement-image {
    margin: calc(32 * 100vw / 1920) auto; /* 2rem */
    text-align: center;
    display: flex;
    justify-content: center;
}

.procurement-image img {
    width: auto; /* 自适应：小图原尺寸、大图封顶 875 阅读宽（随画布等比） */
    max-width: min(100%, calc(875 * 100vw / 1920));
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 正文图片（2026-10 对齐新闻详情）：与正文列同宽居中，小图居中不拉伸 */
.procurement-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: calc(16 * 100vw / 1920) auto;
}

/* 内容区域 - 左右150px间隔 */
.procurement-content {
    font-size: max(15px, calc(26 * var(--u)));
    line-height: 1.9;
    color: #333;
    margin: calc(32 * 100vw / 1920) 0;
}

.procurement-content p {
    margin-bottom: calc(30 * 100vw / 1920);
}

.procurement-content h2 {
    font-size: max(18px, calc(32 * var(--u)));
}

.procurement-content h3,
.procurement-content h4 {
    font-size: max(18px, calc(30 * var(--u)));
}

.procurement-content h2,
.procurement-content h3,
.procurement-content h4 {
    margin-top: calc(56 * 100vw / 1920);
    margin-bottom: calc(28 * 100vw / 1920);
    font-weight: 700;
    color: #222222;
}

.procurement-content ul,
.procurement-content ol {
    margin: calc(16 * 100vw / 1920) 0;
    padding-left: calc(32 * 100vw / 1920); /* 2rem */
}

/* 正文图片：随容器等比（同 single.css 约定） */
.procurement-content img {
    /* 自适应：!important 压过编辑器内联宽高；小图原尺寸、大图封顶 875 阅读宽 */
    width: auto !important;
    max-width: min(100%, calc(875 * 100vw / 1920)) !important;
    height: auto !important;
    display: block;
    margin: calc(32 * 100vw / 1920) auto;
    border-radius: calc(6 * 100vw / 1920);
}

.procurement-content li {
    margin-bottom: calc(8 * 100vw / 1920); /* 0.5rem */
}

/* 按钮区域 */
.procurement-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: calc(32 * 100vw / 1920); /* 2rem */
    flex-wrap: wrap;
    margin-right: 0;        /* 取消额外右边距，按钮靠右 */
    padding-right: calc(24 * 100vw / 1920);  /* 与卡片内边距呼应的呼吸位 */
}

/* 多文件下载按钮组 - 已隐藏 */
.download-buttons-group {
    display: none !important;
    visibility: hidden;
}

.btn-action {
    min-width: max(130px, calc(160 * 100vw / 1920));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(6.4 * 100vw / 1920); /* 0.4rem */
    padding: calc(12 * 100vw / 1920) calc(32 * 100vw / 1920); /* 0.75rem 2rem */
    font-size: max(12px, calc(14.4 * var(--u))); /* 0.9rem */
    font-weight: 500;
    border: none;
    border-radius: 42px; /* 胶囊形状 */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-icon {
    font-size: max(13px, calc(16 * var(--u))); /* 1rem */
}

/* 下载按钮 - 绿底白字 */
.btn-download {
    display: none !important;
    visibility: hidden;
}

/* 报名按钮 - 默认蓝底白字，5px 圆角（全站 CTA 统一）。
   右侧定位图标：外圈是扩散波纹层（悬浮时圆圈向外扩散），中心实心圆点 */
.btn-register {
    background: #2A6BB5;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    padding: calc(12 * 100vw / 1920) calc(32 * 100vw / 1920); /* 0.75rem 2rem */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-register .btn-locate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: max(24px, calc(26 * 100vw / 1920));
    height: max(24px, calc(26 * 100vw / 1920));
    margin-left: max(3px, calc(4 * 100vw / 1920));
    flex: none;
}

/* 外圈波纹：两个圆环，悬浮时从中心向外扩散淡出（无限循环） */
.btn-register .btn-locate::before,
.btn-register .btn-locate::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85); /* 发丝描边保留 */
    opacity: 0;
    transform: scale(0.35);
}

/* 光晕仅在真鼠标悬浮时播放：触屏点按会粘滞 hover 态，光晕常驻不去 */
@media (hover: hover) {
    .btn-register:hover:not(:disabled) .btn-locate::before {
        animation: locateRipple 1.4s ease-out infinite;
    }

    .btn-register:hover:not(:disabled) .btn-locate::after {
        animation: locateRipple 1.4s ease-out 0.7s infinite;
    }
}

@keyframes locateRipple {
    0%   { opacity: 0.9; transform: scale(0.35); }
    70%  { opacity: 0;   transform: scale(1.6); }
    100% { opacity: 0;   transform: scale(1.6); }
}

/* 中心定位圆点（环 + 实心点，参考图样式） */
.btn-register .btn-locate-core {
    position: relative;
    width: max(15px, calc(16 * 100vw / 1920));
    height: max(15px, calc(16 * 100vw / 1920));
    border-radius: 50%;
    border: 2px solid #FFFFFF; /* 描边对齐招贤纳士按钮 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.btn-register .btn-locate-core::after {
    content: "";
    width: max(4px, calc(4.5 * 100vw / 1920));
    height: max(4px, calc(4.5 * 100vw / 1920));
    border-radius: 50%;
    background: #FFFFFF;
}

.btn-register:hover:not(:disabled) {
    background: #1F548F;
    color: #FFFFFF;
}

.btn-register:active:not(:disabled) {
    transform: translateY(1px);
}

/* 报名按钮禁用状态 */
.btn-register:disabled,
.btn-register.disabled {
    background: #f5f5f5 !important;
    color: #9e9e9e !important;
    border-color: #e0e0e0 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

.btn-register:disabled:hover,
.btn-register.disabled:hover {
    background: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    transform: none !important;
    box-shadow: none !important;
    color: #9e9e9e !important;
}

.btn-action:disabled:not(.btn-register) {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 报名弹窗样式（遗留块：取值与下方「统一弹窗」段一致，后者按源序覆盖） */
.nyocor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nyocor-modal[hidden] {
    display: none;
}

.nyocor-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.nyocor-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: calc(32 * 100vw / 1920);
    width: max(340px, calc(600 * 100vw / 1920)); /* 600px @1920，340px 触屏兜底 */
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 2;
}

.nyocor-modal__close {
    position: absolute;
    top: calc(16 * 100vw / 1920);
    right: calc(16 * 100vw / 1920);
    background: #e9ecef;
    border: none;
    border-radius: 50%;
    width: calc(32 * 100vw / 1920);
    height: calc(32 * 100vw / 1920);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: max(13px, calc(20 * var(--u))); /* 1.25rem */
    transition: background 0.2s;
}

.nyocor-modal__close:hover {
    background: #dee2e6;
}

.modal-title {
    margin: 0 0 calc(24 * 100vw / 1920) 0; /* 1.5rem */
    font-size: max(15px, calc(24 * var(--u))); /* 1.5rem */
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* 隐藏详情页表单模板中的标题（避免与外层标题重复） */
.nyocor-modal .nyocor-proc-form-wrap .modal-title {
    display: none;
}

/* 响应式调整：PC 段（≥769）全程等比无中间断点；≤768 堆叠 + 固定 px 兜底 */
@media (max-width: 768px) {
    .single-procurement-page {
        padding: 16px 0;
    }

    .procurement-detail-container {
        width: auto; /* PC 段为等比定宽，手机档回自适应 */
        padding: 1rem;
        margin: 0 1rem;
    }

    /* 2026-10 按需求：特色图置于分隔线之下、正文之上，宽度与正文列一致
       （单列网格整行铺开，高度随图比例自适应；max-width 解除基础规则的 875u 钳制） */
    .procurement-detail-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "meta"
            "info"
            "divider"
            "img"
            "content";
        row-gap: 6px;
    }

    .procurement-image {
        grid-area: img;
        display: block;
        margin: 10px 0 2px;
    }

    .procurement-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
    }

    /* 正文图片（2026-10 用户要求：与正文等宽）：解除 PC 段 875u 钳制
       （875u 在窄屏折算 ~178px 导致正文图过小；!important 需同步保留压过编辑器内联宽高） */
    .procurement-content img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* 标题与信息区居中显示（2026-10 用户要求） */
    .procurement-title {
        grid-area: title;
        align-self: center;
        text-align: center;
        font-size: 17px;
        line-height: 1.45;
        font-weight: 600;
        color: #1D1D1D;
        margin: 4px 0 0;
    }

    /* 项目编号与发布时间同行显示（2026-10 用户要求），超宽自动回落换行 */
    .procurement-meta {
        grid-area: meta;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px 16px;
        margin-bottom: 0;
        font-size: 12px;
    }

    .procurement-registration-info {
        grid-area: info;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 12px;
    }

    .registration-status {
        padding: 3px 8px;
    }

    .procurement-divider {
        grid-area: divider;
        margin: 16px 0 20px;
    }

    .procurement-content {
        grid-area: content;
        font-size: 16px;
    }

    .procurement-actions {
        grid-column: 1 / -1; /* 未分配区域的按钮区按整行铺开，防止被网格自动收进窄列 */
    }

    .procurement-content {
        font-size: 16px;
    }

    .procurement-content p {
        margin-bottom: 12px;
    }

    .procurement-actions {
        flex-direction: column;
        align-items: center; /* 移动端居中显示 */
        margin-left: 0;
        margin-right: 0;
        padding-right: 0;
    }

    .btn-action {
        width: 100%;
        max-width: 300px; /* 限制最大宽度 */
        min-width: auto;
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-register {
        padding: 12px 24px;
    }

    /* 报名弹窗手机档兜底见文件末尾（须置于统一弹窗段之后才能覆盖同特异性规则） */
}

/* 针对表单样式的补充 */
.nyocor-modal form {
    margin: 0;
}

.nyocor-modal .form-group {
    margin-bottom: calc(20 * 100vw / 1920); /* 1.25rem */
}

.nyocor-modal label {
    display: block;
    margin-bottom: calc(8 * 100vw / 1920); /* 0.5rem */
    font-weight: 500;
    color: #333;
}

.nyocor-modal input[type="text"],
.nyocor-modal input[type="email"],
.nyocor-modal input[type="tel"],
.nyocor-modal textarea,
.nyocor-modal select {
    width: 100%;
    padding: calc(12 * 100vw / 1920); /* 0.75rem */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: max(13px, calc(16 * var(--u))); /* 1rem */
    box-sizing: border-box;
}

.nyocor-modal textarea {
    resize: vertical;
    min-height: max(72px, calc(100 * 100vw / 1920)); /* 触屏下限兜底 */
}

.nyocor-modal .btn-submit {
    background: #2A6BB5;
    color: #fff;
    padding: calc(12 * 100vw / 1920) calc(32 * 100vw / 1920);
    border: none;
    border-radius: 6px;
    font-size: max(13px, calc(16 * var(--u)));
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.nyocor-modal .btn-submit:hover {
    background: #1F548F;
}

/* ========================================
   统一AJAX加载和PHP渲染的表单样式
   ======================================== */

/* 统一弹窗容器样式 */
.nyocor-modal,
.nyocor-proc-modal {
    position: fixed;
    top: calc(40 * 100vw / 1920); /* 让出吸顶头部（≤768 回满屏，见文件末尾手机档） */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 修复列表页弹窗被头部栏覆盖问题（头部高随视口缩放，同步等比，80px 触屏兜底） */
.nyocor-proc-modal {
    padding-top: max(80px, calc(104 * 100vw / 1920));
}

.nyocor-modal[hidden],
.nyocor-proc-modal[hidden],
.nyocor-proc-modal[style*="display: none"] {
    display: none !important;
}

.nyocor-proc-modal.nyocor-proc-modal-active {
    display: flex !important;
}

/* 统一弹窗背景遮罩 */
.nyocor-modal__backdrop,
.nyocor-proc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

/* 统一弹窗内容区域：宽度/内边距随视口等比缩放
   （600px @1920，min 340px 保证表单两列放得下） */
.nyocor-modal__dialog,
.nyocor-proc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: calc(32 * 100vw / 1920);
    width: max(340px, calc(600 * 100vw / 1920));
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 2;
}

.nyocor-modal__dialog h2,
.nyocor-proc-modal-body h2,
.nyocor-proc-modal-body .modal-title {
    margin: 0 0 calc(20 * 100vw / 1920) 0;
    font-size: max(13px, calc(18 * var(--u))) !important;
    color: #333;
    text-align: center;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    font-weight: 600;
}

/* 统一关闭按钮（尺寸等比） */
.nyocor-modal__close,
.nyocor-proc-modal-close {
    position: absolute;
    top: calc(16 * 100vw / 1920);
    right: calc(16 * 100vw / 1920);
    background: #e9ecef;
    border: none;
    border-radius: 50%;
    width: calc(32 * 100vw / 1920);
    height: calc(32 * 100vw / 1920);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: max(13px, calc(20 * var(--u)));
    transition: background 0.2s;
    z-index: 10;
}

.nyocor-modal__close:hover,
.nyocor-proc-modal-close:hover {
    background: #dee2e6;
}

/* 统一表单容器 */
.nyocor-modal form,
.nyocor-proc-modal-body form {
    margin: 0;
}

/* 统一表单分组 */
.nyocor-modal .form-group,
.nyocor-proc-modal-body .form-group {
    margin-bottom: calc(20 * 100vw / 1920); /* 1.25rem */
}

/* 统一字段容器（间距等比） */
.nyocor-modal .nyocor-proc-field,
.nyocor-proc-modal-content .nyocor-proc-field,
.nyocor-proc-modal-body .nyocor-proc-field {
    display: flex;
    flex-direction: column;
    margin-bottom: calc(14 * 100vw / 1920);
}

/* 统一字段标签 - 关键样式 */
.nyocor-modal label,
.nyocor-modal .label,
.nyocor-proc-modal-content label,
.nyocor-proc-modal-content .label,
.nyocor-proc-modal-body label,
.nyocor-proc-modal-body .label,
.nyocor-proc-form .label,
.nyocor-proc-field .label {
    display: block;
    margin-bottom: calc(8 * 100vw / 1920);
    font-weight: 600;
    color: #333 !important;
    line-height: 1.4;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: max(12px, calc(14 * var(--u)));
}

.nyocor-modal .nyocor-proc-field .label,
.nyocor-proc-modal-content .nyocor-proc-field .label,
.nyocor-proc-modal-body .nyocor-proc-field .label {
    font-weight: 600;
    font-size: max(12px, calc(14 * var(--u)));
}

/* 统一必填标识 */
.nyocor-modal .nyocor-proc-field .label em,
.nyocor-proc-modal-content .nyocor-proc-field .label em,
.nyocor-proc-modal-body .nyocor-proc-field .label em,
.nyocor-proc-field .label em {
    color: #dc2626;
    font-style: normal;
}

/* 统一辅助说明文字 */
.nyocor-modal .nyocor-proc-field .label small,
.nyocor-proc-modal-content .nyocor-proc-field .label small,
.nyocor-proc-modal-body .nyocor-proc-field .label small,
.nyocor-proc-field .label small {
    font-weight: 400;
    color: #94a3b8;
    font-size: max(12px, calc(12 * var(--u)));
}

/* 统一输入框样式 */
.nyocor-modal input[type="text"],
.nyocor-modal input[type="email"],
.nyocor-modal input[type="tel"],
.nyocor-modal textarea,
.nyocor-modal select,
.nyocor-proc-modal-content input[type="text"],
.nyocor-proc-modal-content input[type="email"],
.nyocor-proc-modal-content input[type="tel"],
.nyocor-proc-modal-content textarea,
.nyocor-proc-modal-content select,
.nyocor-proc-modal-body input[type="text"],
.nyocor-proc-modal-body input[type="email"],
.nyocor-proc-modal-body input[type="tel"],
.nyocor-proc-modal-body textarea,
.nyocor-proc-modal-body select,
.nyocor-modal .nyocor-proc-field input[type="text"],
.nyocor-modal .nyocor-proc-field input[type="email"],
.nyocor-modal .nyocor-proc-field textarea,
.nyocor-modal .nyocor-proc-field input[type="file"],
.nyocor-proc-modal-content .nyocor-proc-field input[type="text"],
.nyocor-proc-modal-content .nyocor-proc-field input[type="email"],
.nyocor-proc-modal-content .nyocor-proc-field textarea,
.nyocor-proc-modal-content .nyocor-proc-field input[type="file"],
.nyocor-proc-modal-body .nyocor-proc-field input[type="text"],
.nyocor-proc-modal-body .nyocor-proc-field input[type="email"],
.nyocor-proc-modal-body .nyocor-proc-field textarea,
.nyocor-proc-modal-body .nyocor-proc-field input[type="file"] {
    width: 100%;
    padding: calc(10 * 100vw / 1920) calc(12 * 100vw / 1920);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: max(12px, calc(14 * var(--u)));
    background: #fff;
    box-sizing: border-box;
}

.nyocor-modal textarea,
.nyocor-proc-modal-content textarea,
.nyocor-proc-modal-body textarea {
    resize: vertical;
    min-height: max(72px, calc(100 * 100vw / 1920)); /* 触屏下限兜底 */
}

/* 统一错误状态 */
.nyocor-modal .nyocor-proc-field.has-error input,
.nyocor-modal .nyocor-proc-field.has-error textarea,
.nyocor-proc-modal-content .nyocor-proc-field.has-error input,
.nyocor-proc-modal-content .nyocor-proc-field.has-error textarea,
.nyocor-proc-modal-body .nyocor-proc-field.has-error input,
.nyocor-proc-modal-body .nyocor-proc-field.has-error textarea {
    border-color: #dc2626;
}

/* 统一错误提示 */
.nyocor-modal .nyocor-proc-field .err,
.nyocor-proc-modal-content .nyocor-proc-field .err,
.nyocor-proc-modal-body .nyocor-proc-field .err {
    color: #dc2626;
    font-size: max(12px, calc(12 * var(--u)));
    margin-top: calc(4 * 100vw / 1920);
}

/* 统一两列网格布局（间距等比；≤640 切单列见下方断点） */
.nyocor-modal .nyocor-proc-grid2,
.nyocor-proc-modal-content .nyocor-proc-grid2,
.nyocor-proc-modal-body .nyocor-proc-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(14 * 100vw / 1920);
}

/* 统一表单操作区域 */
.nyocor-modal .nyocor-proc-actions,
.nyocor-proc-modal-content .nyocor-proc-actions,
.nyocor-proc-modal-body .nyocor-proc-actions {
    margin-top: calc(6 * 100vw / 1920);
}

/* 统一验证码显示 - 确保人机验证数字始终可见 */
.nyocor-proc-cap-q,
.nyocor-proc-form .nyocor-proc-cap-q,
.nyocor-modal .nyocor-proc-cap-q,
.nyocor-proc-modal-content .nyocor-proc-cap-q,
.nyocor-proc-modal-body .nyocor-proc-cap-q {
    display: inline-block !important;
    margin-right: calc(8 * 100vw / 1920) !important;
    font-weight: 700 !important;
    font-size: max(13px, calc(16 * var(--u))) !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    left: auto !important;
}

/* 统一提交按钮（品牌蓝 #2A6BB5，悬浮深蓝 #1F548F） */
.nyocor-modal .btn-submit,
.nyocor-proc-modal-content .btn-submit,
.nyocor-modal .nyocor-proc-submit,
.nyocor-proc-modal-content .nyocor-proc-submit,
.nyocor-modal .nyocor-proc-actions button,
.nyocor-proc-modal-body .nyocor-proc-actions button {
    background: #2A6BB5;
    color: #fff;
    padding: calc(12 * 100vw / 1920) calc(32 * 100vw / 1920);
    border: none;
    border-radius: 6px;
    font-size: max(13px, calc(16 * var(--u)));
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.nyocor-modal .btn-submit:hover,
.nyocor-proc-modal-content .btn-submit:hover,
.nyocor-modal .nyocor-proc-submit:hover,
.nyocor-proc-modal-content .nyocor-proc-submit:hover,
.nyocor-modal .nyocor-proc-actions button:hover,
.nyocor-proc-modal-body .nyocor-proc-actions button:hover {
    background: #1F548F;
}

/* ========================================
   弹窗手机档：放在文件末尾，确保覆盖上方同特异性的统一弹窗规则
   （≤768：全宽贴边 + 固定 px 字号/点击域 + 单列表单；≤640 仅再收一次单列网格）
   ======================================== */
@media (max-width: 768px) {
    .nyocor-modal,
    .nyocor-proc-modal {
        top: 0; /* 吸顶偏移随视口等比后过小，回满屏 */
    }

    .nyocor-modal__dialog,
    .nyocor-proc-modal-content {
        width: 94%;
        max-width: none;
        padding: 20px 16px;
        max-height: 86vh;
        border-radius: 8px;
    }

    .nyocor-modal__dialog h2,
    .nyocor-proc-modal-body h2,
    .nyocor-proc-modal-body .modal-title {
        font-size: 14px !important;
        margin-bottom: 12px;
    }

    .nyocor-modal__close,
    .nyocor-proc-modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .nyocor-modal .nyocor-proc-grid2,
    .nyocor-proc-modal-content .nyocor-proc-grid2,
    .nyocor-proc-modal-body .nyocor-proc-grid2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nyocor-modal .nyocor-proc-field,
    .nyocor-proc-modal-content .nyocor-proc-field,
    .nyocor-proc-modal-body .nyocor-proc-field {
        margin-bottom: 10px;
    }

    .nyocor-modal label,
    .nyocor-modal .label,
    .nyocor-proc-modal-content label,
    .nyocor-proc-modal-content .label,
    .nyocor-proc-modal-body label,
    .nyocor-proc-modal-body .label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .nyocor-modal .nyocor-proc-field .label small,
    .nyocor-proc-modal-content .nyocor-proc-field .label small,
    .nyocor-proc-modal-body .nyocor-proc-field .label small,
    .nyocor-proc-field .label small {
        font-size: 11px;
    }

    .nyocor-modal input[type="text"],
    .nyocor-modal input[type="email"],
    .nyocor-modal input[type="tel"],
    .nyocor-modal textarea,
    .nyocor-modal select,
    .nyocor-proc-modal-content input[type="text"],
    .nyocor-proc-modal-content input[type="email"],
    .nyocor-proc-modal-content input[type="tel"],
    .nyocor-proc-modal-content textarea,
    .nyocor-proc-modal-content select,
    .nyocor-proc-modal-body textarea,
    .nyocor-modal .nyocor-proc-field input[type="text"],
    .nyocor-modal .nyocor-proc-field input[type="email"],
    .nyocor-modal .nyocor-proc-field textarea,
    .nyocor-modal .nyocor-proc-field input[type="file"],
    .nyocor-proc-modal-content .nyocor-proc-field input[type="text"],
    .nyocor-proc-modal-content .nyocor-proc-field input[type="file"],
    .nyocor-proc-modal-body .nyocor-proc-field input[type="text"] {
        padding: 8px 10px;
        font-size: 13px;
    }

    .nyocor-modal textarea,
    .nyocor-proc-modal-content textarea,
    .nyocor-proc-modal-body textarea {
        min-height: 72px;
    }

    .nyocor-modal .nyocor-proc-field .err,
    .nyocor-proc-modal-content .nyocor-proc-field .err,
    .nyocor-proc-modal-body .nyocor-proc-field .err {
        font-size: 11px;
    }

    .nyocor-proc-cap-q {
        font-size: 13px !important;
        margin-right: 6px !important;
    }

    .nyocor-modal .btn-submit,
    .nyocor-proc-modal-content .btn-submit,
    .nyocor-modal .nyocor-proc-submit,
    .nyocor-proc-modal-content .nyocor-proc-submit,
    .nyocor-modal .nyocor-proc-actions button,
    .nyocor-proc-modal-body .nyocor-proc-actions button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .nyocor-modal .nyocor-proc-grid2,
    .nyocor-proc-modal-content .nyocor-proc-grid2,
    .nyocor-proc-modal-body .nyocor-proc-grid2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* 平板档（769-1024）按钮下限：等比 calc 在此档过小，回固定可读规格（≤768 沿用） */
@media (max-width: 1024px) {
	/* 限定详情页容器：不影响列表卡片按钮（后者由 procurement-landing.css 单独兜底） */
	.single-procurement-page .btn-action,
	.single-procurement-page .btn-register {
		min-width: 150px;
		min-height: 44px;
		padding: 10px 24px;
		font-size: 14px;
	}
	.single-procurement-page .btn-icon { font-size: 16px; }
	.single-procurement-page .btn-register .btn-locate { width: 24px; height: 24px; margin-left: 8px; }
	.single-procurement-page .btn-register .btn-locate-core { width: 15px; height: 15px; border-width: 2px; }
	.single-procurement-page .btn-register .btn-locate-core::after { width: 4px; height: 4px; }
}
