/*
 * ============================================================================
 * 软件名称：招聘巴巴招聘求职管理系统 V1.0
 * 著作权人：北京约定科技集团有限公司
 * 开发完成日期：2026年04月22日
 * 软件用途：本文件为前台信息详情页及海报弹窗的样式定义。
 * 
 * 版权所有 (C) 2026 北京约定科技集团有限公司。保留所有权利。
 * 本软件为著作权人独立开发，未经著作权人书面许可，任何单位或个人不得：
 * 1. 复制、传播、改编本软件；
 * 2. 将本软件用于商业用途；
 * 3. 修改或反向工程本软件。
 * 违反上述规定的，著作权人将依法追究其法律责任。
 * ============================================================================
 */

/* 招聘巴巴 - 详情页样式
 * 功能：定义信息详情卡片、标签、按钮、海报模板及弹窗等组件的样式。
 */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
    color: #1e293b;
}

/* 主容器 */
.detail-wrap {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* 信息编号区域 */
.info-sn {
    text-align: right;
    font-size: 0.85rem;
    color: #5b6e8c;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

/* 主卡片 */
.detail-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.detail-card:hover {
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
}

/* 信息行 */
.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.8rem;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.15s;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-item:hover {
    background: #fafcff;
}

/* 标签样式 */
.detail-item .label {
    width: 120px;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 内容样式 */
.detail-item span:last-child {
    flex: 1;
    min-width: 200px;
    color: #334155;
    font-size: 0.95rem;
    word-break: break-word;
    line-height: 1.6;
}

/* 长文本样式 */
.desc-text {
    background: #f8fafc;
    padding: 1.2rem 1.4rem;
    border-radius: 20px;
    line-height: 1.65;
    font-size: 0.95rem;
    color: #1e293b;
    border: 1px solid #eef2ff;
    display: block;
    width: 100%;
}

/* 联系电话高亮 */
.tel-link {
    font-weight: 500;
    color: #1e40af !important;
    background: #eff6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    text-decoration: none !important;
    cursor: pointer;
}

/* 操作按钮组 */
.detail-btns {
    padding: 1.5rem 1.8rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 通用按钮基础样式 */
.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn i {
    font-size: 1rem;
}

/* 生成分享海报按钮 */
.btn-share {
    background: linear-gradient(105deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

.btn-share:hover {
    transform: translateY(-2px);
    background: linear-gradient(105deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25);
}

/* 投诉举报按钮 */
.btn-report {
    background: linear-gradient(105deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.btn-report:hover {
    transform: translateY(-2px);
    background: linear-gradient(105deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

/* ===================== 海报专属样式 ===================== */
.poster-canvas-base {
    width: 600px;
    height: 800px;
    position: relative;
    overflow: hidden;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
}
/* 模板背景（10套风格） */
.poster-template-1 { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.poster-template-2 { background: linear-gradient(135deg, #374151, #111827); }
.poster-template-3 { background: linear-gradient(135deg, #f472b6, #ec4899); }
.poster-template-4 { background: linear-gradient(135deg, #1f2937, #000000); }
.poster-template-5 { background: linear-gradient(135deg, #bae6fd, #7dd3fc); }
.poster-template-6 { background: linear-gradient(135deg, #f8fafc, #e2e8f0); color:#333; }
.poster-template-7 { background: linear-gradient(135deg, #f97316, #ea580c); }
.poster-template-8 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.poster-template-9 { background: linear-gradient(135deg, #10b981, #059669); }
.poster-template-10 { background: linear-gradient(135deg, #6366f1, #4f46e5); }

/* 海报LOGO区域 */
.poster-logo-area {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
.poster-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.poster-site-name {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}
.poster-template-6 .poster-site-name { color: #1e293b; }

/* 海报广告文字 */
.poster-ad-text {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    z-index: 10;
    white-space: pre-line;
}
.poster-template-6 .poster-ad-text { color: #1e293b; }

/* 海报底部信息 */
.poster-footer {
    position: absolute;
    bottom: 80px;
    left: 30px;
    font-size: 16px;
    color: #fff;
    line-height: 1.6;
    z-index: 10;
}
.poster-template-6 .poster-footer { color: #333; }

/* 二维码容器（12px留白+圆角，你要求的尺寸） */
.poster-qrcode-wrap {
    position: absolute;
    bottom: 40px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 12px;
    border-radius: 24px;
    box-sizing: border-box;
    z-index: 10;
}
/* 二维码尺寸 */
.poster-qrcode {
    width: 140px !important;
    height: 140px !important;
}
.poster-qrcode img {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
/* 二维码提示文字 */
.poster-qr-tip {
    position: absolute;
    bottom: 20px;
    right: 30px;
    width: 164px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    z-index: 10;
}
.poster-template-6 .poster-qr-tip { color: #333; }

/* 海报弹窗样式（沿用原有） */
.poster-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
}
.poster-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    background: #fff;
    border-radius: 32px;
    z-index: 10001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}
.poster-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.poster-modal-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}
.poster-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}
.poster-modal-body {
    padding: 30px 24px;
    overflow-y: auto;
    flex: 1;
}
.poster-tpl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.poster-tpl-item {
    background: #fff;
    border-radius: 24px;
    padding: 16px 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.poster-tpl-item.active {
    border-color: #ff9800;
    background: #fff7ed;
}
.poster-tpl-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
}
.poster-tpl-name {
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
}
.poster-save-btn {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
}
.preview-only {
    background: transparent;
    box-shadow: none;
}
.preview-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 768px) {
    .poster-tpl-grid { grid-template-columns: repeat(2,1fr); }
    .detail-btns { flex-direction: column; }
}