/* ============================================================
   劳务招工系统 全局样式（美化版）
   现代浅色风格：蓝青渐变主色、柔和阴影、圆角、过渡动效
   ============================================================ */

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
}
a { color: #2563eb; text-decoration: none; transition: color .15s; }
a:hover { color: #1d4ed8; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%);
    color: #fff;
    padding: 0 24px;
    height: 58px;
    line-height: 58px;
    box-shadow: 0 2px 14px rgba(30, 58, 138, .25);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: visible;
    white-space: nowrap;
}
.navbar .brand {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-right: 22px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
}
.navbar a {
    color: #dbeafe;
    margin-right: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all .18s;
    font-size: 14px;
}
.navbar a:hover { color: #fff; background: rgba(255, 255, 255, .14); text-decoration: none; }
.navbar a[style*="bold"] { color: #fff; background: rgba(255, 255, 255, .18); }
.navbar .right { margin-left: auto; }
.navbar .right a { margin-right: 0; }

/* ---------- 容器 ---------- */
.container { max-width: 1220px; margin: 26px auto; padding: 0 16px; }
.container-narrow { max-width: 460px; margin: 70px auto; padding: 0 16px; }

/* ---------- 卡片 ---------- */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 8px 24px -18px rgba(15, 23, 42, .12);
    transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 12px 32px -18px rgba(15, 23, 42, .16); }
.card h3 {
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    padding-left: 12px;
    border-left: 4px solid #2563eb;
    line-height: 1.4;
}
.card h3 .btn { margin-left: 6px; }

/* ---------- 表格 ---------- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    font-size: 13.5px;
}
th, td { padding: 11px 14px; text-align: left; vertical-align: top; }
th {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
td { border-bottom: 1px solid #f1f5f9; color: #334155; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #f8fafc; }
td small { color: #94a3b8; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    text-decoration: none;
    transition: all .16s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    line-height: 1.5;
}
.btn:hover { text-decoration: none; border-color: #cbd5e1; box-shadow: 0 3px 8px rgba(15, 23, 42, .1); transform: translateY(-1px); color: #1e293b; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: transparent; color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.btn-success { background: linear-gradient(135deg, #16a34a, #15803d); border-color: transparent; color: #fff; }
.btn-success:hover { background: linear-gradient(135deg, #15803d, #166534); color: #fff; box-shadow: 0 4px 14px rgba(22, 163, 74, .35); }
.btn-danger { background: linear-gradient(135deg, #dc2626, #b91c1c); border-color: transparent; color: #fff; }
.btn-danger:hover { background: linear-gradient(135deg, #b91c1c, #991b1b); color: #fff; box-shadow: 0 4px 14px rgba(220, 38, 38, .35); }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); border-color: transparent; color: #fff; }
.btn-warning:hover { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; box-shadow: 0 4px 14px rgba(217, 119, 6, .35); }
.btn-sm { padding: 4px 12px; font-size: 12.5px; border-radius: 6px; }

/* ---------- 表单 ---------- */
label { display: block; margin-bottom: 6px; font-weight: 600; color: #334155; font-size: 13.5px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=month], input[type=datetime-local], select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 14px;
    color: #1e293b;
    background: #fbfdff;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
textarea { min-height: 64px; resize: vertical; }
.form-row { margin-bottom: 6px; }
.form-row .half { display: inline-block; width: 48%; margin-right: 3.5%; }
.form-row .half:last-child { margin-right: 0; }

/* ---------- 状态标签 ---------- */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    vertical-align: middle;
}
.tag.green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; }
.tag.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.tag.red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.tag.orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #9a3412; }
.tag.gray { background: #e2e8f0; color: #475569; }

/* ---------- 提示框 ---------- */
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; border-left: 4px solid transparent; }
.alert-success { background: #f0fdf4; color: #166534; border-left-color: #16a34a; }
.alert-error { background: #fef2f2; color: #991b1b; border-left-color: #dc2626; }
.alert-info { background: #eff6ff; color: #1e40af; border-left-color: #2563eb; }

/* ---------- 统计卡片 ---------- */
.stat-cards { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-card {
    flex: 1;
    min-width: 158px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eef2f7;
    border-top: 3px solid #2563eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    transition: transform .16s, box-shadow .16s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(37, 99, 235, .35); }
.stat-card .num { font-size: 26px; font-weight: 800; color: #1d4ed8; line-height: 1.2; }
.stat-card .label { color: #64748b; margin-top: 6px; font-size: 13px; }

/* ---------- 分页 ---------- */
.pagination { margin-top: 18px; text-align: right; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    margin-left: 6px;
    color: #475569;
    font-size: 13px;
    transition: all .15s;
    background: #fff;
}
.pagination a:hover { text-decoration: none; border-color: #2563eb; color: #2563eb; }
.pagination .current { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-color: transparent; font-weight: 600; }

/* ---------- 公开页头部 ---------- */
.public-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0ea5e9 100%);
    color: #fff;
    padding: 54px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.public-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .14), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(255, 255, 255, .10), transparent 40%),
        radial-gradient(circle at 70% 15%, rgba(255, 255, 255, .07), transparent 30%);
}
.public-header h1 { font-size: 30px; font-weight: 800; letter-spacing: 1px; position: relative; text-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.public-header p { margin-top: 10px; color: #dbeafe; position: relative; font-size: 15px; }

/* ---------- 企业列表 ---------- */
.factory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.factory-card {
    display: block;
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    color: #334155;
    overflow: hidden;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.factory-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    opacity: 0;
    transition: opacity .22s;
}
.factory-card:hover {
    text-decoration: none;
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 14px 30px -14px rgba(37, 99, 235, .4);
    color: #1e293b;
}
.factory-card:hover::before { opacity: 1; }
.factory-card .icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.factory-card .name { font-size: 18px; font-weight: 700; color: #1e3a8a; margin-bottom: 8px; }
.factory-card .meta { color: #64748b; line-height: 1.9; font-size: 13px; }
.factory-card .count { margin-top: 12px; }
.factory-card .enter { margin-top: 12px; color: #2563eb; font-size: 13px; font-weight: 600; }

/* ---------- 岗位卡片 ---------- */
.job-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
    border-left: 4px solid #2563eb;
    transition: all .18s;
}
.job-card:hover { box-shadow: 0 8px 22px -12px rgba(15, 23, 42, .18); transform: translateY(-2px); }
.job-card .title { font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.job-card .meta { color: #64748b; line-height: 2; font-size: 13.5px; }
.job-card .salary { color: #dc2626; font-weight: 700; font-size: 16px; }

/* ---------- 报名弹窗 ---------- */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(3px); }
.modal-box {
    position: relative;
    background: #fff;
    width: 92%;
    max-width: 430px;
    border-radius: 16px;
    padding: 28px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px -16px rgba(15, 23, 42, .4);
    animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 18px; font-size: 26px; color: #94a3b8; cursor: pointer; line-height: 1; transition: color .15s; }
.modal-close:hover { color: #dc2626; }
.modal-box h3 { border-left: 4px solid #2563eb; padding-left: 12px; font-size: 17px; font-weight: 700; }

/* ---------- 签到页 ---------- */
.big-form { text-align: center; padding: 30px 20px; }
.big-form input[type=text] { max-width: 340px; margin: 14px auto; text-align: center; font-size: 19px; letter-spacing: 1px; }
.big-form .btn-primary { font-size: 17px; padding: 11px 44px; border-radius: 10px; }
.trip-info {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    color: #1e40af;
    line-height: 2;
}
.trip-info h3 { margin-bottom: 6px; }

/* ---------- 签到凭证 ---------- */
.ticket { max-width: 440px; margin: 20px auto; border: 2px dashed #16a34a; border-radius: 14px; padding: 24px; background: #fff; box-shadow: 0 10px 30px -16px rgba(22, 163, 74, .4); }
.ticket h3 { text-align: center; color: #166534; margin-bottom: 14px; font-size: 19px; }
.ticket table { border: none; }
.ticket table td { border: none; border-bottom: 1px dashed #e2e8f0; padding: 9px 6px; }
.ticket table tr:last-child td { border-bottom: none; }

/* ---------- 页脚装饰（登录页） ---------- */
.login-logo { text-align: center; margin-bottom: 22px; }
.login-logo .logo-icon {
    width: 56px; height: 56px; margin: 0 auto 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff; font-size: 28px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .5);
}
.login-logo .logo-text { font-size: 20px; font-weight: 700; color: #1e293b; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
    .navbar { height: auto; line-height: 46px; flex-wrap: wrap; padding: 8px 14px; }
    .navbar .brand { margin-right: 8px; }
    .navbar .right { margin-left: 0; width: 100%; text-align: right; }
    .form-row .half { width: 100%; margin-right: 0; }
    .stat-cards .stat-card { min-width: 130px; }
    .public-header { padding: 38px 16px; }
    .public-header h1 { font-size: 24px; }
    .factory-hero { flex-direction: column; text-align: center; }
    .factory-hero .fh-icon { margin: 0 auto; }
    .search-form { flex-direction: column; }
    .search-form input[type=text] { width: 100%; }
    .job-card .job-head { flex-direction: column; }
}

/* ---------- 公开页增强 ---------- */
.hero-badge {
    position: relative;
    display: inline-block;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}
.hero-stats { position: relative; display: flex; gap: 16px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; padding: 12px 22px; color: #dbeafe; font-size: 13px; }
.hero-stats b { display: block; font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; }

.query-link { text-align: center; margin-top: 20px; }
.query-link p { font-size: 15px; }

.empty-hint { color: #718096; text-align: center; padding: 20px; }

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: #2563eb;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    transition: all .16s;
}
.back-link:hover { border-color: #2563eb; color: #1d4ed8; transform: translateX(-2px); }

/* 企业详情头卡 */
.factory-hero {
    display: flex;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 8px 24px -18px rgba(15, 23, 42, .12);
}
.factory-hero .fh-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff; font-size: 30px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .5);
    flex-shrink: 0;
}
.factory-hero h2 { font-size: 22px; font-weight: 800; color: #1e293b; }
.factory-hero .fh-meta { color: #64748b; margin-top: 6px; font-size: 13.5px; }
.factory-hero .fh-addr { color: #94a3b8; margin-top: 4px; font-size: 13px; }

/* 岗位卡布局 */
.job-card .job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.job-card .job-head .title { margin-bottom: 0; }
.job-card .job-actions { margin-top: 14px; text-align: right; }

/* 查询表单面板 */
.search-panel { text-align: center; padding: 28px 20px; }
.search-panel h3 { border-left: none; text-align: center; padding-left: 0; margin-bottom: 18px; }
.search-form { display: flex; gap: 10px; justify-content: center; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.search-form input[type=text] { flex: 1; min-width: 200px; margin-bottom: 0; font-size: 16px; text-align: center; }
.search-tip { color: #94a3b8; font-size: 12.5px; margin-top: 14px; }

/* 工资/金额强调 */
.money-strong { font-weight: 700; color: #e53e3e; }

/* 明细折叠区 */
.detail-block { margin-top: 12px; }
.detail-block summary { cursor: pointer; color: #2563eb; font-weight: 600; font-size: 13.5px; user-select: none; }
.inner-table { margin-top: 10px; }

/* 弹窗标题 */
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.modal-head h3 { border-left: none; padding-left: 0; }
.modal-head-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.w-full { width: 100%; }

/* 凭证操作行 */
.ticket-actions { text-align: center; margin-top: 12px; }

/* 公共页脚 */
.site-footer { text-align: center; color: #94a3b8; font-size: 12.5px; padding: 26px 16px 34px; }
