/* ============================================================
   传感器应用需求信息收集表 - 前台页面（requirements.asp）
   轮播区与 technology.asp 保持同高：padding 88px + min-height 400px
   背景为纯 CSS 高科技深蓝渐变（多层 + 网格蒙版 + 双光晕），无图片
   ============================================================ */

/* -------- 英雄区（与 technology.asp / news.asp / job.asp 同高） -------- */
.req-hero {
    padding: 88px 0 0 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    isolation: isolate;

    /* 多层渐变背景：太空黑 → 军工蓝 → 科技青 + 两团径向柔光 */
    background:
        radial-gradient(1200px 600px at 85% 110%, rgba(56,189,248,0.22) 0%, rgba(56,189,248,0) 55%),
        radial-gradient(900px 500px at 10% -20%, rgba(59,130,246,0.35) 0%, rgba(59,130,246,0) 55%),
        linear-gradient(135deg, #060e24 0%, #0a2540 35%, #0e3a73 70%, #0e4a8e 100%);
}

/* 细网格蒙版（芯片电路图感），上下渐隐 mask 去除硬边 */
.req-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.10) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.9) 45%, rgba(0,0,0,0.9) 55%, rgba(0,0,0,0.0) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.9) 45%, rgba(0,0,0,0.9) 55%, rgba(0,0,0,0.0) 100%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

/* ::after 光晕：右上蓝色光球（不压文字，透明度受控） */
.req-hero::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,0.55) 0%, rgba(96,165,250,0.15) 40%, rgba(96,165,250,0) 70%);
    top: -180px; right: -60px;
    filter: blur(10px);
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
}

/* 附加光晕层：左下青蓝色光球（span.req-hero-glow） */
.req-hero-glow {
    position: absolute;
    width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,211,238,0.45) 0%, rgba(34,211,238,0.10) 42%, rgba(34,211,238,0) 72%);
    bottom: -240px; left: -140px;
    filter: blur(10px);
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
}

.req-hero > .container {
    position: relative;
    z-index: 2;
    padding: 80px 24px;
}

.req-hero-label {
    display:inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    color: #93c5fd;
    margin-bottom: 14px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}
.req-hero h1 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    color: #f8fafc;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 24px rgba(56,189,248,0.18);
}
.req-hero p {
    font-size: 18px;
    opacity: 0.92;
    color: #e2e8f0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    line-height: 1.7;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* 清理：上一次遗留的 slides / overlay 空类（删除，避免混淆） */
.req-hero-slides, .req-hero-slide, .req-hero-overlay { display: none !important; }

/* -------- 表单体区 -------- */
.req-wrap {
    padding: 70px 0 90px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.req-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.15);
    padding: 48px 56px;
}

.req-head {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px dashed #cbd5e1;
}
.req-head .label {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--primary-darker);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.req-head h2 {
    font-size: 28px;
    //color: var(--primary-darker);
    color: #34377e;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.req-head p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}
.req-head p b {
    color: var(--accent-red);
    font-weight: 600;
}

/* -------- 分组 -------- */
.req-group {
    margin-bottom: 36px;
}
.req-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid var(--primary-darker);
}
.req-group-title span.num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-darker), #3b82f6);
    color: white;
    font-size: 13px;
    font-weight: 700;
}
.req-group-title h3 {
    font-size: 17px;
    //color: var(--primary-darker);
    color: #34377e;
    margin: 0;
    letter-spacing: -0.3px;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 28px;
}

.req-field {
    display: flex;
    flex-direction: column;
}
.req-field.span-2 { grid-column: span 2; }

.req-field label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.req-field label .mand {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}
.req-field label .hint {
    color: #94a3b8;
    font-weight: 400;
    font-size: 12px;
    margin-left: auto;
}

.req-field input[type="text"],
.req-field input[type="tel"],
.req-field input[type="email"],
.req-field textarea,
.req-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    outline: none;
    box-sizing: border-box;
}
.req-field textarea {
    min-height: 120px;
    line-height: 1.7;
    resize: vertical;
}
.req-field input:focus,
.req-field textarea:focus,
.req-field select:focus {
    border-color: var(--primary-darker);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: #f8fbff;
}
.req-field input.invalid,
.req-field textarea.invalid,
.req-field select.invalid {
    border-color: var(--accent-red);
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* -------- 单选芯片（压力类型 / 信号输出） -------- */
.req-radio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.req-radio label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    transition: all .2s;
    margin: 0;
    user-select: none;
}
.req-radio label:hover { border-color: var(--primary-darker); color: var(--primary-darker); }
.req-radio input { display: none; }
.req-radio input:checked + span {
    color: white;
    pointer-events: none;
}
.req-radio label:has(input:checked) {
    background: linear-gradient(135deg, var(--primary-darker), #3b82f6);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.2);
}

/* -------- 提交 -------- */
.req-actions {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.req-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 56px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-red) 0%, #c0392b 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(220, 38, 38, 0.25);
    transition: transform .15s, box-shadow .2s;
    letter-spacing: 1px;
}
.req-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.32);
}
.req-submit:active { transform: translateY(0); }

.req-tip {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    text-align: center;
}
.req-tip a {
    color: var(--primary-darker);
    text-decoration: none;
}

/* -------- 成功 Toast -------- */
.req-toast {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #16a085, #0e7563);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(22, 160, 133, 0.3);
    font-size: 15px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all .4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.req-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.req-toast svg { width: 22px; height: 22px; flex-shrink: 0; }

/* -------- 成功页内提示（若刷新 / 非脚本跳转） -------- */
.req-result {
    margin: 0 auto 32px;
    max-width: 780px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 18px 28px;
    border-radius: 12px;
    border-left: 4px solid #16a085;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    line-height: 1.7;
}
.req-result svg { width: 28px; height: 28px; flex-shrink: 0; color: #16a085; }
.req-result strong { font-size: 16px; display: block; margin-bottom: 2px; }

/* -------- 响应式 -------- */
@media (max-width: 1024px) {
    .req-card { padding: 36px 28px; }
    .req-radio { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .req-hero h1 { font-size: 36px; }
    .req-hero p  { font-size: 16px; }

    .req-wrap { padding: 40px 0 56px; }
    .req-card { padding: 24px 18px; border-radius: 14px; }
    .req-grid { grid-template-columns: 1fr; gap: 16px; }
    .req-field.span-2 { grid-column: span 1; }
    .req-submit { width: 100%; padding: 14px 20px; }
    .req-group-title h3 { font-size: 15px; }
    .req-head h2 { font-size: 22px; }
}
@media (max-width: 480px) {
    .req-hero { padding: 60px 0; }
    .req-hero h1 { font-size: 28px; }
    .req-hero::before { background-size: 28px 28px; opacity: 0.55; }
    .req-hero::after {
        width: 260px; height: 260px;
        top: -120px; right: -80px;
        opacity: 0.7;
    }
    .req-hero-glow {
        width: 320px; height: 320px;
        bottom: -160px; left: -120px;
        opacity: 0.7;
    }

    .req-radio { grid-template-columns: 1fr 1fr; }
    .req-toast { left: 16px; right: 16px; width: auto; transform: translateY(-20px); }
    .req-toast.show { transform: translateY(0); }
}
