﻿/* ========== 基础字体设置 ========== */
html {
    font-size: 16px;
}

body {
    font-size: 16px;
    line-height: 1.5;
}

/* ========== 容器样式 ========== */
.xjx-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 16px;
}

.xjx-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== 通告卡片样式 ========== */
.xjx-block {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

    .xjx-block:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

    .xjx-block::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(to bottom, #ff6b6b, #4ecdc4);
    }

    /* 行样式 */
    .xjx-block .row {
        margin-bottom: 10px;
        line-height: 1.5;
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
        min-height: 24px;
    }

        .xjx-block .row:last-child {
            margin-bottom: 0;
        }

        /* 标题行特殊样式 */
        .xjx-block .row.title-row {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px dashed #4ecdc4;
        }

    /* 标题样式 */
    .xjx-block .title {
        font-size: 1.25rem;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 4px;
        width: 100%;
        line-height: 1.3;
    }

    .xjx-block .type {
        font-size: 0.875rem;
        color: #7f8c8d;
        font-weight: normal;
    }

    /* 标签样式 - 宽度根据内容自动适应 */
    .xjx-block .label {
        color: #34495e;
        font-weight: bold;
        white-space: nowrap;
        margin-right: 12px;
        flex-shrink: 0;
        font-size: 0.875rem;
    }

    /* 值样式 - 自动填充剩余空间 */
    .xjx-block .value {
        color: #2c3e50;
        flex: 1;
        min-width: 0;
        font-size: 0.875rem;
        word-break: break-word;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* 分隔线 */
    .xjx-block .separator {
        height: 2px;
        background: linear-gradient(to right, transparent, #4ecdc4, transparent);
        margin: 20px 0;
    }

/* ========== 人员列表样式 ========== */
.person-list {
    margin-top: 15px;
}

.person-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.875rem;
}

    .person-item:hover {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .person-item .person-header {
        font-size: 0.9375rem;
        font-weight: bold;
        color: #2980b9;
        padding-bottom: 8px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(41, 128, 185, 0.3);
    }

    .person-item .row {
        margin-bottom: 8px;
    }

    .person-item .label {
        color: #2c3e50;
    }

    .person-item .value {
        color: #34495e;
    }

.person-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #95a5a6, transparent);
    margin: 15px 0;
}

/* ========== 担保行样式 ========== */
.guarantee-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

    .guarantee-row .label {
        flex-shrink: 0;
        margin-right: 12px;
        white-space: nowrap;
    }

    .guarantee-row .value {
        flex: 0 0 auto;
        margin-right: 4px;
        white-space: nowrap;
    }

    .guarantee-row .info-icon {
        flex-shrink: 0;
        margin-left: 6px;
    }

/* ========== 按钮样式 ========== */
/* 接戏按钮 */
.person-item .accept-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 100px;
    text-align: center;
}

    .person-item .accept-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #FF8E53, #FF6B6B);
        z-index: -1;
        transition: opacity 0.3s ease;
        opacity: 0;
    }

    .person-item .accept-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    }

        .person-item .accept-btn:hover::before {
            opacity: 1;
        }

    .person-item .accept-btn:active {
        transform: translateY(1px);
        box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    }

    .person-item .accept-btn.disabled {
        background: linear-gradient(135deg, #95a5a6, #7f8c8d);
        cursor: not-allowed;
        box-shadow: none;
    }

        .person-item .accept-btn.disabled:hover {
            transform: none;
            box-shadow: none;
        }

    .person-item .accept-btn i {
        margin-right: 5px;
    }

/* 按钮行样式 */
.person-item .button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #95a5a6;
}

.person-item .button-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.person-item .button-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 按钮组样式 */
.person-item .button-group {
    display: flex;
    gap: 10px;
}

/* 倒计时和状态文本 */
.person-item .button-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 13px;
}

.person-item .countdown {
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 15px;
    padding: 5px 12px;
    color: #e74c3c;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.person-item .status-text {
    background: #e8f4fd;
    border: 1px solid #3498db;
    border-radius: 15px;
    padding: 5px 12px;
    color: #2980b9;
    font-weight: bold;
}

.person-item .secondary-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

    .person-item .secondary-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    }

/* ========== 问号图标样式 ========== */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 6px;
    vertical-align: middle;
}

    .info-icon:hover {
        background: #764ba2;
        transform: scale(1.1);
    }

/* ========== 发布者信息区域 ========== */
.publisher-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.publisher-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.publisher-left {
    flex-shrink: 0;
    text-align: center;
    width: 70px;
}

.publisher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
    margin-bottom: 6px;
}

.publisher-nickname {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    word-break: break-all;
    line-height: 1.3;
}

.publisher-right {
    flex-shrink: 0;
    text-align: right;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 4px 0;
    line-height: 1.2;
    gap: 8px;
}

.score-label {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
    white-space: nowrap;
}

    .score-label i {
        margin-right: 6px;
        font-size: 11px;
        color: #667eea;
        width: 16px;
        text-align: center;
    }

.score-stars {
    flex-shrink: 0;
    font-size: 11px;
    color: #ffc107;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

    .score-stars .filled,
    .score-stars .half {
        color: #ffc107;
    }

    .score-stars .empty {
        color: #e4e5e9;
    }

.score-number {
    display: none;
}

/* ========== 我的发布页面样式 ========== */
.notice-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e0e6ed;
}

.notice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.notice-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

    .notice-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .notice-btn i {
        margin-right: 5px;
    }

.notice-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.summary-item {
    font-size: 13px;
    color: #666;
}

.summary-value {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
    margin-left: 5px;
}

/* 人员级别按钮 */
.person-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 12px;
    justify-content: flex-start;
}

.person-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

    .person-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
    }

    .person-btn i {
        margin-right: 4px;
        font-size: 11px;
    }

.person-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 8px;
    background: #fef5e7;
    border-radius: 8px;
    font-size: 12px;
}

    .person-summary .summary-item {
        font-size: 12px;
    }

    .person-summary .summary-value {
        font-size: 14px;
    }

/* ========== 特殊样式 ========== */
.long-text {
    max-height: 60px;
    overflow-y: auto;
    padding-right: 5px;
}

    .long-text::-webkit-scrollbar {
        width: 4px;
    }

    .long-text::-webkit-scrollbar-thumb {
        background: #bdc3c7;
        border-radius: 2px;
    }

.no-data {
    text-align: center;
    padding: 50px;
    color: #7f8c8d;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #bdc3c7;
}

.error {
    color: #e74c3c;
    padding: 20px;
    background: #fff5f5;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

/* ========== 模态弹窗样式 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

    .modal-overlay[style*="display: flex"] {
        display: flex !important;
    }

.modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
    z-index: 100000;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .modal-header h4 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        display: flex;
        align-items: center;
    }

        .modal-header h4 i {
            margin-right: 10px;
            font-size: 20px;
        }

.close-modal {
    font-size: 30px;
    cursor: pointer;
    color: white;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

    .close-modal:hover {
        opacity: 1;
    }

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
    white-space: pre-line;
    font-size: 14px;
    color: #333;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #f8f9fa;
}

    .modal-footer .btn-primary {
        padding: 8px 20px;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        font-size: 14px;
        display: inline-block;
        text-align: center;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

        .modal-footer .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
        }

/* ========== 响应式设计 - 移动端 ========== */
@media (max-width: 768px) {
    .xjx-container {
        padding: 10px;
        font-size: 14px;
    }

    .xjx-block {
        padding: 15px;
    }

        .xjx-block .title {
            font-size: 1.125rem;
        }

        .xjx-block .row {
            margin-bottom: 8px;
        }

        .xjx-block .label {
            margin-right: 10px;
            font-size: 0.8125rem;
        }

        .xjx-block .value {
            font-size: 0.8125rem;
        }

    /* 担保行移动端适配 */
    .guarantee-row .label {
        margin-right: 10px;
    }

    .guarantee-row .value {
        font-size: 0.8125rem;
    }

    /* 人员列表移动端适配 */
    .person-item {
        padding: 10px;
    }

        .person-item .person-header {
            font-size: 0.875rem;
        }

        .person-item .button-row {
            flex-direction: column;
            gap: 10px;
            align-items: stretch;
        }

        .person-item .button-left {
            order: 2;
            justify-content: center;
        }

        .person-item .button-wrapper {
            order: 1;
            justify-content: center;
        }

        .person-item .accept-btn {
            width: 100%;
            max-width: 200px;
            font-size: 14px;
            padding: 8px 20px;
        }

        .person-item .button-group {
            flex-direction: column;
            gap: 8px;
        }

        .person-item .secondary-btn {
            font-size: 12px;
            padding: 7px 15px;
        }

    /* 发布者区域移动端适配 */
    .publisher-container {
        gap: 12px;
    }

    .publisher-left {
        width: 60px;
    }

    .publisher-avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 4px;
    }

    .publisher-nickname {
        font-size: 11px;
    }

    .score-label {
        font-size: 11px;
    }

        .score-label i {
            font-size: 10px;
            margin-right: 5px;
            width: 14px;
        }

    .score-stars {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .score-row {
        padding: 3px 0;
        gap: 6px;
    }

    /* 按钮区域移动端适配 */
    .notice-buttons {
        gap: 8px;
    }

    .notice-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .notice-summary {
        gap: 12px;
    }

    .summary-item {
        font-size: 11px;
    }

    .summary-value {
        font-size: 14px;
    }

    .person-buttons {
        gap: 6px;
    }

    .person-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .person-summary {
        gap: 10px;
    }

        .person-summary .summary-item {
            font-size: 10px;
        }

    /* 模态弹窗移动端适配 */
    .modal-content {
        max-width: 90%;
        border-radius: 20px;
    }

    .modal-header {
        padding: 15px;
    }

        .modal-header h4 {
            font-size: 16px;
        }

    .modal-body {
        padding: 15px;
        font-size: 13px;
    }

    .modal-footer {
        padding: 12px 15px;
    }
}

/* ========== 超小屏幕适配 ========== */
@media (max-width: 480px) {
    .xjx-block .label {
        margin-right: 6px;
        font-size: 0.75rem;
    }

    .xjx-block .value {
        font-size: 0.75rem;
    }

    .guarantee-row .label {
        margin-right: 6px;
    }

    .guarantee-row .value {
        font-size: 0.75rem;
    }

    .publisher-container {
        gap: 10px;
    }

    .publisher-left {
        width: 55px;
    }

    .publisher-avatar {
        width: 45px;
        height: 45px;
        margin-bottom: 3px;
    }

    .publisher-nickname {
        font-size: 10px;
    }

    .score-label {
        font-size: 10px;
    }

        .score-label i {
            font-size: 9px;
            margin-right: 4px;
            width: 12px;
        }

    .score-stars {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .score-row {
        padding: 2px 0;
        gap: 5px;
    }
}

/* 人员模块头部带删除按钮的样式 */
.person-header-with-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(41, 128, 185, 0.3);
}

    .person-header-with-btn .person-header {
        flex: 1;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.person-delete-btn {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

    .person-delete-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    }

    .person-delete-btn i {
        font-size: 11px;
    }

/* 通告底部删除按钮样式 */
.notice-btn-danger {
    background: linear-gradient(135deg, #ef4444, #f87171) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

    .notice-btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }


@media (max-width: 768px) {
    .person-header-with-btn {
        flex-wrap: wrap;
        gap: 10px;
    }

    .person-delete-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .person-delete-btn i {
        font-size: 10px;
    }
}

/* ========== 戏剧资料预览样式（与 fbtg 页面保持一致） ========== */
.drama-material-preview {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9ff;
    border-radius: 8px;
    border: 1px solid #e8e8f0;
}

.drama-condition {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 4px;
    border-left: 3px solid #667eea;
}

.drama-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.drama-thumb-item {
    width: 80px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.drama-thumb-img,
.drama-thumb-video {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.drama-thumb-doc {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 32px;
    color: #667eea;
    border: 1px solid #d0d8ff;
}

.drama-thumb-status {
    font-size: 10px;
    margin-top: 4px;
    border-radius: 10px;
    padding: 2px 4px;
    display: inline-block;
    font-weight: 500;
}

    .drama-thumb-status.success {
        background: #28a745;
        color: white;
    }

    .drama-thumb-status.error {
        background: #dc3545;
        color: white;
    }

    .drama-thumb-status.waiting {
        background: #ffc107;
        color: #333;
    }

.drama-thumb-name {
    font-size: 10px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .drama-thumb-item {
        width: 70px;
    }

    .drama-thumb-img,
    .drama-thumb-video,
    .drama-thumb-doc {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .drama-thumb-name {
        font-size: 9px;
    }
}

/* 戏剧资料缩略图 - 水平滚动（覆盖 fbtg_yl.css 中的 flex-wrap 布局） */
.drama-thumbnails {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important; /* iOS 平滑滚动 */
    margin-top: 8px;
    padding-bottom: 4px; /* 留出滚动条空间 */
}

/* 每个缩略图项强制内联块，禁止换行 */
.drama-thumb-item {
    display: inline-block !important;
    width: 80px;
    margin-right: 8px;
    vertical-align: top;
    white-space: normal; /* 内部文字允许换行 */
}

    /* 最后一个缩略图右侧留点空白，避免被截断 */
    .drama-thumb-item:last-child {
        margin-right: 16px;
    }

/* 移动端触摸优化 */
.drama-thumbnails::-webkit-scrollbar {
    height: 3px;
}

.drama-thumbnails::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.drama-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}