/* Paper author collection on the public submission form. */
.paper-authors-field {
    margin-top: 1.15rem;
}

.paper-authors-panel {
    border: 1px solid #d8e3e0;
    border-radius: 10px;
    background: #fbfefd;
    padding: 0.95rem 1rem 1rem;
}

.paper-authors-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.paper-authors-copy {
    min-width: 0;
}

.paper-authors-head h3 {
    margin: 0;
    color: #102033;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.paper-authors-head p,
.paper-author-note {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}

.paper-author-add {
    flex: 0 0 auto;
    min-width: 116px;
    white-space: nowrap;
}

.paper-author-table-head,
.paper-author-grid {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.25fr) minmax(180px, 1.15fr) 82px 44px;
    gap: 0.55rem;
    align-items: center;
}

.paper-author-table-head {
    padding: 0 0.8rem 0.35rem;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
}

.paper-author-primary,
.paper-author-row {
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    background: #fff;
    padding: 0.72rem 0.8rem;
}

.paper-author-primary {
    background: #f8fafc;
}

.paper-author-cell {
    min-width: 0;
}

.paper-author-cell label {
    display: none;
}

.paper-author-cell input,
.paper-author-readonly {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    line-height: 1.35;
}

.paper-author-readonly {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paper-author-order input {
    text-align: center;
}

.paper-author-row-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.paper-author-current-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 28px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.paper-author-note {
    margin-top: 0.55rem;
}

.paper-authors-list {
    margin-top: 0.6rem;
}

.paper-authors-list:empty::before {
    content: "暂无其他作者，可点击上方按钮添加。";
    display: block;
    padding: 0.7rem 0.8rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 0.92rem;
}

.paper-author-row {
    margin-top: 0.55rem;
}

.paper-author-remove {
    width: 38px;
    height: 38px;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 1180px) {
    .paper-author-table-head,
    .paper-author-grid {
        grid-template-columns: minmax(110px, 1fr) minmax(160px, 1.2fr) minmax(150px, 1fr) 74px 42px;
        gap: 0.45rem;
    }

    .paper-authors-panel {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

@media (max-width: 900px) {
    .paper-author-table-head {
        display: none;
    }

    .paper-author-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .paper-author-cell label {
        display: block;
        margin-bottom: 0.25rem;
        color: #334155;
        font-size: 0.84rem;
        font-weight: 700;
    }

    .paper-author-row-action {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .paper-authors-head {
        display: block;
    }

    .paper-author-add {
        width: 100%;
        margin-top: 0.75rem;
    }

    .paper-author-grid {
        grid-template-columns: 1fr;
    }
}
