
.letter-table-wrapper {
    /*margin-top: 20px;*/
}

.letter-table-wrapper .el-table {
    font-size: 14px;
}

.letter-table-wrapper .el-table th {
    background: #f5f5f5;
    color: #666;
    font-weight: 600;
    padding: 12px 10px;
}

.letter-table-wrapper .el-table td {
    color: #333;
    padding: 12px 10px;
}

.letter-table-wrapper .el-table__row:hover {
    background: #f9f9f9;
}

.letter-title {
    color: #3356c4;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.letter-title:hover {
    text-decoration: underline;
    color: #2a47a8;
}

.status-tag {
    color: #67c23a;
    font-weight: 500;
}

.letter-detail-container {
    padding: 10px;
    max-height: 70vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section-title {
    color: #fff;
    border-bottom: 1px grey solid;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.detail-section-title-text {
    background-color: #3356c4;
    width: 85px;
    padding: 10px;
    display: inline-block;
    text-align: center;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    line-height: 1.8;
    flex-wrap: wrap;
}

.detail-label {
    color: #3356c4;
    min-width: 90px;
    flex-shrink: 0;
}

.detail-value {
    color: #303133;
    flex: 1;
    word-break: break-word;
    min-width: 0;
}

.reply-content {
    background-color: #f5f7fa;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
    line-height: 1.8;
    word-break: break-word;
}

.dialog-footer {
    display: flex;
    justify-content: center;
}

.letter-card-list {
    display: none;
}

.letter-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.letter-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #3356c4;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    line-height: 1.5;
}

.letter-card-title:hover {
    text-decoration: underline;
}

.letter-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.letter-card-row {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.letter-card-label {
    color: #666;
    min-width: 80px;
    flex-shrink: 0;
}

.letter-card-value {
    color: #333;
    flex: 1;
}

.letter-card-status {
    color: #67c23a;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .letter-table-wrapper .el-table {
        font-size: 13px;
    }

    .letter-table-wrapper .el-table th,
    .letter-table-wrapper .el-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .letter-table-wrapper .el-table {
        display: none;
    }

    .letter-card-list {
        display: block;
    }

    .letter-detail-container {
        padding: 5px;
    }

    .detail-section {
        margin-bottom: 20px;
    }

    .detail-section-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .detail-section-title-text {
        width: 75px;
        padding: 8px;
        font-size: 14px;
    }

    .detail-row {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 10px;
    }

    .detail-label {
        min-width: auto;
        font-size: 14px;
    }

    .detail-value {
        font-size: 14px;
    }

    .reply-content {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .letter-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .letter-card-title {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .letter-card-info {
        gap: 6px;
    }

    .letter-card-row {
        font-size: 13px;
    }

    .letter-card-label {
        min-width: 70px;
        font-size: 13px;
    }

    .letter-card-value {
        font-size: 13px;
    }

    .letter-detail-container {
        padding: 0;
    }

    .detail-section {
        margin-bottom: 15px;
    }

    .detail-section-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .detail-section-title-text {
        width: 70px;
        padding: 8px;
        font-size: 13px;
    }

    .detail-row {
        margin-bottom: 8px;
    }

    .detail-label {
        font-size: 13px;
    }

    .detail-value {
        font-size: 13px;
    }

    .reply-content {
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    .letter-card {
        padding: 10px;
        margin-bottom: 10px;
    }

    .letter-card-title {
        font-size: 13px;
    }

    .letter-card-row {
        font-size: 12px;
    }

    .letter-card-label {
        font-size: 12px;
    }

    .letter-card-value {
        font-size: 12px;
    }

    .detail-section-title {
        font-size: 13px;
    }

    .detail-section-title-text {
        width: 65px;
        padding: 6px;
        font-size: 12px;
    }

    .detail-label,
    .detail-value,
    .reply-content {
        font-size: 12px;
    }

    .reply-content {
        padding: 6px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .letter-title:hover {
        text-decoration: none;
    }

    .letter-title:active {
        opacity: 0.7;
    }

    .letter-card-title:active {
        opacity: 0.7;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .letter-detail-container {
        max-height: 60vh;
    }
}
