/* 复用 requirement.css 基础结构，仅覆盖差异部分 */
@import url('requirement.css');

/* 报价弹窗 */
.price-modal {
    max-width: 400px;
}

.price-input-wrapper {
    position: relative;
}

.price-input-wrapper .form-input {
    padding-left: 32px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.price-input-wrapper .price-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #999;
    pointer-events: none;
}

.price-hint {
    text-align: center;
    color: #999;
    font-size: 0.78rem;
    margin-top: 6px;
}

/* 需求列表项额外信息 */
.req-item-price {
    font-size: 1rem;
    color: #e05353;
    font-weight: 600;
}

.req-item-creator {
    font-size: 0.72rem;
    color: #999;
    margin-bottom: 4px;
}

/* 自己发布的需求 */
.req-item-mine {
    background: rgba(74, 144, 226, 0.04);
    border-color: rgba(74, 144, 226, 0.2);
}
.req-item-mine.req-item-selected {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.08);
}
.req-item-mine .req-item-creator strong {
    color: #4a90e2;
}

/* 列表中承接按钮 */
.req-item-actions .btn-accept-inline {
    background: #e8f5e9;
    color: #27ae60;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(39, 174, 96, 0.2);
    transition: all 0.2s;
    width: auto;
    height: auto;
}
.req-item-actions .btn-accept-inline:hover {
    background: #27ae60;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* 价格设定按钮 */
.req-item-actions .btn-price {
    background: #fff0e6;
    color: #e67e22;
    width: auto;
    height: auto;
}

.req-item-actions .btn-price:hover {
    background: #e67e22;
    color: white;
}

/* 我的承接标记 */
.req-item-accepted-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 6px;
    font-weight: 500;
}

/* 制作人标记 */
.req-item-producer-badge {
    display: inline-block;
    background: #e8f0ff;
    color: #4a90e2;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 6px;
    font-weight: 500;
}

/* 截止日期 */
.req-item-deadline {
    font-size: 1rem;
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.req-item-deadline-expired {
    color: #e74c3c;
}

/* Tab 切换按钮 */
.req-tabs {
    display: flex;
    padding: 8px 12px;
    gap: 8px;
    background: #f8f9fc;
    border-bottom: 1px solid #eef0f2;
}

.req-tab {
    flex: 1;
    padding: 9px 0;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.req-tab:hover {
    background: rgba(196, 168, 130, 0.06);
    color: #666;
}

.req-tab.active {
    background: #fff;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.req-tab-accepted.active {
    color: #27ae60;
}

.req-tab-available.active {
    color: #c4a882;
}

.req-tab-count {
    font-size: 0.68rem;
    font-weight: 400;
    color: #bbb;
    background: #f0f2f5;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.req-tab.active .req-tab-count {
    background: #eef0ff;
    color: #c4a882;
}

.req-tab-accepted.active .req-tab-count {
    background: #e8f5e9;
    color: #27ae60;
}

/* 需求列表分组 */
.req-section {
    margin-bottom: 2px;
}

.req-section-empty {
    text-align: center;
    padding: 16px 12px;
    font-size: 0.78rem;
    color: #ccc;
}

.req-section-empty-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* 底部操作栏 */
.accept-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-top: 1px solid #f2f3f5;
    flex-shrink: 0;
    background: #fafbfc;
}

.accept-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
}

.accept-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.accept-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.price-btn {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
}

.price-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

.accept-action-status {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

/* 系统消息居中 */
.chat-message-system {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.chat-message-system .chat-message-avatar {
    display: none;
}

.chat-message-system .chat-message-body {
    max-width: 85%;
}

.chat-message-system .chat-message-role {
    text-align: center;
    font-size: 0.68rem;
    color: #aaa;
}

.chat-message-system .chat-message-content {
    background: #f5f7fa;
    color: #888;
    border-radius: 10px;
    text-align: center;
    font-size: 0.82rem;
    padding: 8px 16px;
}

/* 聊天角色标签 */
.chat-role-tag {
    display: inline-block;
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 500;
    vertical-align: middle;
}
.chat-role-tag-requester {
    background: #fff3e0;
    color: #e67e22;
}
.chat-role-tag-acceptor {
    background: #e8f5e9;
    color: #2e7d32;
}
.chat-role-tag-producer {
    background: #e8f0ff;
    color: #4a90e2;
}

/* 聊天媒体水印 */
.chat-message-media-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eef0f2;
}
/* 聊天媒体水印（平铺由 JS 动态生成 span，容器本身只需定位） */
.chat-watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    user-select: none;
}

/* 消息中的视频（供 production 等页面复用） */
.chat-message-video {
    max-width: 240px;
    max-height: 180px;
    display: block;
    border-radius: 8px;
    background: #1a1a2e;
}

.chat-message-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

/* 放大弹窗中的视频容器 */
.image-zoom-video-wrap {
    position: relative;
    display: inline-block;
}

/* 放大弹窗下载按钮 */
.image-zoom-download {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3010;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}
.image-zoom-download:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* 右键阻止遮罩层（覆盖在 video 上拦截右键菜单） */
.image-zoom-context-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: transparent;
    cursor: default;
}

/* 通知弹窗 */
.notification-modal {
    max-width: 420px;
    padding: 32px 28px 24px;
}

.notification-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

#notificationTitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

#notificationMessage {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
}
